@hot-updater/console 1.2.0-rc.31 → 1.2.0-rc.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/-native-builds-search-BvCftqF2.js +1 -0
- package/.output/public/assets/{BundleIdDisplay-CTBdtFQ8.js → BundleIdDisplay-D8oR8mcP.js} +1 -1
- package/.output/public/assets/{ChannelBadge-CEabmopB.js → ChannelBadge-Do-lWsLM.js} +1 -1
- package/.output/public/assets/{CompositeItem-KUM5yQVr.js → CompositeItem-CyQoQkYs.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-Be-0iTww.js → ConsoleFeatureUnavailable-C0iDIboF.js} +1 -1
- package/.output/public/assets/{EventDetails-bDOYte1z.js → EventDetails-DFWS-HcW.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-D2f0HmyU.js → HashValueDisplay-DKziWjEg.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-Cj2ROSQO.js → InsightsPageHeader-BATHTZWn.js} +1 -1
- package/.output/public/assets/IosInstall-DsKczesK.js +1 -0
- package/.output/public/assets/NativeBuildsNav-D3FIlSu0.js +1 -0
- package/.output/public/assets/{NotFoundPage-CVBtl68B.js → NotFoundPage-CijSy63W.js} +1 -1
- package/.output/public/assets/{PlatformIcon-DVnzzGqM.js → PlatformIcon-Kq3q98tU.js} +1 -1
- package/.output/public/assets/QrCode-D3-Vuudy.js +1 -0
- package/.output/public/assets/{RelativeTime-Dz25a2yJ.js → RelativeTime-CP7nosYx.js} +1 -1
- package/.output/public/assets/{RolloutPercentageBadge-D_I0Raj2.js → RolloutPercentageBadge-DnmU8XbU.js} +1 -1
- package/.output/public/assets/{RowReason-CAkj76WL.js → RowReason-D7TZ2xwW.js} +1 -1
- package/.output/public/assets/SandboxBadge-BPf2uve4.js +1 -0
- package/.output/public/assets/TargetDisplay-DzSkf5yP.js +1 -0
- package/.output/public/assets/alert-dialog-Dihztkem.js +1 -0
- package/.output/public/assets/{api-C1OPeiG1.js → api-B1z_XXrQ.js} +1 -1
- package/.output/public/assets/api-keys-C_u_ZmPS.js +1 -0
- package/.output/public/assets/api-keys-DPuPM7ag.js +1 -0
- package/.output/public/assets/arrow-left-CxxDwBQs.js +1 -0
- package/.output/public/assets/arrow-right-jHG0fJt7.js +1 -0
- package/.output/public/assets/arrow-up-right-BPRe5soE.js +1 -0
- package/.output/public/assets/{badge-FZMD5vvS.js → badge-D4Tiwei-.js} +1 -1
- package/.output/public/assets/{card-CyHYmHue.js → card-BfeRlTvj.js} +1 -1
- package/.output/public/assets/check-Dz_5aNwx.js +1 -0
- package/.output/public/assets/chevron-right-CuYrscDY.js +1 -0
- package/.output/public/assets/{circle-off-BCkZpskJ.js → circle-off-BZFOMb8J.js} +1 -1
- package/.output/public/assets/{clipboard-DZrZK5gR.js → clipboard-D8uvj6FN.js} +1 -1
- package/.output/public/assets/{console-features-api-BO5V64P3.js → console-features-api-De6tXQnd.js} +1 -1
- package/.output/public/assets/{copy-CH1__JAW.js → copy-BxI24-g-.js} +1 -1
- package/.output/public/assets/dialog-e9AF5T6h.js +1 -0
- package/.output/public/assets/{dist-DAM__Tdz.js → dist-BEIz5ojx.js} +1 -1
- package/.output/public/assets/{download-B2GjTySo.js → download-ekENI2Sw.js} +1 -1
- package/.output/public/assets/{empty--YaE5Z4p.js → empty-DpSPWLc2.js} +1 -1
- package/.output/public/assets/{field-CdhSgWhI.js → field-PkdRPD3A.js} +1 -1
- package/.output/public/assets/{git-branch-DG1VDaKq.js → git-branch-BWrvONjc.js} +1 -1
- package/.output/public/assets/{history-C0wv4htz.js → history-DwdBLzJP.js} +1 -1
- package/.output/public/assets/index-BZVWufH3.js +10 -0
- package/.output/public/assets/input-group-DNfVeeYZ.js +1 -0
- package/.output/public/assets/{insights-_j_ieOyh.js → insights-Bm4Kua5R.js} +2 -2
- package/.output/public/assets/insights-CpnFoyo5.js +2 -0
- package/.output/public/assets/insights-MQrx_wbP.js +1 -0
- package/.output/public/assets/{insights-api-B6Gj74n5.js → insights-api-CXXCRZhF.js} +1 -1
- package/.output/public/assets/{insights-search-Bgvg6wSP.js → insights-search-CtEcj6lz.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-BUCinjSN.js → insights-usage-rpc-DdmD1Nuy.js} +1 -1
- package/.output/public/assets/{insights_.distribution-CRkGNelG.js → insights_.distribution-Bjo0aQE4.js} +1 -1
- package/.output/public/assets/insights_.distribution-Dd2mYz8D.js +2 -0
- package/.output/public/assets/insights_.distribution-REbBAqgL.js +1 -0
- package/.output/public/assets/{installations-BsD6LgNc.js → installations-DYT2mSjX.js} +2 -2
- package/.output/public/assets/installations-Di02gX_V.js +1 -0
- package/.output/public/assets/{installations-CYTzndfP.js → installations-iqDa8KPW.js} +1 -1
- package/.output/public/assets/{key-round-D7UgdXyA.js → key-round-B-vaAsR7.js} +1 -1
- package/.output/public/assets/{link-CN3iHC4A.js → link-D95E0fwF.js} +1 -1
- package/.output/public/assets/{list-Bm-CfN5g.js → list-Dq40Mmoj.js} +1 -1
- package/.output/public/assets/loader-circle-C26cZDSM.js +1 -0
- package/.output/public/assets/native-builds-7sC78eTq.js +1 -0
- package/.output/public/assets/native-builds-BOSmoLed.js +1 -0
- package/.output/public/assets/native-builds-CXDwW54k.js +2 -0
- package/.output/public/assets/native-builds_._buildId-C7-yUwvH.js +2 -0
- package/.output/public/assets/native-builds_._buildId-u5dG7ej5.js +1 -0
- package/.output/public/assets/native-builds_.devices-CQ_tB3SO.js +1 -0
- package/.output/public/assets/native-builds_.devices-C_YZoRxB.js +2 -0
- package/.output/public/assets/plus-Bp6IqwOH.js +1 -0
- package/.output/public/assets/{preload-helper-CRQjUQaZ.js → preload-helper-52zhjEsw.js} +1 -1
- package/.output/public/assets/{refresh-cw-BHhBYjS8.js → refresh-cw-CpCxPYma.js} +1 -1
- package/.output/public/assets/{relativeTime-BYRt19mj.js → relativeTime-D_aYJRc7.js} +1 -1
- package/.output/public/assets/remote-config-BbiN7bGR.js +6 -0
- package/.output/public/assets/remote-config-BhdrBpLM.js +1 -0
- package/.output/public/assets/remote-config-Dmuqm9xx.js +1 -0
- package/.output/public/assets/{rotate-cw-Ba-slJea.js → rotate-cw-Bn3fIWmY.js} +1 -1
- package/.output/public/assets/routes-C4MTDNA3.js +2 -0
- package/.output/public/assets/routes-Cjjfwbs_.js +1 -0
- package/.output/public/assets/search-DeKSyo9Q.js +1 -0
- package/.output/public/assets/{select-CA8r-UUe.js → select-BAd2hAoW.js} +1 -1
- package/.output/public/assets/{sidebar-yC7KdImc.js → sidebar-UnsNYOry.js} +1 -1
- package/.output/public/assets/smartphone-lSZWrqxx.js +1 -0
- package/.output/public/assets/styles-CQNxu86i.css +2 -0
- package/.output/public/assets/{switch-BsV3d4km.js → switch-C_s67MO4.js} +1 -1
- package/.output/public/assets/{table-D8YjT_ht.js → table-r_sYqKTQ.js} +1 -1
- package/.output/public/assets/{tabs-RdhEl9sE.js → tabs-BBfg-c0h.js} +1 -1
- package/.output/public/assets/{trash-2-B5KIvrXy.js → trash-2-BPH7ydek.js} +1 -1
- package/.output/public/assets/{undo-2-CFcU9dIB.js → undo-2-CGeTBZjC.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-lAmUsXcc.js → useCompositeListItem-B9ONn9qn.js} +1 -1
- package/.output/public/assets/{useMutation-w3qYaU2L.js → useMutation-BWX97JX2.js} +1 -1
- package/.output/server/{__23tanstack-start-server-fn-resolver-CPVg1lWP.mjs → __23tanstack-start-server-fn-resolver-DBw1tYEH.mjs} +58 -62
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{-native-builds-search-DD7wilC0.mjs → -native-builds-search-OJ8XmaBa.mjs} +1 -1
- package/.output/server/_ssr/{BundleIdDisplay-CHwdLSxI.mjs → BundleIdDisplay-DsNg19E8.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-DdrhdvMM.mjs → ChannelBadge-DWQcxohs.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-DPX24kXX.mjs → ConsoleFeatureUnavailable-CfcFJ4k4.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-6jBbGcbN.mjs → EventDetails-DJYShaIG.mjs} +6 -6
- package/.output/server/_ssr/{HashValueDisplay-B4--TU87.mjs → HashValueDisplay-B7FFJcIK.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-CuJ8N3TQ.mjs → InsightsPageHeader-CaceslcD.mjs} +6 -6
- package/.output/server/_ssr/{IosInstall-CHC-d6NT.mjs → IosInstall-gEVi9PFl.mjs} +164 -72
- package/.output/server/_ssr/{NativeBuildsNav-C69l7uNo.mjs → NativeBuildsNav-DoB6DGO2.mjs} +5 -5
- package/.output/server/_ssr/{NotFoundPage-ZsHGzoLS.mjs → NotFoundPage-Bu3yot-M.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-BXcpYcrO.mjs → PlatformIcon-X18AN8Yp.mjs} +1 -1
- package/.output/server/_ssr/QrCode-DkmvYkKS.mjs +50 -0
- package/.output/server/_ssr/{RelativeTime-7vOoIT4P.mjs → RelativeTime-Dg47Cmmt.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge--MojdSYZ.mjs → RolloutPercentageBadge-CcEZuUxL.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-CIaGuzr1.mjs → RowReason-CbKEYA9N.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-BqBSRE2-.mjs → SandboxBadge-CuTOlGaF.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-CLn4k3f5.mjs → TargetDisplay-DkRZwhNW.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-DihcZr0y.mjs → alert-dialog-Ckdomw6e.mjs} +3 -3
- package/.output/server/_ssr/{api-nFsUxTG1.mjs → api-BIDpAoY0.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-DExjZkdx.mjs → api-keys-BStTPcTe.mjs} +11 -9
- package/.output/server/_ssr/{api-keys-CN5wpM3R.mjs → api-keys-MdcfK9Zw.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-CClIn3D8.mjs → api-keys-rpc-FwkHHfJL.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-DLRzLoop.mjs → api-rpc-DI164kWO.mjs} +13 -13
- package/.output/server/_ssr/{auth-rpc-U46OWsbS.mjs → auth-rpc-DOONC4Xw.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-iIXxFs8t.mjs → auth.server-MkFb8t-c.mjs} +2 -2
- package/.output/server/_ssr/{badge-jnl4Ajh1.mjs → badge-MGJQ5WNb.mjs} +1 -1
- package/.output/server/_ssr/{card-BEfQk5Ei.mjs → card-st1F0w5g.mjs} +1 -1
- package/.output/server/_ssr/{config.server-Ig1eUxaf.mjs → config.server-A4yZxfTn.mjs} +4 -4
- package/.output/server/_ssr/{console-access-BOTh4-fO.mjs → console-access-Cj95NxRZ.mjs} +2 -2
- package/.output/server/_ssr/{console-features-CzhqrCcX.mjs → console-features-DTYyXrWO.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-Dk02j_6v.mjs → console-features-api-WvvE114Q.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-B_V68MjF.mjs → console-features-rpc-DxhmScBd.mjs} +3 -3
- package/.output/server/_ssr/{deviceProfileToken-BbLKmrUb.mjs → deviceProfileToken-xzDLfE0T.mjs} +21 -5
- package/.output/server/_ssr/{dialog-DuyJ0HsU.mjs → dialog-jxN7lCij.mjs} +4 -4
- package/.output/server/_ssr/{empty-BDBZwsuM.mjs → empty-Dfmlc-7_.mjs} +2 -2
- package/.output/server/_ssr/{field-CX6srGIn.mjs → field-BrPlhj0S.mjs} +2 -2
- package/.output/server/_ssr/{input-group-CV_H0YX7.mjs → input-group-Ckaa4ML0.mjs} +2 -2
- package/.output/server/_ssr/{insights-CBoiq6pK.mjs → insights-BX9okQmy.mjs} +2 -2
- package/.output/server/_ssr/{insights-DQmsr9I4.mjs → insights-CmbOo4Er.mjs} +29 -24
- package/.output/server/_ssr/{insights-Td2VtKJZ.mjs → insights-DHvN6knB.mjs} +5 -5
- package/.output/server/_ssr/{insights-api-G8ZOyKKA.mjs → insights-api-t8rcSzVu.mjs} +3 -3
- package/.output/server/_ssr/{insights-failures-rpc-Ba4YSjbA.mjs → insights-failures-rpc-DadwsaxJ.mjs} +7 -7
- package/.output/server/_ssr/{insights-recovery-rpc-LKbOLo-_.mjs → insights-recovery-rpc-BK-RELe9.mjs} +4 -4
- package/.output/server/_ssr/{insights-rpc-TkflAi0Z.mjs → insights-rpc-BmDuFOYA.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-aCzmEqnq.mjs → insights-search-CQ0aMRHX.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-rpc-Cbk3jKjA.mjs → insights-usage-rpc-CkeNir2v.mjs} +4 -4
- package/.output/server/_ssr/{insights-usage-rpc-NoT-iWyp.mjs → insights-usage-rpc-JhBWMZfn.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-Bo1WRLKV.mjs → insights_.distribution-BtGiM-F8.mjs} +15 -15
- package/.output/server/_ssr/{insights_.distribution-Vt7W1Xw7.mjs → insights_.distribution-CEldmJz1.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-Y3uFkJMX.mjs → insights_.distribution-DlBTOrjk.mjs} +5 -5
- package/.output/server/_ssr/{installations-BEUOlOQs.mjs → installations-3fgKUnRv.mjs} +11 -11
- package/.output/server/_ssr/{installations-BpcY3NSj.mjs → installations-DHbd6gfU.mjs} +2 -2
- package/.output/server/_ssr/{installations-DClqNAQn.mjs → installations-oBJc0TH1.mjs} +4 -4
- package/.output/server/_ssr/{ios-devices-rpc-DmjO2Cbe.mjs → ios-devices-rpc-DjlS64L9.mjs} +9 -21
- package/.output/server/_ssr/iosDeviceCookie-Ccxr1MR8.mjs +155 -0
- package/.output/server/_ssr/{iosDeviceProfile-CseUPyC3.mjs → iosDeviceProfile-nEW-zQnl.mjs} +13 -14
- package/.output/server/_ssr/{iosDevices-BcM0YdL8.mjs → iosDevices-gG7HCnCL.mjs} +4 -20
- package/.output/server/_ssr/{native-artifact-C-jGiTjz.mjs → native-artifact-BRNP_q-y.mjs} +1 -1
- package/.output/server/_ssr/{native-builds-CwdDL-ag.mjs → native-builds-Be2Ga-eY.mjs} +17 -17
- package/.output/server/_ssr/{native-builds-B31AnQ0z.mjs → native-builds-mq_fr3k0.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-DjoHvBQf.mjs → native-builds-nRuXKypG.mjs} +63 -2
- package/.output/server/_ssr/{native-builds_._buildId-Dew-f4Ox.mjs → native-builds_._buildId-Cq-3MWHV.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-xNxhulXv.mjs → native-builds_._buildId-Du028raJ.mjs} +20 -27
- package/.output/server/_ssr/{native-builds_.devices-BBWNnbAj.mjs → native-builds_.devices-CWOFxrsg.mjs} +120 -68
- package/.output/server/_ssr/{native-builds_.devices-DpYGqdjz.mjs → native-builds_.devices-DVBT3gKp.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildDownloadLink-CMo_0eeE.mjs → nativeBuildDownloadLink-BXFMIxJ8.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-BlT6X49f.mjs → nativeBuildInstall-CjG3sJmP.mjs} +8 -7
- package/.output/server/_ssr/{nativeBuilds-DnIRDijn.mjs → nativeBuilds-DaF-TcfO.mjs} +2 -2
- package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
- package/.output/server/_ssr/{publicConsoleBase-CBG0Pv8f.mjs → publicConsoleBase-wTKw3_iB.mjs} +2 -14
- package/.output/server/_ssr/{release-adoption-rpc-CNwUfrya.mjs → release-adoption-rpc-BiUppdo3.mjs} +7 -7
- package/.output/server/_ssr/{releaseAdoption-COlUf2W5.mjs → releaseAdoption-DfEYq7I4.mjs} +1 -1
- package/.output/server/_ssr/{remote-config-D1X_UwRB.mjs → remote-config-8SDPC3Ex.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-7NN5w0OC.mjs → remote-config-CKjwym6Y.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DdcrliiZ.mjs → remote-config-MgYpLVNI.mjs} +19 -19
- package/.output/server/_ssr/{remote-config-rpc-oR3e-Ixt.mjs → remote-config-rpc-RoH5hIma.mjs} +3 -3
- package/.output/server/_ssr/{router-DxsgaBqH.mjs → router-DaSGo-53.mjs} +101 -61
- package/.output/server/_ssr/{routes-BXne94ak.mjs → routes-2wXfjE3q.mjs} +37 -33
- package/.output/server/_ssr/{routes-DdZw0VC5.mjs → routes-Y7SrNegl.mjs} +11 -10
- package/.output/server/_ssr/{runtime.server-DImJAltO.mjs → runtime.server-BUbb281Z.mjs} +2 -2
- package/.output/server/_ssr/{schema-migration-rpc-BZueLWKW.mjs → schema-migration-rpc-C302GUdI.mjs} +3 -3
- package/.output/server/_ssr/{select-DcWzmCb3.mjs → select-DsWMUB9T.mjs} +1 -1
- package/.output/server/_ssr/{server-DA_rB8Ch.mjs → server-Bx_Shfka.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-BsFYs26D.mjs → sidebar-S1E-7aSS.mjs} +6 -6
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-Ds6WPOwH.mjs → start-BaUpXI0L.mjs} +1 -1
- package/.output/server/_ssr/{switch-CByCMAau.mjs → switch-DMCgvrFu.mjs} +3 -3
- package/.output/server/_ssr/{table-SLiL-w8T.mjs → table-BN3AmMyY.mjs} +1 -1
- package/.output/server/_ssr/{tabs-BCG8AAvJ.mjs → tabs-D3tzMdsj.mjs} +3 -3
- package/.output/server/_ssr/{updateFailures-Cl1Fxj4J.mjs → updateFailures-BwDwIoNu.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-DcKFR9bk.mjs +225 -0
- package/.output/server/index.mjs +431 -431
- package/package.json +7 -7
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +4 -2
- package/src/components/features/bundles/BundleMetadata.tsx +1 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +6 -2
- package/src/components/features/insights/FailureReports.tsx +3 -2
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/ReleaseActivity.tsx +5 -1
- package/src/components/features/insights/ReleaseCombobox.tsx +1 -1
- package/src/components/features/insights/UpdateFailures.tsx +1 -0
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +1 -1
- package/src/components/features/native-builds/IosDevicesPage.tsx +120 -34
- package/src/components/features/native-builds/IosInstall.tsx +85 -27
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +1 -2
- package/src/components/features/native-builds/NativeBuildsNav.tsx +2 -2
- package/src/components/features/native-builds/NativeBuildsTable.tsx +1 -1
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +1 -1
- package/src/components/features/releases/ReleaseEditorSheet.tsx +6 -5
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/dialog.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/lib/ios-devices-api.ts +170 -5
- package/src/lib/ios-devices-rpc.ts +0 -12
- package/src/lib/native-builds.ts +88 -0
- package/src/lib/server/deviceProfileToken.ts +37 -3
- package/src/lib/server/iosDeviceCookie.ts +239 -0
- package/src/lib/server/iosDeviceProfile.ts +4 -2
- package/src/lib/server/iosDevices.ts +0 -30
- package/src/routeTree.gen.ts +44 -0
- package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
- package/src/routes/[_]hot-updater/devices/request.ts +28 -0
- package/.output/public/assets/-native-builds-search-DdHwfe4q.js +0 -1
- package/.output/public/assets/IosInstall-B-Yt7DUj.js +0 -1
- package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +0 -1
- package/.output/public/assets/SandboxBadge-BVxHg_HF.js +0 -1
- package/.output/public/assets/TargetDisplay-B_dqT5iw.js +0 -1
- package/.output/public/assets/alert-dialog-Ch0QxRsa.js +0 -1
- package/.output/public/assets/api-keys-DLC8jjaM.js +0 -1
- package/.output/public/assets/api-keys-eDnzgFAf.js +0 -1
- package/.output/public/assets/arrow-left-DQjHJAnT.js +0 -1
- package/.output/public/assets/arrow-right-CXp_K3xK.js +0 -1
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +0 -1
- package/.output/public/assets/check-CqWNyG93.js +0 -1
- package/.output/public/assets/chevron-right-DNbYTBX1.js +0 -1
- package/.output/public/assets/dialog-BLj71-Nf.js +0 -1
- package/.output/public/assets/index-IK43LiLE.js +0 -10
- package/.output/public/assets/input-group-XKLcUGoa.js +0 -1
- package/.output/public/assets/insights-C94CdeAA.js +0 -1
- package/.output/public/assets/insights-DILMVpk8.js +0 -2
- package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +0 -2
- package/.output/public/assets/insights_.distribution-CyAu3RN3.js +0 -1
- package/.output/public/assets/installations-BA01mqJE.js +0 -1
- package/.output/public/assets/loader-circle-iMqC-8ZE.js +0 -1
- package/.output/public/assets/native-builds-C-Dayo63.js +0 -2
- package/.output/public/assets/native-builds-_3SRMVOS.js +0 -1
- package/.output/public/assets/native-builds_._buildId-BPJzn5LY.js +0 -2
- package/.output/public/assets/native-builds_._buildId-DJWMBKQQ.js +0 -1
- package/.output/public/assets/native-builds_.devices-BbE0s2il.js +0 -1
- package/.output/public/assets/native-builds_.devices-BiXjrMS-.js +0 -2
- package/.output/public/assets/package-BmfoZ5Zj.js +0 -1
- package/.output/public/assets/plus-Db0KxLZp.js +0 -1
- package/.output/public/assets/remote-config-Cxkr7_BP.js +0 -1
- package/.output/public/assets/remote-config-DAOyn5xL.js +0 -1
- package/.output/public/assets/remote-config-DXv25LX1.js +0 -6
- package/.output/public/assets/routes-CH42g1N9.js +0 -1
- package/.output/public/assets/routes-_QhVAS_l.js +0 -2
- package/.output/public/assets/search-dJG2BYmx.js +0 -1
- package/.output/public/assets/send-DuMOCzbD.js +0 -1
- package/.output/public/assets/smartphone-D1C6BRd_.js +0 -1
- package/.output/public/assets/styles-BYO5PJYg.css +0 -2
- package/.output/server/_tanstack-start-manifest_v-BoMD43wU.mjs +0 -225
- /package/.output/public/assets/{uuidv7-DAoOOpz9.js → uuidv7-DgXZ1zRR.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/console",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.0-rc.
|
|
4
|
+
"version": "1.2.0-rc.33",
|
|
5
5
|
"files": [
|
|
6
6
|
".output",
|
|
7
7
|
"lib",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"tw-animate-css": "^1.4.0",
|
|
60
60
|
"uqr": "^0.1.3",
|
|
61
61
|
"verkit": "0.4.0",
|
|
62
|
-
"@hot-updater/bsdiff": "1.2.0-rc.
|
|
63
|
-
"@hot-updater/
|
|
64
|
-
"@hot-updater/
|
|
65
|
-
"@hot-updater/
|
|
62
|
+
"@hot-updater/bsdiff": "1.2.0-rc.33",
|
|
63
|
+
"@hot-updater/plugin-core": "1.2.0-rc.33",
|
|
64
|
+
"@hot-updater/server": "1.2.0-rc.33",
|
|
65
|
+
"@hot-updater/protocol": "1.2.0-rc.33"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@tanstack/devtools-vite": "^0.6.0",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"vite-tsconfig-paths": "^6.1.1",
|
|
87
87
|
"vitest": "4.1.4",
|
|
88
88
|
"web-vitals": "^5.1.0",
|
|
89
|
-
"@hot-updater/cli-tools": "1.2.0-rc.
|
|
90
|
-
"@hot-updater/mock": "1.2.0-rc.
|
|
89
|
+
"@hot-updater/cli-tools": "1.2.0-rc.33",
|
|
90
|
+
"@hot-updater/mock": "1.2.0-rc.33"
|
|
91
91
|
},
|
|
92
92
|
"description": "React Native OTA solution for self-hosted",
|
|
93
93
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -4,6 +4,7 @@ import { type ReactElement, type ReactNode, useState } from "react";
|
|
|
4
4
|
import { toast } from "sonner";
|
|
5
5
|
|
|
6
6
|
import { useFeatureUi } from "@/components/features/FeatureSlots";
|
|
7
|
+
import { isIosBrowser } from "@/components/features/native-builds/IosInstall";
|
|
7
8
|
import { HotUpdaterLogo } from "@/components/HotUpdaterLogo";
|
|
8
9
|
import { useTheme } from "@/components/ThemeProvider";
|
|
9
10
|
import {
|
|
@@ -19,6 +20,8 @@ import {
|
|
|
19
20
|
SidebarMenuItem,
|
|
20
21
|
useSidebar,
|
|
21
22
|
} from "@/components/ui/sidebar";
|
|
23
|
+
import { forgetKeptIosDevice } from "@/lib/ios-devices-api";
|
|
24
|
+
import { consolePathFromRouter } from "@/lib/native-builds";
|
|
22
25
|
|
|
23
26
|
type NavigationItem = {
|
|
24
27
|
readonly label: string;
|
|
@@ -87,6 +90,12 @@ export function AppSidebar({ canSignOut = false }: { canSignOut?: boolean }) {
|
|
|
87
90
|
const signOut = async () => {
|
|
88
91
|
setSigningOut(true);
|
|
89
92
|
try {
|
|
93
|
+
// Only an iPhone or iPad holds this Safari's proof of itself.
|
|
94
|
+
if (isIosBrowser(navigator)) {
|
|
95
|
+
await forgetKeptIosDevice(
|
|
96
|
+
consolePathFromRouter(window.location, routerState.location.pathname),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
90
99
|
const response = await fetch("/api/auth/sign-out", {
|
|
91
100
|
body: "{}",
|
|
92
101
|
headers: { "content-type": "application/json" },
|
|
@@ -116,7 +125,7 @@ export function AppSidebar({ canSignOut = false }: { canSignOut?: boolean }) {
|
|
|
116
125
|
bundleId: undefined,
|
|
117
126
|
scopeKey: undefined,
|
|
118
127
|
}}
|
|
119
|
-
className="flex items-center gap-3 p-1 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-2"
|
|
128
|
+
className="flex items-center gap-3 p-1 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-2 max-md:min-h-11"
|
|
120
129
|
>
|
|
121
130
|
<HotUpdaterLogo className="h-7 w-7 shrink-0" />
|
|
122
131
|
<div className="flex flex-col gap-0 group-data-[collapsible=icon]:hidden">
|
|
@@ -185,7 +194,7 @@ export function AppSidebar({ canSignOut = false }: { canSignOut?: boolean }) {
|
|
|
185
194
|
href="https://hot-updater.dev"
|
|
186
195
|
target="_blank"
|
|
187
196
|
rel="noreferrer"
|
|
188
|
-
className="px-2 pb-1 text-[11px] text-sidebar-foreground/60 hover:text-sidebar-foreground group-data-[collapsible=icon]:hidden"
|
|
197
|
+
className="px-2 pb-1 text-[11px] text-sidebar-foreground/60 hover:text-sidebar-foreground group-data-[collapsible=icon]:hidden max-md:flex max-md:min-h-11 max-md:items-center"
|
|
189
198
|
>
|
|
190
199
|
Powered by hot-updater
|
|
191
200
|
</a>
|
|
@@ -113,7 +113,7 @@ function CreateApiKeyDialog() {
|
|
|
113
113
|
|
|
114
114
|
return (
|
|
115
115
|
<>
|
|
116
|
-
<Button onClick={() => setOpen(true)}>
|
|
116
|
+
<Button className="max-md:h-11" onClick={() => setOpen(true)}>
|
|
117
117
|
<Plus data-icon="inline-start" />
|
|
118
118
|
Create API key
|
|
119
119
|
</Button>
|
|
@@ -224,7 +224,9 @@ function RevokeApiKeyDialog({ record }: { record: ApiKeyView }) {
|
|
|
224
224
|
if (!revoke.isPending) setOpen(nextOpen);
|
|
225
225
|
}}
|
|
226
226
|
>
|
|
227
|
-
<AlertDialogTrigger
|
|
227
|
+
<AlertDialogTrigger
|
|
228
|
+
render={<Button className="max-md:h-11" size="sm" variant="ghost" />}
|
|
229
|
+
>
|
|
228
230
|
<ShieldOff data-icon="inline-start" />
|
|
229
231
|
Revoke
|
|
230
232
|
</AlertDialogTrigger>
|
|
@@ -74,7 +74,7 @@ export function BundleMetadata({ bundle, release }: BundleMetadataProps) {
|
|
|
74
74
|
{gitCommitUrl ? (
|
|
75
75
|
<a
|
|
76
76
|
aria-label="Open git commit"
|
|
77
|
-
className="shrink-0 text-primary hover:underline"
|
|
77
|
+
className="relative shrink-0 text-primary after:absolute after:-inset-2.5 hover:underline md:after:hidden"
|
|
78
78
|
href={gitCommitUrl}
|
|
79
79
|
rel="noopener noreferrer"
|
|
80
80
|
target="_blank"
|
|
@@ -147,7 +147,14 @@ export function RolloutCohortsDialog({
|
|
|
147
147
|
return (
|
|
148
148
|
<Dialog>
|
|
149
149
|
<DialogTrigger
|
|
150
|
-
render={
|
|
150
|
+
render={
|
|
151
|
+
<Button
|
|
152
|
+
className="max-md:h-11"
|
|
153
|
+
size="sm"
|
|
154
|
+
type="button"
|
|
155
|
+
variant="outline"
|
|
156
|
+
/>
|
|
157
|
+
}
|
|
151
158
|
>
|
|
152
159
|
<List data-icon="inline-start" />
|
|
153
160
|
Preview cohorts
|
|
@@ -127,6 +127,7 @@ export function ChannelManagementDialog({
|
|
|
127
127
|
disabled={createChannel.isPending}
|
|
128
128
|
/>
|
|
129
129
|
<Button
|
|
130
|
+
className="max-md:h-11"
|
|
130
131
|
type="submit"
|
|
131
132
|
disabled={!normalizedName || createChannel.isPending}
|
|
132
133
|
>
|
|
@@ -161,7 +162,10 @@ export function ChannelManagementDialog({
|
|
|
161
162
|
key={channel.id}
|
|
162
163
|
className="flex min-h-12 items-center gap-3 px-3 py-2"
|
|
163
164
|
>
|
|
164
|
-
<p
|
|
165
|
+
<p
|
|
166
|
+
className="min-w-0 flex-1 truncate text-xs font-medium"
|
|
167
|
+
title={channel.name}
|
|
168
|
+
>
|
|
165
169
|
{channel.name}
|
|
166
170
|
</p>
|
|
167
171
|
<Button
|
|
@@ -172,7 +176,7 @@ export function ChannelManagementDialog({
|
|
|
172
176
|
title={`Delete ${channel.name}`}
|
|
173
177
|
disabled={deleteChannel.isPending}
|
|
174
178
|
onClick={() => setChannelToDelete(channel)}
|
|
175
|
-
className="text-muted-foreground hover:text-destructive"
|
|
179
|
+
className="text-muted-foreground hover:text-destructive max-md:size-11"
|
|
176
180
|
>
|
|
177
181
|
<Trash2 data-icon="inline-start" />
|
|
178
182
|
</Button>
|
|
@@ -113,7 +113,7 @@ function FailureDetail({ group }: { readonly group: FailureGroup }) {
|
|
|
113
113
|
</p>
|
|
114
114
|
) : null}
|
|
115
115
|
<Button
|
|
116
|
-
className="w-fit"
|
|
116
|
+
className="w-fit max-md:h-11"
|
|
117
117
|
variant="outline"
|
|
118
118
|
onClick={() => void copy()}
|
|
119
119
|
>
|
|
@@ -175,7 +175,7 @@ function FailureDetail({ group }: { readonly group: FailureGroup }) {
|
|
|
175
175
|
<EventBundleTransition event={event} />
|
|
176
176
|
<Button
|
|
177
177
|
variant="outline"
|
|
178
|
-
className="w-fit"
|
|
178
|
+
className="w-fit max-md:h-11"
|
|
179
179
|
render={
|
|
180
180
|
<Link
|
|
181
181
|
to="/installations"
|
|
@@ -260,6 +260,7 @@ export function FailureReportsList({
|
|
|
260
260
|
variant="ghost"
|
|
261
261
|
size="icon-lg"
|
|
262
262
|
aria-label="Refresh error reports"
|
|
263
|
+
className="max-md:size-11"
|
|
263
264
|
disabled={isFetching}
|
|
264
265
|
onClick={onRefresh}
|
|
265
266
|
>
|
|
@@ -371,6 +371,7 @@ export function InsightsOverview({
|
|
|
371
371
|
aria-label="Refresh release health"
|
|
372
372
|
variant="ghost"
|
|
373
373
|
size="icon-lg"
|
|
374
|
+
className="max-md:size-11"
|
|
374
375
|
disabled={health.isFetching}
|
|
375
376
|
onClick={health.refresh}
|
|
376
377
|
>
|
|
@@ -616,6 +617,7 @@ export function InsightsOverview({
|
|
|
616
617
|
<TableCell>
|
|
617
618
|
<Button
|
|
618
619
|
aria-label={`Remove ${release.releaseId}`}
|
|
620
|
+
className="max-md:size-11"
|
|
619
621
|
variant="ghost"
|
|
620
622
|
size="icon-xs"
|
|
621
623
|
onClick={() => remove(release.releaseId)}
|
|
@@ -650,7 +652,11 @@ export function InsightsOverview({
|
|
|
650
652
|
</CardContent>
|
|
651
653
|
<CardFooter className="flex items-center justify-end border-t px-6 py-5">
|
|
652
654
|
<Link
|
|
653
|
-
className={buttonVariants({
|
|
655
|
+
className={buttonVariants({
|
|
656
|
+
className: "max-md:h-11",
|
|
657
|
+
variant: "outline",
|
|
658
|
+
size: "sm",
|
|
659
|
+
})}
|
|
654
660
|
to="/installations"
|
|
655
661
|
>
|
|
656
662
|
<ListIcon aria-hidden="true" />
|
|
@@ -238,7 +238,11 @@ export function BundleInsightsSummary({
|
|
|
238
238
|
</CardContent>
|
|
239
239
|
<CardFooter className="px-4 pb-4">
|
|
240
240
|
<Link
|
|
241
|
-
className={buttonVariants({
|
|
241
|
+
className={buttonVariants({
|
|
242
|
+
className: "max-md:h-11",
|
|
243
|
+
variant: "outline",
|
|
244
|
+
size: "sm",
|
|
245
|
+
})}
|
|
242
246
|
to="/insights"
|
|
243
247
|
search={{
|
|
244
248
|
platform: input.platform,
|
|
@@ -136,7 +136,7 @@ export function ReleaseCombobox({
|
|
|
136
136
|
className={
|
|
137
137
|
trigger
|
|
138
138
|
? undefined
|
|
139
|
-
: "h-11 w-full sm:h-9 sm:w-96 [&_input]:h-full [&_input]:text-base sm:[&_input]:text-xs"
|
|
139
|
+
: "h-11 w-full sm:h-9 sm:w-96 [&_input]:h-full [&_input]:text-base max-md:[&_[data-slot=input-group-button]]:size-11 max-md:[&_input]:min-h-11 sm:[&_input]:text-xs"
|
|
140
140
|
}
|
|
141
141
|
disabled={disabled}
|
|
142
142
|
placeholder={placeholder}
|
|
@@ -159,7 +159,7 @@ export function BuiltInBundleCard({
|
|
|
159
159
|
<span className="flex flex-wrap items-center gap-1.5">
|
|
160
160
|
<Link
|
|
161
161
|
aria-label={`Show the builds that embed ${channel}`}
|
|
162
|
-
className="relative rounded-md after:absolute after
|
|
162
|
+
className="relative rounded-md after:absolute after:-inset-x-1 after:-inset-y-[11px] sm:after:hidden"
|
|
163
163
|
search={{ channel }}
|
|
164
164
|
to="/native-builds"
|
|
165
165
|
>
|
|
@@ -89,8 +89,11 @@ import { useIsMobile } from "@/hooks/use-mobile";
|
|
|
89
89
|
import {
|
|
90
90
|
iosDeviceKeys,
|
|
91
91
|
useApproveIosDeviceMutation,
|
|
92
|
+
keptIsThisIphone,
|
|
92
93
|
useIosDeviceProfileLinkQuery,
|
|
93
94
|
useIosDeviceQuery,
|
|
95
|
+
useKeptIosDeviceQuery,
|
|
96
|
+
useRequestThisIphoneMutation,
|
|
94
97
|
useIosDevicesQuery,
|
|
95
98
|
useRemoveIosDeviceMutation,
|
|
96
99
|
useRenameIosDeviceMutation,
|
|
@@ -106,7 +109,12 @@ import {
|
|
|
106
109
|
import type { IosDevicesSearch } from "@/routes/-native-builds-search";
|
|
107
110
|
|
|
108
111
|
import { CopyableText } from "./CopyableText";
|
|
109
|
-
import {
|
|
112
|
+
import {
|
|
113
|
+
AppleRefusal,
|
|
114
|
+
type IosDevice,
|
|
115
|
+
useAdoptKeptIosDevice,
|
|
116
|
+
useIosDevice,
|
|
117
|
+
} from "./IosInstall";
|
|
110
118
|
import { NativeBuildsNav } from "./NativeBuildsNav";
|
|
111
119
|
|
|
112
120
|
const STATUS_LABELS: Record<IosDeviceStatus, string> = {
|
|
@@ -309,18 +317,37 @@ function DeviceActions({
|
|
|
309
317
|
);
|
|
310
318
|
}
|
|
311
319
|
|
|
320
|
+
/**
|
|
321
|
+
* "This iPhone" on the row of the iPhone this page is open on: a quiet tag,
|
|
322
|
+
* as "Sandbox" is on a build, so its actions are found where every row's are.
|
|
323
|
+
*/
|
|
324
|
+
function ThisIphoneTag() {
|
|
325
|
+
return (
|
|
326
|
+
<Badge className="shrink-0 px-1.5" variant="muted">
|
|
327
|
+
This iPhone
|
|
328
|
+
</Badge>
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
|
|
312
332
|
function DeviceRow({
|
|
313
333
|
device,
|
|
314
334
|
viewer,
|
|
315
335
|
onOpen,
|
|
336
|
+
isThisIphone,
|
|
316
337
|
}: {
|
|
317
338
|
readonly device: IosDeviceRow;
|
|
318
339
|
readonly viewer: Viewer;
|
|
319
340
|
readonly onOpen: (target: DialogTarget) => void;
|
|
341
|
+
readonly isThisIphone: boolean;
|
|
320
342
|
}) {
|
|
321
343
|
return (
|
|
322
344
|
<TableRow>
|
|
323
|
-
<TableCell className="font-medium">
|
|
345
|
+
<TableCell className="font-medium">
|
|
346
|
+
<span className="flex items-center gap-1.5">
|
|
347
|
+
{device.name}
|
|
348
|
+
{isThisIphone ? <ThisIphoneTag /> : null}
|
|
349
|
+
</span>
|
|
350
|
+
</TableCell>
|
|
324
351
|
<TableCell>
|
|
325
352
|
<span className="font-mono text-xs" title={device.udid} translate="no">
|
|
326
353
|
{maskIosUdid(device.udid)}
|
|
@@ -351,16 +378,21 @@ function DeviceCard({
|
|
|
351
378
|
device,
|
|
352
379
|
viewer,
|
|
353
380
|
onOpen,
|
|
381
|
+
isThisIphone,
|
|
354
382
|
}: {
|
|
355
383
|
readonly device: IosDeviceRow;
|
|
356
384
|
readonly viewer: Viewer;
|
|
357
385
|
readonly onOpen: (target: DialogTarget) => void;
|
|
386
|
+
readonly isThisIphone: boolean;
|
|
358
387
|
}) {
|
|
359
388
|
return (
|
|
360
389
|
<DataCard className="cursor-default gap-3">
|
|
361
390
|
<div className="flex min-w-0 items-start justify-between gap-3">
|
|
362
391
|
<div className="flex min-w-0 flex-col gap-0.5">
|
|
363
|
-
<p className="
|
|
392
|
+
<p className="flex min-w-0 items-center gap-1.5 text-sm font-medium">
|
|
393
|
+
<span className="truncate">{device.name}</span>
|
|
394
|
+
{isThisIphone ? <ThisIphoneTag /> : null}
|
|
395
|
+
</p>
|
|
364
396
|
<p className="font-mono text-xs text-muted-foreground" translate="no">
|
|
365
397
|
{maskIosUdid(device.udid)}
|
|
366
398
|
</p>
|
|
@@ -512,15 +544,6 @@ function RemoveDialog({
|
|
|
512
544
|
: "It leaves the list. New ad hoc builds keep it until it's disabled at Apple."}
|
|
513
545
|
</AlertDialogDescription>
|
|
514
546
|
</AlertDialogHeader>
|
|
515
|
-
{decline || !viewer.canApprove ? null : (
|
|
516
|
-
<div className="flex min-w-0 flex-col text-xs text-muted-foreground [&_code]:break-words [&_code]:whitespace-normal">
|
|
517
|
-
<CopyableText
|
|
518
|
-
label="the command that disables it"
|
|
519
|
-
value={`npx hot-updater native-build devices remove --udid ${device.udid}`}
|
|
520
|
-
wrap
|
|
521
|
-
/>
|
|
522
|
-
</div>
|
|
523
|
-
)}
|
|
524
547
|
{remove.isError ? (
|
|
525
548
|
<p className="text-xs text-destructive" role="alert">
|
|
526
549
|
Couldn't {withdraw ? "withdraw" : decline ? "decline" : "remove"}{" "}
|
|
@@ -555,18 +578,17 @@ function RemoveDialog({
|
|
|
555
578
|
|
|
556
579
|
/**
|
|
557
580
|
* Where this iPhone stands, once its profile has answered: its row's name,
|
|
558
|
-
* status, and next
|
|
559
|
-
*
|
|
581
|
+
* status, and what happens next, in place of the form that registered it.
|
|
582
|
+
* It has no actions: they are on its row in the list, tagged "This iPhone",
|
|
583
|
+
* as every row's are. Apple's refusal reads as on a build's page.
|
|
560
584
|
*/
|
|
561
585
|
function ThisIphone({
|
|
562
586
|
device,
|
|
563
587
|
viewer,
|
|
564
|
-
onOpen,
|
|
565
588
|
}: {
|
|
566
589
|
readonly device: IosDeviceRow;
|
|
567
|
-
/** Unknown until the list loads
|
|
590
|
+
/** Unknown until the list loads. */
|
|
568
591
|
readonly viewer: Viewer | undefined;
|
|
569
|
-
readonly onOpen: (target: DialogTarget) => void;
|
|
570
592
|
}) {
|
|
571
593
|
const canApprove = viewer?.canApprove === true;
|
|
572
594
|
if (device.apple_error !== null) {
|
|
@@ -588,21 +610,12 @@ function ThisIphone({
|
|
|
588
610
|
<p className="text-xs text-muted-foreground" role="status">
|
|
589
611
|
{device.status === "pending"
|
|
590
612
|
? canApprove
|
|
591
|
-
? "Approve it, and it joins the next ad hoc build."
|
|
613
|
+
? "Approve it below, and it joins the next ad hoc build."
|
|
592
614
|
: "A maintainer approves it next."
|
|
593
615
|
: device.status === "approved"
|
|
594
616
|
? "It joins the next ad hoc build."
|
|
595
617
|
: "New ad hoc builds install on it."}
|
|
596
618
|
</p>
|
|
597
|
-
{canApprove && device.status === "pending" ? (
|
|
598
|
-
<Button
|
|
599
|
-
className="h-11 w-full sm:h-8 sm:w-fit"
|
|
600
|
-
onClick={() => onOpen({ kind: "approve", device })}
|
|
601
|
-
>
|
|
602
|
-
<Check data-icon="inline-start" />
|
|
603
|
-
Approve
|
|
604
|
-
</Button>
|
|
605
|
-
) : null}
|
|
606
619
|
</div>
|
|
607
620
|
);
|
|
608
621
|
}
|
|
@@ -632,12 +645,12 @@ function RegistrationNotice({
|
|
|
632
645
|
*/
|
|
633
646
|
function RegisterCard({
|
|
634
647
|
view,
|
|
635
|
-
|
|
648
|
+
phone,
|
|
636
649
|
}: {
|
|
637
650
|
readonly view: IosDevicesView | undefined;
|
|
638
|
-
|
|
651
|
+
/** This iPhone as `useIosDevice` reads it, null until the page mounts. */
|
|
652
|
+
readonly phone: IosDevice | null;
|
|
639
653
|
}) {
|
|
640
|
-
const phone = useIosDevice();
|
|
641
654
|
const [name, setName] = useState<string | null>(null);
|
|
642
655
|
const typed = name ?? view?.defaultName ?? "";
|
|
643
656
|
// The link is signed for the name as typed; a pause before signing again.
|
|
@@ -669,6 +682,22 @@ function RegisterCard({
|
|
|
669
682
|
void refetch();
|
|
670
683
|
}
|
|
671
684
|
}, [udid, answers, refetch]);
|
|
685
|
+
// This Safari's proof of the iPhone, an HttpOnly cookie: the register
|
|
686
|
+
// answer's fresh receipt is traded for it, and a phone with no row requests
|
|
687
|
+
// itself again with it, without the profile, for the same person only.
|
|
688
|
+
const path = phone === null ? "" : consolePath();
|
|
689
|
+
// Also the identity of a phone whose storage Safari wiped: the cookie
|
|
690
|
+
// names it, once, and the page adopts it.
|
|
691
|
+
const kept = useKeptIosDeviceQuery(
|
|
692
|
+
path,
|
|
693
|
+
phone?.receipt ?? null,
|
|
694
|
+
onPhone &&
|
|
695
|
+
view?.registration === "ready" &&
|
|
696
|
+
(udid === null || phone.receipt !== null || mine.data === null),
|
|
697
|
+
);
|
|
698
|
+
useAdoptKeptIosDevice(phone, kept.data?.udid);
|
|
699
|
+
const again = useRequestThisIphoneMutation(path);
|
|
700
|
+
const proved = onPhone && keptIsThisIphone(kept.data?.udid, phone.udid);
|
|
672
701
|
|
|
673
702
|
const body = (() => {
|
|
674
703
|
// The server renders this without a browser: where it is and what it is
|
|
@@ -680,9 +709,7 @@ function RegisterCard({
|
|
|
680
709
|
return <Skeleton aria-label="Loading" className="h-36 w-full" />;
|
|
681
710
|
}
|
|
682
711
|
if (onPhone && mine.data) {
|
|
683
|
-
return
|
|
684
|
-
<ThisIphone device={mine.data} onOpen={onOpen} viewer={view?.viewer} />
|
|
685
|
-
);
|
|
712
|
+
return <ThisIphone device={mine.data} viewer={view?.viewer} />;
|
|
686
713
|
}
|
|
687
714
|
if (
|
|
688
715
|
view !== undefined &&
|
|
@@ -723,6 +750,59 @@ function RegisterCard({
|
|
|
723
750
|
</p>
|
|
724
751
|
);
|
|
725
752
|
}
|
|
753
|
+
if (mine.data === null && kept.isFetching && !proved) {
|
|
754
|
+
return <Skeleton aria-label="Loading" className="h-36 w-full" />;
|
|
755
|
+
}
|
|
756
|
+
if (proved) {
|
|
757
|
+
const trimmed = typed.trim();
|
|
758
|
+
return (
|
|
759
|
+
<form
|
|
760
|
+
className="flex min-w-0 flex-col gap-3"
|
|
761
|
+
onSubmit={(event) => {
|
|
762
|
+
event.preventDefault();
|
|
763
|
+
if (trimmed === "") return;
|
|
764
|
+
again.mutate({ name: trimmed, receipt: phone.receipt });
|
|
765
|
+
}}
|
|
766
|
+
>
|
|
767
|
+
<Field data-invalid={again.isError || undefined}>
|
|
768
|
+
<FieldLabel htmlFor="ios-device-register-name">
|
|
769
|
+
This iPhone's name
|
|
770
|
+
</FieldLabel>
|
|
771
|
+
<Input
|
|
772
|
+
autoComplete="off"
|
|
773
|
+
className="h-11"
|
|
774
|
+
id="ios-device-register-name"
|
|
775
|
+
maxLength={100}
|
|
776
|
+
onChange={(event) => setName(event.target.value)}
|
|
777
|
+
value={typed}
|
|
778
|
+
/>
|
|
779
|
+
<FieldDescription>
|
|
780
|
+
This Safari checked it before, so no profile is needed.
|
|
781
|
+
</FieldDescription>
|
|
782
|
+
<FieldError>
|
|
783
|
+
{again.isError
|
|
784
|
+
? "The request didn't go through. Try again."
|
|
785
|
+
: null}
|
|
786
|
+
</FieldError>
|
|
787
|
+
</Field>
|
|
788
|
+
<Button
|
|
789
|
+
className="h-11 w-full"
|
|
790
|
+
disabled={trimmed === "" || again.isPending}
|
|
791
|
+
type="submit"
|
|
792
|
+
>
|
|
793
|
+
{again.isPending ? (
|
|
794
|
+
<Loader2
|
|
795
|
+
className="animate-spin motion-reduce:animate-none"
|
|
796
|
+
data-icon="inline-start"
|
|
797
|
+
/>
|
|
798
|
+
) : (
|
|
799
|
+
<Smartphone data-icon="inline-start" />
|
|
800
|
+
)}
|
|
801
|
+
Request this iPhone
|
|
802
|
+
</Button>
|
|
803
|
+
</form>
|
|
804
|
+
);
|
|
805
|
+
}
|
|
726
806
|
if (link.data?.status === "local-console") {
|
|
727
807
|
return <RegistrationNotice status="local-console" />;
|
|
728
808
|
}
|
|
@@ -810,6 +890,10 @@ export function IosDevicesPage({
|
|
|
810
890
|
const refresh = () =>
|
|
811
891
|
void queryClient.invalidateQueries({ queryKey: iosDeviceKeys.all });
|
|
812
892
|
const [dialog, setDialog] = useState<DialogTarget>(null);
|
|
893
|
+
const phone = useIosDevice();
|
|
894
|
+
// The row of the iPhone this page is open on, tagged where its actions are.
|
|
895
|
+
const thisUdid =
|
|
896
|
+
phone?.ios === true ? (phone.udid?.toLowerCase() ?? null) : null;
|
|
813
897
|
const close = () => setDialog(null);
|
|
814
898
|
|
|
815
899
|
const empty = (
|
|
@@ -854,7 +938,7 @@ export function IosDevicesPage({
|
|
|
854
938
|
|
|
855
939
|
<div className="flex min-h-0 min-w-0 flex-1 flex-col gap-4 overflow-y-auto bg-muted/5 p-3 sm:p-6">
|
|
856
940
|
<NativeBuildsNav current="devices" />
|
|
857
|
-
<RegisterCard
|
|
941
|
+
<RegisterCard phone={phone} view={view} />
|
|
858
942
|
{view !== undefined && !view.viewer.approversConfigured ? (
|
|
859
943
|
<div className="flex min-w-0 flex-col gap-1.5 text-xs text-muted-foreground">
|
|
860
944
|
<p>Nobody approves in this Console. Approve from a terminal:</p>
|
|
@@ -948,6 +1032,7 @@ export function IosDevicesPage({
|
|
|
948
1032
|
>
|
|
949
1033
|
<DeviceCard
|
|
950
1034
|
device={device}
|
|
1035
|
+
isThisIphone={device.udid === thisUdid}
|
|
951
1036
|
onOpen={setDialog}
|
|
952
1037
|
viewer={view!.viewer}
|
|
953
1038
|
/>
|
|
@@ -987,6 +1072,7 @@ export function IosDevicesPage({
|
|
|
987
1072
|
rows?.map((device) => (
|
|
988
1073
|
<DeviceRow
|
|
989
1074
|
device={device}
|
|
1075
|
+
isThisIphone={device.udid === thisUdid}
|
|
990
1076
|
key={device.id}
|
|
991
1077
|
onOpen={setDialog}
|
|
992
1078
|
viewer={view!.viewer}
|