@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
|
@@ -1,21 +1,34 @@
|
|
|
1
1
|
import type { NativeBuildRow } from "@hot-updater/plugin-core";
|
|
2
|
-
import
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
|
+
import {
|
|
4
|
+
AlertTriangle,
|
|
5
|
+
ChevronRight,
|
|
6
|
+
Download,
|
|
7
|
+
ExternalLink,
|
|
8
|
+
} from "lucide-react";
|
|
9
|
+
import { type ReactNode, useId, useState } from "react";
|
|
3
10
|
|
|
4
11
|
import { QrCode } from "@/components/QrCode";
|
|
5
12
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
6
13
|
import { buttonVariants } from "@/components/ui/button";
|
|
7
14
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
8
15
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
9
|
-
import { useNativeBuildDownloadUrlQuery } from "@/lib/api";
|
|
10
16
|
import {
|
|
11
|
-
|
|
17
|
+
useNativeBuildDownloadLinkQuery,
|
|
18
|
+
useNativeBuildDownloadUrlQuery,
|
|
19
|
+
} from "@/lib/api";
|
|
20
|
+
import {
|
|
12
21
|
nativeBuildDownloadPath,
|
|
13
22
|
nativeBuildFileName,
|
|
14
|
-
|
|
23
|
+
nativeBuildInstallCommand,
|
|
24
|
+
nativeBuildSignedDownloadUrl,
|
|
15
25
|
} from "@/lib/native-builds";
|
|
26
|
+
import type { NativeBuildDownloadLinkResult } from "@/lib/server/nativeBuildDownloadLink";
|
|
16
27
|
|
|
17
28
|
import { CopyableText } from "./CopyableText";
|
|
18
|
-
import {
|
|
29
|
+
import { IosInstall, useIosDevice } from "./IosInstall";
|
|
30
|
+
import { PLAY_TRACKS } from "./playTracks";
|
|
31
|
+
import { isSubmitted, type Submitted } from "./StoreSubmission";
|
|
19
32
|
|
|
20
33
|
/**
|
|
21
34
|
* What an artifact installs on, where the file alone isn't enough: the card
|
|
@@ -39,11 +52,71 @@ const QR_CAPTIONS: Record<NativeBuildRow["artifact_kind"], string> = {
|
|
|
39
52
|
};
|
|
40
53
|
|
|
41
54
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
55
|
+
* An IPA's QR code holds this page rather than a file: the iPhone that scans it
|
|
56
|
+
* checks whether the IPA lists it before anything downloads, and installs here.
|
|
57
|
+
*/
|
|
58
|
+
function ScannablePage() {
|
|
59
|
+
const { origin, pathname } = window.location;
|
|
60
|
+
return (
|
|
61
|
+
<div className="flex flex-col items-center gap-2">
|
|
62
|
+
<QrCode
|
|
63
|
+
className="size-48"
|
|
64
|
+
label="Open this page on an iPhone"
|
|
65
|
+
value={`${origin}${pathname}`}
|
|
66
|
+
/>
|
|
67
|
+
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
68
|
+
Scan with an iPhone to install this build from here. The phone signs in
|
|
69
|
+
to the Console first.
|
|
70
|
+
</p>
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** A QR code of the build's download URL, with what scanning it gets. */
|
|
76
|
+
function ScannableUrl({
|
|
77
|
+
build,
|
|
78
|
+
url,
|
|
79
|
+
note,
|
|
80
|
+
}: {
|
|
81
|
+
readonly build: NativeBuildRow;
|
|
82
|
+
readonly url: string;
|
|
83
|
+
readonly note?: string;
|
|
84
|
+
}) {
|
|
85
|
+
return (
|
|
86
|
+
<div className="flex flex-col items-center gap-2">
|
|
87
|
+
<QrCode
|
|
88
|
+
className="size-48"
|
|
89
|
+
label={`Download ${nativeBuildFileName(build)}`}
|
|
90
|
+
value={url}
|
|
91
|
+
/>
|
|
92
|
+
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
93
|
+
{QR_CAPTIONS[build.artifact_kind]}
|
|
94
|
+
</p>
|
|
95
|
+
{note ? (
|
|
96
|
+
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
97
|
+
{note}
|
|
98
|
+
</p>
|
|
99
|
+
) : null}
|
|
100
|
+
</div>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function QrProblem({ message }: { readonly message: string }) {
|
|
105
|
+
return (
|
|
106
|
+
<Alert variant="destructive">
|
|
107
|
+
<AlertTriangle />
|
|
108
|
+
<AlertTitle>The download link couldn't be created</AlertTitle>
|
|
109
|
+
<AlertDescription>{message}</AlertDescription>
|
|
110
|
+
</Alert>
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The QR code when the Console can't sign a link: the storage's URL, which a
|
|
116
|
+
* phone opens without the Console's sign-in, but only until it expires.
|
|
44
117
|
*/
|
|
45
|
-
function
|
|
46
|
-
const downloadUrl = useNativeBuildDownloadUrlQuery(build.id
|
|
118
|
+
function StorageQrCode({ build }: { readonly build: NativeBuildRow }) {
|
|
119
|
+
const downloadUrl = useNativeBuildDownloadUrlQuery(build.id);
|
|
47
120
|
const url = downloadUrl.data?.url;
|
|
48
121
|
|
|
49
122
|
// A storage without download URLs serves the build only through the
|
|
@@ -61,30 +134,19 @@ function DownloadQrCode({ build }: { readonly build: NativeBuildRow }) {
|
|
|
61
134
|
</div>
|
|
62
135
|
);
|
|
63
136
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
) : (
|
|
78
|
-
<QrCode
|
|
79
|
-
className="size-48"
|
|
80
|
-
label={`Download ${nativeBuildFileName(build)}`}
|
|
81
|
-
value={url}
|
|
82
|
-
/>
|
|
83
|
-
)}
|
|
84
|
-
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
85
|
-
{QR_CAPTIONS[build.artifact_kind]}
|
|
86
|
-
</p>
|
|
87
|
-
</div>
|
|
137
|
+
if (url !== undefined) {
|
|
138
|
+
return (
|
|
139
|
+
<ScannableUrl
|
|
140
|
+
build={build}
|
|
141
|
+
note="This link expires. If the download fails, reload this page."
|
|
142
|
+
url={url}
|
|
143
|
+
/>
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
return downloadUrl.isError ? (
|
|
147
|
+
<QrProblem message={downloadUrl.error.message} />
|
|
148
|
+
) : (
|
|
149
|
+
<Skeleton className="size-48" />
|
|
88
150
|
);
|
|
89
151
|
}
|
|
90
152
|
|
|
@@ -97,6 +159,60 @@ function SubmittedVersion({ build }: { readonly build: NativeBuildRow }) {
|
|
|
97
159
|
);
|
|
98
160
|
}
|
|
99
161
|
|
|
162
|
+
/**
|
|
163
|
+
* A build a store took installs from the store, so the card leads with it, and
|
|
164
|
+
* the file stays for keeping, with no QR code or signed link to ask for.
|
|
165
|
+
*/
|
|
166
|
+
function StoreInstallCard({ build }: { readonly build: Submitted }) {
|
|
167
|
+
const store =
|
|
168
|
+
build.submitted_to === "testflight"
|
|
169
|
+
? {
|
|
170
|
+
name: "App Store Connect",
|
|
171
|
+
url: "https://appstoreconnect.apple.com/apps",
|
|
172
|
+
}
|
|
173
|
+
: { name: "Play Console", url: "https://play.google.com/console" };
|
|
174
|
+
return (
|
|
175
|
+
<Card className="overflow-hidden shadow-sm">
|
|
176
|
+
<CardHeader className="border-b px-4 py-3">
|
|
177
|
+
<CardTitle className="text-sm">
|
|
178
|
+
<h2>Install</h2>
|
|
179
|
+
</CardTitle>
|
|
180
|
+
</CardHeader>
|
|
181
|
+
<CardContent className="flex min-w-0 flex-col gap-4 p-4 sm:p-6">
|
|
182
|
+
<InstallSteps build={build} />
|
|
183
|
+
<div className="flex flex-col gap-2 sm:flex-row sm:flex-wrap">
|
|
184
|
+
<a
|
|
185
|
+
className={buttonVariants({
|
|
186
|
+
className:
|
|
187
|
+
"h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
|
|
188
|
+
})}
|
|
189
|
+
href={store.url}
|
|
190
|
+
rel="noreferrer"
|
|
191
|
+
target="_blank"
|
|
192
|
+
>
|
|
193
|
+
<ExternalLink data-icon="inline-start" />
|
|
194
|
+
Open {store.name}
|
|
195
|
+
</a>
|
|
196
|
+
<a
|
|
197
|
+
className={buttonVariants({
|
|
198
|
+
className:
|
|
199
|
+
"h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
|
|
200
|
+
variant: "outline",
|
|
201
|
+
})}
|
|
202
|
+
download
|
|
203
|
+
href={nativeBuildDownloadPath(build.id)}
|
|
204
|
+
>
|
|
205
|
+
<Download data-icon="inline-start" />
|
|
206
|
+
<span className="text-left [overflow-wrap:anywhere]">
|
|
207
|
+
Download {nativeBuildFileName(build)}
|
|
208
|
+
</span>
|
|
209
|
+
</a>
|
|
210
|
+
</div>
|
|
211
|
+
</CardContent>
|
|
212
|
+
</Card>
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
100
216
|
/**
|
|
101
217
|
* How else the artifact installs, beside its QR code's caption and its
|
|
102
218
|
* download: none of it repeats the caption.
|
|
@@ -107,11 +223,27 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
|
|
|
107
223
|
return (
|
|
108
224
|
<div className="flex min-w-0 flex-col gap-2">
|
|
109
225
|
<p className="text-xs text-muted-foreground">
|
|
110
|
-
|
|
226
|
+
Your browser needs the "Install unknown apps" permission.
|
|
227
|
+
</p>
|
|
228
|
+
{build.is_sandbox ? (
|
|
229
|
+
// It already is the build the advice below points to.
|
|
230
|
+
<p className="text-xs text-muted-foreground">
|
|
231
|
+
Its .sandbox ID installs it beside a Play copy.
|
|
232
|
+
</p>
|
|
233
|
+
) : (
|
|
234
|
+
<p className="text-xs text-muted-foreground">
|
|
235
|
+
If this package is already installed with another signing key,
|
|
236
|
+
such as a Play copy, the install fails. Uninstall that copy first,
|
|
237
|
+
or build with sandbox: true, whose .sandbox ID installs beside it.
|
|
238
|
+
</p>
|
|
239
|
+
)}
|
|
240
|
+
<p className="text-xs text-muted-foreground">
|
|
241
|
+
On an emulator or a phone over USB, install and open it from your
|
|
242
|
+
project:
|
|
111
243
|
</p>
|
|
112
244
|
<CopyableText
|
|
113
245
|
label="the install command"
|
|
114
|
-
value={
|
|
246
|
+
value={nativeBuildInstallCommand(build)}
|
|
115
247
|
/>
|
|
116
248
|
</div>
|
|
117
249
|
);
|
|
@@ -119,21 +251,27 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
|
|
|
119
251
|
return (
|
|
120
252
|
<div className="flex min-w-0 flex-col gap-2">
|
|
121
253
|
<p className="text-xs text-muted-foreground">
|
|
122
|
-
It runs only in the iOS Simulator.
|
|
254
|
+
It runs only in the iOS Simulator. In your project, install and open
|
|
255
|
+
it on the booted one:
|
|
123
256
|
</p>
|
|
124
257
|
<CopyableText
|
|
125
258
|
label="the install command"
|
|
126
|
-
value={
|
|
259
|
+
value={nativeBuildInstallCommand(build)}
|
|
127
260
|
/>
|
|
128
261
|
</div>
|
|
129
262
|
);
|
|
130
263
|
case "aab":
|
|
131
264
|
return isSubmitted(build) ? (
|
|
132
265
|
<p className="text-xs text-muted-foreground">
|
|
133
|
-
Submitted to
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
266
|
+
Submitted to{" "}
|
|
267
|
+
{build.submitted_to === "play-internal"
|
|
268
|
+
? PLAY_TRACKS["play-internal"].name
|
|
269
|
+
: PLAY_TRACKS[build.submitted_to as keyof typeof PLAY_TRACKS]
|
|
270
|
+
.label}{" "}
|
|
271
|
+
as <SubmittedVersion build={build} />.{" "}
|
|
272
|
+
{build.submitted_to === "play-production" ? "Users" : "Testers"} get
|
|
273
|
+
it once its release is rolled out; on an app Play Console hasn't
|
|
274
|
+
published, the release is a draft you roll out in Play Console.
|
|
137
275
|
</p>
|
|
138
276
|
) : (
|
|
139
277
|
<div className="flex min-w-0 flex-col gap-2">
|
|
@@ -149,12 +287,15 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
|
|
|
149
287
|
case "ipa":
|
|
150
288
|
return isSubmitted(build) ? (
|
|
151
289
|
<p className="text-xs text-muted-foreground">
|
|
152
|
-
On TestFlight as <SubmittedVersion build={build} />.
|
|
290
|
+
On TestFlight as <SubmittedVersion build={build} />. Internal testers
|
|
291
|
+
install it from the TestFlight app once App Store Connect has
|
|
292
|
+
processed it, and a preview's pull request comment shows that state.
|
|
153
293
|
</p>
|
|
154
294
|
) : (
|
|
155
295
|
<div className="flex min-w-0 flex-col gap-2">
|
|
156
296
|
<p className="text-xs text-muted-foreground">
|
|
157
|
-
Over USB, Xcode or Apple Configurator installs it. For testers
|
|
297
|
+
Over USB, Xcode or Apple Configurator installs it. For testers
|
|
298
|
+
without a registered device:
|
|
158
299
|
</p>
|
|
159
300
|
<CopyableText
|
|
160
301
|
label="the TestFlight command"
|
|
@@ -166,13 +307,114 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
|
|
|
166
307
|
}
|
|
167
308
|
|
|
168
309
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
171
|
-
|
|
172
|
-
|
|
310
|
+
* The signed link to copy, which a script or a teammate uses without signing
|
|
311
|
+
* in. A local Console has none, and says nothing about it on every build.
|
|
312
|
+
*/
|
|
313
|
+
function SignedLink({
|
|
314
|
+
link,
|
|
315
|
+
url,
|
|
316
|
+
}: {
|
|
317
|
+
readonly link: NativeBuildDownloadLinkResult | undefined;
|
|
318
|
+
readonly url: string | null;
|
|
319
|
+
}) {
|
|
320
|
+
if (link?.status === "no-secret") {
|
|
321
|
+
return (
|
|
322
|
+
<p className="text-xs text-muted-foreground" role="status">
|
|
323
|
+
Set {link.secretName} on the Console to create links.
|
|
324
|
+
</p>
|
|
325
|
+
);
|
|
326
|
+
}
|
|
327
|
+
if (link?.status !== "issued" || url === null) return null;
|
|
328
|
+
return (
|
|
329
|
+
<div className="flex min-w-0 flex-col gap-2">
|
|
330
|
+
<CopyableText label="the download link" value={url} />
|
|
331
|
+
<p className="text-xs text-muted-foreground">
|
|
332
|
+
Anyone with this link can download this build until{" "}
|
|
333
|
+
<span className="whitespace-nowrap">
|
|
334
|
+
{dayjs(link.expiresAt).format("YYYY-MM-DD")}.
|
|
335
|
+
</span>
|
|
336
|
+
</p>
|
|
337
|
+
</div>
|
|
338
|
+
);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Installs one native build: an IPA or AAB a store took, from the store; an IPA
|
|
343
|
+
* on the iPhone that opens this page, whose QR code on any other screen holds
|
|
344
|
+
* this page; every other artifact by a QR code of its signed link, which a phone
|
|
345
|
+
* without a session scans, and by download here or the link itself; an APK or a
|
|
346
|
+
* simulator app also with `native-build install`, and an IPA's or an AAB's
|
|
347
|
+
* testers through its store. Where the Console can't sign, the QR code holds the
|
|
348
|
+
* storage's URL and the download asks for the session.
|
|
173
349
|
*/
|
|
174
350
|
export function InstallCard({ build }: { readonly build: NativeBuildRow }) {
|
|
351
|
+
return isSubmitted(build) &&
|
|
352
|
+
(build.artifact_kind === "ipa" || build.artifact_kind === "aab") ? (
|
|
353
|
+
<StoreInstallCard build={build} />
|
|
354
|
+
) : (
|
|
355
|
+
<FileInstallCard build={build} />
|
|
356
|
+
);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* On the iPhone, what installs the IPA from a computer, closed under the one
|
|
361
|
+
* action this phone takes: over USB, TestFlight, the download, and its link.
|
|
362
|
+
*/
|
|
363
|
+
function OtherWaysToInstall({ children }: { readonly children: ReactNode }) {
|
|
364
|
+
const [open, setOpen] = useState(false);
|
|
365
|
+
const id = useId();
|
|
366
|
+
return (
|
|
367
|
+
<div className="flex min-w-0 flex-col gap-3 border-t pt-3">
|
|
368
|
+
<button
|
|
369
|
+
aria-controls={id}
|
|
370
|
+
aria-expanded={open}
|
|
371
|
+
className="group/other -mx-1 flex min-h-11 items-center gap-1.5 self-start rounded-md px-1 text-xs font-medium text-muted-foreground transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:min-h-8"
|
|
372
|
+
onClick={() => setOpen((value) => !value)}
|
|
373
|
+
type="button"
|
|
374
|
+
>
|
|
375
|
+
<ChevronRight
|
|
376
|
+
aria-hidden="true"
|
|
377
|
+
className="size-3.5 shrink-0 transition-transform group-aria-expanded/other:rotate-90 motion-reduce:transition-none"
|
|
378
|
+
/>
|
|
379
|
+
Other ways to install
|
|
380
|
+
</button>
|
|
381
|
+
<div hidden={!open} id={id}>
|
|
382
|
+
{children}
|
|
383
|
+
</div>
|
|
384
|
+
</div>
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
function FileInstallCard({ build }: { readonly build: NativeBuildRow }) {
|
|
175
389
|
const fileName = nativeBuildFileName(build);
|
|
390
|
+
const link = useNativeBuildDownloadLinkQuery(build.id);
|
|
391
|
+
const signedUrl =
|
|
392
|
+
link.data?.status === "issued"
|
|
393
|
+
? nativeBuildSignedDownloadUrl(window.location, build.id, link.data.token)
|
|
394
|
+
: null;
|
|
395
|
+
const device = useIosDevice();
|
|
396
|
+
const ipa = build.artifact_kind === "ipa";
|
|
397
|
+
const onPhone = ipa && device?.ios === true;
|
|
398
|
+
const otherWays = (
|
|
399
|
+
<div className="flex min-w-0 flex-col gap-4">
|
|
400
|
+
<InstallSteps build={build} />
|
|
401
|
+
<a
|
|
402
|
+
className={buttonVariants({
|
|
403
|
+
className:
|
|
404
|
+
"h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit",
|
|
405
|
+
variant: "outline",
|
|
406
|
+
})}
|
|
407
|
+
download
|
|
408
|
+
href={signedUrl ?? nativeBuildDownloadPath(build.id)}
|
|
409
|
+
>
|
|
410
|
+
<Download data-icon="inline-start" />
|
|
411
|
+
<span className="text-left [overflow-wrap:anywhere]">
|
|
412
|
+
Download {fileName}
|
|
413
|
+
</span>
|
|
414
|
+
</a>
|
|
415
|
+
<SignedLink link={link.data} url={signedUrl} />
|
|
416
|
+
</div>
|
|
417
|
+
);
|
|
176
418
|
return (
|
|
177
419
|
<Card className="overflow-hidden shadow-sm">
|
|
178
420
|
<CardHeader className="border-b px-4 py-3">
|
|
@@ -180,26 +422,27 @@ export function InstallCard({ build }: { readonly build: NativeBuildRow }) {
|
|
|
180
422
|
<h2>Install</h2>
|
|
181
423
|
</CardTitle>
|
|
182
424
|
</CardHeader>
|
|
183
|
-
|
|
184
|
-
<
|
|
185
|
-
|
|
186
|
-
<
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
<
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
425
|
+
{onPhone ? (
|
|
426
|
+
<CardContent className="flex min-w-0 flex-col gap-4 p-4 sm:p-6">
|
|
427
|
+
<IosInstall build={build} device={device} />
|
|
428
|
+
<OtherWaysToInstall>{otherWays}</OtherWaysToInstall>
|
|
429
|
+
</CardContent>
|
|
430
|
+
) : (
|
|
431
|
+
<CardContent className="grid gap-6 p-4 sm:grid-cols-[12rem_minmax(0,1fr)] sm:p-6">
|
|
432
|
+
{ipa && signedUrl !== null ? (
|
|
433
|
+
<ScannablePage />
|
|
434
|
+
) : signedUrl !== null ? (
|
|
435
|
+
<ScannableUrl build={build} url={signedUrl} />
|
|
436
|
+
) : link.data !== undefined ? (
|
|
437
|
+
<StorageQrCode build={build} />
|
|
438
|
+
) : link.isError ? (
|
|
439
|
+
<QrProblem message={link.error.message} />
|
|
440
|
+
) : (
|
|
441
|
+
<Skeleton className="size-48" />
|
|
442
|
+
)}
|
|
443
|
+
{otherWays}
|
|
444
|
+
</CardContent>
|
|
445
|
+
)}
|
|
203
446
|
</Card>
|
|
204
447
|
);
|
|
205
448
|
}
|