@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
|
@@ -6,6 +6,8 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip";
|
|
|
6
6
|
|
|
7
7
|
interface HashValueDisplayProps {
|
|
8
8
|
value: string;
|
|
9
|
+
/** What the pill shows, shortened, when it isn't `value`; `value` is copied. */
|
|
10
|
+
display?: string;
|
|
9
11
|
maxLength?: number;
|
|
10
12
|
className?: string;
|
|
11
13
|
buttonClassName?: string;
|
|
@@ -18,12 +20,13 @@ export const shortenIdentifier = (value: string, maxLength = 12) =>
|
|
|
18
20
|
|
|
19
21
|
export function HashValueDisplay({
|
|
20
22
|
value,
|
|
23
|
+
display = value,
|
|
21
24
|
maxLength = 12,
|
|
22
25
|
className,
|
|
23
26
|
buttonClassName,
|
|
24
27
|
}: HashValueDisplayProps) {
|
|
25
|
-
const isTruncated = value.length > maxLength;
|
|
26
|
-
const truncated = shortenIdentifier(
|
|
28
|
+
const isTruncated = display !== value || display.length > maxLength;
|
|
29
|
+
const truncated = shortenIdentifier(display, maxLength);
|
|
27
30
|
|
|
28
31
|
const copyValue = async () => {
|
|
29
32
|
try {
|
|
@@ -71,7 +74,7 @@ export function HashValueDisplay({
|
|
|
71
74
|
aria-label={`Copy full value: ${value}`}
|
|
72
75
|
translate="no"
|
|
73
76
|
className={cn(
|
|
74
|
-
"ring-ring/30 bg-muted/40 border-border/70 inline-flex min-w-0 max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]",
|
|
77
|
+
"ring-ring/30 bg-muted/40 border-border/70 relative inline-flex min-w-0 after:absolute after:inset-x-0 after:-inset-y-3 sm:after:hidden max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]",
|
|
75
78
|
"hover:bg-muted/70 active:scale-[0.98] active:bg-muted/85 focus-visible:ring-[2px]",
|
|
76
79
|
"touch-manipulation select-none motion-reduce:transition-none motion-reduce:active:scale-100",
|
|
77
80
|
!isTruncated && "cursor-copy",
|
|
@@ -37,3 +37,13 @@ export function PlatformIcon({ platform, className }: PlatformIconProps) {
|
|
|
37
37
|
}
|
|
38
38
|
return <AndroidIcon className={className} />;
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
/** A platform's icon and name, as a table's Platform column shows it. */
|
|
42
|
+
export function PlatformLabel({ platform }: { platform: "ios" | "android" }) {
|
|
43
|
+
return (
|
|
44
|
+
<span className="flex items-center gap-2">
|
|
45
|
+
<PlatformIcon className="size-4" platform={platform} />
|
|
46
|
+
{platform === "ios" ? "iOS" : "Android"}
|
|
47
|
+
</span>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import relativeTime from "dayjs/plugin/relativeTime";
|
|
3
|
+
|
|
4
|
+
dayjs.extend(relativeTime);
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* When something was created, as the Bundles and Native builds lists show
|
|
8
|
+
* it: relative, such as "4 hours ago", with the exact time on hover. A card
|
|
9
|
+
* has no hover, so `withDate` puts the exact time under it.
|
|
10
|
+
*/
|
|
11
|
+
export function RelativeTime({
|
|
12
|
+
ms,
|
|
13
|
+
withDate = false,
|
|
14
|
+
}: {
|
|
15
|
+
/** Epoch milliseconds. */
|
|
16
|
+
readonly ms: number;
|
|
17
|
+
readonly withDate?: boolean;
|
|
18
|
+
}) {
|
|
19
|
+
const date = dayjs(ms);
|
|
20
|
+
const exact = date.format("YYYY-MM-DD HH:mm:ss");
|
|
21
|
+
return (
|
|
22
|
+
<time
|
|
23
|
+
className="flex flex-col whitespace-nowrap tabular-nums"
|
|
24
|
+
dateTime={date.toISOString()}
|
|
25
|
+
title={exact}
|
|
26
|
+
>
|
|
27
|
+
<span>{date.fromNow()}</span>
|
|
28
|
+
{withDate ? <span className="text-muted-foreground">{exact}</span> : null}
|
|
29
|
+
</time>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import { useId, useState } from "react";
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
Tooltip,
|
|
6
|
+
TooltipContent,
|
|
7
|
+
TooltipTrigger,
|
|
8
|
+
} from "@/components/ui/tooltip";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A quiet word on a row a list shades, such as "Older" or "Unreachable",
|
|
12
|
+
* that says why on a tap, a click, or focus: a touch or a keyboard reaches
|
|
13
|
+
* the reason, not only a pointer's hover. A control of its own, so it opens
|
|
14
|
+
* no row.
|
|
15
|
+
*/
|
|
16
|
+
export function RowReason({
|
|
17
|
+
icon: Icon,
|
|
18
|
+
children,
|
|
19
|
+
label,
|
|
20
|
+
reason,
|
|
21
|
+
}: {
|
|
22
|
+
readonly icon: LucideIcon;
|
|
23
|
+
/** The word the row shows. */
|
|
24
|
+
readonly children: string;
|
|
25
|
+
/** The word and its reason, as a screen reader names the control. */
|
|
26
|
+
readonly label: string;
|
|
27
|
+
/** The reason, as its tooltip says it. */
|
|
28
|
+
readonly reason: string;
|
|
29
|
+
}) {
|
|
30
|
+
const id = useId();
|
|
31
|
+
const [open, setOpen] = useState(false);
|
|
32
|
+
return (
|
|
33
|
+
<Tooltip onOpenChange={setOpen} open={open} triggerId={id}>
|
|
34
|
+
<TooltipTrigger
|
|
35
|
+
aria-describedby={open ? `${id}-reason` : undefined}
|
|
36
|
+
aria-label={label}
|
|
37
|
+
className="relative inline-flex shrink-0 items-center gap-1 rounded-sm text-xs text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3.5 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:after:hidden"
|
|
38
|
+
closeOnClick={false}
|
|
39
|
+
id={id}
|
|
40
|
+
onClick={() => setOpen((value) => !value)}
|
|
41
|
+
type="button"
|
|
42
|
+
>
|
|
43
|
+
<Icon aria-hidden="true" className="size-3.5" />
|
|
44
|
+
{children}
|
|
45
|
+
</TooltipTrigger>
|
|
46
|
+
<TooltipContent
|
|
47
|
+
className="max-w-64"
|
|
48
|
+
id={`${id}-reason`}
|
|
49
|
+
role="tooltip"
|
|
50
|
+
side="bottom"
|
|
51
|
+
>
|
|
52
|
+
{reason}
|
|
53
|
+
</TooltipContent>
|
|
54
|
+
</Tooltip>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Fingerprint, KeyRound, type LucideIcon, Package } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
import { HashValueDisplay } from "./HashValueDisplay";
|
|
4
|
+
|
|
5
|
+
/** A hash behind its icon, shortened to `xxxxxxxx…xxxx` and copied on click. */
|
|
6
|
+
function IconHash({
|
|
7
|
+
icon: Icon,
|
|
8
|
+
value,
|
|
9
|
+
display,
|
|
10
|
+
}: {
|
|
11
|
+
readonly icon: LucideIcon;
|
|
12
|
+
readonly value: string;
|
|
13
|
+
readonly display?: string;
|
|
14
|
+
}) {
|
|
15
|
+
return (
|
|
16
|
+
<span className="flex items-center gap-2">
|
|
17
|
+
<Icon className="size-4 shrink-0 text-muted-foreground" />
|
|
18
|
+
<HashValueDisplay display={display} maxLength={12} value={value} />
|
|
19
|
+
</span>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** The cell of a missing value, such as an imported build's build key. */
|
|
24
|
+
export function NoValue() {
|
|
25
|
+
return <span className="text-muted-foreground">-</span>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* What OTAs target: an app version, or a fingerprint. The Bundles table's
|
|
30
|
+
* Target column and a native build's show one release's target the same way,
|
|
31
|
+
* so the two compare at a glance.
|
|
32
|
+
*/
|
|
33
|
+
export function TargetDisplay({
|
|
34
|
+
appVersion,
|
|
35
|
+
fingerprintHash,
|
|
36
|
+
}: {
|
|
37
|
+
readonly appVersion: string | null;
|
|
38
|
+
readonly fingerprintHash: string | null;
|
|
39
|
+
}) {
|
|
40
|
+
if (appVersion) {
|
|
41
|
+
return (
|
|
42
|
+
<span className="flex items-center gap-2">
|
|
43
|
+
<Package className="size-4 shrink-0 text-muted-foreground" />
|
|
44
|
+
<span className="font-medium">{appVersion}</span>
|
|
45
|
+
</span>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
if (fingerprintHash) {
|
|
49
|
+
return <IconHash icon={Fingerprint} value={fingerprintHash} />;
|
|
50
|
+
}
|
|
51
|
+
return <NoValue />;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* A native build's build key, `nbk1:` and a SHA-256 of the build's inputs,
|
|
56
|
+
* shown past its prefix as a fingerprint is, and copied whole; none for an
|
|
57
|
+
* imported build.
|
|
58
|
+
*/
|
|
59
|
+
export function BuildKeyDisplay({ value }: { readonly value: string | null }) {
|
|
60
|
+
return value ? (
|
|
61
|
+
<IconHash
|
|
62
|
+
display={value.replace(/^nbk1:/, "")}
|
|
63
|
+
icon={KeyRound}
|
|
64
|
+
value={value}
|
|
65
|
+
/>
|
|
66
|
+
) : (
|
|
67
|
+
<NoValue />
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -24,7 +24,12 @@ export function ThemeProvider({
|
|
|
24
24
|
const [theme, setTheme] = useState<Theme>(defaultTheme);
|
|
25
25
|
|
|
26
26
|
useEffect(() => {
|
|
27
|
-
|
|
27
|
+
let stored: Theme | null = null;
|
|
28
|
+
try {
|
|
29
|
+
stored = localStorage.getItem(storageKey) as Theme | null;
|
|
30
|
+
} catch {
|
|
31
|
+
// A browser that keeps nothing: the default theme stands.
|
|
32
|
+
}
|
|
28
33
|
if (stored) {
|
|
29
34
|
setTheme(stored);
|
|
30
35
|
}
|
|
@@ -97,7 +102,11 @@ export function ThemeProvider({
|
|
|
97
102
|
const value = {
|
|
98
103
|
theme,
|
|
99
104
|
setTheme: (newTheme: Theme) => {
|
|
100
|
-
|
|
105
|
+
try {
|
|
106
|
+
localStorage.setItem(storageKey, newTheme);
|
|
107
|
+
} catch {
|
|
108
|
+
// A browser that keeps nothing: the theme lasts this visit.
|
|
109
|
+
}
|
|
101
110
|
setTheme(newTheme);
|
|
102
111
|
},
|
|
103
112
|
};
|
|
@@ -133,7 +133,7 @@ export function ChannelManagementDialog({
|
|
|
133
133
|
{createChannel.isPending ? (
|
|
134
134
|
<Loader2
|
|
135
135
|
data-icon="inline-start"
|
|
136
|
-
className="animate-spin"
|
|
136
|
+
className="animate-spin motion-reduce:animate-none"
|
|
137
137
|
/>
|
|
138
138
|
) : (
|
|
139
139
|
<Plus data-icon="inline-start" />
|
|
@@ -147,7 +147,7 @@ export function ChannelManagementDialog({
|
|
|
147
147
|
<div className="max-h-72 overflow-y-auto rounded-lg border">
|
|
148
148
|
{isLoadingChannels ? (
|
|
149
149
|
<div className="flex h-20 items-center justify-center text-muted-foreground">
|
|
150
|
-
<Loader2 className="mr-2 size-3.5 animate-spin" />
|
|
150
|
+
<Loader2 className="mr-2 size-3.5 animate-spin motion-reduce:animate-none" />
|
|
151
151
|
Loading channels
|
|
152
152
|
</div>
|
|
153
153
|
) : channels.length === 0 ? (
|
|
@@ -161,14 +161,9 @@ export function ChannelManagementDialog({
|
|
|
161
161
|
key={channel.id}
|
|
162
162
|
className="flex min-h-12 items-center gap-3 px-3 py-2"
|
|
163
163
|
>
|
|
164
|
-
<
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
</p>
|
|
168
|
-
<p className="truncate font-mono text-[10px] text-muted-foreground">
|
|
169
|
-
{channel.id}
|
|
170
|
-
</p>
|
|
171
|
-
</div>
|
|
164
|
+
<p className="min-w-0 flex-1 truncate text-xs font-medium">
|
|
165
|
+
{channel.name}
|
|
166
|
+
</p>
|
|
172
167
|
<Button
|
|
173
168
|
type="button"
|
|
174
169
|
variant="ghost"
|
|
@@ -137,7 +137,7 @@ export function BundleMovementSummary({
|
|
|
137
137
|
>
|
|
138
138
|
{input ? (
|
|
139
139
|
<Link
|
|
140
|
-
className="min-w-0 rounded-sm hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
140
|
+
className="relative min-w-0 rounded-sm after:absolute after:inset-x-0 after:-inset-y-3 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden"
|
|
141
141
|
to="/insights"
|
|
142
142
|
search={{
|
|
143
143
|
platform: input.platform,
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { Link } from "@tanstack/react-router";
|
|
2
2
|
import { ArrowUpRight, CircleCheck, History } from "lucide-react";
|
|
3
|
+
import { toast } from "sonner";
|
|
3
4
|
|
|
5
|
+
import { BundleIdDisplay } from "@/components/BundleIdDisplay";
|
|
6
|
+
import { ChannelBadge } from "@/components/ChannelBadge";
|
|
7
|
+
import { BuildKeyDisplay, TargetDisplay } from "@/components/TargetDisplay";
|
|
4
8
|
import { TimestampDisplay } from "@/components/TimestampDisplay";
|
|
5
|
-
import {
|
|
9
|
+
import { Button } from "@/components/ui/button";
|
|
6
10
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
|
11
|
+
import { useMarkNativeBuildMutation } from "@/lib/api";
|
|
7
12
|
import {
|
|
8
13
|
nativeBuildArtifacts,
|
|
9
|
-
|
|
14
|
+
nativeBuildLabel,
|
|
10
15
|
platformLabel,
|
|
11
16
|
} from "@/lib/native-builds";
|
|
12
17
|
import type { NativeBuildDetail } from "@/lib/server/nativeBuilds";
|
|
13
18
|
|
|
14
19
|
import { CommitLink } from "./CommitLink";
|
|
15
|
-
import { ShortHash } from "./ShortHash";
|
|
16
20
|
import { isSubmitted, StoreSubmissionBadge } from "./StoreSubmission";
|
|
17
21
|
|
|
18
22
|
function Row({
|
|
@@ -30,44 +34,94 @@ function Row({
|
|
|
30
34
|
);
|
|
31
35
|
}
|
|
32
36
|
|
|
33
|
-
/**
|
|
37
|
+
/** Marks or clears the build where the card says what the mark does. */
|
|
38
|
+
function StoreBuildAction({ detail }: { readonly detail: NativeBuildDetail }) {
|
|
39
|
+
const { build } = detail;
|
|
40
|
+
const mark = useMarkNativeBuildMutation();
|
|
41
|
+
// No store sells a sandbox build, so core refuses the mark.
|
|
42
|
+
if (build.is_sandbox) return null;
|
|
43
|
+
const storeBuild = !build.is_store_build;
|
|
44
|
+
return (
|
|
45
|
+
<Button
|
|
46
|
+
className="min-h-11 shrink-0 sm:min-h-8"
|
|
47
|
+
disabled={mark.isPending}
|
|
48
|
+
onClick={() =>
|
|
49
|
+
mark.mutate(
|
|
50
|
+
{ id: build.id, storeBuild },
|
|
51
|
+
{
|
|
52
|
+
onSuccess: () => {
|
|
53
|
+
toast.success(
|
|
54
|
+
storeBuild ? "Marked as the store build" : "Mark cleared",
|
|
55
|
+
);
|
|
56
|
+
},
|
|
57
|
+
onError: (error) => {
|
|
58
|
+
toast.error("Could not change the mark", {
|
|
59
|
+
description: error.message,
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
size="sm"
|
|
66
|
+
type="button"
|
|
67
|
+
variant="outline"
|
|
68
|
+
>
|
|
69
|
+
{storeBuild ? "Mark as store build" : "Clear mark"}
|
|
70
|
+
</Button>
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Which build new deploys patch from: this one, as the store build or as the
|
|
76
|
+
* newest with no mark, or another, which it links to.
|
|
77
|
+
*/
|
|
34
78
|
function BaselineStatus({ detail }: { readonly detail: NativeBuildDetail }) {
|
|
35
|
-
const { build, newestInScope } = detail;
|
|
36
|
-
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
79
|
+
const { build, newestInScope, storeBuildInScope } = detail;
|
|
80
|
+
const base = storeBuildInScope ?? newestInScope;
|
|
81
|
+
if (base === null) return null;
|
|
82
|
+
const isBase = base.id === build.id;
|
|
83
|
+
const Icon = isBase ? CircleCheck : History;
|
|
84
|
+
return (
|
|
85
|
+
<div className="flex flex-col gap-3 rounded-md border bg-muted/40 p-3 text-xs sm:flex-row sm:items-center sm:justify-between">
|
|
86
|
+
<div className="flex items-start gap-2">
|
|
87
|
+
<Icon
|
|
41
88
|
aria-hidden="true"
|
|
42
89
|
className="mt-0.5 size-3.5 shrink-0 text-muted-foreground"
|
|
43
90
|
/>
|
|
44
|
-
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
91
|
+
{storeBuildInScope?.id === build.id ? (
|
|
92
|
+
<p>
|
|
93
|
+
<span className="font-medium">Store build.</span> New deploys to
|
|
94
|
+
this scope patch from this build.
|
|
95
|
+
</p>
|
|
96
|
+
) : isBase ? (
|
|
97
|
+
<p>
|
|
98
|
+
<span className="font-medium">Current baseline.</span> The newest
|
|
99
|
+
build, and no store build is marked. New deploys to this scope patch
|
|
100
|
+
from this build.
|
|
101
|
+
</p>
|
|
102
|
+
) : (
|
|
103
|
+
<p>
|
|
104
|
+
<span className="font-medium">Not the base.</span> New deploys patch
|
|
105
|
+
from{" "}
|
|
106
|
+
<Link
|
|
107
|
+
className="inline-flex items-center gap-0.5 font-medium underline underline-offset-4"
|
|
108
|
+
params={{ buildId: base.id }}
|
|
109
|
+
to="/native-builds/$buildId"
|
|
110
|
+
>
|
|
111
|
+
{nativeBuildLabel(base) ?? (
|
|
112
|
+
<>
|
|
113
|
+
{platformLabel(base.platform)}{" "}
|
|
114
|
+
{nativeBuildArtifacts[base.artifact_kind].label} ·{" "}
|
|
115
|
+
<TimestampDisplay uuid={base.id} />
|
|
116
|
+
</>
|
|
117
|
+
)}
|
|
118
|
+
<ArrowUpRight aria-hidden="true" className="size-3" />
|
|
119
|
+
</Link>
|
|
120
|
+
, so this one gets no new patches.
|
|
121
|
+
</p>
|
|
122
|
+
)}
|
|
48
123
|
</div>
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
return (
|
|
52
|
-
<div className="flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs">
|
|
53
|
-
<History
|
|
54
|
-
aria-hidden="true"
|
|
55
|
-
className="mt-0.5 size-3.5 shrink-0 text-muted-foreground"
|
|
56
|
-
/>
|
|
57
|
-
<p>
|
|
58
|
-
<span className="font-medium">Superseded</span> by{" "}
|
|
59
|
-
<Link
|
|
60
|
-
className="inline-flex items-center gap-0.5 font-medium underline underline-offset-4"
|
|
61
|
-
params={{ buildId: newestInScope.id }}
|
|
62
|
-
to="/native-builds/$buildId"
|
|
63
|
-
>
|
|
64
|
-
{platformLabel(newestInScope.platform)}{" "}
|
|
65
|
-
{nativeBuildArtifacts[newestInScope.artifact_kind].label} ·{" "}
|
|
66
|
-
<TimestampDisplay uuid={newestInScope.id} />
|
|
67
|
-
<ArrowUpRight aria-hidden="true" className="size-3" />
|
|
68
|
-
</Link>
|
|
69
|
-
. New deploys patch from that build, so this one gets no new patches.
|
|
70
|
-
</p>
|
|
124
|
+
<StoreBuildAction detail={detail} />
|
|
71
125
|
</div>
|
|
72
126
|
);
|
|
73
127
|
}
|
|
@@ -82,7 +136,6 @@ export function BuiltInBundleCard({
|
|
|
82
136
|
readonly detail: NativeBuildDetail;
|
|
83
137
|
}) {
|
|
84
138
|
const { build, builtInBundle, channel } = detail;
|
|
85
|
-
const target = nativeBuildTarget(build);
|
|
86
139
|
const childCount = builtInBundle?.childCount ?? 0;
|
|
87
140
|
|
|
88
141
|
return (
|
|
@@ -95,9 +148,7 @@ export function BuiltInBundleCard({
|
|
|
95
148
|
<CardContent className="flex flex-col gap-4 p-4 sm:p-6">
|
|
96
149
|
<dl className="flex flex-col gap-3">
|
|
97
150
|
<Row label="Bundle ID">
|
|
98
|
-
<
|
|
99
|
-
{build.min_bundle_id}
|
|
100
|
-
</span>
|
|
151
|
+
<BundleIdDisplay bundleId={build.min_bundle_id} />
|
|
101
152
|
</Row>
|
|
102
153
|
<Row label="OTAs patching from it">
|
|
103
154
|
<span className="tabular-nums">
|
|
@@ -108,32 +159,31 @@ export function BuiltInBundleCard({
|
|
|
108
159
|
<span className="flex flex-wrap items-center gap-1.5">
|
|
109
160
|
<Link
|
|
110
161
|
aria-label={`Show the builds that embed ${channel}`}
|
|
162
|
+
className="relative rounded-md after:absolute after:inset-x-0 after:-inset-y-[11px] sm:after:hidden"
|
|
111
163
|
search={{ channel }}
|
|
112
164
|
to="/native-builds"
|
|
113
165
|
>
|
|
114
|
-
<
|
|
115
|
-
{channel}
|
|
116
|
-
</Badge>
|
|
166
|
+
<ChannelBadge channel={channel} />
|
|
117
167
|
</Link>
|
|
118
168
|
<span className="text-xs">{platformLabel(build.platform)}</span>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
169
|
+
</span>
|
|
170
|
+
</Row>
|
|
171
|
+
{/* The Native builds table's Target and Build key cells. */}
|
|
172
|
+
<Row label="Target">
|
|
173
|
+
<span className="text-xs">
|
|
174
|
+
<TargetDisplay
|
|
175
|
+
appVersion={build.app_version}
|
|
176
|
+
fingerprintHash={build.fingerprint_hash}
|
|
177
|
+
/>
|
|
178
|
+
</span>
|
|
179
|
+
</Row>
|
|
180
|
+
<Row label="Build key">
|
|
181
|
+
<span className="text-xs">
|
|
182
|
+
<BuildKeyDisplay value={build.build_key} />
|
|
133
183
|
</span>
|
|
134
184
|
</Row>
|
|
135
185
|
{!build.build_number ? null : (
|
|
136
|
-
<Row label="Build
|
|
186
|
+
<Row label="Build">
|
|
137
187
|
<span className="font-mono text-xs tabular-nums" translate="no">
|
|
138
188
|
{build.build_number}
|
|
139
189
|
</span>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NoValue } from "@/components/TargetDisplay";
|
|
1
2
|
import { useConfigQuery } from "@/lib/api";
|
|
2
3
|
import { getCommitUrl } from "@/lib/git";
|
|
3
4
|
|
|
@@ -10,13 +11,13 @@ import { ShortHash } from "./ShortHash";
|
|
|
10
11
|
*/
|
|
11
12
|
export function CommitLink({ hash }: { readonly hash: string | null }) {
|
|
12
13
|
const config = useConfigQuery();
|
|
13
|
-
if (hash === null) return <
|
|
14
|
+
if (hash === null) return <NoValue />;
|
|
14
15
|
const url = getCommitUrl(config.data?.console.gitUrl, hash);
|
|
15
16
|
return url === null ? (
|
|
16
17
|
<ShortHash label="commit" length={7} value={hash} />
|
|
17
18
|
) : (
|
|
18
19
|
<a
|
|
19
|
-
className="font-mono text-xs whitespace-nowrap underline-offset-4 hover:underline"
|
|
20
|
+
className="relative font-mono text-xs whitespace-nowrap underline-offset-4 after:absolute after:-inset-x-2 after:-inset-y-4 hover:underline sm:after:hidden"
|
|
20
21
|
href={url}
|
|
21
22
|
onClick={(event) => event.stopPropagation()}
|
|
22
23
|
rel="noreferrer"
|