@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
package/src/routes/index.tsx
CHANGED
|
@@ -3,29 +3,54 @@ import { createFileRoute, Link } from "@tanstack/react-router";
|
|
|
3
3
|
import {
|
|
4
4
|
AlertTriangle,
|
|
5
5
|
ChevronDown,
|
|
6
|
-
ChevronLeft,
|
|
7
6
|
ChevronRight,
|
|
8
7
|
CircleOff,
|
|
9
|
-
Fingerprint,
|
|
10
8
|
Filter,
|
|
11
9
|
Package,
|
|
12
10
|
RotateCcw,
|
|
13
11
|
Tags,
|
|
14
12
|
X,
|
|
15
13
|
} from "lucide-react";
|
|
16
|
-
import { Fragment, type
|
|
14
|
+
import { Fragment, type ReactNode, useEffect, useState } from "react";
|
|
17
15
|
|
|
18
16
|
import { BundleIdDisplay } from "@/components/BundleIdDisplay";
|
|
19
17
|
import { ChannelBadge } from "@/components/ChannelBadge";
|
|
18
|
+
import {
|
|
19
|
+
DataCard,
|
|
20
|
+
DataCardSkeletons,
|
|
21
|
+
DataCardsEmpty,
|
|
22
|
+
DataTable,
|
|
23
|
+
DataTableBody,
|
|
24
|
+
DataTableFrame,
|
|
25
|
+
DataTableEmpty,
|
|
26
|
+
DataTableFullRow,
|
|
27
|
+
DataTablePagination,
|
|
28
|
+
DataTableRow,
|
|
29
|
+
openOutsideControls,
|
|
30
|
+
DataTableSkeletonRows,
|
|
31
|
+
} from "@/components/DataTable";
|
|
20
32
|
import { EnabledStatusIcon } from "@/components/EnabledStatusIcon";
|
|
21
33
|
import { BundleChildrenPanel } from "@/components/features/bundles/BundleChildrenPanel";
|
|
22
34
|
import { ChannelManagementDialog } from "@/components/features/channels/ChannelManagementDialog";
|
|
23
35
|
import { useReleaseColumns } from "@/components/features/FeatureSlots";
|
|
36
|
+
import { CopyableText } from "@/components/features/native-builds/CopyableText";
|
|
24
37
|
import { ReleaseEditorSheet } from "@/components/features/releases/ReleaseEditorSheet";
|
|
25
38
|
import { ReleaseStateBadge } from "@/components/features/releases/ReleaseStateBadge";
|
|
26
|
-
import {
|
|
27
|
-
|
|
39
|
+
import {
|
|
40
|
+
DataCardFold,
|
|
41
|
+
DataTableFold,
|
|
42
|
+
foldKey,
|
|
43
|
+
foldLabel,
|
|
44
|
+
FoldStatus,
|
|
45
|
+
foldedTotal,
|
|
46
|
+
groupsOf,
|
|
47
|
+
useOpenFolds,
|
|
48
|
+
} from "@/components/FoldedRows";
|
|
49
|
+
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
50
|
+
import { RelativeTime } from "@/components/RelativeTime";
|
|
28
51
|
import { RolloutPercentageBadge } from "@/components/RolloutPercentageBadge";
|
|
52
|
+
import { RowReason } from "@/components/RowReason";
|
|
53
|
+
import { TargetDisplay } from "@/components/TargetDisplay";
|
|
29
54
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
30
55
|
import { Badge } from "@/components/ui/badge";
|
|
31
56
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
@@ -39,22 +64,17 @@ import {
|
|
|
39
64
|
} from "@/components/ui/select";
|
|
40
65
|
import { SidebarTrigger } from "@/components/ui/sidebar";
|
|
41
66
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
42
|
-
import {
|
|
43
|
-
Table,
|
|
44
|
-
TableBody,
|
|
45
|
-
TableCell,
|
|
46
|
-
TableHead,
|
|
47
|
-
TableHeader,
|
|
48
|
-
TableRow,
|
|
49
|
-
} from "@/components/ui/table";
|
|
67
|
+
import { TableCell, TableHead, TableRow } from "@/components/ui/table";
|
|
50
68
|
import { useIsMobile } from "@/hooks/use-mobile";
|
|
51
69
|
import {
|
|
52
70
|
useBundleChildCountsQuery,
|
|
53
71
|
useBundleChildrenQuery,
|
|
54
72
|
useBundleQuery,
|
|
55
73
|
useChannelsQuery,
|
|
74
|
+
useReleaseFoldQuery,
|
|
56
75
|
useReleasesQuery,
|
|
57
76
|
} from "@/lib/api";
|
|
77
|
+
import type { Fold } from "@/lib/server/foldedPage";
|
|
58
78
|
import type { ReleaseListRow } from "@/lib/server/releaseReachability";
|
|
59
79
|
import { cn } from "@/lib/utils";
|
|
60
80
|
|
|
@@ -66,7 +86,11 @@ import {
|
|
|
66
86
|
validateReleaseSearch,
|
|
67
87
|
} from "./-releases-search";
|
|
68
88
|
|
|
69
|
-
|
|
89
|
+
/** A fold of unreachable bundles: "1 unreachable bundle", "2 …". */
|
|
90
|
+
const UNREACHABLE_BUNDLES = {
|
|
91
|
+
one: "unreachable bundle",
|
|
92
|
+
other: "unreachable bundles",
|
|
93
|
+
} as const;
|
|
70
94
|
const platformFilterItems = [
|
|
71
95
|
{ label: "iOS", value: "ios" },
|
|
72
96
|
{ label: "Android", value: "android" },
|
|
@@ -76,29 +100,6 @@ const statusFilterItems = [
|
|
|
76
100
|
{ label: "Enabled", value: "enabled" },
|
|
77
101
|
{ label: "Disabled", value: "disabled" },
|
|
78
102
|
];
|
|
79
|
-
const dateFormatter = new Intl.DateTimeFormat(undefined, {
|
|
80
|
-
dateStyle: "medium",
|
|
81
|
-
timeStyle: "short",
|
|
82
|
-
});
|
|
83
|
-
const tableDateFormatter = new Intl.DateTimeFormat(undefined, {
|
|
84
|
-
dateStyle: "medium",
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Opens a bundle from a click anywhere on its row or card, except on a
|
|
89
|
-
* control inside it, which keeps its own action.
|
|
90
|
-
*/
|
|
91
|
-
const openOutsideControls =
|
|
92
|
-
(open: () => void) => (event: MouseEvent<HTMLElement>) => {
|
|
93
|
-
if (
|
|
94
|
-
event.target instanceof Element &&
|
|
95
|
-
event.target.closest("button, a, input, select, textarea")
|
|
96
|
-
) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
open();
|
|
100
|
-
};
|
|
101
|
-
|
|
102
103
|
export const Route = createFileRoute("/")({
|
|
103
104
|
component: BundlesPage,
|
|
104
105
|
validateSearch: validateReleaseSearch,
|
|
@@ -130,7 +131,7 @@ function BundleFilterToolbar({
|
|
|
130
131
|
|
|
131
132
|
return (
|
|
132
133
|
<header className="sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-2 border-b bg-background px-3 py-3 sm:h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:py-0 sm:backdrop-blur-sm">
|
|
133
|
-
<SidebarTrigger className="-ml-1" />
|
|
134
|
+
<SidebarTrigger className="-ml-1 size-11 lg:size-7" />
|
|
134
135
|
<h1 className="sr-only">Bundles</h1>
|
|
135
136
|
<div className="ml-1 flex items-center gap-1.5 text-muted-foreground sm:ml-2">
|
|
136
137
|
<Filter className="size-3.5" />
|
|
@@ -147,7 +148,7 @@ function BundleFilterToolbar({
|
|
|
147
148
|
>
|
|
148
149
|
<SelectTrigger
|
|
149
150
|
aria-label="Channel"
|
|
150
|
-
className="
|
|
151
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 sm:w-[140px] sm:data-[size=default]:h-8"
|
|
151
152
|
>
|
|
152
153
|
<SelectValue />
|
|
153
154
|
</SelectTrigger>
|
|
@@ -172,7 +173,7 @@ function BundleFilterToolbar({
|
|
|
172
173
|
>
|
|
173
174
|
<SelectTrigger
|
|
174
175
|
aria-label="Platform"
|
|
175
|
-
className="
|
|
176
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8"
|
|
176
177
|
title={channelSelected ? undefined : "Choose a channel first"}
|
|
177
178
|
>
|
|
178
179
|
<SelectValue />
|
|
@@ -207,7 +208,7 @@ function BundleFilterToolbar({
|
|
|
207
208
|
>
|
|
208
209
|
<SelectTrigger
|
|
209
210
|
aria-label="Status"
|
|
210
|
-
className="
|
|
211
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8"
|
|
211
212
|
>
|
|
212
213
|
<SelectValue />
|
|
213
214
|
</SelectTrigger>
|
|
@@ -221,6 +222,7 @@ function BundleFilterToolbar({
|
|
|
221
222
|
</Select>
|
|
222
223
|
<Button
|
|
223
224
|
aria-label="Manage channels"
|
|
225
|
+
className="size-11 max-sm:order-1 sm:size-7"
|
|
224
226
|
onClick={onManageChannels}
|
|
225
227
|
size="icon-sm"
|
|
226
228
|
title="Manage channels"
|
|
@@ -229,11 +231,11 @@ function BundleFilterToolbar({
|
|
|
229
231
|
<Tags />
|
|
230
232
|
</Button>
|
|
231
233
|
{search.bundleId ? (
|
|
232
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
234
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
233
235
|
Artifact filter
|
|
234
236
|
<button
|
|
235
237
|
aria-label="Clear artifact filter"
|
|
236
|
-
className="rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
238
|
+
className="relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden"
|
|
237
239
|
onClick={() => onChange({ bundleId: undefined })}
|
|
238
240
|
type="button"
|
|
239
241
|
>
|
|
@@ -242,11 +244,11 @@ function BundleFilterToolbar({
|
|
|
242
244
|
</Badge>
|
|
243
245
|
) : null}
|
|
244
246
|
{search.scopeKey ? (
|
|
245
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
247
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
246
248
|
Target filter
|
|
247
249
|
<button
|
|
248
250
|
aria-label="Clear target filter"
|
|
249
|
-
className="rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
251
|
+
className="relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden"
|
|
250
252
|
onClick={() => onChange({ scopeKey: undefined })}
|
|
251
253
|
type="button"
|
|
252
254
|
>
|
|
@@ -256,7 +258,7 @@ function BundleFilterToolbar({
|
|
|
256
258
|
) : null}
|
|
257
259
|
{hasFilters ? (
|
|
258
260
|
<Button
|
|
259
|
-
className="h-
|
|
261
|
+
className="h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8"
|
|
260
262
|
onClick={onClear}
|
|
261
263
|
size="sm"
|
|
262
264
|
variant="ghost"
|
|
@@ -299,7 +301,7 @@ function BundleEntry({
|
|
|
299
301
|
: "Show advanced artifact diagnostics"
|
|
300
302
|
}
|
|
301
303
|
title="Advanced artifact diagnostics"
|
|
302
|
-
className="size-
|
|
304
|
+
className="size-11 shrink-0 touch-manipulation sm:size-8"
|
|
303
305
|
onClick={onToggleExpand}
|
|
304
306
|
size="icon"
|
|
305
307
|
type="button"
|
|
@@ -308,7 +310,7 @@ function BundleEntry({
|
|
|
308
310
|
{expanded ? <ChevronDown /> : <ChevronRight />}
|
|
309
311
|
</Button>
|
|
310
312
|
) : (
|
|
311
|
-
<span aria-hidden="true" className="size-
|
|
313
|
+
<span aria-hidden="true" className="size-11 shrink-0 sm:size-8" />
|
|
312
314
|
)}
|
|
313
315
|
<button
|
|
314
316
|
aria-label={`Open details for ID ${release.id}`}
|
|
@@ -330,14 +332,13 @@ function BundleEntry({
|
|
|
330
332
|
</Badge>
|
|
331
333
|
) : null}
|
|
332
334
|
{release.currentlyUnreachable ? (
|
|
333
|
-
<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
<RowReason
|
|
336
|
+
icon={CircleOff}
|
|
337
|
+
label="Unreachable: no device gets this bundle with the current delivery settings."
|
|
338
|
+
reason="No device gets this bundle with the current delivery settings."
|
|
337
339
|
>
|
|
338
|
-
<CircleOff className="size-3.5" />
|
|
339
340
|
Unreachable
|
|
340
|
-
</
|
|
341
|
+
</RowReason>
|
|
341
342
|
) : null}
|
|
342
343
|
</div>
|
|
343
344
|
);
|
|
@@ -404,47 +405,155 @@ function ReleaseBundleChildrenPanel({
|
|
|
404
405
|
);
|
|
405
406
|
}
|
|
406
407
|
|
|
408
|
+
/** What a group of release rows renders with: its own patch counts and feature slots. */
|
|
409
|
+
interface RowContext {
|
|
410
|
+
readonly patchCounts: Readonly<Record<string, number | undefined>>;
|
|
411
|
+
readonly slotReleases: readonly {
|
|
412
|
+
readonly releaseId: string;
|
|
413
|
+
readonly platform: "ios" | "android";
|
|
414
|
+
readonly channel: string;
|
|
415
|
+
readonly builtIn: boolean;
|
|
416
|
+
}[];
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* The patch counts and feature slots of a group of releases: the page's
|
|
421
|
+
* reachable ones, or one fold's, so opening a fold reads its own rows'
|
|
422
|
+
* and changes no other query.
|
|
423
|
+
*/
|
|
424
|
+
function useRowContext(
|
|
425
|
+
releases: readonly ReleaseListRow[],
|
|
426
|
+
channels: readonly ChannelRow[],
|
|
427
|
+
): RowContext {
|
|
428
|
+
const bundleIds = Array.from(
|
|
429
|
+
new Set(
|
|
430
|
+
releases.flatMap((release) =>
|
|
431
|
+
release.bundle_id ? [release.bundle_id] : [],
|
|
432
|
+
),
|
|
433
|
+
),
|
|
434
|
+
);
|
|
435
|
+
const patchCountsQuery = useBundleChildCountsQuery(bundleIds);
|
|
436
|
+
return {
|
|
437
|
+
patchCounts: patchCountsQuery.data ?? {},
|
|
438
|
+
slotReleases: releases.flatMap((release) => {
|
|
439
|
+
const channel = channels.find(
|
|
440
|
+
(item) => item.id === release.channel_id,
|
|
441
|
+
)?.name;
|
|
442
|
+
return channel
|
|
443
|
+
? [
|
|
444
|
+
{
|
|
445
|
+
releaseId: release.id,
|
|
446
|
+
platform: release.platform,
|
|
447
|
+
channel,
|
|
448
|
+
builtIn: !release.bundle_id,
|
|
449
|
+
},
|
|
450
|
+
]
|
|
451
|
+
: [];
|
|
452
|
+
}),
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/** Whether a fold of the page holds `releaseId`: IDs order the list. */
|
|
457
|
+
const foldHolds = (fold: Fold, releaseId: string) =>
|
|
458
|
+
releaseId >= fold.to && (fold.from === undefined || releaseId < fold.from);
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* A fold of unreachable bundles, where they sit in the list: closed, the
|
|
462
|
+
* number it holds; open, those bundles in order, subdued, read a chunk at a
|
|
463
|
+
* time once it opens.
|
|
464
|
+
*/
|
|
465
|
+
function UnreachableBundlesFold({
|
|
466
|
+
fold,
|
|
467
|
+
filter,
|
|
468
|
+
channels,
|
|
469
|
+
columns,
|
|
470
|
+
isMobile,
|
|
471
|
+
open,
|
|
472
|
+
onOpenChange,
|
|
473
|
+
render,
|
|
474
|
+
}: {
|
|
475
|
+
readonly fold: Fold;
|
|
476
|
+
readonly filter: ReturnType<typeof releaseFilterOf>;
|
|
477
|
+
readonly channels: readonly ChannelRow[];
|
|
478
|
+
readonly columns: number;
|
|
479
|
+
readonly isMobile: boolean;
|
|
480
|
+
readonly open: boolean;
|
|
481
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
482
|
+
readonly render: (release: ReleaseListRow, ctx: RowContext) => ReactNode;
|
|
483
|
+
}) {
|
|
484
|
+
const query = useReleaseFoldQuery(
|
|
485
|
+
filter,
|
|
486
|
+
{ ...(fold.from === undefined ? {} : { from: fold.from }), to: fold.to },
|
|
487
|
+
open,
|
|
488
|
+
);
|
|
489
|
+
const rows = query.data?.pages.flatMap((page) => page.rows) ?? [];
|
|
490
|
+
const ctx = useRowContext(rows, channels);
|
|
491
|
+
const statusColumns = isMobile ? undefined : columns;
|
|
492
|
+
const status = query.isError ? (
|
|
493
|
+
<FoldStatus
|
|
494
|
+
columns={statusColumns}
|
|
495
|
+
label="Unreachable bundles"
|
|
496
|
+
onRetry={() => void query.refetch()}
|
|
497
|
+
state="error"
|
|
498
|
+
/>
|
|
499
|
+
) : query.isPending || query.isFetchingNextPage ? (
|
|
500
|
+
<FoldStatus
|
|
501
|
+
columns={statusColumns}
|
|
502
|
+
label="Loading unreachable bundles"
|
|
503
|
+
state="loading"
|
|
504
|
+
/>
|
|
505
|
+
) : query.hasNextPage ? (
|
|
506
|
+
<FoldStatus
|
|
507
|
+
columns={statusColumns}
|
|
508
|
+
label="Unreachable bundles"
|
|
509
|
+
onMore={() => void query.fetchNextPage()}
|
|
510
|
+
state="more"
|
|
511
|
+
/>
|
|
512
|
+
) : null;
|
|
513
|
+
const props = {
|
|
514
|
+
label: foldLabel(fold, UNREACHABLE_BUNDLES),
|
|
515
|
+
open,
|
|
516
|
+
onOpenChange,
|
|
517
|
+
panelId: `bundle-fold-${fold.to}`,
|
|
518
|
+
};
|
|
519
|
+
return isMobile ? (
|
|
520
|
+
<DataCardFold {...props}>
|
|
521
|
+
{rows.map((release) => render(release, ctx))}
|
|
522
|
+
{status}
|
|
523
|
+
</DataCardFold>
|
|
524
|
+
) : (
|
|
525
|
+
<DataTableFold {...props} columns={columns}>
|
|
526
|
+
{rows.map((release) => render(release, ctx))}
|
|
527
|
+
{status}
|
|
528
|
+
</DataTableFold>
|
|
529
|
+
);
|
|
530
|
+
}
|
|
531
|
+
|
|
407
532
|
function BundlesPage() {
|
|
408
533
|
const search = Route.useSearch();
|
|
409
534
|
const navigate = Route.useNavigate();
|
|
410
535
|
const isMobile = useIsMobile();
|
|
411
536
|
const [channelsOpen, setChannelsOpen] = useState(false);
|
|
412
537
|
const [expandedReleaseId, setExpandedReleaseId] = useState<string>();
|
|
538
|
+
const folds = useOpenFolds();
|
|
539
|
+
const filter = releaseFilterOf(search);
|
|
413
540
|
const releasesQuery = useReleasesQuery({
|
|
414
541
|
afterReleaseId: search.afterReleaseId,
|
|
415
542
|
beforeReleaseId: search.beforeReleaseId,
|
|
416
|
-
filter
|
|
417
|
-
|
|
543
|
+
filter,
|
|
544
|
+
// The selected release never folds, so a link to it shows its row.
|
|
545
|
+
releaseId: search.releaseId,
|
|
418
546
|
});
|
|
419
547
|
const channelsQuery = useChannelsQuery();
|
|
420
548
|
const channels = channelsQuery.data ?? [];
|
|
421
|
-
const
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
release.bundle_id ? [release.bundle_id] : [],
|
|
426
|
-
),
|
|
427
|
-
),
|
|
549
|
+
const entries = releasesQuery.data?.entries ?? [];
|
|
550
|
+
// The page's reachable releases (and the selected one), outside its folds.
|
|
551
|
+
const releases = entries.flatMap((entry) =>
|
|
552
|
+
entry.kind === "row" ? [entry.row] : [],
|
|
428
553
|
);
|
|
429
|
-
const
|
|
430
|
-
const patchCountsByBundleId = patchCountsQuery.data ?? {};
|
|
554
|
+
const pageContext = useRowContext(releases, channels);
|
|
431
555
|
const nextCursor = releasesQuery.data?.next;
|
|
432
556
|
const previousCursor = releasesQuery.data?.previous;
|
|
433
|
-
const slotReleases = releases.flatMap((release) => {
|
|
434
|
-
const channel = channels.find(
|
|
435
|
-
(item) => item.id === release.channel_id,
|
|
436
|
-
)?.name;
|
|
437
|
-
return channel
|
|
438
|
-
? [
|
|
439
|
-
{
|
|
440
|
-
releaseId: release.id,
|
|
441
|
-
platform: release.platform,
|
|
442
|
-
channel,
|
|
443
|
-
builtIn: !release.bundle_id,
|
|
444
|
-
},
|
|
445
|
-
]
|
|
446
|
-
: [];
|
|
447
|
-
});
|
|
448
557
|
// Features add columns, such as release activity where the console reads it.
|
|
449
558
|
const featureColumns = useReleaseColumns();
|
|
450
559
|
const columnCount = 10 + featureColumns.length;
|
|
@@ -452,19 +561,37 @@ function BundlesPage() {
|
|
|
452
561
|
channels.map((channel) => [channel.id, channel.name]),
|
|
453
562
|
);
|
|
454
563
|
|
|
564
|
+
// A lineage panel shows only with its row: whatever hides the row, a fold
|
|
565
|
+
// closing, a filter, a refetch or Back, closes the panel, and opening the
|
|
566
|
+
// row again opens none.
|
|
567
|
+
const visible = (releaseId: string) =>
|
|
568
|
+
releases.some((release) => release.id === releaseId) ||
|
|
569
|
+
entries.some(
|
|
570
|
+
(entry) =>
|
|
571
|
+
entry.kind === "fold" &&
|
|
572
|
+
folds.isOpen(foldKey(entry)) &&
|
|
573
|
+
foldHolds(entry, releaseId),
|
|
574
|
+
);
|
|
575
|
+
const lineageVisible =
|
|
576
|
+
expandedReleaseId !== undefined && visible(expandedReleaseId);
|
|
455
577
|
useEffect(() => {
|
|
456
|
-
if (
|
|
457
|
-
expandedReleaseId &&
|
|
458
|
-
!releases.some((release) => release.id === expandedReleaseId)
|
|
459
|
-
) {
|
|
578
|
+
if (expandedReleaseId !== undefined && !lineageVisible) {
|
|
460
579
|
setExpandedReleaseId(undefined);
|
|
461
580
|
}
|
|
462
|
-
}, [expandedReleaseId,
|
|
581
|
+
}, [expandedReleaseId, lineageVisible]);
|
|
463
582
|
|
|
464
583
|
const go = (nextSearch: ReleaseSearch, resetScroll = true) =>
|
|
465
584
|
void navigate({ resetScroll, search: nextSearch, to: "/" });
|
|
466
585
|
const changeFilters = (filters: Partial<ReleaseSearch>) =>
|
|
467
586
|
go(updateReleaseFilters(search, filters));
|
|
587
|
+
// Selecting a bundle in an open fold splits the fold around it: the part
|
|
588
|
+
// under it opens too, so no row moves out of sight.
|
|
589
|
+
const select = (release: ReleaseListRow) => {
|
|
590
|
+
if (!releases.some(({ id }) => id === release.id)) {
|
|
591
|
+
folds.set(release.id, true);
|
|
592
|
+
}
|
|
593
|
+
go({ ...search, releaseId: release.id }, false);
|
|
594
|
+
};
|
|
468
595
|
const openChildBundle = (bundle: Bundle) => {
|
|
469
596
|
const childRelease = releases.find(
|
|
470
597
|
(release) => release.bundle_id === bundle.id,
|
|
@@ -482,8 +609,10 @@ function BundlesPage() {
|
|
|
482
609
|
const previousSearch: ReleaseSearch | null = previousCursor
|
|
483
610
|
? {
|
|
484
611
|
...search,
|
|
485
|
-
afterReleaseId:
|
|
486
|
-
|
|
612
|
+
afterReleaseId:
|
|
613
|
+
"after" in previousCursor ? previousCursor.after : undefined,
|
|
614
|
+
beforeReleaseId:
|
|
615
|
+
"before" in previousCursor ? previousCursor.before : undefined,
|
|
487
616
|
releaseId: undefined,
|
|
488
617
|
}
|
|
489
618
|
: null;
|
|
@@ -502,6 +631,272 @@ function BundlesPage() {
|
|
|
502
631
|
releaseId: undefined,
|
|
503
632
|
};
|
|
504
633
|
|
|
634
|
+
const renderCard = (release: ReleaseListRow, ctx: RowContext) => {
|
|
635
|
+
const channelName =
|
|
636
|
+
channelNames.get(release.channel_id) ?? release.channel_id;
|
|
637
|
+
const patchCount = release.bundle_id
|
|
638
|
+
? ctx.patchCounts[release.bundle_id]
|
|
639
|
+
: 0;
|
|
640
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
641
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
642
|
+
|
|
643
|
+
return (
|
|
644
|
+
<Fragment key={release.id}>
|
|
645
|
+
{/* The ID button opens it for keyboards and screen
|
|
646
|
+
readers; a tap anywhere else on the card does too. */}
|
|
647
|
+
<DataCard
|
|
648
|
+
aria-label={`Bundle ${release.id}`}
|
|
649
|
+
className={cn(
|
|
650
|
+
"gap-3",
|
|
651
|
+
release.currentlyUnreachable &&
|
|
652
|
+
"bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100",
|
|
653
|
+
isExpanded && "border-b-0 bg-primary/5",
|
|
654
|
+
)}
|
|
655
|
+
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
656
|
+
onClick={openOutsideControls(() => select(release))}
|
|
657
|
+
>
|
|
658
|
+
<div className="flex items-start justify-between gap-3">
|
|
659
|
+
<BundleEntry
|
|
660
|
+
expanded={isExpanded}
|
|
661
|
+
onOpen={() => select(release)}
|
|
662
|
+
onToggleExpand={() =>
|
|
663
|
+
setExpandedReleaseId(isExpanded ? undefined : release.id)
|
|
664
|
+
}
|
|
665
|
+
release={release}
|
|
666
|
+
/>
|
|
667
|
+
<ChannelBadge channel={channelName} className="shrink-0" />
|
|
668
|
+
</div>
|
|
669
|
+
<p className="flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
670
|
+
<span className="flex items-center gap-1.5 text-foreground">
|
|
671
|
+
<PlatformIcon className="size-4" platform={release.platform} />
|
|
672
|
+
{release.platform === "ios" ? "iOS" : "Android"}
|
|
673
|
+
</span>
|
|
674
|
+
{patchCount === undefined || patchCount > 0 ? (
|
|
675
|
+
<>
|
|
676
|
+
<span aria-hidden="true">·</span>
|
|
677
|
+
<span>
|
|
678
|
+
{patchCount === undefined
|
|
679
|
+
? "Checking patches"
|
|
680
|
+
: `${patchCount} ${patchCount === 1 ? "patch" : "patches"}`}
|
|
681
|
+
</span>
|
|
682
|
+
</>
|
|
683
|
+
) : null}
|
|
684
|
+
<span aria-hidden="true">·</span>
|
|
685
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
686
|
+
</p>
|
|
687
|
+
<div className="flex flex-wrap items-center gap-x-3 gap-y-2 text-xs">
|
|
688
|
+
<RolloutPercentageBadge
|
|
689
|
+
percentage={release.rollout_cohort_count / 10}
|
|
690
|
+
/>
|
|
691
|
+
<ReleaseStateBadge release={release} />
|
|
692
|
+
{release.should_force_update ? (
|
|
693
|
+
<Badge variant="secondary">Force update</Badge>
|
|
694
|
+
) : null}
|
|
695
|
+
<span className="flex items-center">
|
|
696
|
+
<span className="sr-only">Target </span>
|
|
697
|
+
<TargetDisplay
|
|
698
|
+
appVersion={release.target_app_version}
|
|
699
|
+
fingerprintHash={release.fingerprint_hash}
|
|
700
|
+
/>
|
|
701
|
+
</span>
|
|
702
|
+
</div>
|
|
703
|
+
{featureColumns.map(({ Cell, feature, label }) => (
|
|
704
|
+
<div className="mt-3 text-xs" key={feature}>
|
|
705
|
+
<span className="sr-only">{label}</span>
|
|
706
|
+
<Cell releaseId={release.id} releases={ctx.slotReleases} />
|
|
707
|
+
</div>
|
|
708
|
+
))}
|
|
709
|
+
{release.message ? (
|
|
710
|
+
<p className="line-clamp-2 text-xs text-muted-foreground">
|
|
711
|
+
{release.message}
|
|
712
|
+
</p>
|
|
713
|
+
) : null}
|
|
714
|
+
</DataCard>
|
|
715
|
+
{isExpanded && release.bundle_id ? (
|
|
716
|
+
<ReleaseBundleChildrenPanel
|
|
717
|
+
onDetailClick={openChildBundle}
|
|
718
|
+
panelId={panelId}
|
|
719
|
+
release={release}
|
|
720
|
+
/>
|
|
721
|
+
) : null}
|
|
722
|
+
</Fragment>
|
|
723
|
+
);
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
const renderRow = (release: ReleaseListRow, ctx: RowContext) => {
|
|
727
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
728
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
729
|
+
|
|
730
|
+
return (
|
|
731
|
+
<Fragment key={release.id}>
|
|
732
|
+
<DataTableRow
|
|
733
|
+
aria-label={`Open bundle ${release.id}`}
|
|
734
|
+
className={cn(
|
|
735
|
+
release.currentlyUnreachable &&
|
|
736
|
+
"bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100",
|
|
737
|
+
isExpanded && "bg-primary/5",
|
|
738
|
+
)}
|
|
739
|
+
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
740
|
+
onOpen={() => select(release)}
|
|
741
|
+
>
|
|
742
|
+
<TableCell>
|
|
743
|
+
<BundleEntry
|
|
744
|
+
expanded={isExpanded}
|
|
745
|
+
onOpen={() => select(release)}
|
|
746
|
+
onToggleExpand={() =>
|
|
747
|
+
setExpandedReleaseId(isExpanded ? undefined : release.id)
|
|
748
|
+
}
|
|
749
|
+
release={release}
|
|
750
|
+
/>
|
|
751
|
+
</TableCell>
|
|
752
|
+
<TableCell>
|
|
753
|
+
<ChannelBadge
|
|
754
|
+
channel={
|
|
755
|
+
channelNames.get(release.channel_id) ?? release.channel_id
|
|
756
|
+
}
|
|
757
|
+
/>
|
|
758
|
+
</TableCell>
|
|
759
|
+
<TableCell className="whitespace-nowrap">
|
|
760
|
+
<PlatformLabel platform={release.platform} />
|
|
761
|
+
</TableCell>
|
|
762
|
+
<TableCell>
|
|
763
|
+
{release.bundle_id &&
|
|
764
|
+
ctx.patchCounts[release.bundle_id] === undefined ? (
|
|
765
|
+
<span className="text-sm text-muted-foreground">Checking</span>
|
|
766
|
+
) : release.bundle_id && ctx.patchCounts[release.bundle_id]! > 0 ? (
|
|
767
|
+
<Badge variant="secondary">
|
|
768
|
+
{ctx.patchCounts[release.bundle_id]}{" "}
|
|
769
|
+
{ctx.patchCounts[release.bundle_id] === 1 ? "patch" : "patches"}
|
|
770
|
+
</Badge>
|
|
771
|
+
) : (
|
|
772
|
+
<span className="text-muted-foreground">-</span>
|
|
773
|
+
)}
|
|
774
|
+
</TableCell>
|
|
775
|
+
<TableCell>
|
|
776
|
+
<TargetDisplay
|
|
777
|
+
appVersion={release.target_app_version}
|
|
778
|
+
fingerprintHash={release.fingerprint_hash}
|
|
779
|
+
/>
|
|
780
|
+
</TableCell>
|
|
781
|
+
<TableCell>
|
|
782
|
+
<span className="flex items-center">
|
|
783
|
+
<EnabledStatusIcon enabled={release.enabled} />
|
|
784
|
+
<span className="sr-only">
|
|
785
|
+
{release.enabled ? "Enabled" : "Disabled"}
|
|
786
|
+
</span>
|
|
787
|
+
</span>
|
|
788
|
+
</TableCell>
|
|
789
|
+
<TableCell>
|
|
790
|
+
<span className="flex items-center">
|
|
791
|
+
<EnabledStatusIcon
|
|
792
|
+
enabled={release.should_force_update}
|
|
793
|
+
falseIcon="minus"
|
|
794
|
+
/>
|
|
795
|
+
<span className="sr-only">
|
|
796
|
+
{release.should_force_update ? "Required" : "Optional"}
|
|
797
|
+
</span>
|
|
798
|
+
</span>
|
|
799
|
+
</TableCell>
|
|
800
|
+
<TableCell>
|
|
801
|
+
<RolloutPercentageBadge
|
|
802
|
+
percentage={release.rollout_cohort_count / 10}
|
|
803
|
+
/>
|
|
804
|
+
</TableCell>
|
|
805
|
+
{featureColumns.map(({ Cell, feature }) => (
|
|
806
|
+
<TableCell key={feature}>
|
|
807
|
+
<Cell releaseId={release.id} releases={ctx.slotReleases} />
|
|
808
|
+
</TableCell>
|
|
809
|
+
))}
|
|
810
|
+
<TableCell
|
|
811
|
+
className="text-sm text-muted-foreground"
|
|
812
|
+
title={release.message ?? undefined}
|
|
813
|
+
>
|
|
814
|
+
{release.message || "-"}
|
|
815
|
+
</TableCell>
|
|
816
|
+
<TableCell className="text-xs text-muted-foreground">
|
|
817
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
818
|
+
</TableCell>
|
|
819
|
+
</DataTableRow>
|
|
820
|
+
{isExpanded && release.bundle_id ? (
|
|
821
|
+
<TableRow className="hover:bg-transparent">
|
|
822
|
+
<TableCell className="border-t-0 p-0" colSpan={columnCount}>
|
|
823
|
+
<ReleaseBundleChildrenPanel
|
|
824
|
+
onDetailClick={openChildBundle}
|
|
825
|
+
panelId={panelId}
|
|
826
|
+
release={release}
|
|
827
|
+
/>
|
|
828
|
+
</TableCell>
|
|
829
|
+
</TableRow>
|
|
830
|
+
) : null}
|
|
831
|
+
</Fragment>
|
|
832
|
+
);
|
|
833
|
+
};
|
|
834
|
+
|
|
835
|
+
const fold = (
|
|
836
|
+
entry: Fold,
|
|
837
|
+
render: (release: ReleaseListRow, ctx: RowContext) => ReactNode,
|
|
838
|
+
) => (
|
|
839
|
+
<UnreachableBundlesFold
|
|
840
|
+
channels={channels}
|
|
841
|
+
columns={columnCount}
|
|
842
|
+
filter={filter}
|
|
843
|
+
fold={entry}
|
|
844
|
+
isMobile={isMobile}
|
|
845
|
+
key={`fold-${entry.to}`}
|
|
846
|
+
onOpenChange={(open) => folds.set(foldKey(entry), open)}
|
|
847
|
+
open={folds.isOpen(foldKey(entry))}
|
|
848
|
+
render={render}
|
|
849
|
+
/>
|
|
850
|
+
);
|
|
851
|
+
// A page of unreachable bundles alone: one fold under the empty state.
|
|
852
|
+
const foldedOnly = releases.length === 0 && entries.length > 0;
|
|
853
|
+
const empty = (
|
|
854
|
+
<DataTableEmpty
|
|
855
|
+
icon={Package}
|
|
856
|
+
title={
|
|
857
|
+
foldedOnly
|
|
858
|
+
? "No device gets the bundles here"
|
|
859
|
+
: onLaterPage
|
|
860
|
+
? "No more bundles"
|
|
861
|
+
: hasReleaseFilters(search)
|
|
862
|
+
? "No bundles match these filters"
|
|
863
|
+
: "No bundles yet"
|
|
864
|
+
}
|
|
865
|
+
>
|
|
866
|
+
{onLaterPage ? (
|
|
867
|
+
<Link
|
|
868
|
+
className={buttonVariants({
|
|
869
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
870
|
+
variant: "outline",
|
|
871
|
+
})}
|
|
872
|
+
search={newestSearch}
|
|
873
|
+
to="/"
|
|
874
|
+
>
|
|
875
|
+
Show the newest bundles
|
|
876
|
+
</Link>
|
|
877
|
+
) : hasReleaseFilters(search) ? (
|
|
878
|
+
<Button
|
|
879
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
880
|
+
onClick={() => go({})}
|
|
881
|
+
variant="outline"
|
|
882
|
+
>
|
|
883
|
+
Clear filters
|
|
884
|
+
</Button>
|
|
885
|
+
) : (
|
|
886
|
+
<>
|
|
887
|
+
<p>Deploy one from your app's project:</p>
|
|
888
|
+
<div className="w-full text-left">
|
|
889
|
+
<CopyableText
|
|
890
|
+
label="the deploy command"
|
|
891
|
+
value="npx hot-updater deploy"
|
|
892
|
+
wrap
|
|
893
|
+
/>
|
|
894
|
+
</div>
|
|
895
|
+
</>
|
|
896
|
+
)}
|
|
897
|
+
</DataTableEmpty>
|
|
898
|
+
);
|
|
899
|
+
|
|
505
900
|
return (
|
|
506
901
|
<div className="flex h-svh min-h-0 min-w-0 flex-col">
|
|
507
902
|
<BundleFilterToolbar
|
|
@@ -520,172 +915,29 @@ function BundlesPage() {
|
|
|
520
915
|
<AlertDescription>{releasesQuery.error.message}</AlertDescription>
|
|
521
916
|
</Alert>
|
|
522
917
|
) : (
|
|
523
|
-
<
|
|
918
|
+
<DataTableFrame>
|
|
524
919
|
{isMobile ? (
|
|
525
920
|
<div className="h-full overflow-y-auto">
|
|
526
921
|
{releasesQuery.isPending ? (
|
|
527
|
-
<
|
|
528
|
-
{Array.from({ length: 5 }, (_, index) => (
|
|
529
|
-
<Skeleton className="h-44 w-full" key={index} />
|
|
530
|
-
))}
|
|
531
|
-
</div>
|
|
532
|
-
) : releases.length ? (
|
|
533
|
-
releases.map((release) => {
|
|
534
|
-
const channelName =
|
|
535
|
-
channelNames.get(release.channel_id) ??
|
|
536
|
-
release.channel_id;
|
|
537
|
-
const patchCount = release.bundle_id
|
|
538
|
-
? patchCountsByBundleId[release.bundle_id]
|
|
539
|
-
: 0;
|
|
540
|
-
const isExpanded = expandedReleaseId === release.id;
|
|
541
|
-
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
542
|
-
|
|
543
|
-
return (
|
|
544
|
-
<Fragment key={release.id}>
|
|
545
|
-
{/* The ID button opens it for keyboards and screen
|
|
546
|
-
readers; a tap anywhere else on the card does too. */}
|
|
547
|
-
<article
|
|
548
|
-
aria-label={`Bundle ${release.id}`}
|
|
549
|
-
className={cn(
|
|
550
|
-
"flex cursor-pointer touch-manipulation flex-col gap-4 border-b p-4 transition-[background-color,filter] last:border-b-0 hover:bg-muted/10 active:bg-muted/20 motion-reduce:transition-none data-[state=selected]:bg-muted/15",
|
|
551
|
-
release.currentlyUnreachable &&
|
|
552
|
-
"bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100",
|
|
553
|
-
isExpanded && "border-b-0 bg-primary/5",
|
|
554
|
-
)}
|
|
555
|
-
data-state={
|
|
556
|
-
search.releaseId === release.id
|
|
557
|
-
? "selected"
|
|
558
|
-
: undefined
|
|
559
|
-
}
|
|
560
|
-
onClick={openOutsideControls(() =>
|
|
561
|
-
go({ ...search, releaseId: release.id }, false),
|
|
562
|
-
)}
|
|
563
|
-
>
|
|
564
|
-
<div className="flex items-start justify-between gap-3">
|
|
565
|
-
<BundleEntry
|
|
566
|
-
expanded={isExpanded}
|
|
567
|
-
onOpen={() =>
|
|
568
|
-
go({ ...search, releaseId: release.id }, false)
|
|
569
|
-
}
|
|
570
|
-
onToggleExpand={() =>
|
|
571
|
-
setExpandedReleaseId(
|
|
572
|
-
isExpanded ? undefined : release.id,
|
|
573
|
-
)
|
|
574
|
-
}
|
|
575
|
-
release={release}
|
|
576
|
-
/>
|
|
577
|
-
<ChannelBadge
|
|
578
|
-
channel={channelName}
|
|
579
|
-
className="shrink-0"
|
|
580
|
-
/>
|
|
581
|
-
</div>
|
|
582
|
-
<dl className="grid grid-cols-2 gap-3 text-xs">
|
|
583
|
-
<div className="rounded-md bg-muted/40 p-3">
|
|
584
|
-
<dt className="text-muted-foreground">
|
|
585
|
-
Platform
|
|
586
|
-
</dt>
|
|
587
|
-
<dd className="mt-1 flex items-center gap-2 font-medium">
|
|
588
|
-
<PlatformIcon
|
|
589
|
-
className="size-4"
|
|
590
|
-
platform={release.platform}
|
|
591
|
-
/>
|
|
592
|
-
{release.platform === "ios" ? "iOS" : "Android"}
|
|
593
|
-
</dd>
|
|
594
|
-
</div>
|
|
595
|
-
<div className="rounded-md bg-muted/40 p-3">
|
|
596
|
-
<dt className="text-muted-foreground">Created</dt>
|
|
597
|
-
<dd className="mt-1 tabular-nums">
|
|
598
|
-
{dateFormatter.format(release.created_at_ms)}
|
|
599
|
-
</dd>
|
|
600
|
-
</div>
|
|
601
|
-
<div className="rounded-md bg-muted/40 p-3">
|
|
602
|
-
<dt className="text-muted-foreground">Rollout</dt>
|
|
603
|
-
<dd className="mt-1">
|
|
604
|
-
<RolloutPercentageBadge
|
|
605
|
-
percentage={release.rollout_cohort_count / 10}
|
|
606
|
-
/>
|
|
607
|
-
</dd>
|
|
608
|
-
</div>
|
|
609
|
-
<div className="rounded-md bg-muted/40 p-3">
|
|
610
|
-
<dt className="text-muted-foreground">Patches</dt>
|
|
611
|
-
<dd className="mt-1">
|
|
612
|
-
{patchCount === undefined
|
|
613
|
-
? "Checking"
|
|
614
|
-
: patchCount > 0
|
|
615
|
-
? `${patchCount} ${
|
|
616
|
-
patchCount === 1 ? "patch" : "patches"
|
|
617
|
-
}`
|
|
618
|
-
: "—"}
|
|
619
|
-
</dd>
|
|
620
|
-
</div>
|
|
621
|
-
{featureColumns.map(({ Cell, feature, label }) => (
|
|
622
|
-
<div
|
|
623
|
-
className="col-span-2 rounded-md bg-muted/40 p-3"
|
|
624
|
-
key={feature}
|
|
625
|
-
>
|
|
626
|
-
<dt className="mb-2 text-muted-foreground">
|
|
627
|
-
{label}
|
|
628
|
-
</dt>
|
|
629
|
-
<dd>
|
|
630
|
-
<Cell
|
|
631
|
-
releaseId={release.id}
|
|
632
|
-
releases={slotReleases}
|
|
633
|
-
/>
|
|
634
|
-
</dd>
|
|
635
|
-
</div>
|
|
636
|
-
))}
|
|
637
|
-
<div className="col-span-2 flex flex-wrap items-center gap-2 rounded-md bg-muted/40 p-3">
|
|
638
|
-
<ReleaseStateBadge release={release} />
|
|
639
|
-
{release.should_force_update ? (
|
|
640
|
-
<Badge variant="secondary">Force update</Badge>
|
|
641
|
-
) : null}
|
|
642
|
-
</div>
|
|
643
|
-
<div className="col-span-2 grid grid-cols-1 gap-2 rounded-md border bg-background/80 p-3">
|
|
644
|
-
<div className="flex items-start justify-between gap-3">
|
|
645
|
-
<dt className="text-muted-foreground">
|
|
646
|
-
Target
|
|
647
|
-
</dt>
|
|
648
|
-
<dd className="min-w-0 truncate text-right font-mono">
|
|
649
|
-
{release.target_app_version ??
|
|
650
|
-
release.fingerprint_hash ??
|
|
651
|
-
"—"}
|
|
652
|
-
</dd>
|
|
653
|
-
</div>
|
|
654
|
-
<div className="flex items-start justify-between gap-3">
|
|
655
|
-
<dt className="text-muted-foreground">
|
|
656
|
-
Message
|
|
657
|
-
</dt>
|
|
658
|
-
<dd className="min-w-0 text-right text-foreground">
|
|
659
|
-
{release.message || "—"}
|
|
660
|
-
</dd>
|
|
661
|
-
</div>
|
|
662
|
-
</div>
|
|
663
|
-
</dl>
|
|
664
|
-
</article>
|
|
665
|
-
{isExpanded && release.bundle_id ? (
|
|
666
|
-
<ReleaseBundleChildrenPanel
|
|
667
|
-
onDetailClick={openChildBundle}
|
|
668
|
-
panelId={panelId}
|
|
669
|
-
release={release}
|
|
670
|
-
/>
|
|
671
|
-
) : null}
|
|
672
|
-
</Fragment>
|
|
673
|
-
);
|
|
674
|
-
})
|
|
922
|
+
<DataCardSkeletons />
|
|
675
923
|
) : (
|
|
676
|
-
|
|
677
|
-
{
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
924
|
+
<>
|
|
925
|
+
{releases.length === 0 ? (
|
|
926
|
+
<DataCardsEmpty>{empty}</DataCardsEmpty>
|
|
927
|
+
) : null}
|
|
928
|
+
{entries.map((entry) =>
|
|
929
|
+
entry.kind === "row"
|
|
930
|
+
? renderCard(entry.row, pageContext)
|
|
931
|
+
: fold(entry, renderCard),
|
|
932
|
+
)}
|
|
933
|
+
</>
|
|
683
934
|
)}
|
|
684
935
|
</div>
|
|
685
936
|
) : (
|
|
686
|
-
<
|
|
687
|
-
|
|
688
|
-
|
|
937
|
+
<DataTable
|
|
938
|
+
rowGroups
|
|
939
|
+
header={
|
|
940
|
+
<>
|
|
689
941
|
<TableHead>ID</TableHead>
|
|
690
942
|
<TableHead>Channel</TableHead>
|
|
691
943
|
<TableHead>Platform</TableHead>
|
|
@@ -699,296 +951,53 @@ function BundlesPage() {
|
|
|
699
951
|
))}
|
|
700
952
|
<TableHead>Message</TableHead>
|
|
701
953
|
<TableHead>Created</TableHead>
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
onClick={openOutsideControls(() =>
|
|
733
|
-
go({ ...search, releaseId: release.id }, false),
|
|
734
|
-
)}
|
|
735
|
-
onKeyDown={(event) => {
|
|
736
|
-
if (
|
|
737
|
-
event.target !== event.currentTarget ||
|
|
738
|
-
(event.key !== "Enter" && event.key !== " ")
|
|
739
|
-
) {
|
|
740
|
-
return;
|
|
741
|
-
}
|
|
742
|
-
event.preventDefault();
|
|
743
|
-
go({ ...search, releaseId: release.id }, false);
|
|
744
|
-
}}
|
|
745
|
-
tabIndex={0}
|
|
746
|
-
>
|
|
747
|
-
<TableCell>
|
|
748
|
-
<BundleEntry
|
|
749
|
-
expanded={isExpanded}
|
|
750
|
-
onOpen={() =>
|
|
751
|
-
go(
|
|
752
|
-
{ ...search, releaseId: release.id },
|
|
753
|
-
false,
|
|
754
|
-
)
|
|
755
|
-
}
|
|
756
|
-
onToggleExpand={() =>
|
|
757
|
-
setExpandedReleaseId(
|
|
758
|
-
isExpanded ? undefined : release.id,
|
|
759
|
-
)
|
|
760
|
-
}
|
|
761
|
-
release={release}
|
|
762
|
-
/>
|
|
763
|
-
</TableCell>
|
|
764
|
-
<TableCell>
|
|
765
|
-
<ChannelBadge
|
|
766
|
-
channel={
|
|
767
|
-
channelNames.get(release.channel_id) ??
|
|
768
|
-
release.channel_id
|
|
769
|
-
}
|
|
770
|
-
/>
|
|
771
|
-
</TableCell>
|
|
772
|
-
<TableCell className="whitespace-nowrap">
|
|
773
|
-
<span className="flex items-center gap-2">
|
|
774
|
-
<PlatformIcon
|
|
775
|
-
className="size-4"
|
|
776
|
-
platform={release.platform}
|
|
777
|
-
/>
|
|
778
|
-
{release.platform === "ios"
|
|
779
|
-
? "iOS"
|
|
780
|
-
: "Android"}
|
|
781
|
-
</span>
|
|
782
|
-
</TableCell>
|
|
783
|
-
<TableCell>
|
|
784
|
-
{release.bundle_id &&
|
|
785
|
-
patchCountsByBundleId[release.bundle_id] ===
|
|
786
|
-
undefined ? (
|
|
787
|
-
<span className="text-sm text-muted-foreground">
|
|
788
|
-
Checking
|
|
789
|
-
</span>
|
|
790
|
-
) : release.bundle_id &&
|
|
791
|
-
patchCountsByBundleId[release.bundle_id]! >
|
|
792
|
-
0 ? (
|
|
793
|
-
<Badge variant="secondary">
|
|
794
|
-
{patchCountsByBundleId[release.bundle_id]}{" "}
|
|
795
|
-
{patchCountsByBundleId[
|
|
796
|
-
release.bundle_id
|
|
797
|
-
] === 1
|
|
798
|
-
? "patch"
|
|
799
|
-
: "patches"}
|
|
800
|
-
</Badge>
|
|
801
|
-
) : (
|
|
802
|
-
<span className="text-muted-foreground">
|
|
803
|
-
-
|
|
804
|
-
</span>
|
|
805
|
-
)}
|
|
806
|
-
</TableCell>
|
|
807
|
-
<TableCell>
|
|
808
|
-
{release.target_app_version ? (
|
|
809
|
-
<span className="flex items-center gap-2">
|
|
810
|
-
<Package className="size-4 shrink-0 text-muted-foreground" />
|
|
811
|
-
<span className="font-medium">
|
|
812
|
-
{release.target_app_version}
|
|
813
|
-
</span>
|
|
814
|
-
</span>
|
|
815
|
-
) : release.fingerprint_hash ? (
|
|
816
|
-
<span className="flex min-w-[160px] items-center gap-2">
|
|
817
|
-
<Fingerprint className="size-4 shrink-0 text-muted-foreground" />
|
|
818
|
-
<HashValueDisplay
|
|
819
|
-
maxLength={12}
|
|
820
|
-
value={release.fingerprint_hash}
|
|
821
|
-
/>
|
|
822
|
-
</span>
|
|
823
|
-
) : (
|
|
824
|
-
<span className="text-muted-foreground">
|
|
825
|
-
-
|
|
826
|
-
</span>
|
|
827
|
-
)}
|
|
828
|
-
</TableCell>
|
|
829
|
-
<TableCell>
|
|
830
|
-
<span className="flex items-center">
|
|
831
|
-
<EnabledStatusIcon
|
|
832
|
-
enabled={release.enabled}
|
|
833
|
-
/>
|
|
834
|
-
<span className="sr-only">
|
|
835
|
-
{release.enabled ? "Enabled" : "Disabled"}
|
|
836
|
-
</span>
|
|
837
|
-
</span>
|
|
838
|
-
</TableCell>
|
|
839
|
-
<TableCell>
|
|
840
|
-
<span className="flex items-center">
|
|
841
|
-
<EnabledStatusIcon
|
|
842
|
-
enabled={release.should_force_update}
|
|
843
|
-
falseIcon="minus"
|
|
844
|
-
/>
|
|
845
|
-
<span className="sr-only">
|
|
846
|
-
{release.should_force_update
|
|
847
|
-
? "Required"
|
|
848
|
-
: "Optional"}
|
|
849
|
-
</span>
|
|
850
|
-
</span>
|
|
851
|
-
</TableCell>
|
|
852
|
-
<TableCell>
|
|
853
|
-
<RolloutPercentageBadge
|
|
854
|
-
percentage={release.rollout_cohort_count / 10}
|
|
855
|
-
/>
|
|
856
|
-
</TableCell>
|
|
857
|
-
{featureColumns.map(({ Cell, feature }) => (
|
|
858
|
-
<TableCell key={feature}>
|
|
859
|
-
<Cell
|
|
860
|
-
releaseId={release.id}
|
|
861
|
-
releases={slotReleases}
|
|
862
|
-
/>
|
|
863
|
-
</TableCell>
|
|
864
|
-
))}
|
|
865
|
-
<TableCell
|
|
866
|
-
className="text-sm text-muted-foreground"
|
|
867
|
-
title={release.message ?? undefined}
|
|
868
|
-
>
|
|
869
|
-
{release.message || "-"}
|
|
870
|
-
</TableCell>
|
|
871
|
-
<TableCell
|
|
872
|
-
className="whitespace-nowrap text-xs text-muted-foreground"
|
|
873
|
-
title={dateFormatter.format(
|
|
874
|
-
release.created_at_ms,
|
|
875
|
-
)}
|
|
876
|
-
>
|
|
877
|
-
{tableDateFormatter.format(
|
|
878
|
-
release.created_at_ms,
|
|
879
|
-
)}
|
|
880
|
-
</TableCell>
|
|
881
|
-
</TableRow>
|
|
882
|
-
{isExpanded && release.bundle_id ? (
|
|
883
|
-
<TableRow className="hover:bg-transparent">
|
|
884
|
-
<TableCell
|
|
885
|
-
className="border-t-0 p-0"
|
|
886
|
-
colSpan={columnCount}
|
|
887
|
-
>
|
|
888
|
-
<ReleaseBundleChildrenPanel
|
|
889
|
-
onDetailClick={openChildBundle}
|
|
890
|
-
panelId={panelId}
|
|
891
|
-
release={release}
|
|
892
|
-
/>
|
|
893
|
-
</TableCell>
|
|
894
|
-
</TableRow>
|
|
895
|
-
) : null}
|
|
896
|
-
</Fragment>
|
|
897
|
-
);
|
|
898
|
-
})}
|
|
899
|
-
{!releasesQuery.isPending && releases.length === 0 ? (
|
|
900
|
-
<TableRow>
|
|
901
|
-
<TableCell
|
|
902
|
-
className="h-40 text-center text-muted-foreground"
|
|
903
|
-
colSpan={columnCount}
|
|
904
|
-
>
|
|
905
|
-
{onLaterPage
|
|
906
|
-
? "No more bundles on this side."
|
|
907
|
-
: hasReleaseFilters(search)
|
|
908
|
-
? "No bundles match these filters."
|
|
909
|
-
: "No bundles yet. Deploy an update to see it here."}
|
|
910
|
-
</TableCell>
|
|
911
|
-
</TableRow>
|
|
912
|
-
) : null}
|
|
913
|
-
</TableBody>
|
|
914
|
-
</Table>
|
|
954
|
+
</>
|
|
955
|
+
}
|
|
956
|
+
>
|
|
957
|
+
{releasesQuery.isPending ? (
|
|
958
|
+
<DataTableBody>
|
|
959
|
+
<DataTableSkeletonRows columns={columnCount} />
|
|
960
|
+
</DataTableBody>
|
|
961
|
+
) : (
|
|
962
|
+
<>
|
|
963
|
+
{releases.length === 0 ? (
|
|
964
|
+
<DataTableBody>
|
|
965
|
+
<DataTableFullRow columns={columnCount}>
|
|
966
|
+
{empty}
|
|
967
|
+
</DataTableFullRow>
|
|
968
|
+
</DataTableBody>
|
|
969
|
+
) : null}
|
|
970
|
+
{groupsOf(entries).map((group) =>
|
|
971
|
+
group.kind === "fold" ? (
|
|
972
|
+
fold(group.fold, renderRow)
|
|
973
|
+
) : (
|
|
974
|
+
<DataTableBody key={`rows-${group.rows[0]!.id}`}>
|
|
975
|
+
{group.rows.map((release) =>
|
|
976
|
+
renderRow(release, pageContext),
|
|
977
|
+
)}
|
|
978
|
+
</DataTableBody>
|
|
979
|
+
),
|
|
980
|
+
)}
|
|
981
|
+
</>
|
|
982
|
+
)}
|
|
983
|
+
</DataTable>
|
|
915
984
|
)}
|
|
916
|
-
</
|
|
985
|
+
</DataTableFrame>
|
|
917
986
|
)}
|
|
918
987
|
|
|
919
988
|
{!releasesQuery.isError && !releasesQuery.isPending ? (
|
|
920
|
-
<
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
933
|
-
size: "sm",
|
|
934
|
-
variant: "ghost",
|
|
935
|
-
})}
|
|
936
|
-
search={newestSearch}
|
|
937
|
-
to="/"
|
|
938
|
-
>
|
|
939
|
-
Newest
|
|
940
|
-
</Link>
|
|
941
|
-
) : null}
|
|
942
|
-
{previousSearch ? (
|
|
943
|
-
<Link
|
|
944
|
-
className={buttonVariants({
|
|
945
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
946
|
-
size: "sm",
|
|
947
|
-
variant: "outline",
|
|
948
|
-
})}
|
|
949
|
-
search={previousSearch}
|
|
950
|
-
to="/"
|
|
951
|
-
>
|
|
952
|
-
<ChevronLeft data-icon="inline-start" />
|
|
953
|
-
Previous
|
|
954
|
-
</Link>
|
|
955
|
-
) : (
|
|
956
|
-
<Button
|
|
957
|
-
className="h-8 flex-1 px-3 text-xs sm:flex-none"
|
|
958
|
-
disabled
|
|
959
|
-
size="sm"
|
|
960
|
-
variant="outline"
|
|
961
|
-
>
|
|
962
|
-
<ChevronLeft data-icon="inline-start" />
|
|
963
|
-
Previous
|
|
964
|
-
</Button>
|
|
965
|
-
)}
|
|
966
|
-
{nextSearch ? (
|
|
967
|
-
<Link
|
|
968
|
-
className={buttonVariants({
|
|
969
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
970
|
-
size: "sm",
|
|
971
|
-
variant: "outline",
|
|
972
|
-
})}
|
|
973
|
-
search={nextSearch}
|
|
974
|
-
to="/"
|
|
975
|
-
>
|
|
976
|
-
Next
|
|
977
|
-
<ChevronRight data-icon="inline-end" />
|
|
978
|
-
</Link>
|
|
979
|
-
) : (
|
|
980
|
-
<Button
|
|
981
|
-
className="h-8 flex-1 px-3 text-xs sm:flex-none"
|
|
982
|
-
disabled
|
|
983
|
-
size="sm"
|
|
984
|
-
variant="outline"
|
|
985
|
-
>
|
|
986
|
-
Next
|
|
987
|
-
<ChevronRight data-icon="inline-end" />
|
|
988
|
-
</Button>
|
|
989
|
-
)}
|
|
990
|
-
</div>
|
|
991
|
-
</nav>
|
|
989
|
+
<DataTablePagination
|
|
990
|
+
count={releases.length}
|
|
991
|
+
folded={{ ...foldedTotal(entries), label: "unreachable" }}
|
|
992
|
+
label="Bundle pagination"
|
|
993
|
+
noun={["bundle", "bundles"]}
|
|
994
|
+
pending={releasesQuery.isPlaceholderData}
|
|
995
|
+
newest={onLaterPage ? { search: newestSearch, to: "/" } : undefined}
|
|
996
|
+
next={nextSearch ? { search: nextSearch, to: "/" } : undefined}
|
|
997
|
+
previous={
|
|
998
|
+
previousSearch ? { search: previousSearch, to: "/" } : undefined
|
|
999
|
+
}
|
|
1000
|
+
/>
|
|
992
1001
|
) : null}
|
|
993
1002
|
</div>
|
|
994
1003
|
|