@hot-updater/console 1.2.0-rc.3 → 1.2.0-rc.30
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-C-TGpFAm.js → -native-builds-search-DdHwfe4q.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-CTBdtFQ8.js +1 -0
- package/.output/public/assets/ChannelBadge-CEabmopB.js +1 -0
- package/.output/public/assets/CompositeItem-KUM5yQVr.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-Be-0iTww.js} +1 -1
- package/.output/public/assets/{EventDetails-Dl2RvPAk.js → EventDetails-bDOYte1z.js} +1 -1
- package/.output/public/assets/HashValueDisplay-D2f0HmyU.js +1 -0
- package/.output/public/assets/{InsightsPageHeader-DHhqY3DT.js → InsightsPageHeader-Cj2ROSQO.js} +1 -1
- package/.output/public/assets/IosInstall-CHI2C4Yd.js +1 -0
- package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +1 -0
- package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-CVBtl68B.js} +1 -1
- package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-DVnzzGqM.js} +1 -1
- package/.output/public/assets/RelativeTime-B4PK8qDw.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-D_I0Raj2.js +1 -0
- package/.output/public/assets/RowReason-B7VM1ztc.js +1 -0
- package/.output/public/assets/SandboxBadge-BVxHg_HF.js +1 -0
- package/.output/public/assets/TargetDisplay-KU7JhIWG.js +1 -0
- package/.output/public/assets/{alert-dialog-BqYScr9y.js → alert-dialog-Ch0QxRsa.js} +1 -1
- package/.output/public/assets/api-C1OPeiG1.js +1 -0
- package/.output/public/assets/api-keys-DLC8jjaM.js +1 -0
- package/.output/public/assets/api-keys-eDnzgFAf.js +1 -0
- package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
- package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
- package/.output/public/assets/badge-FZMD5vvS.js +1 -0
- package/.output/public/assets/card-CyHYmHue.js +1 -0
- package/.output/public/assets/check-CqWNyG93.js +1 -0
- package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
- package/.output/public/assets/dialog-BLj71-Nf.js +1 -0
- package/.output/public/assets/{dist-CPlO6ko9.js → dist-DAM__Tdz.js} +1 -1
- package/.output/public/assets/{download-Cf24LBde.js → download-B2GjTySo.js} +1 -1
- package/.output/public/assets/empty--YaE5Z4p.js +1 -0
- package/.output/public/assets/field-CdhSgWhI.js +1 -0
- package/.output/public/assets/git-branch-DG1VDaKq.js +1 -0
- package/.output/public/assets/history-C0wv4htz.js +1 -0
- package/.output/public/assets/index-CgwVUC2n.js +10 -0
- package/.output/public/assets/{input-group-D3OUBk4n.js → input-group-XKLcUGoa.js} +1 -1
- package/.output/public/assets/insights-C94CdeAA.js +1 -0
- package/.output/public/assets/insights-DILMVpk8.js +2 -0
- package/.output/public/assets/insights-_j_ieOyh.js +42 -0
- package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
- package/.output/public/assets/{insights-search-DghCbEnk.js → insights-search-Bgvg6wSP.js} +1 -1
- package/.output/public/assets/insights-usage-rpc-BUCinjSN.js +1 -0
- package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +2 -0
- package/.output/public/assets/insights_.distribution-CRkGNelG.js +1 -0
- package/.output/public/assets/insights_.distribution-CyAu3RN3.js +1 -0
- package/.output/public/assets/installations-BA01mqJE.js +1 -0
- package/.output/public/assets/installations-BsD6LgNc.js +2 -0
- package/.output/public/assets/installations-CYTzndfP.js +1 -0
- package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-D7UgdXyA.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
- package/.output/public/assets/{list--NIee1FZ.js → list-Bm-CfN5g.js} +1 -1
- package/.output/public/assets/loader-circle-iMqC-8ZE.js +1 -0
- package/.output/public/assets/native-builds-BMbws1g5.js +2 -0
- package/.output/public/assets/native-builds-xgHiHQML.js +1 -0
- package/.output/public/assets/native-builds_._buildId-B04z9yfk.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DaMmTcHo.js +2 -0
- package/.output/public/assets/native-builds_.devices-CTzpCVsb.js +1 -0
- package/.output/public/assets/native-builds_.devices-D_kl2-bc.js +2 -0
- package/.output/public/assets/package-BmfoZ5Zj.js +1 -0
- package/.output/public/assets/plus-Db0KxLZp.js +1 -0
- package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
- package/.output/public/assets/{refresh-cw-B9HHjLej.js → refresh-cw-BHhBYjS8.js} +1 -1
- package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-BYRt19mj.js} +1 -1
- package/.output/public/assets/remote-config-Cxkr7_BP.js +1 -0
- package/.output/public/assets/remote-config-DAOyn5xL.js +1 -0
- package/.output/public/assets/remote-config-DXv25LX1.js +6 -0
- package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-Ba-slJea.js} +1 -1
- package/.output/public/assets/routes-DM3TyTLW.js +2 -0
- package/.output/public/assets/routes-Des97uK_.js +1 -0
- package/.output/public/assets/search-dJG2BYmx.js +1 -0
- package/.output/public/assets/select-CA8r-UUe.js +1 -0
- package/.output/public/assets/send-DuMOCzbD.js +1 -0
- package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
- package/.output/public/assets/smartphone-D1C6BRd_.js +1 -0
- package/.output/public/assets/styles-BHLI87EH.css +2 -0
- package/.output/public/assets/switch-BsV3d4km.js +1 -0
- package/.output/public/assets/table-D8YjT_ht.js +1 -0
- package/.output/public/assets/tabs-RdhEl9sE.js +1 -0
- package/.output/public/assets/trash-2-B5KIvrXy.js +1 -0
- package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CFcU9dIB.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
- package/.output/public/assets/valueToPercent-Bn8p2lng.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-DJQS4eWX.mjs → __23tanstack-start-server-fn-resolver-q4YFIDyr.mjs} +94 -46
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +2 -0
- package/.output/server/_libs/lucide-react.mjs +22 -28
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +1 -1
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__react-query.mjs +1 -1
- package/.output/server/_ssr/{-native-builds-search-CwNcoXf4.mjs → -native-builds-search-Mm_AZoRU.mjs} +9 -3
- package/.output/server/_ssr/{BundleIdDisplay-LdRkYdnN.mjs → BundleIdDisplay-DvzlYWq8.mjs} +3 -3
- package/.output/server/_ssr/ChannelBadge-qF_Pc5Ud.mjs +23 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BN-FZ8eG.mjs → ConsoleFeatureUnavailable-DKUgr0N_.mjs} +7 -7
- package/.output/server/_ssr/{EventDetails-B77sWxgh.mjs → EventDetails-T1XtYEDD.mjs} +8 -8
- package/.output/server/_ssr/{HashValueDisplay-C4Vs4cmO.mjs → HashValueDisplay-Cas_zjIS.mjs} +7 -7
- package/.output/server/_ssr/{InsightsPageHeader-Dx4jJ7X0.mjs → InsightsPageHeader-BrllhUl2.mjs} +8 -8
- package/.output/server/_ssr/IosInstall-CEHI8F2M.mjs +615 -0
- package/.output/server/_ssr/NativeBuildsNav-2xSHyA1a.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-DB5cXeVZ.mjs → NotFoundPage-D6H9vxj_.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-BpGOEXjU.mjs} +13 -3
- package/.output/server/_ssr/RelativeTime-DpEVzDP9.mjs +237 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-DW8-_w30.mjs} +20 -4
- package/.output/server/_ssr/RowReason-C-PjIxzq.mjs +186 -0
- package/.output/server/_ssr/SandboxBadge-CDdNew0R.mjs +97 -0
- package/.output/server/_ssr/TargetDisplay-BBsP7IaZ.mjs +83 -0
- package/.output/server/_ssr/{alert-dialog-DxboqQmd.mjs → alert-dialog-Bd4E9xdw.mjs} +2 -2
- package/.output/server/_ssr/{api-cvzOLlTy.mjs → api-BT7aA8UM.mjs} +167 -33
- package/.output/server/_ssr/{api-keys-C3QCQvpV.mjs → api-keys-D2NvcQZv.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-CrbGr02t.mjs → api-keys-DjWpM20P.mjs} +11 -10
- package/.output/server/_ssr/{api-keys-rpc-BcTQzRLj.mjs → api-keys-rpc-nM5H7V7f.mjs} +4 -4
- package/.output/server/_ssr/{api-rpc-B48nsUak.mjs → api-rpc-DX4HynbW.mjs} +83 -35
- package/.output/server/_ssr/{auth-rpc-C0gtG9nJ.mjs → auth-rpc-LCxTtYz2.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-B0JikHOQ.mjs → auth.server-CERo_xef.mjs} +797 -174
- package/.output/server/_ssr/{badge-oO-0mLsr.mjs → badge-Dpp4q7sD.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
- package/.output/server/_ssr/card-CFCftDfI.mjs +49 -0
- package/.output/server/_ssr/{config.server-CJVHGJtr.mjs → config.server-5W5WD8x2.mjs} +4 -4
- package/.output/server/_ssr/{console-access-4TW5Af_n.mjs → console-access-B0S5YFUa.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-DfzZRyXa.mjs → console-features-api-CV_EReEj.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-DqNpa3U9.mjs → console-features-rpc-D3xlQsuy.mjs} +4 -4
- package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-xaGDhRC9.mjs} +1 -1
- package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
- package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-XAvDetmn.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BtRVBD0C.mjs} +3 -3
- package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
- package/.output/server/_ssr/{dialog-DsuMZ5oh.mjs → dialog-DQR_QI_X.mjs} +2 -2
- package/.output/server/_ssr/{dist-TEpM_UAD.mjs → dist-B6-irDRA.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
- package/.output/server/_ssr/{empty-r4kJO91t.mjs → empty-C7PFnkCH.mjs} +3 -3
- package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
- package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-BA2eg11O.mjs} +3 -3
- package/.output/server/_ssr/{field-DfXmt9CS.mjs → field-BqYN8sZT.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CdqFonhl.mjs} +2 -2
- package/.output/server/_ssr/{input-group-BCO7zTpU.mjs → input-group-Brv0mmyp.mjs} +2 -2
- package/.output/server/_ssr/{insights-CRu5FUj8.mjs → insights--xI3A0KI.mjs} +5 -5
- package/.output/server/_ssr/{insights-DrrhPDER.mjs → insights-CD1e3EnW.mjs} +2 -2
- package/.output/server/_ssr/{insights-Csqlj6u7.mjs → insights-Dd0VdO-1.mjs} +27 -26
- package/.output/server/_ssr/{insights-api-NW5VCXqg.mjs → insights-api-Bt2XVa4Y.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-7zH97WOO.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-CoFrAOK9.mjs → insights-failures-rpc-DBGzXP5A.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-sud_FyGW.mjs → insights-recovery-rpc-C6fAh-i_.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-Ce2Isz9q.mjs → insights-rpc-pThKC9oj.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-B0O3YoO2.mjs → insights-search-iFN4UaUv.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-h8fipPTv.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-Cwf1t4aW.mjs → insights-usage-rpc-B-RLvdLZ.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-C-cS2F9s.mjs → insights-usage-rpc-CGHZQ9jq.mjs} +7 -7
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-DIkh5VqM.mjs → insights_.distribution-C6iXJ93Y.mjs} +15 -14
- package/.output/server/_ssr/{insights_.distribution-D52TkQ2V.mjs → insights_.distribution-E6Ns2aN7.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution--3aR6Kpy.mjs → insights_.distribution-xHmfwwa5.mjs} +5 -5
- package/.output/server/_ssr/{installations-Bu4Lb0x9.mjs → installations-7V-Xyui8.mjs} +12 -12
- package/.output/server/_ssr/{installations-DftevpDt.mjs → installations-CZnN6slr.mjs} +4 -4
- package/.output/server/_ssr/{installations-C818mFCp.mjs → installations-D6Upc9Rt.mjs} +2 -2
- package/.output/server/_ssr/ios-devices-rpc-CXuHk24G.mjs +139 -0
- package/.output/server/_ssr/iosDeviceProfile-BESi_onx.mjs +176 -0
- package/.output/server/_ssr/iosDevices-BmvvvZRo.mjs +129 -0
- package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/{native-builds-DOASMwGh.mjs → native-builds-BUojmVWC.mjs} +3 -3
- package/.output/server/_ssr/native-builds-BXBkklfA.mjs +197 -0
- package/.output/server/_ssr/native-builds-BhDCE89P.mjs +717 -0
- package/.output/server/_ssr/{native-builds_._buildId-CTytnLBB.mjs → native-builds_._buildId-DRiCNDdO.mjs} +3 -3
- package/.output/server/_ssr/native-builds_._buildId-DkMpG-OB.mjs +1176 -0
- package/.output/server/_ssr/native-builds_.devices-DSideebA.mjs +10 -0
- package/.output/server/_ssr/native-builds_.devices-DsOx1R36.mjs +702 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-DDAUVU8q.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-CcBrfTsc.mjs +250 -0
- package/.output/server/_ssr/nativeBuilds-Cub0EUGN.mjs +287 -0
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-CX7wutet.mjs} +6 -6
- package/.output/server/_ssr/publicConsoleBase-f67NLLXZ.mjs +610 -0
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-DeICczY7.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-OizwttJD.mjs → release-adoption-rpc-BjMXMi9A.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-kHZo8P90.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-D9dAMI17.mjs} +3 -3
- package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-EPhok_Py.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-DaZ7ifUF.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DaBgnVnL.mjs → remote-config-B1iZuZOF.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-Dypc_nuk.mjs → remote-config-C_DprbJz.mjs} +23 -22
- package/.output/server/_ssr/{remote-config-DZu7gJLL.mjs → remote-config-C_q6FBE4.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-rpc-DOfPhqli.mjs → remote-config-rpc-BFTPcMfZ.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-BkRbvels.mjs → router-BDXPwfwl.mjs} +92 -59
- package/.output/server/_ssr/{routes-D9JnXVWL.mjs → routes-BJeztqpQ.mjs} +388 -432
- package/.output/server/_ssr/{routes-BeTsUkNX.mjs → routes-DpapxHLc.mjs} +14 -17
- package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-CkSbWaZm.mjs} +4 -4
- package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-3oDJJFWa.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-B2VGxRY6.mjs → schema-migration-rpc-a4bLEdaP.mjs} +4 -4
- package/.output/server/_ssr/{select-Cywc0NmT.mjs → select-C9HpIZxd.mjs} +2 -2
- package/.output/server/_ssr/{server-Ds-fU1zf.mjs → server-C8ZmMWnn.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-t0NiN0-2.mjs → sidebar-BrVL3L7R.mjs} +3 -3
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-D3noqqOK.mjs} +2 -2
- package/.output/server/_ssr/{switch-D1T38CnM.mjs → switch-DtnsoZHO.mjs} +3 -3
- package/.output/server/_ssr/{table-L9ZQgxNF.mjs → table-Bg7nCnct.mjs} +2 -2
- package/.output/server/_ssr/{tabs-BiByrAnU.mjs → tabs-BEIoGLTL.mjs} +4 -4
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
- package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-CmHbryZT.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-NmbU0MD2.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-C_TPyfFP.mjs +225 -0
- package/.output/server/index.mjs +479 -381
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/ChannelBadge.tsx +9 -9
- package/src/components/DataTable.tsx +347 -0
- package/src/components/FoldedRows.tsx +219 -0
- package/src/components/HashValueDisplay.tsx +6 -3
- package/src/components/PlatformIcon.tsx +10 -0
- package/src/components/RelativeTime.tsx +31 -0
- package/src/components/RowReason.tsx +56 -0
- package/src/components/TargetDisplay.tsx +69 -0
- package/src/components/ThemeProvider.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +5 -10
- package/src/components/features/insights/ReleaseActivity.tsx +1 -1
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +108 -58
- package/src/components/features/native-builds/CommitLink.tsx +3 -2
- package/src/components/features/native-builds/ImportBuild.tsx +1 -1
- package/src/components/features/native-builds/InstallCard.tsx +310 -67
- package/src/components/features/native-builds/IosDevicesPage.tsx +944 -0
- package/src/components/features/native-builds/IosInstall.tsx +632 -0
- package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +21 -4
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +65 -76
- package/src/components/features/native-builds/NativeBuildsTable.tsx +668 -318
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/components/features/native-builds/PatchesCard.tsx +3 -2
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +4 -4
- package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
- package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
- package/src/components/features/native-builds/ShortHash.tsx +6 -3
- package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
- package/src/components/features/native-builds/playTracks.ts +19 -0
- package/src/components/features/remote-config/PublishDialog.tsx +4 -1
- package/src/components/features/remote-config/VersionsCard.tsx +5 -2
- package/src/components/ui/badge.tsx +2 -0
- package/src/components/ui/sonner.tsx +3 -1
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +124 -35
- package/src/lib/api.ts +150 -14
- package/src/lib/ios-devices-api.ts +110 -0
- package/src/lib/ios-devices-rpc.ts +183 -0
- package/src/lib/native-builds.ts +160 -17
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +187 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceProfile.ts +230 -0
- package/src/lib/server/iosDevices.ts +223 -0
- package/src/lib/server/listReleases.ts +101 -62
- package/src/lib/server/local-console.ts +1 -1
- package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
- package/src/lib/server/nativeBuildInstall.ts +495 -0
- package/src/lib/server/nativeBuilds.ts +308 -59
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/routeTree.gen.ts +85 -18
- package/src/routes/-native-builds-search.ts +20 -0
- package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
- package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
- package/src/routes/api/native-builds/$buildId/download.ts +22 -1
- package/src/routes/index.tsx +541 -532
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/src/styles.css +24 -0
- package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
- package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
- package/.output/public/assets/api-P2g8dCNg.js +0 -1
- package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
- package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
- package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
- package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
- package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
- package/.output/public/assets/badge-DWFcDWho.js +0 -1
- package/.output/public/assets/check-CXVR3s3X.js +0 -1
- package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
- package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
- package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
- package/.output/public/assets/field-D-2-mnNh.js +0 -1
- package/.output/public/assets/history-DqHlgSuV.js +0 -1
- package/.output/public/assets/index-CqP5HPV6.js +0 -10
- package/.output/public/assets/insights-B-0odqpt.js +0 -42
- package/.output/public/assets/insights-BSVGfxSL.js +0 -1
- package/.output/public/assets/insights-NK5B6ReS.js +0 -2
- package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
- package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
- package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
- package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
- package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
- package/.output/public/assets/installations-B674P5Z5.js +0 -2
- package/.output/public/assets/installations-BWxczZ2t.js +0 -1
- package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
- package/.output/public/assets/native-builds-BOC71grI.js +0 -1
- package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
- package/.output/public/assets/native-builds-DAy2678K.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
- package/.output/public/assets/plus-BReVKct-.js +0 -1
- package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
- package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
- package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
- package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
- package/.output/public/assets/routes-BDdBIxYS.js +0 -1
- package/.output/public/assets/routes-CCD33Azv.js +0 -2
- package/.output/public/assets/search-BCel4Oy6.js +0 -1
- package/.output/public/assets/select-CBIU0_M1.js +0 -1
- package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
- package/.output/public/assets/styles-uK-0vUMk.css +0 -2
- package/.output/public/assets/switch-BpdiHL_t.js +0 -1
- package/.output/public/assets/table-Bpy3SvSo.js +0 -1
- package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
- package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
- package/.output/server/_ssr/RolloutPercentageBadge-vmwE8iae.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-DE4vgy5B.mjs +0 -139
- package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
- package/.output/server/_ssr/native-builds-CWjU--fI.mjs +0 -510
- package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
- package/.output/server/_ssr/native-builds_._buildId-D4lYJLIU.mjs +0 -813
- package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
- package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
- package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
- package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
- package/src/lib/server/nativeBuildQr.ts +0 -73
- package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
- /package/.output/public/assets/{uuidv7-zXMtwR9Q.js → uuidv7-DAoOOpz9.js} +0 -0
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
import type { IosDeviceRow, NativeBuildRow } from "@hot-updater/plugin-core";
|
|
2
|
+
import { Link } from "@tanstack/react-router";
|
|
3
|
+
import dayjs from "dayjs";
|
|
4
|
+
import {
|
|
5
|
+
AlertTriangle,
|
|
6
|
+
Loader2,
|
|
7
|
+
RefreshCw,
|
|
8
|
+
Send,
|
|
9
|
+
Smartphone,
|
|
10
|
+
} from "lucide-react";
|
|
11
|
+
import { useEffect, useReducer, useState } from "react";
|
|
12
|
+
|
|
13
|
+
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
14
|
+
import { Button, buttonVariants } from "@/components/ui/button";
|
|
15
|
+
import {
|
|
16
|
+
Field,
|
|
17
|
+
FieldDescription,
|
|
18
|
+
FieldError,
|
|
19
|
+
FieldLabel,
|
|
20
|
+
} from "@/components/ui/field";
|
|
21
|
+
import { Input } from "@/components/ui/input";
|
|
22
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
23
|
+
import { useNativeBuildInstallEligibilityQuery } from "@/lib/api";
|
|
24
|
+
import {
|
|
25
|
+
useIosDeviceProfileLinkQuery,
|
|
26
|
+
useRequestIosDeviceAccessMutation,
|
|
27
|
+
} from "@/lib/ios-devices-api";
|
|
28
|
+
import {
|
|
29
|
+
consolePathOf,
|
|
30
|
+
IOS_DEVICE_RECEIPT_STORAGE_KEY,
|
|
31
|
+
IOS_UDID_PATTERN,
|
|
32
|
+
IOS_UDID_STORAGE_KEY,
|
|
33
|
+
iosDeviceProfileUrl,
|
|
34
|
+
NATIVE_BUILD_INSTALL_LINK_TTL_MS,
|
|
35
|
+
nativeBuildItmsUrl,
|
|
36
|
+
} from "@/lib/native-builds";
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* What an install does to the App Store's copy of the app on this iPhone, with
|
|
40
|
+
* the same bundle ID. The one line to change after trying it on a real iPhone.
|
|
41
|
+
*/
|
|
42
|
+
export const IOS_STORE_APP_NOTE =
|
|
43
|
+
"With the same bundle ID, this install replaces the App Store's copy of the app on this iPhone.";
|
|
44
|
+
|
|
45
|
+
const ACTION_CLASS =
|
|
46
|
+
"h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit";
|
|
47
|
+
|
|
48
|
+
/** Whether this browser runs on an iPhone or iPad: an iPad says it is a Mac. */
|
|
49
|
+
export const isIosBrowser = (
|
|
50
|
+
browser: Pick<Navigator, "userAgent" | "maxTouchPoints">,
|
|
51
|
+
) =>
|
|
52
|
+
/iPhone|iPod|iPad/u.test(browser.userAgent) ||
|
|
53
|
+
(/Macintosh/u.test(browser.userAgent) && browser.maxTouchPoints > 1);
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* What the profile's answer passed back in the fragment: the UDID, with a
|
|
57
|
+
* receipt of it from a check, or `requested` from a registration.
|
|
58
|
+
*/
|
|
59
|
+
const fragmentOf = () => {
|
|
60
|
+
if (typeof window === "undefined") {
|
|
61
|
+
return { udid: null, receipt: null, requested: false };
|
|
62
|
+
}
|
|
63
|
+
const params = new URLSearchParams(window.location.hash.slice(1));
|
|
64
|
+
const udid = params.get("udid");
|
|
65
|
+
const valid = udid !== null && IOS_UDID_PATTERN.test(udid) ? udid : null;
|
|
66
|
+
return {
|
|
67
|
+
udid: valid,
|
|
68
|
+
receipt: valid === null ? null : params.get("r"),
|
|
69
|
+
requested: valid !== null && params.get("requested") === "1",
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** This iPhone's view of itself, as its profile last reported it. */
|
|
74
|
+
export interface IosDevice {
|
|
75
|
+
readonly ios: boolean;
|
|
76
|
+
readonly udid: string | null;
|
|
77
|
+
/** The receipt of `udid` that Request access takes, when a check made one. */
|
|
78
|
+
readonly receipt: string | null;
|
|
79
|
+
/** Whether this page opened from a registration's answer. */
|
|
80
|
+
readonly requested: boolean;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const readKept = (key: string) => {
|
|
84
|
+
try {
|
|
85
|
+
return window.localStorage.getItem(key);
|
|
86
|
+
} catch {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const keep = (key: string, value: string) => {
|
|
92
|
+
try {
|
|
93
|
+
window.localStorage.setItem(key, value);
|
|
94
|
+
} catch {
|
|
95
|
+
// A browser that keeps nothing: the fragment's values stand in memory.
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Whether this page is open on an iPhone, its UDID, and a receipt of it: the
|
|
101
|
+
* ones this phone kept, else the ones the profile's answer passed in the
|
|
102
|
+
* fragment, which are kept then. Read after the page mounts: the server
|
|
103
|
+
* renders it without a browser. Null until then.
|
|
104
|
+
*/
|
|
105
|
+
export const useIosDevice = (): IosDevice | null => {
|
|
106
|
+
const [device, setDevice] = useState<IosDevice | null>(null);
|
|
107
|
+
// Read at the first render, so an effect that runs again (React's
|
|
108
|
+
// development check) still has it after the fragment is gone.
|
|
109
|
+
const [passed] = useState(fragmentOf);
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
const valid = (udid: string | null | undefined) =>
|
|
112
|
+
udid != null && IOS_UDID_PATTERN.test(udid) ? udid : null;
|
|
113
|
+
// Only the profile's own answer, which carries a receipt or says it
|
|
114
|
+
// registered, replaces the ID this phone kept: a plain link's ID never does.
|
|
115
|
+
const answered = passed.receipt !== null || passed.requested;
|
|
116
|
+
if (passed.udid !== null && answered) {
|
|
117
|
+
keep(IOS_UDID_STORAGE_KEY, passed.udid);
|
|
118
|
+
if (passed.receipt !== null) {
|
|
119
|
+
keep(
|
|
120
|
+
IOS_DEVICE_RECEIPT_STORAGE_KEY,
|
|
121
|
+
JSON.stringify({ udid: passed.udid, receipt: passed.receipt }),
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (passed.udid !== null && window.location.hash !== "") {
|
|
126
|
+
window.history.replaceState(
|
|
127
|
+
window.history.state,
|
|
128
|
+
"",
|
|
129
|
+
`${window.location.pathname}${window.location.search}`,
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
const read = () => {
|
|
133
|
+
// A browser that keeps nothing still has the fragment's, in memory.
|
|
134
|
+
const udid = valid(readKept(IOS_UDID_STORAGE_KEY)) ?? passed.udid;
|
|
135
|
+
let receipt: string | null = null;
|
|
136
|
+
try {
|
|
137
|
+
const kept = JSON.parse(
|
|
138
|
+
readKept(IOS_DEVICE_RECEIPT_STORAGE_KEY) ?? "null",
|
|
139
|
+
) as { udid?: unknown; receipt?: unknown } | null;
|
|
140
|
+
receipt =
|
|
141
|
+
kept?.udid === udid && typeof kept?.receipt === "string"
|
|
142
|
+
? kept.receipt
|
|
143
|
+
: null;
|
|
144
|
+
} catch {
|
|
145
|
+
receipt = null;
|
|
146
|
+
}
|
|
147
|
+
if (receipt === null && passed.udid === udid) receipt = passed.receipt;
|
|
148
|
+
setDevice((current) =>
|
|
149
|
+
current !== null && current.udid === udid && current.receipt === receipt
|
|
150
|
+
? current
|
|
151
|
+
: {
|
|
152
|
+
ios: isIosBrowser(navigator),
|
|
153
|
+
udid,
|
|
154
|
+
receipt,
|
|
155
|
+
requested: passed.requested,
|
|
156
|
+
},
|
|
157
|
+
);
|
|
158
|
+
};
|
|
159
|
+
read();
|
|
160
|
+
// The profile's answer may land in another tab, which keeps the ID there:
|
|
161
|
+
// this tab reads it when that tab writes it, or when Safari shows it again.
|
|
162
|
+
const onStorage = (event: StorageEvent) => {
|
|
163
|
+
if (
|
|
164
|
+
event.key === null ||
|
|
165
|
+
event.key === IOS_UDID_STORAGE_KEY ||
|
|
166
|
+
event.key === IOS_DEVICE_RECEIPT_STORAGE_KEY
|
|
167
|
+
) {
|
|
168
|
+
read();
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
window.addEventListener("storage", onStorage);
|
|
172
|
+
window.addEventListener("pageshow", read);
|
|
173
|
+
document.addEventListener("visibilitychange", read);
|
|
174
|
+
return () => {
|
|
175
|
+
window.removeEventListener("storage", onStorage);
|
|
176
|
+
window.removeEventListener("pageshow", read);
|
|
177
|
+
document.removeEventListener("visibilitychange", read);
|
|
178
|
+
};
|
|
179
|
+
}, [passed]);
|
|
180
|
+
return device;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* How long before its link expires the page stops offering it: the installer
|
|
185
|
+
* fetches the manifest, then the IPA, only after the tester confirms the prompt.
|
|
186
|
+
*/
|
|
187
|
+
const INSTALL_LINK_MARGIN_MS = 5 * 60 * 1000;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Whether a link read at `readAtMs` is past offering, measured on this phone's
|
|
191
|
+
* clock from when it arrived, since the phone's clock may disagree with the
|
|
192
|
+
* server's. A failed refresh leaves `readAtMs` where it was. Timers stop while
|
|
193
|
+
* the phone sleeps, so coming back to the page checks again.
|
|
194
|
+
*/
|
|
195
|
+
const useInstallLinkExpired = (readAtMs: number, holdsLink: boolean) => {
|
|
196
|
+
const [, check] = useReducer((count: number) => count + 1, 0);
|
|
197
|
+
const expiresAtMs =
|
|
198
|
+
readAtMs + NATIVE_BUILD_INSTALL_LINK_TTL_MS - INSTALL_LINK_MARGIN_MS;
|
|
199
|
+
useEffect(() => {
|
|
200
|
+
if (!holdsLink) return;
|
|
201
|
+
const timer = setTimeout(check, Math.max(0, expiresAtMs - Date.now()));
|
|
202
|
+
document.addEventListener("visibilitychange", check);
|
|
203
|
+
window.addEventListener("pageshow", check);
|
|
204
|
+
return () => {
|
|
205
|
+
clearTimeout(timer);
|
|
206
|
+
document.removeEventListener("visibilitychange", check);
|
|
207
|
+
window.removeEventListener("pageshow", check);
|
|
208
|
+
};
|
|
209
|
+
}, [expiresAtMs, holdsLink]);
|
|
210
|
+
return holdsLink && Date.now() >= expiresAtMs;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
/** In place of Install once its link has expired: it never offers a dead link. */
|
|
214
|
+
function RenewInstallLink({
|
|
215
|
+
fetching,
|
|
216
|
+
onRenew,
|
|
217
|
+
}: {
|
|
218
|
+
readonly fetching: boolean;
|
|
219
|
+
readonly onRenew: () => void;
|
|
220
|
+
}) {
|
|
221
|
+
return (
|
|
222
|
+
<div className="flex min-w-0 flex-col gap-2">
|
|
223
|
+
<p className="text-xs text-muted-foreground" role="status">
|
|
224
|
+
This install link has expired.{fetching ? " Getting a new one." : ""}
|
|
225
|
+
</p>
|
|
226
|
+
{fetching ? null : (
|
|
227
|
+
<Button className={ACTION_CLASS} onClick={onRenew} variant="outline">
|
|
228
|
+
Get a new link
|
|
229
|
+
</Button>
|
|
230
|
+
)}
|
|
231
|
+
</div>
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
function InstallButton({
|
|
236
|
+
build,
|
|
237
|
+
token,
|
|
238
|
+
}: {
|
|
239
|
+
readonly build: NativeBuildRow;
|
|
240
|
+
readonly token: string;
|
|
241
|
+
}) {
|
|
242
|
+
return (
|
|
243
|
+
<a
|
|
244
|
+
className={buttonVariants({ className: ACTION_CLASS })}
|
|
245
|
+
href={nativeBuildItmsUrl(window.location, build.id, token)}
|
|
246
|
+
>
|
|
247
|
+
Install
|
|
248
|
+
</a>
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** What a tester reads before Install opens the system's install prompt. */
|
|
253
|
+
function InstallNotes() {
|
|
254
|
+
return (
|
|
255
|
+
<div className="flex min-w-0 flex-col gap-1">
|
|
256
|
+
<p className="text-xs text-muted-foreground">
|
|
257
|
+
On iOS 16 or later, the app opens only with Developer Mode on: Settings,
|
|
258
|
+
Privacy & Security, Developer Mode.
|
|
259
|
+
</p>
|
|
260
|
+
<p className="text-xs text-muted-foreground">{IOS_STORE_APP_NOTE}</p>
|
|
261
|
+
</div>
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* The link that hands this iPhone the profile that reads its UDID, signed for
|
|
267
|
+
* this person, under the Console's path. A plain link, so iOS offers the
|
|
268
|
+
* profile; the page signs a new one before it expires. Once it's installed,
|
|
269
|
+
* the phone comes back to this page with the UDID and a receipt of it.
|
|
270
|
+
*/
|
|
271
|
+
function CheckThisIphone({
|
|
272
|
+
build,
|
|
273
|
+
again = false,
|
|
274
|
+
}: {
|
|
275
|
+
readonly build: NativeBuildRow;
|
|
276
|
+
/** For a phone whose kept ID isn't its own, or whose check expired. */
|
|
277
|
+
readonly again?: boolean;
|
|
278
|
+
}) {
|
|
279
|
+
const link = useIosDeviceProfileLinkQuery({
|
|
280
|
+
mode: "identify",
|
|
281
|
+
buildId: build.id,
|
|
282
|
+
});
|
|
283
|
+
if (link.data?.status === "no-secret") {
|
|
284
|
+
return (
|
|
285
|
+
<p className="text-xs text-muted-foreground" role="status">
|
|
286
|
+
Set {link.data.secretName} on the Console to check iPhones from this
|
|
287
|
+
page.
|
|
288
|
+
</p>
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
if (link.data?.status !== "issued") {
|
|
292
|
+
return link.isError ? (
|
|
293
|
+
<>
|
|
294
|
+
<Alert variant="destructive">
|
|
295
|
+
<AlertTriangle />
|
|
296
|
+
<AlertTitle>The check couldn't start</AlertTitle>
|
|
297
|
+
<AlertDescription>
|
|
298
|
+
Check your connection and try again.
|
|
299
|
+
</AlertDescription>
|
|
300
|
+
</Alert>
|
|
301
|
+
<Button
|
|
302
|
+
className={ACTION_CLASS}
|
|
303
|
+
disabled={link.isFetching}
|
|
304
|
+
onClick={() => void link.refetch()}
|
|
305
|
+
variant="outline"
|
|
306
|
+
>
|
|
307
|
+
<RefreshCw data-icon="inline-start" />
|
|
308
|
+
Reload
|
|
309
|
+
</Button>
|
|
310
|
+
</>
|
|
311
|
+
) : (
|
|
312
|
+
<Skeleton aria-label="Preparing the check" className="h-11 w-full" />
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
return (
|
|
316
|
+
<>
|
|
317
|
+
<a
|
|
318
|
+
className={buttonVariants({
|
|
319
|
+
className: ACTION_CLASS,
|
|
320
|
+
variant: again ? "secondary" : "default",
|
|
321
|
+
})}
|
|
322
|
+
href={iosDeviceProfileUrl(
|
|
323
|
+
consolePathOf(window.location, build.id),
|
|
324
|
+
link.data.token,
|
|
325
|
+
)}
|
|
326
|
+
>
|
|
327
|
+
<Smartphone data-icon="inline-start" />
|
|
328
|
+
{again ? "Check this iPhone again" : "Check this iPhone"}
|
|
329
|
+
</a>
|
|
330
|
+
<p className="text-xs text-muted-foreground">
|
|
331
|
+
Allow the download, then install it in Settings, where iOS calls it not
|
|
332
|
+
signed. Nothing stays installed.
|
|
333
|
+
</p>
|
|
334
|
+
</>
|
|
335
|
+
);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
const shortDate = (ms: number) => dayjs(ms).format("MMM D");
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Apple's refusal of this iPhone, in its own words, and the one next step: the
|
|
342
|
+
* iOS devices page for an approver, else whom to ask.
|
|
343
|
+
*/
|
|
344
|
+
function AppleRefusal({
|
|
345
|
+
device,
|
|
346
|
+
canApprove,
|
|
347
|
+
}: {
|
|
348
|
+
readonly device: IosDeviceRow;
|
|
349
|
+
readonly canApprove: boolean;
|
|
350
|
+
}) {
|
|
351
|
+
return (
|
|
352
|
+
<div className="flex min-w-0 flex-col gap-3">
|
|
353
|
+
<Alert>
|
|
354
|
+
<AlertTriangle />
|
|
355
|
+
<AlertTitle>Apple didn't register this iPhone</AlertTitle>
|
|
356
|
+
<AlertDescription>{device.apple_error}</AlertDescription>
|
|
357
|
+
</Alert>
|
|
358
|
+
{canApprove ? (
|
|
359
|
+
<Link
|
|
360
|
+
className={buttonVariants({
|
|
361
|
+
className: ACTION_CLASS,
|
|
362
|
+
variant: "outline",
|
|
363
|
+
})}
|
|
364
|
+
to="/native-builds/devices"
|
|
365
|
+
>
|
|
366
|
+
iOS devices
|
|
367
|
+
</Link>
|
|
368
|
+
) : (
|
|
369
|
+
<p className="text-xs text-muted-foreground">
|
|
370
|
+
{device.status === "approved"
|
|
371
|
+
? "Ask a maintainer to free a device slot."
|
|
372
|
+
: "Ask a maintainer to check it on the iOS devices page."}
|
|
373
|
+
</p>
|
|
374
|
+
)}
|
|
375
|
+
</div>
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* What an iPhone the IPA doesn't list sees: the registry's word on it, or
|
|
381
|
+
* Request access, which takes the UDID from this person's receipt alone.
|
|
382
|
+
*/
|
|
383
|
+
function NotInThisBuild({
|
|
384
|
+
build,
|
|
385
|
+
device,
|
|
386
|
+
registry,
|
|
387
|
+
newerBuild,
|
|
388
|
+
canApprove,
|
|
389
|
+
registryReadAt,
|
|
390
|
+
}: {
|
|
391
|
+
readonly build: NativeBuildRow;
|
|
392
|
+
readonly device: IosDevice;
|
|
393
|
+
readonly registry: IosDeviceRow | null;
|
|
394
|
+
/**
|
|
395
|
+
* The newer build of this app and channel that lists the iPhone, as the
|
|
396
|
+
* server matched `registry.build_id`, or null.
|
|
397
|
+
*/
|
|
398
|
+
readonly newerBuild: string | null;
|
|
399
|
+
/** Whether the viewer approves devices, read only under Apple's refusal. */
|
|
400
|
+
readonly canApprove: boolean;
|
|
401
|
+
/** When the page last read `registry`. */
|
|
402
|
+
readonly registryReadAt: number;
|
|
403
|
+
}) {
|
|
404
|
+
const request = useRequestIosDeviceAccessMutation();
|
|
405
|
+
const [name, setName] = useState("");
|
|
406
|
+
// The request's answer stands in only while the page still shows the
|
|
407
|
+
// registry read before the request started: any read after that wins, an
|
|
408
|
+
// approval or a removal too, even one the mutation's own refresh finished
|
|
409
|
+
// before its answer reached this component.
|
|
410
|
+
const [requested, setRequested] = useState<{
|
|
411
|
+
readonly device: IosDeviceRow;
|
|
412
|
+
readonly readBefore: number;
|
|
413
|
+
} | null>(null);
|
|
414
|
+
const standIn = requested !== null && registryReadAt <= requested.readBefore;
|
|
415
|
+
const row = standIn ? requested.device : registry;
|
|
416
|
+
const heading = (
|
|
417
|
+
<div className="flex min-w-0 flex-col gap-1">
|
|
418
|
+
<p className="text-sm font-medium">Not in this build</p>
|
|
419
|
+
<p className="text-xs text-muted-foreground">
|
|
420
|
+
This IPA was signed without this iPhone, and iOS won't install it here.
|
|
421
|
+
</p>
|
|
422
|
+
</div>
|
|
423
|
+
);
|
|
424
|
+
if (row !== null) {
|
|
425
|
+
// The row's build_id may name a sandbox's or another app's build: only the
|
|
426
|
+
// server's match of it is offered.
|
|
427
|
+
const newer = standIn ? null : newerBuild;
|
|
428
|
+
if (row.apple_error !== null && newer === null) {
|
|
429
|
+
return <AppleRefusal canApprove={canApprove} device={row} />;
|
|
430
|
+
}
|
|
431
|
+
return (
|
|
432
|
+
<div className="flex min-w-0 flex-col gap-3">
|
|
433
|
+
{heading}
|
|
434
|
+
<p className="text-sm" role="status">
|
|
435
|
+
{row.status === "pending"
|
|
436
|
+
? `${row.name} was requested on ${shortDate(row.created_at_ms)}. A maintainer approves it next.`
|
|
437
|
+
: newer !== null
|
|
438
|
+
? `A newer build has ${row.name}.`
|
|
439
|
+
: `${row.name} is ${row.status}. It joins the next ad hoc build.`}
|
|
440
|
+
</p>
|
|
441
|
+
{newer !== null ? (
|
|
442
|
+
<Link
|
|
443
|
+
className={buttonVariants({ className: ACTION_CLASS })}
|
|
444
|
+
params={{ buildId: newer }}
|
|
445
|
+
to="/native-builds/$buildId"
|
|
446
|
+
>
|
|
447
|
+
Open the newer build
|
|
448
|
+
</Link>
|
|
449
|
+
) : null}
|
|
450
|
+
</div>
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
if (device.receipt === null) {
|
|
454
|
+
return (
|
|
455
|
+
<div className="flex min-w-0 flex-col gap-3">
|
|
456
|
+
{heading}
|
|
457
|
+
<p className="text-xs text-muted-foreground">
|
|
458
|
+
Check this iPhone once more to request it for the next ad hoc build.
|
|
459
|
+
</p>
|
|
460
|
+
<CheckThisIphone build={build} again />
|
|
461
|
+
</div>
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
const trimmed = name.trim();
|
|
465
|
+
return (
|
|
466
|
+
<form
|
|
467
|
+
className="flex min-w-0 flex-col gap-3"
|
|
468
|
+
onSubmit={(event) => {
|
|
469
|
+
event.preventDefault();
|
|
470
|
+
if (trimmed === "") return;
|
|
471
|
+
const readBefore = registryReadAt;
|
|
472
|
+
request.mutate(
|
|
473
|
+
{ receipt: device.receipt!, name: trimmed },
|
|
474
|
+
{
|
|
475
|
+
onSuccess: ({ device: saved }) =>
|
|
476
|
+
setRequested({ device: saved, readBefore }),
|
|
477
|
+
},
|
|
478
|
+
);
|
|
479
|
+
}}
|
|
480
|
+
>
|
|
481
|
+
{heading}
|
|
482
|
+
<Field data-invalid={request.isError || undefined}>
|
|
483
|
+
<FieldLabel htmlFor="ios-device-name">This iPhone's name</FieldLabel>
|
|
484
|
+
<Input
|
|
485
|
+
autoComplete="off"
|
|
486
|
+
className="h-11 sm:h-8"
|
|
487
|
+
id="ios-device-name"
|
|
488
|
+
maxLength={100}
|
|
489
|
+
onChange={(event) => setName(event.target.value)}
|
|
490
|
+
placeholder="Kim's iPhone"
|
|
491
|
+
value={name}
|
|
492
|
+
/>
|
|
493
|
+
<FieldDescription>
|
|
494
|
+
A maintainer approves it, and it joins the next ad hoc build.
|
|
495
|
+
</FieldDescription>
|
|
496
|
+
<FieldError>
|
|
497
|
+
{request.isError
|
|
498
|
+
? "The request didn't go through. Check this iPhone again, then try once more."
|
|
499
|
+
: null}
|
|
500
|
+
</FieldError>
|
|
501
|
+
</Field>
|
|
502
|
+
<Button
|
|
503
|
+
className={ACTION_CLASS}
|
|
504
|
+
disabled={trimmed === "" || request.isPending}
|
|
505
|
+
type="submit"
|
|
506
|
+
>
|
|
507
|
+
{request.isPending ? (
|
|
508
|
+
<Loader2
|
|
509
|
+
className="animate-spin motion-reduce:animate-none"
|
|
510
|
+
data-icon="inline-start"
|
|
511
|
+
/>
|
|
512
|
+
) : (
|
|
513
|
+
<Send data-icon="inline-start" />
|
|
514
|
+
)}
|
|
515
|
+
Request access
|
|
516
|
+
</Button>
|
|
517
|
+
{request.isError ? <CheckThisIphone again build={build} /> : null}
|
|
518
|
+
</form>
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Installing an IPA from this iPhone: the build's IPA says what it allows, read
|
|
524
|
+
* once when the page opens here, so a phone it doesn't list goes to Request
|
|
525
|
+
* access rather than a download iOS refuses at the end. App Store Connect isn't
|
|
526
|
+
* asked: a device registered after this IPA was signed still isn't in it.
|
|
527
|
+
*/
|
|
528
|
+
export function IosInstall({
|
|
529
|
+
build,
|
|
530
|
+
device,
|
|
531
|
+
}: {
|
|
532
|
+
readonly build: NativeBuildRow;
|
|
533
|
+
readonly device: IosDevice;
|
|
534
|
+
}) {
|
|
535
|
+
const { udid } = device;
|
|
536
|
+
const eligibility = useNativeBuildInstallEligibilityQuery(build.id, udid);
|
|
537
|
+
const { refetch } = eligibility;
|
|
538
|
+
const expired = useInstallLinkExpired(
|
|
539
|
+
eligibility.dataUpdatedAt,
|
|
540
|
+
eligibility.data?.status === "installable" &&
|
|
541
|
+
eligibility.data.device === "included",
|
|
542
|
+
);
|
|
543
|
+
useEffect(() => {
|
|
544
|
+
if (expired) void refetch();
|
|
545
|
+
}, [expired, refetch]);
|
|
546
|
+
if (eligibility.isPending) {
|
|
547
|
+
return <Skeleton aria-label="Reading this IPA" className="h-11 w-full" />;
|
|
548
|
+
}
|
|
549
|
+
const result = eligibility.data;
|
|
550
|
+
if (result === undefined || result.status === "unavailable") {
|
|
551
|
+
return (
|
|
552
|
+
<Alert>
|
|
553
|
+
<AlertTriangle />
|
|
554
|
+
<AlertTitle>Installation details unavailable</AlertTitle>
|
|
555
|
+
<AlertDescription>
|
|
556
|
+
The Console couldn't read this IPA from storage in parts, which takes
|
|
557
|
+
an HTTPS download link that answers Range requests. Other ways to
|
|
558
|
+
install still work from a computer.
|
|
559
|
+
</AlertDescription>
|
|
560
|
+
</Alert>
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
if (result.status === "store") {
|
|
564
|
+
return (
|
|
565
|
+
<p className="text-xs text-muted-foreground">
|
|
566
|
+
This IPA is an App Store export, which installs through TestFlight, not
|
|
567
|
+
from this page.
|
|
568
|
+
</p>
|
|
569
|
+
);
|
|
570
|
+
}
|
|
571
|
+
if (result.status === "expired") {
|
|
572
|
+
return (
|
|
573
|
+
<Alert variant="destructive">
|
|
574
|
+
<AlertTriangle />
|
|
575
|
+
<AlertTitle>This build's profile has expired</AlertTitle>
|
|
576
|
+
<AlertDescription>
|
|
577
|
+
It expired on {dayjs(result.expiresAt).format("YYYY-MM-DD")}. A
|
|
578
|
+
maintainer rebuilds it to install again.
|
|
579
|
+
</AlertDescription>
|
|
580
|
+
</Alert>
|
|
581
|
+
);
|
|
582
|
+
}
|
|
583
|
+
const token = result.link.status === "issued" ? result.link.token : null;
|
|
584
|
+
if (result.link.status === "no-secret") {
|
|
585
|
+
return (
|
|
586
|
+
<p className="text-xs text-muted-foreground" role="status">
|
|
587
|
+
Set {result.link.secretName} on the Console to install from this page.
|
|
588
|
+
</p>
|
|
589
|
+
);
|
|
590
|
+
}
|
|
591
|
+
if (token === null) return null;
|
|
592
|
+
if (result.device === "included") {
|
|
593
|
+
return (
|
|
594
|
+
<div className="flex min-w-0 flex-col gap-3">
|
|
595
|
+
<p className="text-sm font-medium">In this build</p>
|
|
596
|
+
{expired ? (
|
|
597
|
+
<RenewInstallLink
|
|
598
|
+
fetching={eligibility.isFetching}
|
|
599
|
+
onRenew={() => void refetch()}
|
|
600
|
+
/>
|
|
601
|
+
) : (
|
|
602
|
+
<InstallButton build={build} token={token} />
|
|
603
|
+
)}
|
|
604
|
+
<InstallNotes />
|
|
605
|
+
</div>
|
|
606
|
+
);
|
|
607
|
+
}
|
|
608
|
+
if (result.device === "not-included") {
|
|
609
|
+
return (
|
|
610
|
+
<NotInThisBuild
|
|
611
|
+
build={build}
|
|
612
|
+
device={device}
|
|
613
|
+
registry={result.registry}
|
|
614
|
+
newerBuild={result.newerBuild}
|
|
615
|
+
canApprove={result.canApprove}
|
|
616
|
+
registryReadAt={eligibility.dataUpdatedAt}
|
|
617
|
+
/>
|
|
618
|
+
);
|
|
619
|
+
}
|
|
620
|
+
return (
|
|
621
|
+
<div className="flex min-w-0 flex-col gap-3">
|
|
622
|
+
<div className="flex min-w-0 flex-col gap-1">
|
|
623
|
+
<p className="text-sm font-medium">Check this iPhone first</p>
|
|
624
|
+
<p className="text-xs text-muted-foreground">
|
|
625
|
+
iOS installs this IPA only on the devices it lists. A profile reads
|
|
626
|
+
this iPhone's ID, then Safari comes back here.
|
|
627
|
+
</p>
|
|
628
|
+
</div>
|
|
629
|
+
<CheckThisIphone build={build} />
|
|
630
|
+
</div>
|
|
631
|
+
);
|
|
632
|
+
}
|