@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,61 @@
|
|
|
1
|
+
import type { NativeBuildRow } from "@hot-updater/plugin-core";
|
|
2
|
+
import { History } from "lucide-react";
|
|
3
|
+
|
|
4
|
+
import { RowReason } from "@/components/RowReason";
|
|
5
|
+
import { nativeBuildArtifacts, nativeBuildLabel } from "@/lib/native-builds";
|
|
6
|
+
|
|
7
|
+
import { storeTrackLabels } from "./StoreSubmission";
|
|
8
|
+
|
|
9
|
+
/** How an `.ipa`'s export method names it, such as "ad hoc IPA". */
|
|
10
|
+
const EXPORT_METHOD_LABELS = {
|
|
11
|
+
"app-store": "App Store",
|
|
12
|
+
"ad-hoc": "ad hoc",
|
|
13
|
+
development: "development",
|
|
14
|
+
enterprise: "enterprise",
|
|
15
|
+
} as const;
|
|
16
|
+
|
|
17
|
+
/** What a path's builds are called, such as "TestFlight build" or "ad hoc IPA". */
|
|
18
|
+
const pathNoun = (build: NativeBuildRow) => {
|
|
19
|
+
const artifact = nativeBuildArtifacts[build.artifact_kind].label;
|
|
20
|
+
const noun =
|
|
21
|
+
build.submitted_to !== null
|
|
22
|
+
? `${storeTrackLabels[build.submitted_to]} build`
|
|
23
|
+
: build.artifact_kind === "ipa" && build.export_method !== null
|
|
24
|
+
? `${EXPORT_METHOD_LABELS[build.export_method]} ${artifact}`
|
|
25
|
+
: artifact;
|
|
26
|
+
return build.is_sandbox ? `sandbox ${noun}` : noun;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** Why a build shows as older: the newer build on its path, when found. */
|
|
30
|
+
export const olderBuildReason = (newer: NativeBuildRow | undefined) => {
|
|
31
|
+
if (newer === undefined) {
|
|
32
|
+
return {
|
|
33
|
+
sentence: "A newer build on its channel reaches people the same way.",
|
|
34
|
+
label: "Older: a newer build on its channel reaches people the same way",
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
const name = nativeBuildLabel(newer);
|
|
38
|
+
return {
|
|
39
|
+
sentence: `A newer ${pathNoun(newer)} exists${name === null ? "." : `: ${name}`}`,
|
|
40
|
+
label: `Older: a newer ${pathNoun(newer)} exists${name === null ? "" : `, ${name}`}`,
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* "Older" on a build a newer one on its path passes over, quiet like the
|
|
46
|
+
* Bundles list's "Unreachable", naming the newer build. The build may still
|
|
47
|
+
* install, so it says no more.
|
|
48
|
+
*/
|
|
49
|
+
export function OlderBuildLabel({
|
|
50
|
+
newer,
|
|
51
|
+
}: {
|
|
52
|
+
/** The newer build on its path, when it was found. */
|
|
53
|
+
readonly newer?: NativeBuildRow;
|
|
54
|
+
}) {
|
|
55
|
+
const reason = olderBuildReason(newer);
|
|
56
|
+
return (
|
|
57
|
+
<RowReason icon={History} label={reason.label} reason={reason.sentence}>
|
|
58
|
+
Older
|
|
59
|
+
</RowReason>
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -124,8 +124,9 @@ export function PatchesCard({
|
|
|
124
124
|
<EmptyTitle>No patches from this build</EmptyTitle>
|
|
125
125
|
<EmptyDescription>
|
|
126
126
|
A deploy adds a patch from this build's bundle while it is its
|
|
127
|
-
scope's
|
|
128
|
-
|
|
127
|
+
scope's store build, or its newest build with none marked, and
|
|
128
|
+
the deploy config turns patches on, with{" "}
|
|
129
|
+
<code className="font-mono">patch</code> in{" "}
|
|
129
130
|
<code className="font-mono">hot-updater.config.ts</code>.
|
|
130
131
|
</EmptyDescription>
|
|
131
132
|
</EmptyHeader>
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
} from "@/lib/native-builds";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* The native build a release's
|
|
16
|
-
* a patch from its built-in bundle: the
|
|
17
|
-
*
|
|
18
|
-
* so it shows none and reads nothing.
|
|
15
|
+
* The native build new deploys to a release's scope patch from, and whether
|
|
16
|
+
* this bundle has a patch from its built-in bundle: the scope's store build,
|
|
17
|
+
* or with none its newest, in two reads at most. A release of an app version
|
|
18
|
+
* range targets many builds, so it shows none and reads nothing.
|
|
19
19
|
*/
|
|
20
20
|
export function ReleaseNativeBuildLink({
|
|
21
21
|
release,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { NativeBuildRow } from "@hot-updater/plugin-core";
|
|
2
|
+
|
|
3
|
+
import { Badge } from "@/components/ui/badge";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* "Sandbox" on a sandbox build, as the registry records it, whatever its
|
|
7
|
+
* channel; nothing on any other. A qualifier of the artifact kind beside it,
|
|
8
|
+
* so a quiet tag: tinted and muted like a neutral channel, the row's chip
|
|
9
|
+
* height, and narrow, as "Store build" is.
|
|
10
|
+
*/
|
|
11
|
+
export function SandboxBadge({
|
|
12
|
+
build,
|
|
13
|
+
}: {
|
|
14
|
+
readonly build: Pick<NativeBuildRow, "is_sandbox">;
|
|
15
|
+
}) {
|
|
16
|
+
return build.is_sandbox ? (
|
|
17
|
+
<Badge className="px-1.5" variant="muted">
|
|
18
|
+
Sandbox
|
|
19
|
+
</Badge>
|
|
20
|
+
) : null;
|
|
21
|
+
}
|
|
@@ -25,6 +25,9 @@ import {
|
|
|
25
25
|
} from "@/components/ui/table";
|
|
26
26
|
import { formatByteSize } from "@/lib/native-builds";
|
|
27
27
|
import type { NativeBuildDetail } from "@/lib/server/nativeBuilds";
|
|
28
|
+
import { shellQuote } from "@/lib/shell";
|
|
29
|
+
|
|
30
|
+
import { CopyableText } from "./CopyableText";
|
|
28
31
|
|
|
29
32
|
/** How the first OTA to a bundle downloads on this build. */
|
|
30
33
|
export type FirstDownload =
|
|
@@ -86,7 +89,27 @@ export function ServedNowCard({
|
|
|
86
89
|
}: {
|
|
87
90
|
readonly detail: NativeBuildDetail;
|
|
88
91
|
}) {
|
|
89
|
-
const { servedNow, patches, catalogScopeKey } = detail;
|
|
92
|
+
const { build, channel, servedNow, patches, catalogScopeKey } = detail;
|
|
93
|
+
// A hosted Console runs no diff, so a marked build whose first OTA has no
|
|
94
|
+
// patch from it gets the command that adds one. The first OTA is the newest
|
|
95
|
+
// release that serves anyone: one at 0% with no cohort serves no install.
|
|
96
|
+
const firstOta = servedNow.find(
|
|
97
|
+
({ rolloutCohortCount, targetCohorts }) =>
|
|
98
|
+
rolloutCohortCount > 0 || targetCohorts.length > 0,
|
|
99
|
+
)?.bundleId;
|
|
100
|
+
const missingPatch =
|
|
101
|
+
build.is_store_build &&
|
|
102
|
+
firstOta !== undefined &&
|
|
103
|
+
firstOta !== null &&
|
|
104
|
+
firstDownloadOf(patches, firstOta).kind === "full"
|
|
105
|
+
? [
|
|
106
|
+
"npx hot-updater patch",
|
|
107
|
+
`-p ${build.platform}`,
|
|
108
|
+
`-c ${shellQuote(channel)}`,
|
|
109
|
+
`-b ${shellQuote(firstOta)}`,
|
|
110
|
+
`--base-artifact-id ${shellQuote(build.min_bundle_id)}`,
|
|
111
|
+
].join(" ")
|
|
112
|
+
: null;
|
|
90
113
|
const scopeLink = (
|
|
91
114
|
<Link
|
|
92
115
|
className="inline-flex items-center gap-0.5 underline-offset-4 hover:underline"
|
|
@@ -202,6 +225,15 @@ export function ServedNowCard({
|
|
|
202
225
|
})}
|
|
203
226
|
</TableBody>
|
|
204
227
|
</Table>
|
|
228
|
+
{missingPatch === null ? null : (
|
|
229
|
+
<div className="flex flex-col gap-2 border-t px-4 py-3 text-xs">
|
|
230
|
+
<p>
|
|
231
|
+
The OTA fresh installs get first has no patch from this store
|
|
232
|
+
build, so they download all of it. Add one from your project:
|
|
233
|
+
</p>
|
|
234
|
+
<CopyableText label="the patch command" value={missingPatch} />
|
|
235
|
+
</div>
|
|
236
|
+
)}
|
|
205
237
|
<p className="border-t px-4 py-3 text-xs text-muted-foreground">
|
|
206
238
|
What the update check serves an install of this build now, newest
|
|
207
239
|
first: not the history. {scopeLink}
|
|
@@ -7,11 +7,14 @@ import { toast } from "sonner";
|
|
|
7
7
|
export function ShortHash({
|
|
8
8
|
value,
|
|
9
9
|
length,
|
|
10
|
+
shown = value.slice(0, length),
|
|
10
11
|
label,
|
|
11
12
|
}: {
|
|
12
13
|
readonly value: string;
|
|
13
14
|
/** How many leading characters show, such as 7 for a commit. */
|
|
14
|
-
readonly length
|
|
15
|
+
readonly length?: number;
|
|
16
|
+
/** What shows in place of the prefix, such as a masked UDID. */
|
|
17
|
+
readonly shown?: string;
|
|
15
18
|
/** What the value is, for the copy button, such as "commit". */
|
|
16
19
|
readonly label: string;
|
|
17
20
|
}) {
|
|
@@ -26,7 +29,7 @@ export function ShortHash({
|
|
|
26
29
|
return (
|
|
27
30
|
<button
|
|
28
31
|
aria-label={`Copy the ${label} ${value}`}
|
|
29
|
-
className="cursor-copy rounded-sm font-mono text-xs whitespace-nowrap tabular-nums underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
|
|
32
|
+
className="relative cursor-copy rounded-sm font-mono after:absolute after:-inset-x-2 after:-inset-y-4 sm:after:hidden text-xs whitespace-nowrap tabular-nums underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
|
|
30
33
|
onClick={(event) => {
|
|
31
34
|
event.stopPropagation();
|
|
32
35
|
void copy();
|
|
@@ -35,7 +38,7 @@ export function ShortHash({
|
|
|
35
38
|
translate="no"
|
|
36
39
|
type="button"
|
|
37
40
|
>
|
|
38
|
-
{
|
|
41
|
+
{shown}
|
|
39
42
|
</button>
|
|
40
43
|
);
|
|
41
44
|
}
|
|
@@ -5,18 +5,19 @@ import { Send } from "lucide-react";
|
|
|
5
5
|
|
|
6
6
|
import { Badge } from "@/components/ui/badge";
|
|
7
7
|
|
|
8
|
+
import { PLAY_TRACKS } from "./playTracks";
|
|
9
|
+
|
|
8
10
|
dayjs.extend(relativeTime);
|
|
9
11
|
|
|
10
12
|
/** Each store track's name as the stores call it. */
|
|
11
13
|
export const storeTrackLabels = {
|
|
12
14
|
testflight: "TestFlight",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
>;
|
|
15
|
+
...Object.fromEntries(
|
|
16
|
+
Object.entries(PLAY_TRACKS).map(([key, value]) => [key, value.label]),
|
|
17
|
+
),
|
|
18
|
+
} as Record<NonNullable<NativeBuildRow["submitted_to"]>, string>;
|
|
18
19
|
|
|
19
|
-
type Submitted = NativeBuildRow & {
|
|
20
|
+
export type Submitted = NativeBuildRow & {
|
|
20
21
|
readonly submitted_to: NonNullable<NativeBuildRow["submitted_to"]>;
|
|
21
22
|
};
|
|
22
23
|
|
|
@@ -39,9 +40,18 @@ function SubmittedAt({ ms }: { readonly ms: number | null }) {
|
|
|
39
40
|
);
|
|
40
41
|
}
|
|
41
42
|
|
|
43
|
+
/** When the submission was recorded, as a tooltip says it. */
|
|
44
|
+
const submittedTitle = (build: Submitted) => {
|
|
45
|
+
const destination = `Submitted to ${storeTrackLabels[build.submitted_to]}`;
|
|
46
|
+
if (build.submitted_at_ms === null) return destination;
|
|
47
|
+
const date = dayjs(build.submitted_at_ms);
|
|
48
|
+
return `${destination} ${date.fromNow()}, ${date.format("YYYY-MM-DD HH:mm:ss")}`;
|
|
49
|
+
};
|
|
50
|
+
|
|
42
51
|
/**
|
|
43
52
|
* The store track a build went to, with the store's label of it, such as
|
|
44
|
-
* "TestFlight 1.7.0 (66)": none for a build no store took.
|
|
53
|
+
* "TestFlight 1.7.0 (66)": none for a build no store took. Its tooltip says
|
|
54
|
+
* when it was submitted.
|
|
45
55
|
*/
|
|
46
56
|
export function StoreSubmissionBadge({
|
|
47
57
|
build,
|
|
@@ -54,11 +64,7 @@ export function StoreSubmissionBadge({
|
|
|
54
64
|
if (!isSubmitted(build)) return null;
|
|
55
65
|
return (
|
|
56
66
|
<span className="inline-flex flex-wrap items-center gap-1.5">
|
|
57
|
-
<Badge
|
|
58
|
-
className="gap-1"
|
|
59
|
-
title={`Submitted to ${storeTrackLabels[build.submitted_to]}`}
|
|
60
|
-
variant="secondary"
|
|
61
|
-
>
|
|
67
|
+
<Badge className="gap-1" title={submittedTitle(build)} variant="muted">
|
|
62
68
|
<Send aria-hidden="true" className="size-3" />
|
|
63
69
|
{storeTrackLabels[build.submitted_to]}
|
|
64
70
|
{build.submitted_version ? (
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** Google Play destination display labels. */
|
|
2
|
+
export const PLAY_TRACKS = {
|
|
3
|
+
"play-internal": {
|
|
4
|
+
label: "Play internal",
|
|
5
|
+
name: "Google Play internal testing",
|
|
6
|
+
},
|
|
7
|
+
"play-closed": {
|
|
8
|
+
label: "Play closed",
|
|
9
|
+
name: "Google Play closed testing",
|
|
10
|
+
},
|
|
11
|
+
"play-open": {
|
|
12
|
+
label: "Play open",
|
|
13
|
+
name: "Google Play open testing",
|
|
14
|
+
},
|
|
15
|
+
"play-production": {
|
|
16
|
+
label: "Play production",
|
|
17
|
+
name: "Google Play production",
|
|
18
|
+
},
|
|
19
|
+
} as const;
|
|
@@ -311,7 +311,10 @@ export function PublishDialog({
|
|
|
311
311
|
type="submit"
|
|
312
312
|
>
|
|
313
313
|
{publish.isPending ? (
|
|
314
|
-
<Loader2
|
|
314
|
+
<Loader2
|
|
315
|
+
className="animate-spin motion-reduce:animate-none"
|
|
316
|
+
data-icon="inline-start"
|
|
317
|
+
/>
|
|
315
318
|
) : (
|
|
316
319
|
<Upload data-icon="inline-start" />
|
|
317
320
|
)}
|
|
@@ -323,7 +323,7 @@ export function VersionsCard({
|
|
|
323
323
|
>
|
|
324
324
|
{versions.isFetchingNextPage ? (
|
|
325
325
|
<Loader2
|
|
326
|
-
className="animate-spin"
|
|
326
|
+
className="animate-spin motion-reduce:animate-none"
|
|
327
327
|
data-icon="inline-start"
|
|
328
328
|
/>
|
|
329
329
|
) : null}
|
|
@@ -370,7 +370,10 @@ export function VersionsCard({
|
|
|
370
370
|
}
|
|
371
371
|
>
|
|
372
372
|
{rollback.isPending ? (
|
|
373
|
-
<Loader2
|
|
373
|
+
<Loader2
|
|
374
|
+
className="animate-spin motion-reduce:animate-none"
|
|
375
|
+
data-icon="inline-start"
|
|
376
|
+
/>
|
|
374
377
|
) : (
|
|
375
378
|
<RotateCcw data-icon="inline-start" />
|
|
376
379
|
)}
|
|
@@ -15,6 +15,8 @@ const badgeVariants = cva(
|
|
|
15
15
|
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
16
16
|
success: "border-success/20 bg-success/10 text-success",
|
|
17
17
|
warning: "border-warning/20 bg-warning/10 text-warning",
|
|
18
|
+
muted:
|
|
19
|
+
"border-badge-muted/20 bg-badge-muted/10 font-medium text-badge-muted",
|
|
18
20
|
destructive:
|
|
19
21
|
"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
|
|
20
22
|
outline: "text-foreground",
|
|
@@ -22,7 +22,9 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
22
22
|
info: <InfoIcon className="size-4" />,
|
|
23
23
|
warning: <TriangleAlertIcon className="size-4" />,
|
|
24
24
|
error: <OctagonXIcon className="size-4" />,
|
|
25
|
-
loading:
|
|
25
|
+
loading: (
|
|
26
|
+
<Loader2Icon className="size-4 animate-spin motion-reduce:animate-none" />
|
|
27
|
+
),
|
|
26
28
|
}}
|
|
27
29
|
style={
|
|
28
30
|
{
|
package/src/index.ts
CHANGED
|
@@ -43,6 +43,15 @@ export type HotUpdaterConsoleConfig = Readonly<{
|
|
|
43
43
|
console?: {
|
|
44
44
|
/** The Git repository whose commits the console links bundles to. */
|
|
45
45
|
gitUrl?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The signed-in emails that may approve iPhones and iPads for ad hoc
|
|
48
|
+
* builds, each of which the next build registers with your Apple account
|
|
49
|
+
* and spends one of its yearly device slots on. Left out or empty, nobody
|
|
50
|
+
* approves in this Console: approve from a terminal with
|
|
51
|
+
* `npx hot-updater native-build devices add`. The emails come from the
|
|
52
|
+
* Console's sign-in, so a custom auth adapter must supply verified ones.
|
|
53
|
+
*/
|
|
54
|
+
deviceApprovers?: readonly string[];
|
|
46
55
|
};
|
|
47
56
|
}>;
|
|
48
57
|
|
package/src/lib/api-rpc.ts
CHANGED
|
@@ -9,11 +9,13 @@ import { assertCanonicalChannelName } from "@hot-updater/protocol";
|
|
|
9
9
|
import { createServerFn } from "@tanstack/react-start";
|
|
10
10
|
|
|
11
11
|
import { consoleAccess } from "./console-access";
|
|
12
|
-
import { DEFAULT_PAGE_LIMIT } from "./constants";
|
|
13
12
|
import { channelIdOf, releaseNativeBuildScope } from "./native-builds";
|
|
14
13
|
import { withPublicBundleMutationErrors } from "./public-bundle-error";
|
|
15
|
-
import {
|
|
16
|
-
|
|
14
|
+
import {
|
|
15
|
+
listReleaseFolds,
|
|
16
|
+
readReleaseFilter,
|
|
17
|
+
readReleaseFold,
|
|
18
|
+
} from "./server/listReleases";
|
|
17
19
|
|
|
18
20
|
type GetBundleInput = {
|
|
19
21
|
bundleId: string;
|
|
@@ -34,7 +36,28 @@ type GetReleasesInput = {
|
|
|
34
36
|
beforeReleaseId?: string;
|
|
35
37
|
/** Releases newer than this id: the previous page. */
|
|
36
38
|
afterReleaseId?: string;
|
|
37
|
-
|
|
39
|
+
/** The selected release, which never folds. */
|
|
40
|
+
releaseId?: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** A fold of a list's page, as the page gave it, and where its last chunk ended. */
|
|
44
|
+
type FoldInput = { from?: string; to: string; after?: string };
|
|
45
|
+
|
|
46
|
+
/** The bounds of a fold, checked: IDs as text. */
|
|
47
|
+
const readFoldInput = (input: FoldInput) => {
|
|
48
|
+
const text = (value: unknown) => typeof value === "string" && value !== "";
|
|
49
|
+
if (
|
|
50
|
+
!text(input.to) ||
|
|
51
|
+
(input.from !== undefined && !text(input.from)) ||
|
|
52
|
+
(input.after !== undefined && !text(input.after))
|
|
53
|
+
) {
|
|
54
|
+
throw new Error("A fold is its to, and optionally from and after.");
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
to: input.to,
|
|
58
|
+
...(input.from === undefined ? {} : { from: input.from }),
|
|
59
|
+
...(input.after === undefined ? {} : { after: input.after }),
|
|
60
|
+
};
|
|
38
61
|
};
|
|
39
62
|
|
|
40
63
|
type ReleaseMutationInput = {
|
|
@@ -48,16 +71,6 @@ type DeleteReleaseInput = {
|
|
|
48
71
|
releaseId: string;
|
|
49
72
|
};
|
|
50
73
|
|
|
51
|
-
const MAX_PAGE_LIMIT = 100;
|
|
52
|
-
|
|
53
|
-
const pageLimit = (limit: number | undefined) => {
|
|
54
|
-
const value = limit ?? DEFAULT_PAGE_LIMIT;
|
|
55
|
-
if (!Number.isSafeInteger(value) || value < 1 || value > MAX_PAGE_LIMIT) {
|
|
56
|
-
throw new Error(`limit must be between 1 and ${MAX_PAGE_LIMIT}.`);
|
|
57
|
-
}
|
|
58
|
-
return value;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
74
|
const prepare = async () => {
|
|
62
75
|
const { prepareConfig } = await import("./server/config.server");
|
|
63
76
|
return prepareConfig();
|
|
@@ -73,16 +86,18 @@ export const getReleases = createServerFn({ method: "GET" })
|
|
|
73
86
|
...(input?.beforeReleaseId === undefined
|
|
74
87
|
? {}
|
|
75
88
|
: { beforeReleaseId: input.beforeReleaseId }),
|
|
76
|
-
|
|
89
|
+
...(input?.releaseId === undefined ? {} : { releaseId: input.releaseId }),
|
|
77
90
|
}))
|
|
78
|
-
.handler(async ({ data }) =>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
.handler(async ({ data }) => listReleaseFolds((await prepare()).core, data));
|
|
92
|
+
|
|
93
|
+
/** One chunk of a release page's fold. */
|
|
94
|
+
export const getReleaseFold = createServerFn({ method: "GET" })
|
|
95
|
+
.middleware([consoleAccess])
|
|
96
|
+
.validator((input: FoldInput & { filter?: ReleaseFilter }) => ({
|
|
97
|
+
filter: readReleaseFilter(input.filter),
|
|
98
|
+
...readFoldInput(input),
|
|
99
|
+
}))
|
|
100
|
+
.handler(async ({ data }) => readReleaseFold((await prepare()).core, data));
|
|
86
101
|
|
|
87
102
|
export const getRelease = createServerFn({ method: "GET" })
|
|
88
103
|
.middleware([consoleAccess])
|
|
@@ -257,22 +272,34 @@ export const getNativeBuilds = createServerFn({ method: "GET" })
|
|
|
257
272
|
.middleware([consoleAccess])
|
|
258
273
|
.validator(
|
|
259
274
|
(
|
|
260
|
-
input:
|
|
261
|
-
| { before?: string; after?: string; channel?: string; limit?: number }
|
|
262
|
-
| undefined,
|
|
275
|
+
input: { before?: string; after?: string; channel?: string } | undefined,
|
|
263
276
|
) => ({
|
|
264
277
|
...(input?.before === undefined ? {} : { before: input.before }),
|
|
265
278
|
...(input?.after === undefined ? {} : { after: input.after }),
|
|
266
279
|
...channelIdFilter(input?.channel),
|
|
267
|
-
limit: pageLimit(input?.limit),
|
|
268
280
|
}),
|
|
269
281
|
)
|
|
270
282
|
.handler(async ({ data }) => {
|
|
271
|
-
const [{ core }, {
|
|
283
|
+
const [{ core }, { listNativeBuildFolds }] = await Promise.all([
|
|
284
|
+
prepare(),
|
|
285
|
+
import("./server/nativeBuilds"),
|
|
286
|
+
]);
|
|
287
|
+
return listNativeBuildFolds(core, data);
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
/** One chunk of a native build page's fold. */
|
|
291
|
+
export const getNativeBuildFold = createServerFn({ method: "GET" })
|
|
292
|
+
.middleware([consoleAccess])
|
|
293
|
+
.validator((input: FoldInput & { channel?: string }) => ({
|
|
294
|
+
...channelIdFilter(input.channel),
|
|
295
|
+
...readFoldInput(input),
|
|
296
|
+
}))
|
|
297
|
+
.handler(async ({ data }) => {
|
|
298
|
+
const [{ core }, { readNativeBuildFold }] = await Promise.all([
|
|
272
299
|
prepare(),
|
|
273
300
|
import("./server/nativeBuilds"),
|
|
274
301
|
]);
|
|
275
|
-
return
|
|
302
|
+
return readNativeBuildFold(core, data);
|
|
276
303
|
});
|
|
277
304
|
|
|
278
305
|
/** A native build's page: the build, its built-in bundle, what it is served, and its patches. */
|
|
@@ -305,9 +332,9 @@ export const getNativeBuildPatches = createServerFn({ method: "GET" })
|
|
|
305
332
|
});
|
|
306
333
|
|
|
307
334
|
/**
|
|
308
|
-
* The
|
|
309
|
-
*
|
|
310
|
-
* reads nothing.
|
|
335
|
+
* The native build new deploys to a release's scope patch from: the scope's
|
|
336
|
+
* store build in one read, or with no mark its newest build in one more. A
|
|
337
|
+
* release of an app version range has no one build, and reads nothing.
|
|
311
338
|
*/
|
|
312
339
|
export const getReleaseNativeBuild = createServerFn({ method: "GET" })
|
|
313
340
|
.middleware([consoleAccess])
|
|
@@ -322,12 +349,30 @@ export const getReleaseNativeBuild = createServerFn({ method: "GET" })
|
|
|
322
349
|
.handler(async ({ data }) => {
|
|
323
350
|
const scope = releaseNativeBuildScope(data);
|
|
324
351
|
if (scope === null) return null;
|
|
325
|
-
|
|
352
|
+
const { core } = await prepare();
|
|
353
|
+
return (
|
|
354
|
+
(await core.findNativeBuild(scope, { storeBuild: true })) ??
|
|
355
|
+
core.findNativeBuild(scope)
|
|
356
|
+
);
|
|
326
357
|
});
|
|
327
358
|
|
|
328
359
|
/**
|
|
329
|
-
*
|
|
330
|
-
*
|
|
360
|
+
* Marks a build as what the store sells, replacing its scope's mark, or clears
|
|
361
|
+
* its mark: only for a signed-in caller. It creates no patch: a hosted Console
|
|
362
|
+
* doesn't run the diff.
|
|
363
|
+
*/
|
|
364
|
+
export const markNativeBuild = createServerFn({ method: "POST" })
|
|
365
|
+
.middleware([consoleAccess])
|
|
366
|
+
.validator((input: { id: string; storeBuild: boolean }) => input)
|
|
367
|
+
.handler(async ({ data }) =>
|
|
368
|
+
(await prepare()).core.markNativeBuild(data.id, {
|
|
369
|
+
storeBuild: data.storeBuild,
|
|
370
|
+
}),
|
|
371
|
+
);
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* The URL a phone downloads a build from when the Console can't sign a link,
|
|
375
|
+
* or null when the storage gives none: the storage's download URL, resolved
|
|
331
376
|
* again each time it is read, since it may expire.
|
|
332
377
|
*/
|
|
333
378
|
export const getNativeBuildDownloadUrl = createServerFn({ method: "GET" })
|
|
@@ -340,3 +385,47 @@ export const getNativeBuildDownloadUrl = createServerFn({ method: "GET" })
|
|
|
340
385
|
]);
|
|
341
386
|
return { url: await resolveNativeBuildDownloadUrl(data.id, deps) };
|
|
342
387
|
});
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* A new signed link to one build's download, which works without the
|
|
391
|
+
* console's sign-in until it expires: only for a signed-in caller.
|
|
392
|
+
*/
|
|
393
|
+
export const createNativeBuildDownloadLink = createServerFn({ method: "POST" })
|
|
394
|
+
.middleware([consoleAccess])
|
|
395
|
+
.validator((input: { id: string }) => input)
|
|
396
|
+
.handler(async ({ data }) => {
|
|
397
|
+
const { issueNativeBuildDownloadLink } =
|
|
398
|
+
await import("./server/nativeBuildDownloadLink");
|
|
399
|
+
return issueNativeBuildDownloadLink(data.id);
|
|
400
|
+
});
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* What an iPhone can do with one build: read from the IPA on demand, one row
|
|
404
|
+
* and a few storage requests, with the Install button's link when it can
|
|
405
|
+
* install. A POST, since it signs that link, and only for a signed-in caller.
|
|
406
|
+
*/
|
|
407
|
+
export const getNativeBuildInstallEligibility = createServerFn({
|
|
408
|
+
method: "POST",
|
|
409
|
+
})
|
|
410
|
+
.middleware([consoleAccess])
|
|
411
|
+
.validator((input: { id: string; udid?: string }) => input)
|
|
412
|
+
.handler(async ({ data }) => {
|
|
413
|
+
const [deps, { checkNativeBuildInstall }] = await Promise.all([
|
|
414
|
+
prepare(),
|
|
415
|
+
import("./server/nativeBuildInstall"),
|
|
416
|
+
]);
|
|
417
|
+
return checkNativeBuildInstall(data.id, data.udid, deps, {
|
|
418
|
+
// Under Apple's refusal only: an approver gets the iOS devices page.
|
|
419
|
+
canApprove: async () => {
|
|
420
|
+
const [{ getRequest }, { requireConsoleAccess }, { iosDeviceViewer }] =
|
|
421
|
+
await Promise.all([
|
|
422
|
+
import("@tanstack/react-start/server"),
|
|
423
|
+
import("./server/auth.server"),
|
|
424
|
+
import("./server/iosDevices"),
|
|
425
|
+
]);
|
|
426
|
+
const principal = await requireConsoleAccess(getRequest());
|
|
427
|
+
return (await iosDeviceViewer(principal, deps.config.deviceApprovers))
|
|
428
|
+
.canApprove;
|
|
429
|
+
},
|
|
430
|
+
});
|
|
431
|
+
});
|