@hot-updater/console 1.2.0-rc.4 → 1.2.0-rc.41
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-BFcW2mlI.js +1 -0
- package/.output/public/assets/BundleIdDisplay-C0X-k49t.js +1 -0
- package/.output/public/assets/ChannelBadge-BgVCJfJs.js +1 -0
- package/.output/public/assets/ChannelPicker-BQKoyxnf.js +1 -0
- package/.output/public/assets/CompositeItem-B7uxFM46.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
- package/.output/public/assets/EventDetails-CWiI1CXb.js +1 -0
- package/.output/public/assets/HashValueDisplay-DvwvQchI.js +1 -0
- package/.output/public/assets/InsightsPageHeader-BjUAikRe.js +1 -0
- package/.output/public/assets/IosInstall-B5IdjCP2.js +1 -0
- package/.output/public/assets/NativeBuildsNav-BKdnlKMN.js +1 -0
- package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-BEpesHEm.js} +1 -1
- package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-D4KPXCHL.js} +1 -1
- package/.output/public/assets/QrCode-BFSCkbPj.js +1 -0
- package/.output/public/assets/RelativeTime-5ZP9WlQ6.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-DCtG7c1o.js +1 -0
- package/.output/public/assets/RowReason-CXMCJ-Jc.js +1 -0
- package/.output/public/assets/SandboxBadge-PM92jCk6.js +1 -0
- package/.output/public/assets/TargetDisplay-DG_I3qln.js +1 -0
- package/.output/public/assets/alert-dialog-DGPqJBCk.js +1 -0
- package/.output/public/assets/api-eO-sq3Jd.js +1 -0
- package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
- package/.output/public/assets/api-keys-ztwXoKcj.js +1 -0
- package/.output/public/assets/arrow-left-68S4uy4I.js +1 -0
- package/.output/public/assets/arrow-right-DjRwIoF1.js +1 -0
- package/.output/public/assets/arrow-up-right-C_1ALUCD.js +1 -0
- package/.output/public/assets/badge-zMibJGR5.js +1 -0
- package/.output/public/assets/card-BAs80yql.js +1 -0
- package/.output/public/assets/check-C3VCvMOV.js +1 -0
- package/.output/public/assets/chevron-right-RAuPv9r1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-DvYMC5yF.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-D0JWZ1KF.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-CtbGqKyr.js} +1 -1
- package/.output/public/assets/{uuidv7-zXMtwR9Q.js → constants-C5gi7fdZ.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-BjVLMKbo.js} +1 -1
- package/.output/public/assets/dialog-BvZDZzdQ.js +1 -0
- package/.output/public/assets/dist-BEmib-ZM.js +1 -0
- package/.output/public/assets/{download-Cf24LBde.js → download-CgpaZb23.js} +1 -1
- package/.output/public/assets/empty-C5GqArX9.js +1 -0
- package/.output/public/assets/field-DInLQ5oV.js +1 -0
- package/.output/public/assets/git-branch-BGatQV8Q.js +1 -0
- package/.output/public/assets/history-Ci4dhphE.js +1 -0
- package/.output/public/assets/index-Ck4fZq4M.js +10 -0
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
- package/.output/public/assets/insights-api-D4-FZeEI.js +1 -0
- package/.output/public/assets/insights-fSY6n4k3.js +42 -0
- package/.output/public/assets/insights-osTmFzzR.js +2 -0
- package/.output/public/assets/insights-search-CZtvD-Vf.js +1 -0
- package/.output/public/assets/insights-usage-rpc-Dw5_pmRH.js +1 -0
- package/.output/public/assets/insights_.distribution-Cws8lYLC.js +1 -0
- package/.output/public/assets/insights_.distribution-DpppHhaU.js +2 -0
- package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
- package/.output/public/assets/installations-Byojb0Rv.js +2 -0
- package/.output/public/assets/installations-CFGDrY-W.js +1 -0
- package/.output/public/assets/installations-CcPrSZwW.js +1 -0
- package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-BkeLvA1m.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CRMwpc7-.js} +2 -2
- package/.output/public/assets/{list--NIee1FZ.js → list-DQ9YBIDW.js} +1 -1
- package/.output/public/assets/loader-circle-8lunBReu.js +1 -0
- package/.output/public/assets/native-builds-C4u6JvxV.js +2 -0
- package/.output/public/assets/native-builds-D9hoJd6W.js +1 -0
- package/.output/public/assets/native-builds-zwqucwx2.js +1 -0
- package/.output/public/assets/native-builds_._buildId-CXx2xjoI.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DymsEZlO.js +2 -0
- package/.output/public/assets/native-builds_.devices-DF3g--dt.js +1 -0
- package/.output/public/assets/native-builds_.devices-QToUV8FB.js +2 -0
- package/.output/public/assets/plus-DztQIXYL.js +1 -0
- package/.output/public/assets/preload-helper-CE9OukVC.js +1 -0
- package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-RUNbaMyO.js} +1 -1
- package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
- package/.output/public/assets/remote-config-BJJAxy_g.js +6 -0
- package/.output/public/assets/remote-config-Dm1MCHDN.js +1 -0
- package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
- package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-BFQcpUTO.js} +1 -1
- package/.output/public/assets/routes-9gxYg__u.js +1 -0
- package/.output/public/assets/routes-CUsayL0T.js +2 -0
- package/.output/public/assets/search-BfEqtE64.js +1 -0
- package/.output/public/assets/select-Bk52fOVX.js +1 -0
- package/.output/public/assets/sidebar-BmzmPGuv.js +3 -0
- package/.output/public/assets/smartphone-Dy13ukaU.js +1 -0
- package/.output/public/assets/styles-C1iqL6CR.css +2 -0
- package/.output/public/assets/switch-CI393qIT.js +1 -0
- package/.output/public/assets/table-DbZPkzdz.js +1 -0
- package/.output/public/assets/tabs-BnpNC0zf.js +1 -0
- package/.output/public/assets/trash-2-DI0biNI-.js +1 -0
- package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CxhBbgJw.js} +1 -1
- package/.output/public/assets/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
- package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-Cbk_weKW.js} +1 -1
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-D7IuoOLE.js} +1 -1
- package/.output/public/assets/valueToPercent-Db73Kirz.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-X9YQcrQI.mjs → __23tanstack-start-server-fn-resolver-76SKGuoc.mjs} +94 -46
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@base-ui/react+[...].mjs +4436 -3131
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +2 -2
- package/.output/server/_libs/_.mjs +2 -0
- package/.output/server/_libs/lucide-react.mjs +34 -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-Bwt8tQzp.mjs +55 -0
- package/.output/server/_ssr/{BundleIdDisplay-BVrZXzTm.mjs → BundleIdDisplay-By3CbbRM.mjs} +3 -3
- package/.output/server/_ssr/ChannelBadge-CDup7l56.mjs +23 -0
- package/.output/server/_ssr/ChannelPicker-Du2TmP3P.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CULyV3nR.mjs → ConsoleFeatureUnavailable-C6aGoKDE.mjs} +8 -8
- package/.output/server/_ssr/{EventDetails-DeI1rOQc.mjs → EventDetails-VbcnMnSs.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-DpnPD3U2.mjs → HashValueDisplay-CnC2fHER.mjs} +7 -7
- package/.output/server/_ssr/{InsightsPageHeader-Dwmdtelg.mjs → InsightsPageHeader-BuOanVZL.mjs} +13 -13
- package/.output/server/_ssr/IosInstall-BAFhW7Q9.mjs +751 -0
- package/.output/server/_ssr/NativeBuildsNav-BoTu4aLF.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-Dddp1HSc.mjs → NotFoundPage-Bz05xF5Q.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
- package/.output/server/_ssr/QrCode-DWshAW81.mjs +50 -0
- package/.output/server/_ssr/RelativeTime-D5kDQVn1.mjs +242 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-Dwx7dEeQ.mjs} +20 -4
- package/.output/server/_ssr/RowReason-pVOWQ7t5.mjs +186 -0
- package/.output/server/_ssr/SandboxBadge-DFbUYwhO.mjs +85 -0
- package/.output/server/_ssr/TargetDisplay-BtE5vntq.mjs +105 -0
- package/.output/server/_ssr/{alert-dialog-ei2c1b6A.mjs → alert-dialog-tcfkkNUX.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-CVi7E0qS.mjs → api-keys-12_U0SQM.mjs} +14 -11
- package/.output/server/_ssr/{api-keys-BLHCygD_.mjs → api-keys-Bm8uDp2u.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-CLZsTwih.mjs → api-keys-rpc-BxkfToWI.mjs} +4 -4
- package/.output/server/_ssr/{api-rpc-p-7EhGIG.mjs → api-rpc-TSnLWB7e.mjs} +83 -35
- package/.output/server/_ssr/{api-CvwqILEx.mjs → api-xOHZxbzu.mjs} +174 -37
- package/.output/server/_ssr/{auth-rpc-B1W4-hxa.mjs → auth-rpc-D3w54vsW.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-CVKs7SWJ.mjs → auth.server-a2eP6q5P.mjs} +952 -186
- package/.output/server/_ssr/{badge-nS9EbEA0.mjs → badge-DrfbN1n0.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/card-DEItjgKG.mjs +49 -0
- package/.output/server/_ssr/{config.server-BAdvotbH.mjs → config.server-K8dd4dRv.mjs} +4 -4
- package/.output/server/_ssr/{console-access-BiuC2QFp.mjs → console-access-D-DHU4YH.mjs} +2 -2
- package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-DTYyXrWO.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-FvbqhbTg.mjs → console-features-api-Chy2PrzZ.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-Cl3J66aP.mjs → console-features-rpc-_31L0k1i.mjs} +4 -4
- package/.output/server/_ssr/constants-BjsJZqaU.mjs +10 -0
- package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
- package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BZMFl5QV.mjs} +3 -3
- package/.output/server/_ssr/deviceProfileToken-xzDLfE0T.mjs +98 -0
- package/.output/server/_ssr/{dialog-GmTPeUS4.mjs → dialog-SAl1vP74.mjs} +5 -5
- package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-CXWKv24M.mjs → empty-opJc9Fjw.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-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-lwIHAwLc.mjs → field-D6Y7zDZd.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CUjJqtlF.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CnOf4Frp.mjs} +2 -2
- package/.output/server/_ssr/{input-group-Dgr4DNbE.mjs → input-group-D2PvPRdm.mjs} +3 -3
- package/.output/server/_ssr/{insights-BxtyBLt0.mjs → insights-Cro4cYp7.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-PN_9ilr8.mjs → insights-api-BPyvQert.mjs} +5 -5
- package/.output/server/_ssr/{insights-DSnQTQw1.mjs → insights-dWeLneo1.mjs} +45 -191
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-Cxu3UtyB.mjs → insights-failures-rpc-D7M8-Et9.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc--c6kBp3k.mjs → insights-recovery-rpc-BUMK4m4H.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-oTMaAqc1.mjs → insights-rpc-BZZ4U2Ll.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-r-Z50f0Y.mjs → insights-search-Czi553oN.mjs} +6 -8
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-DoElOI5b.mjs → insights-usage-rpc-BXvUr-z6.mjs} +7 -7
- package/.output/server/_ssr/{insights-usage-rpc-B00vjt0a.mjs → insights-usage-rpc-HOr6mniz.mjs} +5 -5
- package/.output/server/_ssr/{insights-B9NvjAWc.mjs → insights-vmCmvfXx.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-CnYddZ2Y.mjs → insights_.distribution-B2dxcCd_.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-mpZ0wS_R.mjs → insights_.distribution-B5V_NbK4.mjs} +17 -16
- package/.output/server/_ssr/{insights_.distribution-B8AMBp-Q.mjs → insights_.distribution-DongF2jp.mjs} +5 -5
- package/.output/server/_ssr/{installations-BfhcY_XQ.mjs → installations-B7w4LGJp.mjs} +4 -4
- package/.output/server/_ssr/{installations-CWTRzcR7.mjs → installations-B84kSetd.mjs} +2 -2
- package/.output/server/_ssr/{installations-O6Jzc5PO.mjs → installations-bieZA3xt.mjs} +13 -13
- package/.output/server/_ssr/ios-devices-rpc-DOQg4dpb.mjs +137 -0
- package/.output/server/_ssr/iosDeviceCookie-DhWNFpC6.mjs +155 -0
- package/.output/server/_ssr/iosDeviceProfile-jC8w4zEF.mjs +176 -0
- package/.output/server/_ssr/iosDevices-B4kQLURA.mjs +113 -0
- package/.output/server/_ssr/listReleases-QF91GLE7.mjs +94 -0
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/native-artifact-D4ZISXRZ.mjs +1517 -0
- package/.output/server/_ssr/native-builds-BU9Njiwm.mjs +696 -0
- package/.output/server/_ssr/native-builds-lEyKQemV.mjs +262 -0
- package/.output/server/_ssr/{native-builds-UIgRLMb8.mjs → native-builds-zpCsEYyA.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-DjUqI5sa.mjs → native-builds_._buildId-BJ4R32fq.mjs} +3 -3
- package/.output/server/_ssr/native-builds_._buildId-RHUotAYb.mjs +1148 -0
- package/.output/server/_ssr/native-builds_.devices-C0IlQkLv.mjs +10 -0
- package/.output/server/_ssr/native-builds_.devices-D1Ke-Fc-.mjs +820 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-MCd5xUqP.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-DcsqDS-O.mjs +253 -0
- package/.output/server/_ssr/nativeBuilds-CRa36wNn.mjs +287 -0
- package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-D9CCkDjn.mjs} +7 -6
- package/.output/server/_ssr/publicConsoleBase-wTKw3_iB.mjs +15 -0
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-PLyiDnas.mjs → release-adoption-rpc-C4G_d8qK.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CJ2Shida.mjs} +4 -3
- package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-C5j4CfGa.mjs → remote-config-1QZ0HgEu.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-eNxv5Kzc.mjs → remote-config-CsbpqWAR.mjs} +24 -23
- package/.output/server/_ssr/{remote-config-tOdzsFMi.mjs → remote-config-DkgBxBka.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-Cy4VwdMt.mjs → remote-config-rpc-KjJA9DC-.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-DaQ6OkIp.mjs → router-Dy3fmb8q.mjs} +137 -64
- package/.output/server/_ssr/{routes-Drni4c1E.mjs → routes-68rZQGee.mjs} +470 -474
- package/.output/server/_ssr/{routes-BYmUIYfN.mjs → routes-Ug9uqzob.mjs} +50 -18
- package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BUbb281Z.mjs} +4 -4
- package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-CaIuQCXb.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-mZ_19Wt_.mjs → schema-migration-rpc-kntY9oPm.mjs} +4 -4
- package/.output/server/_ssr/{select-Cjrp1Sl9.mjs → select-BOKFFr_G.mjs} +12 -10
- package/.output/server/_ssr/{server-y3KoaSil.mjs → server-DetMvRBJ.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-tRHVNWpo.mjs → sidebar-B46houn0.mjs} +17 -10
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-BSkL2B6C.mjs} +2 -2
- package/.output/server/_ssr/{switch-YrqCYfP-.mjs → switch-BMYzd71j.mjs} +4 -4
- package/.output/server/_ssr/{table-NHakBPSp.mjs → table-DWrYwJ_a.mjs} +2 -2
- package/.output/server/_ssr/tabs-DusHAcYy.mjs +45 -0
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
- package/.output/server/_ssr/{dist-TEpM_UAD.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
- package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-CD1q5k0m.mjs +228 -0
- package/.output/server/index.mjs +503 -391
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/ChannelBadge.tsx +9 -9
- package/src/components/ChannelPicker.tsx +227 -0
- package/src/components/DataTable.tsx +363 -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 +95 -0
- package/src/components/ThemeProvider.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +5 -3
- package/src/components/features/bundles/BundleMetadata.tsx +1 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +10 -11
- package/src/components/features/insights/AppUsage.tsx +3 -5
- package/src/components/features/insights/FailureReports.tsx +3 -2
- package/src/components/features/insights/InsightsControls.tsx +10 -69
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/InsightsPageHeader.tsx +10 -15
- package/src/components/features/insights/ReleaseActivity.tsx +6 -2
- package/src/components/features/insights/ReleaseCombobox.tsx +1 -1
- package/src/components/features/insights/UpdateFailures.tsx +1 -0
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +122 -61
- 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 +316 -91
- package/src/components/features/native-builds/IosDevicesPage.tsx +1100 -0
- package/src/components/features/native-builds/IosInstall.tsx +732 -0
- package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +30 -6
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +94 -108
- package/src/components/features/native-builds/NativeBuildsTable.tsx +649 -323
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/components/features/native-builds/PatchesCard.tsx +28 -19
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +5 -5
- 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 +7 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +8 -6
- package/src/components/features/remote-config/PublishDialog.tsx +4 -1
- package/src/components/features/remote-config/VersionsCard.tsx +5 -2
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/badge.tsx +2 -0
- package/src/components/ui/button.tsx +11 -2
- package/src/components/ui/combobox.tsx +2 -2
- package/src/components/ui/dialog.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/select.tsx +15 -7
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/sonner.tsx +3 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +125 -35
- package/src/lib/api.ts +160 -16
- package/src/lib/constants.ts +15 -0
- package/src/lib/insights-search.ts +0 -3
- package/src/lib/ios-devices-api.ts +290 -0
- package/src/lib/ios-devices-rpc.ts +188 -0
- package/src/lib/native-builds.ts +261 -20
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +221 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceCookie.ts +239 -0
- package/src/lib/server/iosDeviceProfile.ts +232 -0
- package/src/lib/server/iosDevices.ts +193 -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 +502 -0
- package/src/lib/server/nativeBuilds.ts +314 -58
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/routeTree.gen.ts +129 -18
- package/src/routes/-native-builds-search.ts +52 -4
- package/src/routes/-releases-search.ts +63 -2
- 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/devices/receipt.ts +28 -0
- package/src/routes/[_]hot-updater/devices/request.ts +28 -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 +657 -577
- package/src/routes/insights.tsx +3 -5
- package/src/routes/insights_.distribution.tsx +2 -2
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/src/styles.css +24 -0
- package/.output/public/assets/-native-builds-search-C-TGpFAm.js +0 -1
- package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
- package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
- package/.output/public/assets/InsightsPageHeader-DHhqY3DT.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/alert-dialog-BqYScr9y.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/dist-CPlO6ko9.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/input-group-D3OUBk4n.js +0 -1
- 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-search-DghCbEnk.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/refresh-cw-B9HHjLej.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/sidebar-Di9SN47G.js +0 -3
- 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/-native-builds-search-CwNcoXf4.mjs +0 -37
- package/.output/server/_ssr/RolloutPercentageBadge-CoBhJtv9.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-CPg_Rn5E.mjs +0 -139
- package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
- package/.output/server/_ssr/native-builds-BDcOlKnd.mjs +0 -510
- package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
- package/.output/server/_ssr/native-builds_._buildId-BjsdQO93.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/_ssr/tabs-BgTTFotk.mjs +0 -45
- 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/src/routes/index.tsx
CHANGED
|
@@ -3,30 +3,62 @@ 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,
|
|
10
|
+
RefreshCw,
|
|
12
11
|
RotateCcw,
|
|
13
12
|
Tags,
|
|
14
13
|
X,
|
|
15
14
|
} from "lucide-react";
|
|
16
|
-
import { Fragment, type
|
|
15
|
+
import { Fragment, type ReactNode, useEffect, useState } from "react";
|
|
17
16
|
|
|
18
17
|
import { BundleIdDisplay } from "@/components/BundleIdDisplay";
|
|
19
18
|
import { ChannelBadge } from "@/components/ChannelBadge";
|
|
19
|
+
import { ChannelPicker } from "@/components/ChannelPicker";
|
|
20
|
+
import {
|
|
21
|
+
DataCard,
|
|
22
|
+
DataCardSkeletons,
|
|
23
|
+
DataCardsEmpty,
|
|
24
|
+
DataTable,
|
|
25
|
+
DataTableBody,
|
|
26
|
+
DataTableFrame,
|
|
27
|
+
DataTableEmpty,
|
|
28
|
+
DataTableFullRow,
|
|
29
|
+
DataTablePagination,
|
|
30
|
+
DataTableRow,
|
|
31
|
+
openOutsideControls,
|
|
32
|
+
DataTableSkeletonRows,
|
|
33
|
+
} from "@/components/DataTable";
|
|
20
34
|
import { EnabledStatusIcon } from "@/components/EnabledStatusIcon";
|
|
21
35
|
import { BundleChildrenPanel } from "@/components/features/bundles/BundleChildrenPanel";
|
|
22
36
|
import { ChannelManagementDialog } from "@/components/features/channels/ChannelManagementDialog";
|
|
23
37
|
import { useReleaseColumns } from "@/components/features/FeatureSlots";
|
|
38
|
+
import { CopyableText } from "@/components/features/native-builds/CopyableText";
|
|
24
39
|
import { ReleaseEditorSheet } from "@/components/features/releases/ReleaseEditorSheet";
|
|
25
40
|
import { ReleaseStateBadge } from "@/components/features/releases/ReleaseStateBadge";
|
|
26
|
-
import {
|
|
27
|
-
|
|
41
|
+
import {
|
|
42
|
+
DataCardFold,
|
|
43
|
+
DataTableFold,
|
|
44
|
+
foldKey,
|
|
45
|
+
foldLabel,
|
|
46
|
+
FoldStatus,
|
|
47
|
+
foldedTotal,
|
|
48
|
+
groupsOf,
|
|
49
|
+
useOpenFolds,
|
|
50
|
+
} from "@/components/FoldedRows";
|
|
51
|
+
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
52
|
+
import { RelativeTime } from "@/components/RelativeTime";
|
|
28
53
|
import { RolloutPercentageBadge } from "@/components/RolloutPercentageBadge";
|
|
29
|
-
import {
|
|
54
|
+
import { RowReason } from "@/components/RowReason";
|
|
55
|
+
import { TargetDisplay } from "@/components/TargetDisplay";
|
|
56
|
+
import {
|
|
57
|
+
Alert,
|
|
58
|
+
AlertAction,
|
|
59
|
+
AlertDescription,
|
|
60
|
+
AlertTitle,
|
|
61
|
+
} from "@/components/ui/alert";
|
|
30
62
|
import { Badge } from "@/components/ui/badge";
|
|
31
63
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
32
64
|
import {
|
|
@@ -39,34 +71,45 @@ import {
|
|
|
39
71
|
} from "@/components/ui/select";
|
|
40
72
|
import { SidebarTrigger } from "@/components/ui/sidebar";
|
|
41
73
|
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";
|
|
74
|
+
import { TableCell, TableHead, TableRow } from "@/components/ui/table";
|
|
50
75
|
import { useIsMobile } from "@/hooks/use-mobile";
|
|
51
76
|
import {
|
|
52
77
|
useBundleChildCountsQuery,
|
|
53
78
|
useBundleChildrenQuery,
|
|
54
79
|
useBundleQuery,
|
|
55
80
|
useChannelsQuery,
|
|
81
|
+
useReleaseFoldQuery,
|
|
56
82
|
useReleasesQuery,
|
|
57
83
|
} from "@/lib/api";
|
|
84
|
+
import { ALL_CHANNELS } from "@/lib/constants";
|
|
85
|
+
import type { Fold } from "@/lib/server/foldedPage";
|
|
58
86
|
import type { ReleaseListRow } from "@/lib/server/releaseReachability";
|
|
59
87
|
import { cn } from "@/lib/utils";
|
|
60
88
|
|
|
61
89
|
import {
|
|
62
90
|
hasReleaseFilters,
|
|
63
91
|
releaseFilterOf,
|
|
92
|
+
resolveReleaseSearch,
|
|
64
93
|
type ReleaseSearch,
|
|
94
|
+
showsDefaultReleases,
|
|
65
95
|
updateReleaseFilters,
|
|
66
96
|
validateReleaseSearch,
|
|
67
97
|
} from "./-releases-search";
|
|
68
98
|
|
|
69
|
-
|
|
99
|
+
/** The list while its channel is unknown: loading, whatever the cache holds. */
|
|
100
|
+
const PENDING_RELEASES = {
|
|
101
|
+
data: undefined,
|
|
102
|
+
error: null,
|
|
103
|
+
isError: false,
|
|
104
|
+
isPending: true,
|
|
105
|
+
isPlaceholderData: false,
|
|
106
|
+
} as const;
|
|
107
|
+
|
|
108
|
+
/** A fold of unreachable bundles: "1 unreachable bundle", "2 …". */
|
|
109
|
+
const UNREACHABLE_BUNDLES = {
|
|
110
|
+
one: "unreachable bundle",
|
|
111
|
+
other: "unreachable bundles",
|
|
112
|
+
} as const;
|
|
70
113
|
const platformFilterItems = [
|
|
71
114
|
{ label: "iOS", value: "ios" },
|
|
72
115
|
{ label: "Android", value: "android" },
|
|
@@ -76,29 +119,6 @@ const statusFilterItems = [
|
|
|
76
119
|
{ label: "Enabled", value: "enabled" },
|
|
77
120
|
{ label: "Disabled", value: "disabled" },
|
|
78
121
|
];
|
|
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
122
|
export const Route = createFileRoute("/")({
|
|
103
123
|
component: BundlesPage,
|
|
104
124
|
validateSearch: validateReleaseSearch,
|
|
@@ -106,62 +126,56 @@ export const Route = createFileRoute("/")({
|
|
|
106
126
|
|
|
107
127
|
function BundleFilterToolbar({
|
|
108
128
|
channels,
|
|
129
|
+
clearable,
|
|
109
130
|
onChange,
|
|
110
131
|
onClear,
|
|
111
132
|
onManageChannels,
|
|
133
|
+
pending,
|
|
112
134
|
search,
|
|
113
135
|
}: {
|
|
114
136
|
channels: readonly ChannelRow[];
|
|
137
|
+
/** Whether the list shows other than what it opens on. */
|
|
138
|
+
clearable: boolean;
|
|
115
139
|
onChange: (filters: Partial<ReleaseSearch>) => void;
|
|
116
140
|
onClear: () => void;
|
|
117
141
|
onManageChannels: () => void;
|
|
142
|
+
/** Whether the channel the list opens on is still unknown. */
|
|
143
|
+
pending: boolean;
|
|
118
144
|
search: ReleaseSearch;
|
|
119
145
|
}) {
|
|
120
|
-
const hasFilters = hasReleaseFilters(search);
|
|
121
146
|
// Releases list by channel and platform together: the index serves that pair.
|
|
122
147
|
const channelSelected = search.channelId !== undefined;
|
|
123
|
-
const channelFilterItems = [
|
|
124
|
-
{ label: "All Channels", value: "all" },
|
|
125
|
-
...channels.map((channel) => ({
|
|
126
|
-
label: channel.name,
|
|
127
|
-
value: channel.id,
|
|
128
|
-
})),
|
|
129
|
-
];
|
|
130
148
|
|
|
131
149
|
return (
|
|
132
150
|
<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" />
|
|
151
|
+
<SidebarTrigger className="-ml-1 size-11 lg:size-7" />
|
|
134
152
|
<h1 className="sr-only">Bundles</h1>
|
|
135
153
|
<div className="ml-1 flex items-center gap-1.5 text-muted-foreground sm:ml-2">
|
|
136
154
|
<Filter className="size-3.5" />
|
|
137
155
|
<span className="text-xs font-medium">Filters</span>
|
|
138
156
|
</div>
|
|
139
|
-
<
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
157
|
+
<ChannelPicker
|
|
158
|
+
allChannels
|
|
159
|
+
className="max-sm:order-1 max-sm:min-w-0 max-sm:basis-full"
|
|
160
|
+
onValueChange={(name) =>
|
|
161
|
+
onChange(
|
|
162
|
+
name === undefined
|
|
163
|
+
? { channelId: undefined, channels: ALL_CHANNELS }
|
|
164
|
+
: {
|
|
165
|
+
channelId:
|
|
166
|
+
channels.find((channel) => channel.name === name)?.id ??
|
|
167
|
+
name,
|
|
168
|
+
},
|
|
169
|
+
)
|
|
145
170
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
<SelectContent>
|
|
155
|
-
<SelectGroup>
|
|
156
|
-
<SelectItem value="all">All Channels</SelectItem>
|
|
157
|
-
{channels.map((channel) => (
|
|
158
|
-
<SelectItem key={channel.id} value={channel.id}>
|
|
159
|
-
{channel.name}
|
|
160
|
-
</SelectItem>
|
|
161
|
-
))}
|
|
162
|
-
</SelectGroup>
|
|
163
|
-
</SelectContent>
|
|
164
|
-
</Select>
|
|
171
|
+
pending={pending}
|
|
172
|
+
value={
|
|
173
|
+
search.channelId === undefined
|
|
174
|
+
? undefined
|
|
175
|
+
: (channels.find(({ id }) => id === search.channelId)?.name ??
|
|
176
|
+
search.channelId)
|
|
177
|
+
}
|
|
178
|
+
/>
|
|
165
179
|
<Select
|
|
166
180
|
disabled={!channelSelected}
|
|
167
181
|
items={platformFilterItems}
|
|
@@ -172,7 +186,7 @@ function BundleFilterToolbar({
|
|
|
172
186
|
>
|
|
173
187
|
<SelectTrigger
|
|
174
188
|
aria-label="Platform"
|
|
175
|
-
className="
|
|
189
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-sm data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:text-xs sm:data-[size=default]:h-8"
|
|
176
190
|
title={channelSelected ? undefined : "Choose a channel first"}
|
|
177
191
|
>
|
|
178
192
|
<SelectValue />
|
|
@@ -207,7 +221,7 @@ function BundleFilterToolbar({
|
|
|
207
221
|
>
|
|
208
222
|
<SelectTrigger
|
|
209
223
|
aria-label="Status"
|
|
210
|
-
className="
|
|
224
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-sm data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:text-xs sm:data-[size=default]:h-8"
|
|
211
225
|
>
|
|
212
226
|
<SelectValue />
|
|
213
227
|
</SelectTrigger>
|
|
@@ -221,6 +235,7 @@ function BundleFilterToolbar({
|
|
|
221
235
|
</Select>
|
|
222
236
|
<Button
|
|
223
237
|
aria-label="Manage channels"
|
|
238
|
+
className="size-11 max-sm:ml-auto sm:size-7"
|
|
224
239
|
onClick={onManageChannels}
|
|
225
240
|
size="icon-sm"
|
|
226
241
|
title="Manage channels"
|
|
@@ -229,11 +244,11 @@ function BundleFilterToolbar({
|
|
|
229
244
|
<Tags />
|
|
230
245
|
</Button>
|
|
231
246
|
{search.bundleId ? (
|
|
232
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
247
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
233
248
|
Artifact filter
|
|
234
249
|
<button
|
|
235
250
|
aria-label="Clear artifact filter"
|
|
236
|
-
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"
|
|
237
252
|
onClick={() => onChange({ bundleId: undefined })}
|
|
238
253
|
type="button"
|
|
239
254
|
>
|
|
@@ -242,11 +257,11 @@ function BundleFilterToolbar({
|
|
|
242
257
|
</Badge>
|
|
243
258
|
) : null}
|
|
244
259
|
{search.scopeKey ? (
|
|
245
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
260
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
246
261
|
Target filter
|
|
247
262
|
<button
|
|
248
263
|
aria-label="Clear target filter"
|
|
249
|
-
className="rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
264
|
+
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
265
|
onClick={() => onChange({ scopeKey: undefined })}
|
|
251
266
|
type="button"
|
|
252
267
|
>
|
|
@@ -254,9 +269,9 @@ function BundleFilterToolbar({
|
|
|
254
269
|
</button>
|
|
255
270
|
</Badge>
|
|
256
271
|
) : null}
|
|
257
|
-
{
|
|
272
|
+
{clearable ? (
|
|
258
273
|
<Button
|
|
259
|
-
className="h-
|
|
274
|
+
className="h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8"
|
|
260
275
|
onClick={onClear}
|
|
261
276
|
size="sm"
|
|
262
277
|
variant="ghost"
|
|
@@ -299,7 +314,7 @@ function BundleEntry({
|
|
|
299
314
|
: "Show advanced artifact diagnostics"
|
|
300
315
|
}
|
|
301
316
|
title="Advanced artifact diagnostics"
|
|
302
|
-
className="size-
|
|
317
|
+
className="size-11 shrink-0 touch-manipulation sm:size-8"
|
|
303
318
|
onClick={onToggleExpand}
|
|
304
319
|
size="icon"
|
|
305
320
|
type="button"
|
|
@@ -308,7 +323,7 @@ function BundleEntry({
|
|
|
308
323
|
{expanded ? <ChevronDown /> : <ChevronRight />}
|
|
309
324
|
</Button>
|
|
310
325
|
) : (
|
|
311
|
-
<span aria-hidden="true" className="size-
|
|
326
|
+
<span aria-hidden="true" className="size-11 shrink-0 sm:size-8" />
|
|
312
327
|
)}
|
|
313
328
|
<button
|
|
314
329
|
aria-label={`Open details for ID ${release.id}`}
|
|
@@ -330,14 +345,13 @@ function BundleEntry({
|
|
|
330
345
|
</Badge>
|
|
331
346
|
) : null}
|
|
332
347
|
{release.currentlyUnreachable ? (
|
|
333
|
-
<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
348
|
+
<RowReason
|
|
349
|
+
icon={CircleOff}
|
|
350
|
+
label="Unreachable: no device gets this bundle with the current delivery settings."
|
|
351
|
+
reason="No device gets this bundle with the current delivery settings."
|
|
337
352
|
>
|
|
338
|
-
<CircleOff className="size-3.5" />
|
|
339
353
|
Unreachable
|
|
340
|
-
</
|
|
354
|
+
</RowReason>
|
|
341
355
|
) : null}
|
|
342
356
|
</div>
|
|
343
357
|
);
|
|
@@ -404,21 +418,26 @@ function ReleaseBundleChildrenPanel({
|
|
|
404
418
|
);
|
|
405
419
|
}
|
|
406
420
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
421
|
+
/** What a group of release rows renders with: its own patch counts and feature slots. */
|
|
422
|
+
interface RowContext {
|
|
423
|
+
readonly patchCounts: Readonly<Record<string, number | undefined>>;
|
|
424
|
+
readonly slotReleases: readonly {
|
|
425
|
+
readonly releaseId: string;
|
|
426
|
+
readonly platform: "ios" | "android";
|
|
427
|
+
readonly channel: string;
|
|
428
|
+
readonly builtIn: boolean;
|
|
429
|
+
}[];
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* The patch counts and feature slots of a group of releases: the page's
|
|
434
|
+
* reachable ones, or one fold's, so opening a fold reads its own rows'
|
|
435
|
+
* and changes no other query.
|
|
436
|
+
*/
|
|
437
|
+
function useRowContext(
|
|
438
|
+
releases: readonly ReleaseListRow[],
|
|
439
|
+
channels: readonly ChannelRow[],
|
|
440
|
+
): RowContext {
|
|
422
441
|
const bundleIds = Array.from(
|
|
423
442
|
new Set(
|
|
424
443
|
releases.flatMap((release) =>
|
|
@@ -427,24 +446,143 @@ function BundlesPage() {
|
|
|
427
446
|
),
|
|
428
447
|
);
|
|
429
448
|
const patchCountsQuery = useBundleChildCountsQuery(bundleIds);
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
]
|
|
446
|
-
|
|
447
|
-
}
|
|
449
|
+
return {
|
|
450
|
+
patchCounts: patchCountsQuery.data ?? {},
|
|
451
|
+
slotReleases: releases.flatMap((release) => {
|
|
452
|
+
const channel = channels.find(
|
|
453
|
+
(item) => item.id === release.channel_id,
|
|
454
|
+
)?.name;
|
|
455
|
+
return channel
|
|
456
|
+
? [
|
|
457
|
+
{
|
|
458
|
+
releaseId: release.id,
|
|
459
|
+
platform: release.platform,
|
|
460
|
+
channel,
|
|
461
|
+
builtIn: !release.bundle_id,
|
|
462
|
+
},
|
|
463
|
+
]
|
|
464
|
+
: [];
|
|
465
|
+
}),
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
/** Whether a fold of the page holds `releaseId`: IDs order the list. */
|
|
470
|
+
const foldHolds = (fold: Fold, releaseId: string) =>
|
|
471
|
+
releaseId >= fold.to && (fold.from === undefined || releaseId < fold.from);
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* A fold of unreachable bundles, where they sit in the list: closed, the
|
|
475
|
+
* number it holds; open, those bundles in order, subdued, read a chunk at a
|
|
476
|
+
* time once it opens.
|
|
477
|
+
*/
|
|
478
|
+
function UnreachableBundlesFold({
|
|
479
|
+
fold,
|
|
480
|
+
filter,
|
|
481
|
+
channels,
|
|
482
|
+
columns,
|
|
483
|
+
isMobile,
|
|
484
|
+
open,
|
|
485
|
+
onOpenChange,
|
|
486
|
+
render,
|
|
487
|
+
}: {
|
|
488
|
+
readonly fold: Fold;
|
|
489
|
+
readonly filter: ReturnType<typeof releaseFilterOf>;
|
|
490
|
+
readonly channels: readonly ChannelRow[];
|
|
491
|
+
readonly columns: number;
|
|
492
|
+
readonly isMobile: boolean;
|
|
493
|
+
readonly open: boolean;
|
|
494
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
495
|
+
readonly render: (release: ReleaseListRow, ctx: RowContext) => ReactNode;
|
|
496
|
+
}) {
|
|
497
|
+
const query = useReleaseFoldQuery(
|
|
498
|
+
filter,
|
|
499
|
+
{ ...(fold.from === undefined ? {} : { from: fold.from }), to: fold.to },
|
|
500
|
+
open,
|
|
501
|
+
);
|
|
502
|
+
const rows = query.data?.pages.flatMap((page) => page.rows) ?? [];
|
|
503
|
+
const ctx = useRowContext(rows, channels);
|
|
504
|
+
const statusColumns = isMobile ? undefined : columns;
|
|
505
|
+
const status = query.isError ? (
|
|
506
|
+
<FoldStatus
|
|
507
|
+
columns={statusColumns}
|
|
508
|
+
label="Unreachable bundles"
|
|
509
|
+
onRetry={() => void query.refetch()}
|
|
510
|
+
state="error"
|
|
511
|
+
/>
|
|
512
|
+
) : query.isPending || query.isFetchingNextPage ? (
|
|
513
|
+
<FoldStatus
|
|
514
|
+
columns={statusColumns}
|
|
515
|
+
label="Loading unreachable bundles"
|
|
516
|
+
state="loading"
|
|
517
|
+
/>
|
|
518
|
+
) : query.hasNextPage ? (
|
|
519
|
+
<FoldStatus
|
|
520
|
+
columns={statusColumns}
|
|
521
|
+
label="Unreachable bundles"
|
|
522
|
+
onMore={() => void query.fetchNextPage()}
|
|
523
|
+
state="more"
|
|
524
|
+
/>
|
|
525
|
+
) : null;
|
|
526
|
+
const props = {
|
|
527
|
+
label: foldLabel(fold, UNREACHABLE_BUNDLES),
|
|
528
|
+
open,
|
|
529
|
+
onOpenChange,
|
|
530
|
+
panelId: `bundle-fold-${fold.to}`,
|
|
531
|
+
};
|
|
532
|
+
return isMobile ? (
|
|
533
|
+
<DataCardFold {...props}>
|
|
534
|
+
{rows.map((release) => render(release, ctx))}
|
|
535
|
+
{status}
|
|
536
|
+
</DataCardFold>
|
|
537
|
+
) : (
|
|
538
|
+
<DataTableFold {...props} columns={columns}>
|
|
539
|
+
{rows.map((release) => render(release, ctx))}
|
|
540
|
+
{status}
|
|
541
|
+
</DataTableFold>
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
function BundlesPage() {
|
|
546
|
+
const urlSearch = Route.useSearch();
|
|
547
|
+
const navigate = Route.useNavigate();
|
|
548
|
+
const isMobile = useIsMobile();
|
|
549
|
+
const [channelsOpen, setChannelsOpen] = useState(false);
|
|
550
|
+
const [expandedReleaseId, setExpandedReleaseId] = useState<string>();
|
|
551
|
+
const folds = useOpenFolds();
|
|
552
|
+
const channelsQuery = useChannelsQuery();
|
|
553
|
+
const channels = channelsQuery.data ?? [];
|
|
554
|
+
// The list the page shows: a URL without a channel opens on the default
|
|
555
|
+
// one, known once the channel list arrives. A loaded list outlives a failed
|
|
556
|
+
// refresh; without one, the default list waits, and nothing reads every
|
|
557
|
+
// channel in its place.
|
|
558
|
+
const channelRows = channelsQuery.data;
|
|
559
|
+
const resolved = resolveReleaseSearch(urlSearch, channelRows);
|
|
560
|
+
const channelsFailed = resolved === undefined && channelsQuery.isError;
|
|
561
|
+
const search = resolved ?? urlSearch;
|
|
562
|
+
const filter = releaseFilterOf(search);
|
|
563
|
+
const releasesQuery = useReleasesQuery(
|
|
564
|
+
{
|
|
565
|
+
afterReleaseId: search.afterReleaseId,
|
|
566
|
+
beforeReleaseId: search.beforeReleaseId,
|
|
567
|
+
filter,
|
|
568
|
+
// The selected release never folds, so a link to it shows its row.
|
|
569
|
+
releaseId: search.releaseId,
|
|
570
|
+
},
|
|
571
|
+
// Nothing reads every channel's list on the way to the default one.
|
|
572
|
+
{ enabled: resolved !== undefined },
|
|
573
|
+
);
|
|
574
|
+
const clearable = !showsDefaultReleases(urlSearch, channelRows);
|
|
575
|
+
// Until the channel is known, the list shows nothing the cache holds: a
|
|
576
|
+
// cached page of every channel, or a fold that would read more of it.
|
|
577
|
+
const list = resolved === undefined ? PENDING_RELEASES : releasesQuery;
|
|
578
|
+
const entries = list.data?.entries ?? [];
|
|
579
|
+
// The page's reachable releases (and the selected one), outside its folds.
|
|
580
|
+
const releases = entries.flatMap((entry) =>
|
|
581
|
+
entry.kind === "row" ? [entry.row] : [],
|
|
582
|
+
);
|
|
583
|
+
const pageContext = useRowContext(releases, channels);
|
|
584
|
+
const nextCursor = list.data?.next;
|
|
585
|
+
const previousCursor = list.data?.previous;
|
|
448
586
|
// Features add columns, such as release activity where the console reads it.
|
|
449
587
|
const featureColumns = useReleaseColumns();
|
|
450
588
|
const columnCount = 10 + featureColumns.length;
|
|
@@ -452,19 +590,37 @@ function BundlesPage() {
|
|
|
452
590
|
channels.map((channel) => [channel.id, channel.name]),
|
|
453
591
|
);
|
|
454
592
|
|
|
593
|
+
// A lineage panel shows only with its row: whatever hides the row, a fold
|
|
594
|
+
// closing, a filter, a refetch or Back, closes the panel, and opening the
|
|
595
|
+
// row again opens none.
|
|
596
|
+
const visible = (releaseId: string) =>
|
|
597
|
+
releases.some((release) => release.id === releaseId) ||
|
|
598
|
+
entries.some(
|
|
599
|
+
(entry) =>
|
|
600
|
+
entry.kind === "fold" &&
|
|
601
|
+
folds.isOpen(foldKey(entry)) &&
|
|
602
|
+
foldHolds(entry, releaseId),
|
|
603
|
+
);
|
|
604
|
+
const lineageVisible =
|
|
605
|
+
expandedReleaseId !== undefined && visible(expandedReleaseId);
|
|
455
606
|
useEffect(() => {
|
|
456
|
-
if (
|
|
457
|
-
expandedReleaseId &&
|
|
458
|
-
!releases.some((release) => release.id === expandedReleaseId)
|
|
459
|
-
) {
|
|
607
|
+
if (expandedReleaseId !== undefined && !lineageVisible) {
|
|
460
608
|
setExpandedReleaseId(undefined);
|
|
461
609
|
}
|
|
462
|
-
}, [expandedReleaseId,
|
|
610
|
+
}, [expandedReleaseId, lineageVisible]);
|
|
463
611
|
|
|
464
612
|
const go = (nextSearch: ReleaseSearch, resetScroll = true) =>
|
|
465
613
|
void navigate({ resetScroll, search: nextSearch, to: "/" });
|
|
466
614
|
const changeFilters = (filters: Partial<ReleaseSearch>) =>
|
|
467
615
|
go(updateReleaseFilters(search, filters));
|
|
616
|
+
// Selecting a bundle in an open fold splits the fold around it: the part
|
|
617
|
+
// under it opens too, so no row moves out of sight.
|
|
618
|
+
const select = (release: ReleaseListRow) => {
|
|
619
|
+
if (!releases.some(({ id }) => id === release.id)) {
|
|
620
|
+
folds.set(release.id, true);
|
|
621
|
+
}
|
|
622
|
+
go({ ...search, releaseId: release.id }, false);
|
|
623
|
+
};
|
|
468
624
|
const openChildBundle = (bundle: Bundle) => {
|
|
469
625
|
const childRelease = releases.find(
|
|
470
626
|
(release) => release.bundle_id === bundle.id,
|
|
@@ -482,8 +638,10 @@ function BundlesPage() {
|
|
|
482
638
|
const previousSearch: ReleaseSearch | null = previousCursor
|
|
483
639
|
? {
|
|
484
640
|
...search,
|
|
485
|
-
afterReleaseId:
|
|
486
|
-
|
|
641
|
+
afterReleaseId:
|
|
642
|
+
"after" in previousCursor ? previousCursor.after : undefined,
|
|
643
|
+
beforeReleaseId:
|
|
644
|
+
"before" in previousCursor ? previousCursor.before : undefined,
|
|
487
645
|
releaseId: undefined,
|
|
488
646
|
}
|
|
489
647
|
: null;
|
|
@@ -502,190 +660,355 @@ function BundlesPage() {
|
|
|
502
660
|
releaseId: undefined,
|
|
503
661
|
};
|
|
504
662
|
|
|
663
|
+
const renderCard = (release: ReleaseListRow, ctx: RowContext) => {
|
|
664
|
+
const channelName =
|
|
665
|
+
channelNames.get(release.channel_id) ?? release.channel_id;
|
|
666
|
+
const patchCount = release.bundle_id
|
|
667
|
+
? ctx.patchCounts[release.bundle_id]
|
|
668
|
+
: 0;
|
|
669
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
670
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
671
|
+
|
|
672
|
+
return (
|
|
673
|
+
<Fragment key={release.id}>
|
|
674
|
+
{/* The ID button opens it for keyboards and screen
|
|
675
|
+
readers; a tap anywhere else on the card does too. */}
|
|
676
|
+
<DataCard
|
|
677
|
+
aria-label={`Bundle ${release.id}`}
|
|
678
|
+
className={cn(
|
|
679
|
+
"gap-3",
|
|
680
|
+
release.currentlyUnreachable &&
|
|
681
|
+
"bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100",
|
|
682
|
+
isExpanded && "border-b-0 bg-primary/5",
|
|
683
|
+
)}
|
|
684
|
+
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
685
|
+
onClick={openOutsideControls(() => select(release))}
|
|
686
|
+
>
|
|
687
|
+
<div className="flex items-start justify-between gap-3">
|
|
688
|
+
<BundleEntry
|
|
689
|
+
expanded={isExpanded}
|
|
690
|
+
onOpen={() => select(release)}
|
|
691
|
+
onToggleExpand={() =>
|
|
692
|
+
setExpandedReleaseId(isExpanded ? undefined : release.id)
|
|
693
|
+
}
|
|
694
|
+
release={release}
|
|
695
|
+
/>
|
|
696
|
+
<ChannelBadge channel={channelName} className="shrink-0" />
|
|
697
|
+
</div>
|
|
698
|
+
<p className="flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
699
|
+
<span className="flex items-center gap-1.5 text-foreground">
|
|
700
|
+
<PlatformIcon className="size-4" platform={release.platform} />
|
|
701
|
+
{release.platform === "ios" ? "iOS" : "Android"}
|
|
702
|
+
</span>
|
|
703
|
+
{patchCount === undefined || patchCount > 0 ? (
|
|
704
|
+
<>
|
|
705
|
+
<span aria-hidden="true">·</span>
|
|
706
|
+
<span>
|
|
707
|
+
{patchCount === undefined
|
|
708
|
+
? "Checking patches"
|
|
709
|
+
: `${patchCount} ${patchCount === 1 ? "patch" : "patches"}`}
|
|
710
|
+
</span>
|
|
711
|
+
</>
|
|
712
|
+
) : null}
|
|
713
|
+
<span aria-hidden="true">·</span>
|
|
714
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
715
|
+
</p>
|
|
716
|
+
<div className="flex flex-wrap items-center gap-x-3 gap-y-2 text-xs">
|
|
717
|
+
<RolloutPercentageBadge
|
|
718
|
+
percentage={release.rollout_cohort_count / 10}
|
|
719
|
+
/>
|
|
720
|
+
<ReleaseStateBadge release={release} />
|
|
721
|
+
{release.should_force_update ? (
|
|
722
|
+
<Badge variant="secondary">Force update</Badge>
|
|
723
|
+
) : null}
|
|
724
|
+
<span className="flex items-center">
|
|
725
|
+
<span className="sr-only">Target </span>
|
|
726
|
+
<TargetDisplay
|
|
727
|
+
appVersion={release.target_app_version}
|
|
728
|
+
fingerprintHash={release.fingerprint_hash}
|
|
729
|
+
/>
|
|
730
|
+
</span>
|
|
731
|
+
</div>
|
|
732
|
+
{featureColumns.map(({ Cell, feature, label }) => (
|
|
733
|
+
<div className="mt-3 text-xs" key={feature}>
|
|
734
|
+
<span className="sr-only">{label}</span>
|
|
735
|
+
<Cell releaseId={release.id} releases={ctx.slotReleases} />
|
|
736
|
+
</div>
|
|
737
|
+
))}
|
|
738
|
+
{release.message ? (
|
|
739
|
+
<p className="line-clamp-2 text-xs text-muted-foreground">
|
|
740
|
+
{release.message}
|
|
741
|
+
</p>
|
|
742
|
+
) : null}
|
|
743
|
+
</DataCard>
|
|
744
|
+
{isExpanded && release.bundle_id ? (
|
|
745
|
+
<ReleaseBundleChildrenPanel
|
|
746
|
+
onDetailClick={openChildBundle}
|
|
747
|
+
panelId={panelId}
|
|
748
|
+
release={release}
|
|
749
|
+
/>
|
|
750
|
+
) : null}
|
|
751
|
+
</Fragment>
|
|
752
|
+
);
|
|
753
|
+
};
|
|
754
|
+
|
|
755
|
+
const renderRow = (release: ReleaseListRow, ctx: RowContext) => {
|
|
756
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
757
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
758
|
+
|
|
759
|
+
return (
|
|
760
|
+
<Fragment key={release.id}>
|
|
761
|
+
<DataTableRow
|
|
762
|
+
aria-label={`Open bundle ${release.id}`}
|
|
763
|
+
className={cn(
|
|
764
|
+
release.currentlyUnreachable &&
|
|
765
|
+
"bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100",
|
|
766
|
+
isExpanded && "bg-primary/5",
|
|
767
|
+
)}
|
|
768
|
+
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
769
|
+
onOpen={() => select(release)}
|
|
770
|
+
>
|
|
771
|
+
<TableCell>
|
|
772
|
+
<BundleEntry
|
|
773
|
+
expanded={isExpanded}
|
|
774
|
+
onOpen={() => select(release)}
|
|
775
|
+
onToggleExpand={() =>
|
|
776
|
+
setExpandedReleaseId(isExpanded ? undefined : release.id)
|
|
777
|
+
}
|
|
778
|
+
release={release}
|
|
779
|
+
/>
|
|
780
|
+
</TableCell>
|
|
781
|
+
<TableCell>
|
|
782
|
+
<ChannelBadge
|
|
783
|
+
channel={
|
|
784
|
+
channelNames.get(release.channel_id) ?? release.channel_id
|
|
785
|
+
}
|
|
786
|
+
/>
|
|
787
|
+
</TableCell>
|
|
788
|
+
<TableCell className="whitespace-nowrap">
|
|
789
|
+
<PlatformLabel platform={release.platform} />
|
|
790
|
+
</TableCell>
|
|
791
|
+
<TableCell>
|
|
792
|
+
{release.bundle_id &&
|
|
793
|
+
ctx.patchCounts[release.bundle_id] === undefined ? (
|
|
794
|
+
<span className="text-sm text-muted-foreground">Checking</span>
|
|
795
|
+
) : release.bundle_id && ctx.patchCounts[release.bundle_id]! > 0 ? (
|
|
796
|
+
<Badge variant="secondary">
|
|
797
|
+
{ctx.patchCounts[release.bundle_id]}{" "}
|
|
798
|
+
{ctx.patchCounts[release.bundle_id] === 1 ? "patch" : "patches"}
|
|
799
|
+
</Badge>
|
|
800
|
+
) : (
|
|
801
|
+
<span className="text-muted-foreground">-</span>
|
|
802
|
+
)}
|
|
803
|
+
</TableCell>
|
|
804
|
+
<TableCell>
|
|
805
|
+
<TargetDisplay
|
|
806
|
+
appVersion={release.target_app_version}
|
|
807
|
+
fingerprintHash={release.fingerprint_hash}
|
|
808
|
+
/>
|
|
809
|
+
</TableCell>
|
|
810
|
+
<TableCell>
|
|
811
|
+
<span className="flex items-center">
|
|
812
|
+
<EnabledStatusIcon enabled={release.enabled} />
|
|
813
|
+
<span className="sr-only">
|
|
814
|
+
{release.enabled ? "Enabled" : "Disabled"}
|
|
815
|
+
</span>
|
|
816
|
+
</span>
|
|
817
|
+
</TableCell>
|
|
818
|
+
<TableCell>
|
|
819
|
+
<span className="flex items-center">
|
|
820
|
+
<EnabledStatusIcon
|
|
821
|
+
enabled={release.should_force_update}
|
|
822
|
+
falseIcon="minus"
|
|
823
|
+
/>
|
|
824
|
+
<span className="sr-only">
|
|
825
|
+
{release.should_force_update ? "Required" : "Optional"}
|
|
826
|
+
</span>
|
|
827
|
+
</span>
|
|
828
|
+
</TableCell>
|
|
829
|
+
<TableCell>
|
|
830
|
+
<RolloutPercentageBadge
|
|
831
|
+
percentage={release.rollout_cohort_count / 10}
|
|
832
|
+
/>
|
|
833
|
+
</TableCell>
|
|
834
|
+
{featureColumns.map(({ Cell, feature }) => (
|
|
835
|
+
<TableCell key={feature}>
|
|
836
|
+
<Cell releaseId={release.id} releases={ctx.slotReleases} />
|
|
837
|
+
</TableCell>
|
|
838
|
+
))}
|
|
839
|
+
<TableCell
|
|
840
|
+
className="text-sm text-muted-foreground"
|
|
841
|
+
title={release.message ?? undefined}
|
|
842
|
+
>
|
|
843
|
+
{release.message || "-"}
|
|
844
|
+
</TableCell>
|
|
845
|
+
<TableCell className="text-xs text-muted-foreground">
|
|
846
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
847
|
+
</TableCell>
|
|
848
|
+
</DataTableRow>
|
|
849
|
+
{isExpanded && release.bundle_id ? (
|
|
850
|
+
<TableRow className="hover:bg-transparent">
|
|
851
|
+
<TableCell className="border-t-0 p-0" colSpan={columnCount}>
|
|
852
|
+
<ReleaseBundleChildrenPanel
|
|
853
|
+
onDetailClick={openChildBundle}
|
|
854
|
+
panelId={panelId}
|
|
855
|
+
release={release}
|
|
856
|
+
/>
|
|
857
|
+
</TableCell>
|
|
858
|
+
</TableRow>
|
|
859
|
+
) : null}
|
|
860
|
+
</Fragment>
|
|
861
|
+
);
|
|
862
|
+
};
|
|
863
|
+
|
|
864
|
+
const fold = (
|
|
865
|
+
entry: Fold,
|
|
866
|
+
render: (release: ReleaseListRow, ctx: RowContext) => ReactNode,
|
|
867
|
+
) => (
|
|
868
|
+
<UnreachableBundlesFold
|
|
869
|
+
channels={channels}
|
|
870
|
+
columns={columnCount}
|
|
871
|
+
filter={filter}
|
|
872
|
+
fold={entry}
|
|
873
|
+
isMobile={isMobile}
|
|
874
|
+
key={`fold-${entry.to}`}
|
|
875
|
+
onOpenChange={(open) => folds.set(foldKey(entry), open)}
|
|
876
|
+
open={folds.isOpen(foldKey(entry))}
|
|
877
|
+
render={render}
|
|
878
|
+
/>
|
|
879
|
+
);
|
|
880
|
+
// The list it opens on, when that channel has no bundle for the platform.
|
|
881
|
+
const openingTitle = (
|
|
882
|
+
<>
|
|
883
|
+
No {search.platform === "android" ? "Android" : "iOS"} bundles in{" "}
|
|
884
|
+
<span translate="no">
|
|
885
|
+
{channelNames.get(search.channelId ?? "") ?? search.channelId}
|
|
886
|
+
</span>
|
|
887
|
+
</>
|
|
888
|
+
);
|
|
889
|
+
// A page of unreachable bundles alone: one fold under the empty state.
|
|
890
|
+
const foldedOnly = releases.length === 0 && entries.length > 0;
|
|
891
|
+
const empty = (
|
|
892
|
+
<DataTableEmpty
|
|
893
|
+
icon={Package}
|
|
894
|
+
title={
|
|
895
|
+
foldedOnly
|
|
896
|
+
? "No device gets the bundles here"
|
|
897
|
+
: onLaterPage
|
|
898
|
+
? "No more bundles"
|
|
899
|
+
: !hasReleaseFilters(search)
|
|
900
|
+
? "No bundles yet"
|
|
901
|
+
: clearable
|
|
902
|
+
? "No bundles match these filters"
|
|
903
|
+
: openingTitle
|
|
904
|
+
}
|
|
905
|
+
>
|
|
906
|
+
{onLaterPage ? (
|
|
907
|
+
<Link
|
|
908
|
+
className={buttonVariants({
|
|
909
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
910
|
+
variant: "outline",
|
|
911
|
+
})}
|
|
912
|
+
search={newestSearch}
|
|
913
|
+
to="/"
|
|
914
|
+
>
|
|
915
|
+
Show the newest bundles
|
|
916
|
+
</Link>
|
|
917
|
+
) : clearable ? (
|
|
918
|
+
<Button
|
|
919
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
920
|
+
onClick={() => go({})}
|
|
921
|
+
variant="outline"
|
|
922
|
+
>
|
|
923
|
+
Clear filters
|
|
924
|
+
</Button>
|
|
925
|
+
) : hasReleaseFilters(search) ? (
|
|
926
|
+
<Button
|
|
927
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
928
|
+
onClick={() =>
|
|
929
|
+
changeFilters({ channelId: undefined, channels: ALL_CHANNELS })
|
|
930
|
+
}
|
|
931
|
+
variant="outline"
|
|
932
|
+
>
|
|
933
|
+
Show all channels
|
|
934
|
+
</Button>
|
|
935
|
+
) : (
|
|
936
|
+
<>
|
|
937
|
+
<p>Deploy one from your app's project:</p>
|
|
938
|
+
<div className="w-full text-left">
|
|
939
|
+
<CopyableText
|
|
940
|
+
label="the deploy command"
|
|
941
|
+
value="npx hot-updater deploy"
|
|
942
|
+
wrap
|
|
943
|
+
/>
|
|
944
|
+
</div>
|
|
945
|
+
</>
|
|
946
|
+
)}
|
|
947
|
+
</DataTableEmpty>
|
|
948
|
+
);
|
|
949
|
+
|
|
505
950
|
return (
|
|
506
951
|
<div className="flex h-svh min-h-0 min-w-0 flex-col">
|
|
507
952
|
<BundleFilterToolbar
|
|
508
953
|
channels={channels}
|
|
954
|
+
clearable={clearable}
|
|
509
955
|
onChange={changeFilters}
|
|
510
956
|
onClear={() => go({})}
|
|
511
957
|
onManageChannels={() => setChannelsOpen(true)}
|
|
958
|
+
pending={resolved === undefined}
|
|
512
959
|
search={search}
|
|
513
960
|
/>
|
|
514
961
|
|
|
515
962
|
<div className="flex min-h-0 min-w-0 flex-1 flex-col gap-6 bg-muted/5 p-3 sm:p-6">
|
|
516
|
-
{
|
|
963
|
+
{channelsFailed ? (
|
|
964
|
+
<Alert variant="destructive">
|
|
965
|
+
<AlertTriangle />
|
|
966
|
+
<AlertTitle>Channels couldn't be loaded</AlertTitle>
|
|
967
|
+
<AlertDescription>
|
|
968
|
+
Bundles show once the channels load.
|
|
969
|
+
</AlertDescription>
|
|
970
|
+
<AlertAction>
|
|
971
|
+
<Button
|
|
972
|
+
className="min-h-11 sm:min-h-7"
|
|
973
|
+
onClick={() => void channelsQuery.refetch()}
|
|
974
|
+
size="xs"
|
|
975
|
+
variant="outline"
|
|
976
|
+
>
|
|
977
|
+
<RefreshCw data-icon="inline-start" />
|
|
978
|
+
Retry
|
|
979
|
+
</Button>
|
|
980
|
+
</AlertAction>
|
|
981
|
+
</Alert>
|
|
982
|
+
) : list.isError ? (
|
|
517
983
|
<Alert variant="destructive">
|
|
518
984
|
<AlertTriangle />
|
|
519
985
|
<AlertTitle>Bundles could not be loaded</AlertTitle>
|
|
520
|
-
<AlertDescription>{
|
|
986
|
+
<AlertDescription>{list.error?.message}</AlertDescription>
|
|
521
987
|
</Alert>
|
|
522
988
|
) : (
|
|
523
|
-
<
|
|
989
|
+
<DataTableFrame>
|
|
524
990
|
{isMobile ? (
|
|
525
991
|
<div className="h-full overflow-y-auto">
|
|
526
|
-
{
|
|
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
|
-
})
|
|
992
|
+
{list.isPending ? (
|
|
993
|
+
<DataCardSkeletons />
|
|
675
994
|
) : (
|
|
676
|
-
|
|
677
|
-
{
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
995
|
+
<>
|
|
996
|
+
{releases.length === 0 ? (
|
|
997
|
+
<DataCardsEmpty>{empty}</DataCardsEmpty>
|
|
998
|
+
) : null}
|
|
999
|
+
{entries.map((entry) =>
|
|
1000
|
+
entry.kind === "row"
|
|
1001
|
+
? renderCard(entry.row, pageContext)
|
|
1002
|
+
: fold(entry, renderCard),
|
|
1003
|
+
)}
|
|
1004
|
+
</>
|
|
683
1005
|
)}
|
|
684
1006
|
</div>
|
|
685
1007
|
) : (
|
|
686
|
-
<
|
|
687
|
-
|
|
688
|
-
|
|
1008
|
+
<DataTable
|
|
1009
|
+
rowGroups
|
|
1010
|
+
header={
|
|
1011
|
+
<>
|
|
689
1012
|
<TableHead>ID</TableHead>
|
|
690
1013
|
<TableHead>Channel</TableHead>
|
|
691
1014
|
<TableHead>Platform</TableHead>
|
|
@@ -699,296 +1022,53 @@ function BundlesPage() {
|
|
|
699
1022
|
))}
|
|
700
1023
|
<TableHead>Message</TableHead>
|
|
701
1024
|
<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>
|
|
1025
|
+
</>
|
|
1026
|
+
}
|
|
1027
|
+
>
|
|
1028
|
+
{list.isPending ? (
|
|
1029
|
+
<DataTableBody>
|
|
1030
|
+
<DataTableSkeletonRows columns={columnCount} />
|
|
1031
|
+
</DataTableBody>
|
|
1032
|
+
) : (
|
|
1033
|
+
<>
|
|
1034
|
+
{releases.length === 0 ? (
|
|
1035
|
+
<DataTableBody>
|
|
1036
|
+
<DataTableFullRow columns={columnCount}>
|
|
1037
|
+
{empty}
|
|
1038
|
+
</DataTableFullRow>
|
|
1039
|
+
</DataTableBody>
|
|
1040
|
+
) : null}
|
|
1041
|
+
{groupsOf(entries).map((group) =>
|
|
1042
|
+
group.kind === "fold" ? (
|
|
1043
|
+
fold(group.fold, renderRow)
|
|
1044
|
+
) : (
|
|
1045
|
+
<DataTableBody key={`rows-${group.rows[0]!.id}`}>
|
|
1046
|
+
{group.rows.map((release) =>
|
|
1047
|
+
renderRow(release, pageContext),
|
|
1048
|
+
)}
|
|
1049
|
+
</DataTableBody>
|
|
1050
|
+
),
|
|
1051
|
+
)}
|
|
1052
|
+
</>
|
|
1053
|
+
)}
|
|
1054
|
+
</DataTable>
|
|
915
1055
|
)}
|
|
916
|
-
</
|
|
1056
|
+
</DataTableFrame>
|
|
917
1057
|
)}
|
|
918
1058
|
|
|
919
|
-
{!
|
|
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>
|
|
1059
|
+
{!channelsFailed && !list.isError && !list.isPending ? (
|
|
1060
|
+
<DataTablePagination
|
|
1061
|
+
count={releases.length}
|
|
1062
|
+
folded={{ ...foldedTotal(entries), label: "unreachable" }}
|
|
1063
|
+
label="Bundle pagination"
|
|
1064
|
+
noun={["bundle", "bundles"]}
|
|
1065
|
+
pending={list.isPlaceholderData}
|
|
1066
|
+
newest={onLaterPage ? { search: newestSearch, to: "/" } : undefined}
|
|
1067
|
+
next={nextSearch ? { search: nextSearch, to: "/" } : undefined}
|
|
1068
|
+
previous={
|
|
1069
|
+
previousSearch ? { search: previousSearch, to: "/" } : undefined
|
|
1070
|
+
}
|
|
1071
|
+
/>
|
|
992
1072
|
) : null}
|
|
993
1073
|
</div>
|
|
994
1074
|
|