@hot-updater/console 1.2.0-rc.31 → 1.2.0-rc.32
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-Ci-Dvjc7.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-Be-0iTww.js → ConsoleFeatureUnavailable-C0iDIboF.js} +1 -1
- package/.output/public/assets/{EventDetails-bDOYte1z.js → EventDetails-DglqzK6l.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-D2f0HmyU.js → HashValueDisplay-DKziWjEg.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-Cj2ROSQO.js → InsightsPageHeader-DLH1MntM.js} +1 -1
- package/.output/public/assets/IosInstall-2R2o1IXd.js +1 -0
- package/.output/public/assets/NativeBuildsNav-BgeUSMqw.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-DL9HeC8e.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-DZdzmvWS.js +10 -0
- package/.output/public/assets/input-group-DNfVeeYZ.js +1 -0
- package/.output/public/assets/{insights-_j_ieOyh.js → insights-6d-iISFa.js} +2 -2
- package/.output/public/assets/insights-DotP9eJn.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-DATeWpQS.js} +1 -1
- package/.output/public/assets/insights_.distribution-DYgsR7-7.js +2 -0
- package/.output/public/assets/insights_.distribution-REbBAqgL.js +1 -0
- package/.output/public/assets/installations-Di02gX_V.js +1 -0
- package/.output/public/assets/{installations-CYTzndfP.js → installations-Ds-MhfsQ.js} +1 -1
- package/.output/public/assets/{installations-BsD6LgNc.js → installations-Lm8TxrcB.js} +2 -2
- 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-BOSmoLed.js +1 -0
- package/.output/public/assets/native-builds-Bs_JroPG.js +2 -0
- package/.output/public/assets/native-builds-Chv-kXaS.js +1 -0
- package/.output/public/assets/native-builds_._buildId-Bj24bG99.js +2 -0
- package/.output/public/assets/native-builds_._buildId-Somk3u9R.js +1 -0
- package/.output/public/assets/native-builds_.devices-afOLyzux.js +1 -0
- package/.output/public/assets/native-builds_.devices-o6LsPF9Y.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-Buy_12p7.js +1 -0
- package/.output/public/assets/remote-config-Dmuqm9xx.js +1 -0
- package/.output/public/assets/remote-config-g05054op.js +6 -0
- package/.output/public/assets/{rotate-cw-Ba-slJea.js → rotate-cw-Bn3fIWmY.js} +1 -1
- package/.output/public/assets/routes-5mt1iab-.js +2 -0
- package/.output/public/assets/routes-BxJfMpil.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-CN7c7MGr.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-B95QcXeT.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-ET1Ypyyk.mjs} +58 -62
- 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-CpaKbEYb.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-DdrhdvMM.mjs → ChannelBadge-dVXs-bYV.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-DPX24kXX.mjs → ConsoleFeatureUnavailable-DWuWwY4L.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-6jBbGcbN.mjs → EventDetails-CcuGyU26.mjs} +6 -6
- package/.output/server/_ssr/{HashValueDisplay-B4--TU87.mjs → HashValueDisplay-ClkGq5_0.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-CuJ8N3TQ.mjs → InsightsPageHeader-Bw6RVpdS.mjs} +6 -6
- package/.output/server/_ssr/{IosInstall-CHC-d6NT.mjs → IosInstall-DEceeAVT.mjs} +120 -71
- package/.output/server/_ssr/{NativeBuildsNav-C69l7uNo.mjs → NativeBuildsNav-ChqRZH4E.mjs} +5 -5
- package/.output/server/_ssr/{NotFoundPage-ZsHGzoLS.mjs → NotFoundPage-aZrAWo5n.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-BXcpYcrO.mjs → PlatformIcon-X18AN8Yp.mjs} +1 -1
- package/.output/server/_ssr/QrCode-pEaOdaRS.mjs +50 -0
- package/.output/server/_ssr/{RelativeTime-7vOoIT4P.mjs → RelativeTime-CFIJbj_r.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge--MojdSYZ.mjs → RolloutPercentageBadge-BEqOJXly.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-CIaGuzr1.mjs → RowReason-DXbU_Nml.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-BqBSRE2-.mjs → SandboxBadge-CP76AVxN.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-CLn4k3f5.mjs → TargetDisplay-csC-slf3.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-DihcZr0y.mjs → alert-dialog-Dn5l3Bob.mjs} +3 -3
- package/.output/server/_ssr/{api-nFsUxTG1.mjs → api-W0WerUfm.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-CN5wpM3R.mjs → api-keys-Btu37Irf.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-DExjZkdx.mjs → api-keys-D7kmFdhY.mjs} +10 -9
- package/.output/server/_ssr/{api-keys-rpc-CClIn3D8.mjs → api-keys-rpc-9o4CyzUZ.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-DLRzLoop.mjs → api-rpc-B1HnUZMu.mjs} +13 -13
- package/.output/server/_ssr/{auth-rpc-U46OWsbS.mjs → auth-rpc-BBy2L4Ah.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-iIXxFs8t.mjs → auth.server-ajvR-m99.mjs} +2 -2
- package/.output/server/_ssr/{badge-jnl4Ajh1.mjs → badge-DlEpe8yC.mjs} +1 -1
- package/.output/server/_ssr/{card-BEfQk5Ei.mjs → card-AK7Ms1Oa.mjs} +1 -1
- package/.output/server/_ssr/{config.server-Ig1eUxaf.mjs → config.server-DswyWSgG.mjs} +4 -4
- package/.output/server/_ssr/{console-access-BOTh4-fO.mjs → console-access-DM56j3dM.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-g5s9V5sz.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-B_V68MjF.mjs → console-features-rpc-Cnmhvmsk.mjs} +3 -3
- package/.output/server/_ssr/{deviceProfileToken-BbLKmrUb.mjs → deviceProfileToken-xzDLfE0T.mjs} +21 -5
- package/.output/server/_ssr/{dialog-DuyJ0HsU.mjs → dialog-0oBrR9Cj.mjs} +4 -4
- package/.output/server/_ssr/{empty-BDBZwsuM.mjs → empty-tasgkoU9.mjs} +2 -2
- package/.output/server/_ssr/{field-CX6srGIn.mjs → field-phtuBLMh.mjs} +2 -2
- package/.output/server/_ssr/{input-group-CV_H0YX7.mjs → input-group-BTEoUANX.mjs} +2 -2
- package/.output/server/_ssr/{insights-CBoiq6pK.mjs → insights-BBzyKO95.mjs} +2 -2
- package/.output/server/_ssr/{insights-Td2VtKJZ.mjs → insights-CPDtpuXg.mjs} +5 -5
- package/.output/server/_ssr/{insights-DQmsr9I4.mjs → insights-D4le8l6s.mjs} +25 -20
- package/.output/server/_ssr/{insights-api-G8ZOyKKA.mjs → insights-api-D6J2HVtY.mjs} +3 -3
- package/.output/server/_ssr/{insights-failures-rpc-Ba4YSjbA.mjs → insights-failures-rpc-ChwlB9sg.mjs} +7 -7
- package/.output/server/_ssr/{insights-recovery-rpc-LKbOLo-_.mjs → insights-recovery-rpc-B6_GT-_U.mjs} +4 -4
- package/.output/server/_ssr/{insights-rpc-TkflAi0Z.mjs → insights-rpc-DG0GxsIL.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-aCzmEqnq.mjs → insights-search-LKeSNr4M.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-rpc-Cbk3jKjA.mjs → insights-usage-rpc-I0Eh5Z89.mjs} +4 -4
- package/.output/server/_ssr/{insights-usage-rpc-NoT-iWyp.mjs → insights-usage-rpc-qnQWkNn2.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-Y3uFkJMX.mjs → insights_.distribution-BF99IaZu.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-Vt7W1Xw7.mjs → insights_.distribution-D2dZwvqQ.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-Bo1WRLKV.mjs → insights_.distribution-Dgv-_T7g.mjs} +14 -14
- package/.output/server/_ssr/{installations-BpcY3NSj.mjs → installations-BHjU8FUI.mjs} +2 -2
- package/.output/server/_ssr/{installations-DClqNAQn.mjs → installations-C7TindNY.mjs} +4 -4
- package/.output/server/_ssr/{installations-BEUOlOQs.mjs → installations-DVTUpBGI.mjs} +11 -11
- package/.output/server/_ssr/{ios-devices-rpc-DmjO2Cbe.mjs → ios-devices-rpc-KtosHTCC.mjs} +9 -21
- package/.output/server/_ssr/iosDeviceCookie-B-8c7lMJ.mjs +155 -0
- package/.output/server/_ssr/{iosDeviceProfile-CseUPyC3.mjs → iosDeviceProfile-CIEuY_kV.mjs} +13 -14
- package/.output/server/_ssr/{iosDevices-BcM0YdL8.mjs → iosDevices-CkLgS8_U.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-3WEAnb93.mjs} +16 -16
- package/.output/server/_ssr/{native-builds-B31AnQ0z.mjs → native-builds-B6rWkcHL.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-BaykQRJl.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-xNxhulXv.mjs → native-builds_._buildId-RFJXyul0.mjs} +18 -25
- package/.output/server/_ssr/{native-builds_.devices-BBWNnbAj.mjs → native-builds_.devices-BzkeAX0K.mjs} +121 -67
- package/.output/server/_ssr/{native-builds_.devices-DpYGqdjz.mjs → native-builds_.devices-D9EGVV1N.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildDownloadLink-CMo_0eeE.mjs → nativeBuildDownloadLink-A1aWZBDw.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-BlT6X49f.mjs → nativeBuildInstall-XzMDX9iY.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-DoDlwfWB.mjs} +7 -7
- package/.output/server/_ssr/{releaseAdoption-COlUf2W5.mjs → releaseAdoption-DfEYq7I4.mjs} +1 -1
- package/.output/server/_ssr/{remote-config-DdcrliiZ.mjs → remote-config-6lhdA4DB.mjs} +18 -18
- package/.output/server/_ssr/{remote-config-D1X_UwRB.mjs → remote-config-BMg2UurZ.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-oR3e-Ixt.mjs → remote-config-rpc-Ddg8dyxw.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-7NN5w0OC.mjs → remote-config-u_T4AXyi.mjs} +2 -2
- package/.output/server/_ssr/{router-DxsgaBqH.mjs → router-CovCAswJ.mjs} +100 -60
- package/.output/server/_ssr/{routes-BXne94ak.mjs → routes-CTUvEVa6.mjs} +36 -32
- package/.output/server/_ssr/{routes-DdZw0VC5.mjs → routes-DtkONaBi.mjs} +10 -9
- 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-DvmruDB6.mjs} +3 -3
- package/.output/server/_ssr/{select-DcWzmCb3.mjs → select-DJLTQgmc.mjs} +1 -1
- package/.output/server/_ssr/{server-DA_rB8Ch.mjs → server-BfWxoIjf.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-BsFYs26D.mjs → sidebar-Bsfqid7Q.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-DckZkZBS.mjs} +3 -3
- package/.output/server/_ssr/{table-SLiL-w8T.mjs → table-DG8aRQBO.mjs} +1 -1
- package/.output/server/_ssr/{tabs-BCG8AAvJ.mjs → tabs-Dblh3lL2.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-Cl1Fxj4J.mjs → updateFailures-BwDwIoNu.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-CfDH9vVq.mjs +225 -0
- package/.output/server/index.mjs +436 -436
- package/package.json +7 -7
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
- 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 +1 -0
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/ReleaseActivity.tsx +5 -1
- package/src/components/features/insights/UpdateFailures.tsx +1 -0
- package/src/components/features/native-builds/IosDevicesPage.tsx +113 -34
- package/src/components/features/native-builds/IosInstall.tsx +50 -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/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/textarea.tsx +1 -1
- package/src/lib/ios-devices-api.ts +133 -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.32",
|
|
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.32",
|
|
63
|
+
"@hot-updater/plugin-core": "1.2.0-rc.32",
|
|
64
|
+
"@hot-updater/server": "1.2.0-rc.32",
|
|
65
|
+
"@hot-updater/protocol": "1.2.0-rc.32"
|
|
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.32",
|
|
90
|
+
"@hot-updater/mock": "1.2.0-rc.32"
|
|
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>
|
|
@@ -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>
|
|
@@ -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,
|
|
@@ -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,7 @@ import {
|
|
|
106
109
|
import type { IosDevicesSearch } from "@/routes/-native-builds-search";
|
|
107
110
|
|
|
108
111
|
import { CopyableText } from "./CopyableText";
|
|
109
|
-
import { AppleRefusal, useIosDevice } from "./IosInstall";
|
|
112
|
+
import { AppleRefusal, type IosDevice, useIosDevice } from "./IosInstall";
|
|
110
113
|
import { NativeBuildsNav } from "./NativeBuildsNav";
|
|
111
114
|
|
|
112
115
|
const STATUS_LABELS: Record<IosDeviceStatus, string> = {
|
|
@@ -309,18 +312,37 @@ function DeviceActions({
|
|
|
309
312
|
);
|
|
310
313
|
}
|
|
311
314
|
|
|
315
|
+
/**
|
|
316
|
+
* "This iPhone" on the row of the iPhone this page is open on: a quiet tag,
|
|
317
|
+
* as "Sandbox" is on a build, so its actions are found where every row's are.
|
|
318
|
+
*/
|
|
319
|
+
function ThisIphoneTag() {
|
|
320
|
+
return (
|
|
321
|
+
<Badge className="shrink-0 px-1.5" variant="muted">
|
|
322
|
+
This iPhone
|
|
323
|
+
</Badge>
|
|
324
|
+
);
|
|
325
|
+
}
|
|
326
|
+
|
|
312
327
|
function DeviceRow({
|
|
313
328
|
device,
|
|
314
329
|
viewer,
|
|
315
330
|
onOpen,
|
|
331
|
+
isThisIphone,
|
|
316
332
|
}: {
|
|
317
333
|
readonly device: IosDeviceRow;
|
|
318
334
|
readonly viewer: Viewer;
|
|
319
335
|
readonly onOpen: (target: DialogTarget) => void;
|
|
336
|
+
readonly isThisIphone: boolean;
|
|
320
337
|
}) {
|
|
321
338
|
return (
|
|
322
339
|
<TableRow>
|
|
323
|
-
<TableCell className="font-medium">
|
|
340
|
+
<TableCell className="font-medium">
|
|
341
|
+
<span className="flex items-center gap-1.5">
|
|
342
|
+
{device.name}
|
|
343
|
+
{isThisIphone ? <ThisIphoneTag /> : null}
|
|
344
|
+
</span>
|
|
345
|
+
</TableCell>
|
|
324
346
|
<TableCell>
|
|
325
347
|
<span className="font-mono text-xs" title={device.udid} translate="no">
|
|
326
348
|
{maskIosUdid(device.udid)}
|
|
@@ -351,16 +373,21 @@ function DeviceCard({
|
|
|
351
373
|
device,
|
|
352
374
|
viewer,
|
|
353
375
|
onOpen,
|
|
376
|
+
isThisIphone,
|
|
354
377
|
}: {
|
|
355
378
|
readonly device: IosDeviceRow;
|
|
356
379
|
readonly viewer: Viewer;
|
|
357
380
|
readonly onOpen: (target: DialogTarget) => void;
|
|
381
|
+
readonly isThisIphone: boolean;
|
|
358
382
|
}) {
|
|
359
383
|
return (
|
|
360
384
|
<DataCard className="cursor-default gap-3">
|
|
361
385
|
<div className="flex min-w-0 items-start justify-between gap-3">
|
|
362
386
|
<div className="flex min-w-0 flex-col gap-0.5">
|
|
363
|
-
<p className="
|
|
387
|
+
<p className="flex min-w-0 items-center gap-1.5 text-sm font-medium">
|
|
388
|
+
<span className="truncate">{device.name}</span>
|
|
389
|
+
{isThisIphone ? <ThisIphoneTag /> : null}
|
|
390
|
+
</p>
|
|
364
391
|
<p className="font-mono text-xs text-muted-foreground" translate="no">
|
|
365
392
|
{maskIosUdid(device.udid)}
|
|
366
393
|
</p>
|
|
@@ -512,15 +539,6 @@ function RemoveDialog({
|
|
|
512
539
|
: "It leaves the list. New ad hoc builds keep it until it's disabled at Apple."}
|
|
513
540
|
</AlertDialogDescription>
|
|
514
541
|
</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
542
|
{remove.isError ? (
|
|
525
543
|
<p className="text-xs text-destructive" role="alert">
|
|
526
544
|
Couldn't {withdraw ? "withdraw" : decline ? "decline" : "remove"}{" "}
|
|
@@ -555,18 +573,17 @@ function RemoveDialog({
|
|
|
555
573
|
|
|
556
574
|
/**
|
|
557
575
|
* Where this iPhone stands, once its profile has answered: its row's name,
|
|
558
|
-
* status, and next
|
|
559
|
-
*
|
|
576
|
+
* status, and what happens next, in place of the form that registered it.
|
|
577
|
+
* It has no actions: they are on its row in the list, tagged "This iPhone",
|
|
578
|
+
* as every row's are. Apple's refusal reads as on a build's page.
|
|
560
579
|
*/
|
|
561
580
|
function ThisIphone({
|
|
562
581
|
device,
|
|
563
582
|
viewer,
|
|
564
|
-
onOpen,
|
|
565
583
|
}: {
|
|
566
584
|
readonly device: IosDeviceRow;
|
|
567
|
-
/** Unknown until the list loads
|
|
585
|
+
/** Unknown until the list loads. */
|
|
568
586
|
readonly viewer: Viewer | undefined;
|
|
569
|
-
readonly onOpen: (target: DialogTarget) => void;
|
|
570
587
|
}) {
|
|
571
588
|
const canApprove = viewer?.canApprove === true;
|
|
572
589
|
if (device.apple_error !== null) {
|
|
@@ -588,21 +605,12 @@ function ThisIphone({
|
|
|
588
605
|
<p className="text-xs text-muted-foreground" role="status">
|
|
589
606
|
{device.status === "pending"
|
|
590
607
|
? canApprove
|
|
591
|
-
? "Approve it, and it joins the next ad hoc build."
|
|
608
|
+
? "Approve it below, and it joins the next ad hoc build."
|
|
592
609
|
: "A maintainer approves it next."
|
|
593
610
|
: device.status === "approved"
|
|
594
611
|
? "It joins the next ad hoc build."
|
|
595
612
|
: "New ad hoc builds install on it."}
|
|
596
613
|
</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
614
|
</div>
|
|
607
615
|
);
|
|
608
616
|
}
|
|
@@ -632,12 +640,12 @@ function RegistrationNotice({
|
|
|
632
640
|
*/
|
|
633
641
|
function RegisterCard({
|
|
634
642
|
view,
|
|
635
|
-
|
|
643
|
+
phone,
|
|
636
644
|
}: {
|
|
637
645
|
readonly view: IosDevicesView | undefined;
|
|
638
|
-
|
|
646
|
+
/** This iPhone as `useIosDevice` reads it, null until the page mounts. */
|
|
647
|
+
readonly phone: IosDevice | null;
|
|
639
648
|
}) {
|
|
640
|
-
const phone = useIosDevice();
|
|
641
649
|
const [name, setName] = useState<string | null>(null);
|
|
642
650
|
const typed = name ?? view?.defaultName ?? "";
|
|
643
651
|
// The link is signed for the name as typed; a pause before signing again.
|
|
@@ -669,6 +677,20 @@ function RegisterCard({
|
|
|
669
677
|
void refetch();
|
|
670
678
|
}
|
|
671
679
|
}, [udid, answers, refetch]);
|
|
680
|
+
// This Safari's proof of the iPhone, an HttpOnly cookie: the register
|
|
681
|
+
// answer's fresh receipt is traded for it, and a phone with no row requests
|
|
682
|
+
// itself again with it, without the profile, for the same person only.
|
|
683
|
+
const path = phone === null ? "" : consolePath();
|
|
684
|
+
const kept = useKeptIosDeviceQuery(
|
|
685
|
+
path,
|
|
686
|
+
phone ?? { udid: null, receipt: null },
|
|
687
|
+
onPhone &&
|
|
688
|
+
udid !== null &&
|
|
689
|
+
view?.registration === "ready" &&
|
|
690
|
+
(phone.receipt !== null || mine.data === null),
|
|
691
|
+
);
|
|
692
|
+
const again = useRequestThisIphoneMutation(path);
|
|
693
|
+
const proved = onPhone && keptIsThisIphone(kept.data?.udid, phone.udid);
|
|
672
694
|
|
|
673
695
|
const body = (() => {
|
|
674
696
|
// The server renders this without a browser: where it is and what it is
|
|
@@ -680,9 +702,7 @@ function RegisterCard({
|
|
|
680
702
|
return <Skeleton aria-label="Loading" className="h-36 w-full" />;
|
|
681
703
|
}
|
|
682
704
|
if (onPhone && mine.data) {
|
|
683
|
-
return
|
|
684
|
-
<ThisIphone device={mine.data} onOpen={onOpen} viewer={view?.viewer} />
|
|
685
|
-
);
|
|
705
|
+
return <ThisIphone device={mine.data} viewer={view?.viewer} />;
|
|
686
706
|
}
|
|
687
707
|
if (
|
|
688
708
|
view !== undefined &&
|
|
@@ -723,6 +743,59 @@ function RegisterCard({
|
|
|
723
743
|
</p>
|
|
724
744
|
);
|
|
725
745
|
}
|
|
746
|
+
if (mine.data === null && kept.isFetching && !proved) {
|
|
747
|
+
return <Skeleton aria-label="Loading" className="h-36 w-full" />;
|
|
748
|
+
}
|
|
749
|
+
if (proved) {
|
|
750
|
+
const trimmed = typed.trim();
|
|
751
|
+
return (
|
|
752
|
+
<form
|
|
753
|
+
className="flex min-w-0 flex-col gap-3"
|
|
754
|
+
onSubmit={(event) => {
|
|
755
|
+
event.preventDefault();
|
|
756
|
+
if (trimmed === "") return;
|
|
757
|
+
again.mutate({ name: trimmed, receipt: phone.receipt });
|
|
758
|
+
}}
|
|
759
|
+
>
|
|
760
|
+
<Field data-invalid={again.isError || undefined}>
|
|
761
|
+
<FieldLabel htmlFor="ios-device-register-name">
|
|
762
|
+
This iPhone's name
|
|
763
|
+
</FieldLabel>
|
|
764
|
+
<Input
|
|
765
|
+
autoComplete="off"
|
|
766
|
+
className="h-11"
|
|
767
|
+
id="ios-device-register-name"
|
|
768
|
+
maxLength={100}
|
|
769
|
+
onChange={(event) => setName(event.target.value)}
|
|
770
|
+
value={typed}
|
|
771
|
+
/>
|
|
772
|
+
<FieldDescription>
|
|
773
|
+
This Safari checked it before, so no profile is needed.
|
|
774
|
+
</FieldDescription>
|
|
775
|
+
<FieldError>
|
|
776
|
+
{again.isError
|
|
777
|
+
? "The request didn't go through. Try again."
|
|
778
|
+
: null}
|
|
779
|
+
</FieldError>
|
|
780
|
+
</Field>
|
|
781
|
+
<Button
|
|
782
|
+
className="h-11 w-full"
|
|
783
|
+
disabled={trimmed === "" || again.isPending}
|
|
784
|
+
type="submit"
|
|
785
|
+
>
|
|
786
|
+
{again.isPending ? (
|
|
787
|
+
<Loader2
|
|
788
|
+
className="animate-spin motion-reduce:animate-none"
|
|
789
|
+
data-icon="inline-start"
|
|
790
|
+
/>
|
|
791
|
+
) : (
|
|
792
|
+
<Smartphone data-icon="inline-start" />
|
|
793
|
+
)}
|
|
794
|
+
Request this iPhone
|
|
795
|
+
</Button>
|
|
796
|
+
</form>
|
|
797
|
+
);
|
|
798
|
+
}
|
|
726
799
|
if (link.data?.status === "local-console") {
|
|
727
800
|
return <RegistrationNotice status="local-console" />;
|
|
728
801
|
}
|
|
@@ -810,6 +883,10 @@ export function IosDevicesPage({
|
|
|
810
883
|
const refresh = () =>
|
|
811
884
|
void queryClient.invalidateQueries({ queryKey: iosDeviceKeys.all });
|
|
812
885
|
const [dialog, setDialog] = useState<DialogTarget>(null);
|
|
886
|
+
const phone = useIosDevice();
|
|
887
|
+
// The row of the iPhone this page is open on, tagged where its actions are.
|
|
888
|
+
const thisUdid =
|
|
889
|
+
phone?.ios === true ? (phone.udid?.toLowerCase() ?? null) : null;
|
|
813
890
|
const close = () => setDialog(null);
|
|
814
891
|
|
|
815
892
|
const empty = (
|
|
@@ -854,7 +931,7 @@ export function IosDevicesPage({
|
|
|
854
931
|
|
|
855
932
|
<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
933
|
<NativeBuildsNav current="devices" />
|
|
857
|
-
<RegisterCard
|
|
934
|
+
<RegisterCard phone={phone} view={view} />
|
|
858
935
|
{view !== undefined && !view.viewer.approversConfigured ? (
|
|
859
936
|
<div className="flex min-w-0 flex-col gap-1.5 text-xs text-muted-foreground">
|
|
860
937
|
<p>Nobody approves in this Console. Approve from a terminal:</p>
|
|
@@ -948,6 +1025,7 @@ export function IosDevicesPage({
|
|
|
948
1025
|
>
|
|
949
1026
|
<DeviceCard
|
|
950
1027
|
device={device}
|
|
1028
|
+
isThisIphone={device.udid === thisUdid}
|
|
951
1029
|
onOpen={setDialog}
|
|
952
1030
|
viewer={view!.viewer}
|
|
953
1031
|
/>
|
|
@@ -987,6 +1065,7 @@ export function IosDevicesPage({
|
|
|
987
1065
|
rows?.map((device) => (
|
|
988
1066
|
<DeviceRow
|
|
989
1067
|
device={device}
|
|
1068
|
+
isThisIphone={device.udid === thisUdid}
|
|
990
1069
|
key={device.id}
|
|
991
1070
|
onOpen={setDialog}
|
|
992
1071
|
viewer={view!.viewer}
|
|
@@ -23,10 +23,16 @@ import { Skeleton } from "@/components/ui/skeleton";
|
|
|
23
23
|
import { useNativeBuildInstallEligibilityQuery } from "@/lib/api";
|
|
24
24
|
import {
|
|
25
25
|
useIosDeviceProfileLinkQuery,
|
|
26
|
-
|
|
26
|
+
keepIosDeviceReceipt,
|
|
27
|
+
keptIsThisIphone,
|
|
28
|
+
useKeptIosDeviceQuery,
|
|
29
|
+
useRequestThisIphoneMutation,
|
|
27
30
|
} from "@/lib/ios-devices-api";
|
|
28
31
|
import {
|
|
29
32
|
consolePathOf,
|
|
33
|
+
consolePathOfNativeBuildsPage,
|
|
34
|
+
holdPendingReceipt,
|
|
35
|
+
readPendingReceipt,
|
|
30
36
|
IOS_DEVICE_RECEIPT_STORAGE_KEY,
|
|
31
37
|
IOS_UDID_PATTERN,
|
|
32
38
|
IOS_UDID_STORAGE_KEY,
|
|
@@ -74,7 +80,10 @@ const fragmentOf = () => {
|
|
|
74
80
|
export interface IosDevice {
|
|
75
81
|
readonly ios: boolean;
|
|
76
82
|
readonly udid: string | null;
|
|
77
|
-
/**
|
|
83
|
+
/**
|
|
84
|
+
* The profile's fresh receipt of `udid`, from the fragment, in memory only:
|
|
85
|
+
* the page trades it for the HttpOnly cookie that proves this iPhone later.
|
|
86
|
+
*/
|
|
78
87
|
readonly receipt: string | null;
|
|
79
88
|
/** Whether this page opened from a registration's answer. */
|
|
80
89
|
readonly requested: boolean;
|
|
@@ -128,11 +137,14 @@ export const useIosDevice = (): IosDevice | null => {
|
|
|
128
137
|
if (fragment.udid !== null && answered) {
|
|
129
138
|
answers += 1;
|
|
130
139
|
keep(IOS_UDID_STORAGE_KEY, fragment.udid);
|
|
140
|
+
// Kept as this Safari's cookie on any page, whatever it shows next;
|
|
141
|
+
// held in this tab's session until then, so a reload can trade it.
|
|
131
142
|
if (fragment.receipt !== null) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
143
|
+
holdPendingReceipt(fragment.udid, fragment.receipt);
|
|
144
|
+
keepIosDeviceReceipt(
|
|
145
|
+
consolePathOfNativeBuildsPage(window.location),
|
|
146
|
+
fragment.receipt,
|
|
147
|
+
).catch(() => undefined);
|
|
136
148
|
}
|
|
137
149
|
}
|
|
138
150
|
if (fragment.udid !== null && window.location.hash !== "") {
|
|
@@ -144,22 +156,21 @@ export const useIosDevice = (): IosDevice | null => {
|
|
|
144
156
|
}
|
|
145
157
|
};
|
|
146
158
|
absorb(passed);
|
|
159
|
+
// A receipt is no longer kept here: the page trades the fragment's for an
|
|
160
|
+
// HttpOnly cookie that script can't read. One an earlier version kept goes.
|
|
161
|
+
try {
|
|
162
|
+
window.localStorage.removeItem(IOS_DEVICE_RECEIPT_STORAGE_KEY);
|
|
163
|
+
} catch {
|
|
164
|
+
// A browser that keeps nothing kept none.
|
|
165
|
+
}
|
|
147
166
|
const read = () => {
|
|
148
167
|
// A browser that keeps nothing still has the fragment's, in memory.
|
|
149
168
|
const udid = valid(readKept(IOS_UDID_STORAGE_KEY)) ?? latest.udid;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
)
|
|
155
|
-
receipt =
|
|
156
|
-
kept?.udid === udid && typeof kept?.receipt === "string"
|
|
157
|
-
? kept.receipt
|
|
158
|
-
: null;
|
|
159
|
-
} catch {
|
|
160
|
-
receipt = null;
|
|
161
|
-
}
|
|
162
|
-
if (receipt === null && latest.udid === udid) receipt = latest.receipt;
|
|
169
|
+
// The fragment's receipt until the cookie holds it: in memory, or held
|
|
170
|
+
// in this tab's session through a reload during an outage.
|
|
171
|
+
const receipt =
|
|
172
|
+
(latest.udid === udid ? latest.receipt : null) ??
|
|
173
|
+
readPendingReceipt(udid);
|
|
163
174
|
const requested = latest.requested;
|
|
164
175
|
const taken = answers;
|
|
165
176
|
setDevice((current) =>
|
|
@@ -182,11 +193,7 @@ export const useIosDevice = (): IosDevice | null => {
|
|
|
182
193
|
// The profile's answer may land in another tab, which keeps the ID there:
|
|
183
194
|
// this tab reads it when that tab writes it, or when Safari shows it again.
|
|
184
195
|
const onStorage = (event: StorageEvent) => {
|
|
185
|
-
if (
|
|
186
|
-
event.key === null ||
|
|
187
|
-
event.key === IOS_UDID_STORAGE_KEY ||
|
|
188
|
-
event.key === IOS_DEVICE_RECEIPT_STORAGE_KEY
|
|
189
|
-
) {
|
|
196
|
+
if (event.key === null || event.key === IOS_UDID_STORAGE_KEY) {
|
|
190
197
|
read();
|
|
191
198
|
}
|
|
192
199
|
};
|
|
@@ -442,7 +449,18 @@ function NotInThisBuild({
|
|
|
442
449
|
/** When the page last read `registry`. */
|
|
443
450
|
readonly registryReadAt: number;
|
|
444
451
|
}) {
|
|
445
|
-
const
|
|
452
|
+
const consolePath = consolePathOf(window.location, build.id);
|
|
453
|
+
const request = useRequestThisIphoneMutation(consolePath);
|
|
454
|
+
// This Safari's proof of the iPhone: the profile's fresh receipt, traded
|
|
455
|
+
// for the cookie, or the cookie an earlier check left.
|
|
456
|
+
// Read only where it decides something: a phone the registry doesn't know.
|
|
457
|
+
const kept = useKeptIosDeviceQuery(
|
|
458
|
+
consolePath,
|
|
459
|
+
device,
|
|
460
|
+
device.ios && device.udid !== null && registry === null,
|
|
461
|
+
);
|
|
462
|
+
const proved =
|
|
463
|
+
device.receipt !== null || keptIsThisIphone(kept.data?.udid, device.udid);
|
|
446
464
|
const [name, setName] = useState("");
|
|
447
465
|
// The request's answer stands in only while the page still shows the
|
|
448
466
|
// registry read before the request started: any read after that wins, an
|
|
@@ -491,7 +509,12 @@ function NotInThisBuild({
|
|
|
491
509
|
</div>
|
|
492
510
|
);
|
|
493
511
|
}
|
|
494
|
-
if (device.
|
|
512
|
+
if (!proved && kept.isPending && device.udid !== null) {
|
|
513
|
+
return (
|
|
514
|
+
<Skeleton aria-label="Reading this iPhone" className="h-11 w-full" />
|
|
515
|
+
);
|
|
516
|
+
}
|
|
517
|
+
if (!proved) {
|
|
495
518
|
return (
|
|
496
519
|
<div className="flex min-w-0 flex-col gap-3">
|
|
497
520
|
{heading}
|
|
@@ -511,7 +534,7 @@ function NotInThisBuild({
|
|
|
511
534
|
if (trimmed === "") return;
|
|
512
535
|
const readBefore = registryReadAt;
|
|
513
536
|
request.mutate(
|
|
514
|
-
{ receipt: device.receipt
|
|
537
|
+
{ receipt: device.receipt, name: trimmed },
|
|
515
538
|
{
|
|
516
539
|
onSuccess: ({ device: saved }) =>
|
|
517
540
|
setRequested({ device: saved, readBefore }),
|
|
@@ -142,8 +142,7 @@ export function NativeBuildDetailPage({
|
|
|
142
142
|
</EmptyMedia>
|
|
143
143
|
<EmptyTitle>Native build not found</EmptyTitle>
|
|
144
144
|
<EmptyDescription>
|
|
145
|
-
No native build has this ID. It may have been deleted
|
|
146
|
-
<code className="font-mono">native-build delete</code>, or be
|
|
145
|
+
No native build has this ID. It may have been deleted, or be
|
|
147
146
|
from another console.
|
|
148
147
|
</EmptyDescription>
|
|
149
148
|
</EmptyHeader>
|
|
@@ -4,7 +4,7 @@ import { tabsListVariants } from "@/components/ui/tabs";
|
|
|
4
4
|
import { cn } from "@/lib/utils";
|
|
5
5
|
|
|
6
6
|
const TAB_CLASS =
|
|
7
|
-
"relative inline-flex h-full items-center justify-center rounded-md border border-transparent px-3 text-xs font-medium whitespace-nowrap text-foreground/60 transition-colors hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm dark:text-muted-foreground dark:hover:text-foreground dark:aria-[current=page]:border-input dark:aria-[current=page]:bg-input/30 dark:aria-[current=page]:text-foreground";
|
|
7
|
+
"relative inline-flex h-full min-h-11 items-center justify-center rounded-md border border-transparent px-3 text-xs font-medium whitespace-nowrap text-foreground/60 transition-colors hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm dark:text-muted-foreground dark:hover:text-foreground dark:aria-[current=page]:border-input dark:aria-[current=page]:bg-input/30 dark:aria-[current=page]:text-foreground";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* The two views of Native builds: the builds, and the iOS devices ad hoc
|
|
@@ -20,7 +20,7 @@ export function NativeBuildsNav({
|
|
|
20
20
|
aria-label="Native builds views"
|
|
21
21
|
className={cn(
|
|
22
22
|
tabsListVariants(),
|
|
23
|
-
"h-11 sm:h-8 [&>a]:min-h-
|
|
23
|
+
"h-auto min-h-11 sm:h-8 sm:min-h-0 [&>a]:min-h-11 sm:[&>a]:min-h-0",
|
|
24
24
|
)}
|
|
25
25
|
>
|
|
26
26
|
<Link
|