@hot-updater/console 1.2.0-rc.4 → 1.2.0-rc.40
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-qeto9-fq.js +1 -0
- package/.output/public/assets/BundleIdDisplay-BKaGARD1.js +1 -0
- package/.output/public/assets/ChannelBadge-CPc1M44L.js +1 -0
- package/.output/public/assets/CompositeItem-B541MSYC.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-C6aryy7j.js} +1 -1
- package/.output/public/assets/{EventDetails-Dl2RvPAk.js → EventDetails-BdqU96Wu.js} +1 -1
- package/.output/public/assets/HashValueDisplay-BHL4xWSY.js +1 -0
- package/.output/public/assets/InsightsPageHeader-D0Nxcccp.js +1 -0
- package/.output/public/assets/IosInstall-CgNa8B4v.js +1 -0
- package/.output/public/assets/NativeBuildsNav-BxAmQr2E.js +1 -0
- package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-haKPLHiT.js} +1 -1
- package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-DYsYaYt6.js} +1 -1
- package/.output/public/assets/QrCode-BSNEn_M-.js +1 -0
- package/.output/public/assets/RelativeTime-CdQ86VoP.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-Cd1UNLL0.js +1 -0
- package/.output/public/assets/RowReason-CEI-_T6G.js +1 -0
- package/.output/public/assets/SandboxBadge-CqGX5DiH.js +1 -0
- package/.output/public/assets/TargetDisplay-DMZHMgWk.js +1 -0
- package/.output/public/assets/alert-dialog-Cj7AOTIE.js +1 -0
- package/.output/public/assets/api-keys-B9XQLCZ8.js +1 -0
- package/.output/public/assets/api-keys-D4tjInrB.js +1 -0
- package/.output/public/assets/api-tJRzijjy.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-pYZSDIxg.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-zSb7FXDh.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-BjVLMKbo.js} +1 -1
- package/.output/public/assets/dialog-DlAv6zou.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-Bwao2ztZ.js +1 -0
- package/.output/public/assets/field-BiSGCVoS.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-D7PWINwc.js +10 -0
- package/.output/public/assets/input-group-CPboh0Rx.js +1 -0
- package/.output/public/assets/insights-B7GL298D.js +1 -0
- package/.output/public/assets/insights-BzKbxWIo.js +42 -0
- package/.output/public/assets/insights-Q2nAkSMz.js +2 -0
- package/.output/public/assets/insights-api-D4-FZeEI.js +1 -0
- package/.output/public/assets/insights-search-DkovoDrZ.js +1 -0
- package/.output/public/assets/insights-usage-rpc-DkJgbAYm.js +1 -0
- package/.output/public/assets/insights_.distribution-BafQuEd0.js +1 -0
- package/.output/public/assets/insights_.distribution-DHU1udei.js +2 -0
- package/.output/public/assets/insights_.distribution-DmeI9XZw.js +1 -0
- package/.output/public/assets/installations-ClsF2q6A.js +2 -0
- package/.output/public/assets/installations-CmuNX_Ok.js +1 -0
- package/.output/public/assets/installations-oGkAO7nb.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-DJlYvvPY.js +2 -0
- package/.output/public/assets/native-builds-NyGMlBx2.js +1 -0
- package/.output/public/assets/native-builds-uKuvmyXZ.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DZqylSRq.js +1 -0
- package/.output/public/assets/native-builds_._buildId-Dza7vEcy.js +2 -0
- package/.output/public/assets/native-builds_.devices-BykEftlY.js +1 -0
- package/.output/public/assets/native-builds_.devices-DH1JB1zr.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-Dbefsycs.js} +1 -1
- package/.output/public/assets/remote-config-BiD075AT.js +1 -0
- package/.output/public/assets/remote-config-CBirPcRR.js +6 -0
- package/.output/public/assets/remote-config-r945bivi.js +1 -0
- package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-BFQcpUTO.js} +1 -1
- package/.output/public/assets/routes-5U4k3N1_.js +1 -0
- package/.output/public/assets/routes-DWjGfLRs.js +2 -0
- package/.output/public/assets/search-BfEqtE64.js +1 -0
- package/.output/public/assets/select-DIyG5G-V.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-C_9Rf75p.css +2 -0
- package/.output/public/assets/switch-B_7OwJhK.js +1 -0
- package/.output/public/assets/table-Bo1jU9-v.js +1 -0
- package/.output/public/assets/tabs-DARDj-XC.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/{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-CSEErUrV.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 +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-BfMtMws8.mjs} +3 -3
- package/.output/server/_ssr/ChannelBadge-CyjOxlfr.mjs +23 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CULyV3nR.mjs → ConsoleFeatureUnavailable-D5a8SXzu.mjs} +8 -8
- package/.output/server/_ssr/{EventDetails-DeI1rOQc.mjs → EventDetails-XaXslOac.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-DpnPD3U2.mjs → HashValueDisplay-CtrIkPNM.mjs} +7 -7
- package/.output/server/_ssr/{InsightsPageHeader-Dwmdtelg.mjs → InsightsPageHeader-CK76Vycr.mjs} +13 -13
- package/.output/server/_ssr/IosInstall-BD2HpMsh.mjs +751 -0
- package/.output/server/_ssr/NativeBuildsNav-DvFscYEN.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-Dddp1HSc.mjs → NotFoundPage-CQc5Envb.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
- package/.output/server/_ssr/QrCode-VPGDhoTy.mjs +50 -0
- package/.output/server/_ssr/RelativeTime-D6qU9XeU.mjs +242 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-7HdtPPd8.mjs} +20 -4
- package/.output/server/_ssr/RowReason-CR2C_0d9.mjs +186 -0
- package/.output/server/_ssr/SandboxBadge-HQv4waT2.mjs +85 -0
- package/.output/server/_ssr/TargetDisplay-BQ3rf-jt.mjs +105 -0
- package/.output/server/_ssr/{alert-dialog-ei2c1b6A.mjs → alert-dialog-DZfV4jo0.mjs} +4 -4
- package/.output/server/_ssr/{api-CvwqILEx.mjs → api-C3S89RIl.mjs} +174 -37
- package/.output/server/_ssr/{api-keys-BLHCygD_.mjs → api-keys-DhgkyA5L.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-CLZsTwih.mjs → api-keys-rpc-PnrzjW84.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-CVi7E0qS.mjs → api-keys-tydhn1tu.mjs} +14 -11
- package/.output/server/_ssr/{api-rpc-p-7EhGIG.mjs → api-rpc-D8qYGyez.mjs} +83 -35
- package/.output/server/_ssr/{auth-rpc-B1W4-hxa.mjs → auth-rpc-rMdoXrTW.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-CVKs7SWJ.mjs → auth.server-YE2ZZC0j.mjs} +833 -179
- package/.output/server/_ssr/{badge-nS9EbEA0.mjs → badge-NON1cyRV.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-CjE9yslP.mjs} +1 -1
- package/.output/server/_ssr/card-CVw7zPaM.mjs +49 -0
- package/.output/server/_ssr/{config.server-BAdvotbH.mjs → config.server-BYkojQAW.mjs} +4 -4
- package/.output/server/_ssr/{console-access-BiuC2QFp.mjs → console-access-CRyGs-sb.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-DwbIx8oM.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-Cl3J66aP.mjs → console-features-rpc-erZu7BIN.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-Eeltr-o0.mjs +98 -0
- package/.output/server/_ssr/{dialog-GmTPeUS4.mjs → dialog-ZuUCxUNo.mjs} +5 -5
- package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-DLkb7A7E.mjs} +1 -1
- package/.output/server/_ssr/{empty-CXWKv24M.mjs → empty-4FbiMhrz.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-Bd7CaadE.mjs} +3 -3
- package/.output/server/_ssr/{field-lwIHAwLc.mjs → field-B9YWRLoo.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-DrxWt5XS.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-DA9zbUBD.mjs} +2 -2
- package/.output/server/_ssr/{input-group-Dgr4DNbE.mjs → input-group-sETcyyLC.mjs} +3 -3
- package/.output/server/_ssr/{insights-DSnQTQw1.mjs → insights-BjtOex57.mjs} +38 -31
- package/.output/server/_ssr/{insights-BxtyBLt0.mjs → insights-CkJWItoo.mjs} +2 -2
- package/.output/server/_ssr/{insights-B9NvjAWc.mjs → insights-K6CFztcF.mjs} +5 -5
- package/.output/server/_ssr/{insights-api-PN_9ilr8.mjs → insights-api-9jE9dp-3.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-BrToSfI9.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-lmcxwKb3.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-Cxu3UtyB.mjs → insights-failures-rpc-XxbDFtKo.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Dhg3WGpC.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc--c6kBp3k.mjs → insights-recovery-rpc-CFeoyZEw.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-oTMaAqc1.mjs → insights-rpc-TAS-cemx.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-r-Z50f0Y.mjs → insights-search-DL8LLP6s.mjs} +6 -8
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-gW3T5N6N.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-B00vjt0a.mjs → insights-usage-rpc-CrAA5_Wn.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-DoElOI5b.mjs → insights-usage-rpc-DGSVT5eB.mjs} +7 -7
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-B_7pM9wp.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-B8AMBp-Q.mjs → insights_.distribution-C9nMSRtr.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-CnYddZ2Y.mjs → insights_.distribution-CK5_wfLT.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-mpZ0wS_R.mjs → insights_.distribution-DDr3vglh.mjs} +16 -15
- package/.output/server/_ssr/{installations-CWTRzcR7.mjs → installations-BvGL_EXM.mjs} +2 -2
- package/.output/server/_ssr/{installations-BfhcY_XQ.mjs → installations-CRHGd6SX.mjs} +4 -4
- package/.output/server/_ssr/{installations-O6Jzc5PO.mjs → installations-CWutybSC.mjs} +13 -13
- package/.output/server/_ssr/ios-devices-rpc-CCx4TvyR.mjs +137 -0
- package/.output/server/_ssr/iosDeviceCookie-B3FPj65l.mjs +155 -0
- package/.output/server/_ssr/iosDeviceProfile-Cclrfk8N.mjs +176 -0
- package/.output/server/_ssr/iosDevices-DMXaKH8F.mjs +113 -0
- package/.output/server/_ssr/listReleases-B2Q9xwFv.mjs +94 -0
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/native-artifact-BurROe05.mjs +1573 -0
- package/.output/server/_ssr/{native-builds-UIgRLMb8.mjs → native-builds-BGDsGYAp.mjs} +3 -3
- package/.output/server/_ssr/native-builds-BPiSm8HX.mjs +724 -0
- package/.output/server/_ssr/native-builds-Bnx0fVWs.mjs +264 -0
- package/.output/server/_ssr/native-builds_._buildId-B749BEMp.mjs +1148 -0
- package/.output/server/_ssr/{native-builds_._buildId-DjUqI5sa.mjs → native-builds_._buildId-CS9w0JIp.mjs} +3 -3
- package/.output/server/_ssr/native-builds_.devices-BPT8_91w.mjs +10 -0
- package/.output/server/_ssr/native-builds_.devices-w_jDlH8K.mjs +820 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-CXibRgym.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-BLuyTfXE.mjs +252 -0
- package/.output/server/_ssr/nativeBuilds-WKdqgemR.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-C3sNbafy.mjs +15 -0
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-D2719HVh.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-PLyiDnas.mjs → release-adoption-rpc-DOdELZNl.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-CxGKmUXx.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-sWr0bLRk.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-C5j4CfGa.mjs → remote-config-C5mPNt0s.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-eNxv5Kzc.mjs → remote-config-DuOo-AFR.mjs} +23 -22
- package/.output/server/_ssr/{remote-config-rpc-Cy4VwdMt.mjs → remote-config-rpc-rEe5HBxX.mjs} +5 -5
- package/.output/server/_ssr/{remote-config-tOdzsFMi.mjs → remote-config-xbBIsBh1.mjs} +2 -2
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-DaQ6OkIp.mjs → router-Bc5Zx-dc.mjs} +136 -63
- package/.output/server/_ssr/{routes-BYmUIYfN.mjs → routes-CUQ96XR2.mjs} +49 -17
- package/.output/server/_ssr/{routes-Drni4c1E.mjs → routes-DCOnxOlA.mjs} +469 -456
- 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-DK_ceMAg.mjs} +4 -4
- package/.output/server/_ssr/{select-Cjrp1Sl9.mjs → select-dGQiTkaZ.mjs} +12 -10
- package/.output/server/_ssr/{server-y3KoaSil.mjs → server-l-C5qBnr.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-tRHVNWpo.mjs → sidebar-Ccd4WNjQ.mjs} +17 -10
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-BXlykDIg.mjs} +2 -2
- package/.output/server/_ssr/{switch-YrqCYfP-.mjs → switch-CC7UK0Nw.mjs} +4 -4
- package/.output/server/_ssr/{table-NHakBPSp.mjs → table-BAlgZdxo.mjs} +2 -2
- package/.output/server/_ssr/tabs-Bm7PWhQk.mjs +45 -0
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DGuFoK6A.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-C_zDNaKT.mjs +223 -0
- package/.output/server/index.mjs +482 -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/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 +2 -2
- 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 +138 -89
- 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/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 +263 -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 +497 -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 +645 -552
- 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/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,61 @@ 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 {
|
|
20
|
+
DataCard,
|
|
21
|
+
DataCardSkeletons,
|
|
22
|
+
DataCardsEmpty,
|
|
23
|
+
DataTable,
|
|
24
|
+
DataTableBody,
|
|
25
|
+
DataTableFrame,
|
|
26
|
+
DataTableEmpty,
|
|
27
|
+
DataTableFullRow,
|
|
28
|
+
DataTablePagination,
|
|
29
|
+
DataTableRow,
|
|
30
|
+
openOutsideControls,
|
|
31
|
+
DataTableSkeletonRows,
|
|
32
|
+
} from "@/components/DataTable";
|
|
20
33
|
import { EnabledStatusIcon } from "@/components/EnabledStatusIcon";
|
|
21
34
|
import { BundleChildrenPanel } from "@/components/features/bundles/BundleChildrenPanel";
|
|
22
35
|
import { ChannelManagementDialog } from "@/components/features/channels/ChannelManagementDialog";
|
|
23
36
|
import { useReleaseColumns } from "@/components/features/FeatureSlots";
|
|
37
|
+
import { CopyableText } from "@/components/features/native-builds/CopyableText";
|
|
24
38
|
import { ReleaseEditorSheet } from "@/components/features/releases/ReleaseEditorSheet";
|
|
25
39
|
import { ReleaseStateBadge } from "@/components/features/releases/ReleaseStateBadge";
|
|
26
|
-
import {
|
|
27
|
-
|
|
40
|
+
import {
|
|
41
|
+
DataCardFold,
|
|
42
|
+
DataTableFold,
|
|
43
|
+
foldKey,
|
|
44
|
+
foldLabel,
|
|
45
|
+
FoldStatus,
|
|
46
|
+
foldedTotal,
|
|
47
|
+
groupsOf,
|
|
48
|
+
useOpenFolds,
|
|
49
|
+
} from "@/components/FoldedRows";
|
|
50
|
+
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
51
|
+
import { RelativeTime } from "@/components/RelativeTime";
|
|
28
52
|
import { RolloutPercentageBadge } from "@/components/RolloutPercentageBadge";
|
|
29
|
-
import {
|
|
53
|
+
import { RowReason } from "@/components/RowReason";
|
|
54
|
+
import { TargetDisplay } from "@/components/TargetDisplay";
|
|
55
|
+
import {
|
|
56
|
+
Alert,
|
|
57
|
+
AlertAction,
|
|
58
|
+
AlertDescription,
|
|
59
|
+
AlertTitle,
|
|
60
|
+
} from "@/components/ui/alert";
|
|
30
61
|
import { Badge } from "@/components/ui/badge";
|
|
31
62
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
32
63
|
import {
|
|
@@ -39,34 +70,45 @@ import {
|
|
|
39
70
|
} from "@/components/ui/select";
|
|
40
71
|
import { SidebarTrigger } from "@/components/ui/sidebar";
|
|
41
72
|
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";
|
|
73
|
+
import { TableCell, TableHead, TableRow } from "@/components/ui/table";
|
|
50
74
|
import { useIsMobile } from "@/hooks/use-mobile";
|
|
51
75
|
import {
|
|
52
76
|
useBundleChildCountsQuery,
|
|
53
77
|
useBundleChildrenQuery,
|
|
54
78
|
useBundleQuery,
|
|
55
79
|
useChannelsQuery,
|
|
80
|
+
useReleaseFoldQuery,
|
|
56
81
|
useReleasesQuery,
|
|
57
82
|
} from "@/lib/api";
|
|
83
|
+
import { ALL_CHANNELS, ALL_CHANNELS_LABEL } from "@/lib/constants";
|
|
84
|
+
import type { Fold } from "@/lib/server/foldedPage";
|
|
58
85
|
import type { ReleaseListRow } from "@/lib/server/releaseReachability";
|
|
59
86
|
import { cn } from "@/lib/utils";
|
|
60
87
|
|
|
61
88
|
import {
|
|
62
89
|
hasReleaseFilters,
|
|
63
90
|
releaseFilterOf,
|
|
91
|
+
resolveReleaseSearch,
|
|
64
92
|
type ReleaseSearch,
|
|
93
|
+
showsDefaultReleases,
|
|
65
94
|
updateReleaseFilters,
|
|
66
95
|
validateReleaseSearch,
|
|
67
96
|
} from "./-releases-search";
|
|
68
97
|
|
|
69
|
-
|
|
98
|
+
/** The list while its channel is unknown: loading, whatever the cache holds. */
|
|
99
|
+
const PENDING_RELEASES = {
|
|
100
|
+
data: undefined,
|
|
101
|
+
error: null,
|
|
102
|
+
isError: false,
|
|
103
|
+
isPending: true,
|
|
104
|
+
isPlaceholderData: false,
|
|
105
|
+
} as const;
|
|
106
|
+
|
|
107
|
+
/** A fold of unreachable bundles: "1 unreachable bundle", "2 …". */
|
|
108
|
+
const UNREACHABLE_BUNDLES = {
|
|
109
|
+
one: "unreachable bundle",
|
|
110
|
+
other: "unreachable bundles",
|
|
111
|
+
} as const;
|
|
70
112
|
const platformFilterItems = [
|
|
71
113
|
{ label: "iOS", value: "ios" },
|
|
72
114
|
{ label: "Android", value: "android" },
|
|
@@ -76,29 +118,6 @@ const statusFilterItems = [
|
|
|
76
118
|
{ label: "Enabled", value: "enabled" },
|
|
77
119
|
{ label: "Disabled", value: "disabled" },
|
|
78
120
|
];
|
|
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
121
|
export const Route = createFileRoute("/")({
|
|
103
122
|
component: BundlesPage,
|
|
104
123
|
validateSearch: validateReleaseSearch,
|
|
@@ -106,22 +125,27 @@ export const Route = createFileRoute("/")({
|
|
|
106
125
|
|
|
107
126
|
function BundleFilterToolbar({
|
|
108
127
|
channels,
|
|
128
|
+
clearable,
|
|
109
129
|
onChange,
|
|
110
130
|
onClear,
|
|
111
131
|
onManageChannels,
|
|
132
|
+
pending,
|
|
112
133
|
search,
|
|
113
134
|
}: {
|
|
114
135
|
channels: readonly ChannelRow[];
|
|
136
|
+
/** Whether the list shows other than what it opens on. */
|
|
137
|
+
clearable: boolean;
|
|
115
138
|
onChange: (filters: Partial<ReleaseSearch>) => void;
|
|
116
139
|
onClear: () => void;
|
|
117
140
|
onManageChannels: () => void;
|
|
141
|
+
/** Whether the channel the list opens on is still unknown. */
|
|
142
|
+
pending: boolean;
|
|
118
143
|
search: ReleaseSearch;
|
|
119
144
|
}) {
|
|
120
|
-
const hasFilters = hasReleaseFilters(search);
|
|
121
145
|
// Releases list by channel and platform together: the index serves that pair.
|
|
122
146
|
const channelSelected = search.channelId !== undefined;
|
|
123
147
|
const channelFilterItems = [
|
|
124
|
-
{ label:
|
|
148
|
+
{ label: ALL_CHANNELS_LABEL, value: "all" },
|
|
125
149
|
...channels.map((channel) => ({
|
|
126
150
|
label: channel.name,
|
|
127
151
|
value: channel.id,
|
|
@@ -130,30 +154,33 @@ function BundleFilterToolbar({
|
|
|
130
154
|
|
|
131
155
|
return (
|
|
132
156
|
<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" />
|
|
157
|
+
<SidebarTrigger className="-ml-1 size-11 lg:size-7" />
|
|
134
158
|
<h1 className="sr-only">Bundles</h1>
|
|
135
159
|
<div className="ml-1 flex items-center gap-1.5 text-muted-foreground sm:ml-2">
|
|
136
160
|
<Filter className="size-3.5" />
|
|
137
161
|
<span className="text-xs font-medium">Filters</span>
|
|
138
162
|
</div>
|
|
139
163
|
<Select
|
|
164
|
+
disabled={pending}
|
|
140
165
|
items={channelFilterItems}
|
|
141
166
|
onValueChange={(value) =>
|
|
142
|
-
onChange(
|
|
143
|
-
|
|
144
|
-
|
|
167
|
+
onChange(
|
|
168
|
+
value === null || value === "all"
|
|
169
|
+
? { channelId: undefined, channels: ALL_CHANNELS }
|
|
170
|
+
: { channelId: value },
|
|
171
|
+
)
|
|
145
172
|
}
|
|
146
|
-
value={search.channelId ?? "all"}
|
|
173
|
+
value={pending ? null : (search.channelId ?? "all")}
|
|
147
174
|
>
|
|
148
175
|
<SelectTrigger
|
|
149
176
|
aria-label="Channel"
|
|
150
|
-
className="
|
|
177
|
+
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
178
|
>
|
|
152
179
|
<SelectValue />
|
|
153
180
|
</SelectTrigger>
|
|
154
181
|
<SelectContent>
|
|
155
182
|
<SelectGroup>
|
|
156
|
-
<SelectItem value="all">
|
|
183
|
+
<SelectItem value="all">{ALL_CHANNELS_LABEL}</SelectItem>
|
|
157
184
|
{channels.map((channel) => (
|
|
158
185
|
<SelectItem key={channel.id} value={channel.id}>
|
|
159
186
|
{channel.name}
|
|
@@ -172,7 +199,7 @@ function BundleFilterToolbar({
|
|
|
172
199
|
>
|
|
173
200
|
<SelectTrigger
|
|
174
201
|
aria-label="Platform"
|
|
175
|
-
className="
|
|
202
|
+
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
203
|
title={channelSelected ? undefined : "Choose a channel first"}
|
|
177
204
|
>
|
|
178
205
|
<SelectValue />
|
|
@@ -207,7 +234,7 @@ function BundleFilterToolbar({
|
|
|
207
234
|
>
|
|
208
235
|
<SelectTrigger
|
|
209
236
|
aria-label="Status"
|
|
210
|
-
className="
|
|
237
|
+
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
238
|
>
|
|
212
239
|
<SelectValue />
|
|
213
240
|
</SelectTrigger>
|
|
@@ -221,6 +248,7 @@ function BundleFilterToolbar({
|
|
|
221
248
|
</Select>
|
|
222
249
|
<Button
|
|
223
250
|
aria-label="Manage channels"
|
|
251
|
+
className="size-11 max-sm:order-1 sm:size-7"
|
|
224
252
|
onClick={onManageChannels}
|
|
225
253
|
size="icon-sm"
|
|
226
254
|
title="Manage channels"
|
|
@@ -229,11 +257,11 @@ function BundleFilterToolbar({
|
|
|
229
257
|
<Tags />
|
|
230
258
|
</Button>
|
|
231
259
|
{search.bundleId ? (
|
|
232
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
260
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
233
261
|
Artifact filter
|
|
234
262
|
<button
|
|
235
263
|
aria-label="Clear artifact filter"
|
|
236
|
-
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"
|
|
237
265
|
onClick={() => onChange({ bundleId: undefined })}
|
|
238
266
|
type="button"
|
|
239
267
|
>
|
|
@@ -242,11 +270,11 @@ function BundleFilterToolbar({
|
|
|
242
270
|
</Badge>
|
|
243
271
|
) : null}
|
|
244
272
|
{search.scopeKey ? (
|
|
245
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
273
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
246
274
|
Target filter
|
|
247
275
|
<button
|
|
248
276
|
aria-label="Clear target filter"
|
|
249
|
-
className="rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
277
|
+
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
278
|
onClick={() => onChange({ scopeKey: undefined })}
|
|
251
279
|
type="button"
|
|
252
280
|
>
|
|
@@ -254,9 +282,9 @@ function BundleFilterToolbar({
|
|
|
254
282
|
</button>
|
|
255
283
|
</Badge>
|
|
256
284
|
) : null}
|
|
257
|
-
{
|
|
285
|
+
{clearable ? (
|
|
258
286
|
<Button
|
|
259
|
-
className="h-
|
|
287
|
+
className="h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8"
|
|
260
288
|
onClick={onClear}
|
|
261
289
|
size="sm"
|
|
262
290
|
variant="ghost"
|
|
@@ -299,7 +327,7 @@ function BundleEntry({
|
|
|
299
327
|
: "Show advanced artifact diagnostics"
|
|
300
328
|
}
|
|
301
329
|
title="Advanced artifact diagnostics"
|
|
302
|
-
className="size-
|
|
330
|
+
className="size-11 shrink-0 touch-manipulation sm:size-8"
|
|
303
331
|
onClick={onToggleExpand}
|
|
304
332
|
size="icon"
|
|
305
333
|
type="button"
|
|
@@ -308,7 +336,7 @@ function BundleEntry({
|
|
|
308
336
|
{expanded ? <ChevronDown /> : <ChevronRight />}
|
|
309
337
|
</Button>
|
|
310
338
|
) : (
|
|
311
|
-
<span aria-hidden="true" className="size-
|
|
339
|
+
<span aria-hidden="true" className="size-11 shrink-0 sm:size-8" />
|
|
312
340
|
)}
|
|
313
341
|
<button
|
|
314
342
|
aria-label={`Open details for ID ${release.id}`}
|
|
@@ -330,14 +358,13 @@ function BundleEntry({
|
|
|
330
358
|
</Badge>
|
|
331
359
|
) : null}
|
|
332
360
|
{release.currentlyUnreachable ? (
|
|
333
|
-
<
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
361
|
+
<RowReason
|
|
362
|
+
icon={CircleOff}
|
|
363
|
+
label="Unreachable: no device gets this bundle with the current delivery settings."
|
|
364
|
+
reason="No device gets this bundle with the current delivery settings."
|
|
337
365
|
>
|
|
338
|
-
<CircleOff className="size-3.5" />
|
|
339
366
|
Unreachable
|
|
340
|
-
</
|
|
367
|
+
</RowReason>
|
|
341
368
|
) : null}
|
|
342
369
|
</div>
|
|
343
370
|
);
|
|
@@ -404,21 +431,26 @@ function ReleaseBundleChildrenPanel({
|
|
|
404
431
|
);
|
|
405
432
|
}
|
|
406
433
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
434
|
+
/** What a group of release rows renders with: its own patch counts and feature slots. */
|
|
435
|
+
interface RowContext {
|
|
436
|
+
readonly patchCounts: Readonly<Record<string, number | undefined>>;
|
|
437
|
+
readonly slotReleases: readonly {
|
|
438
|
+
readonly releaseId: string;
|
|
439
|
+
readonly platform: "ios" | "android";
|
|
440
|
+
readonly channel: string;
|
|
441
|
+
readonly builtIn: boolean;
|
|
442
|
+
}[];
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* The patch counts and feature slots of a group of releases: the page's
|
|
447
|
+
* reachable ones, or one fold's, so opening a fold reads its own rows'
|
|
448
|
+
* and changes no other query.
|
|
449
|
+
*/
|
|
450
|
+
function useRowContext(
|
|
451
|
+
releases: readonly ReleaseListRow[],
|
|
452
|
+
channels: readonly ChannelRow[],
|
|
453
|
+
): RowContext {
|
|
422
454
|
const bundleIds = Array.from(
|
|
423
455
|
new Set(
|
|
424
456
|
releases.flatMap((release) =>
|
|
@@ -427,24 +459,143 @@ function BundlesPage() {
|
|
|
427
459
|
),
|
|
428
460
|
);
|
|
429
461
|
const patchCountsQuery = useBundleChildCountsQuery(bundleIds);
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
]
|
|
446
|
-
|
|
447
|
-
}
|
|
462
|
+
return {
|
|
463
|
+
patchCounts: patchCountsQuery.data ?? {},
|
|
464
|
+
slotReleases: releases.flatMap((release) => {
|
|
465
|
+
const channel = channels.find(
|
|
466
|
+
(item) => item.id === release.channel_id,
|
|
467
|
+
)?.name;
|
|
468
|
+
return channel
|
|
469
|
+
? [
|
|
470
|
+
{
|
|
471
|
+
releaseId: release.id,
|
|
472
|
+
platform: release.platform,
|
|
473
|
+
channel,
|
|
474
|
+
builtIn: !release.bundle_id,
|
|
475
|
+
},
|
|
476
|
+
]
|
|
477
|
+
: [];
|
|
478
|
+
}),
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/** Whether a fold of the page holds `releaseId`: IDs order the list. */
|
|
483
|
+
const foldHolds = (fold: Fold, releaseId: string) =>
|
|
484
|
+
releaseId >= fold.to && (fold.from === undefined || releaseId < fold.from);
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* A fold of unreachable bundles, where they sit in the list: closed, the
|
|
488
|
+
* number it holds; open, those bundles in order, subdued, read a chunk at a
|
|
489
|
+
* time once it opens.
|
|
490
|
+
*/
|
|
491
|
+
function UnreachableBundlesFold({
|
|
492
|
+
fold,
|
|
493
|
+
filter,
|
|
494
|
+
channels,
|
|
495
|
+
columns,
|
|
496
|
+
isMobile,
|
|
497
|
+
open,
|
|
498
|
+
onOpenChange,
|
|
499
|
+
render,
|
|
500
|
+
}: {
|
|
501
|
+
readonly fold: Fold;
|
|
502
|
+
readonly filter: ReturnType<typeof releaseFilterOf>;
|
|
503
|
+
readonly channels: readonly ChannelRow[];
|
|
504
|
+
readonly columns: number;
|
|
505
|
+
readonly isMobile: boolean;
|
|
506
|
+
readonly open: boolean;
|
|
507
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
508
|
+
readonly render: (release: ReleaseListRow, ctx: RowContext) => ReactNode;
|
|
509
|
+
}) {
|
|
510
|
+
const query = useReleaseFoldQuery(
|
|
511
|
+
filter,
|
|
512
|
+
{ ...(fold.from === undefined ? {} : { from: fold.from }), to: fold.to },
|
|
513
|
+
open,
|
|
514
|
+
);
|
|
515
|
+
const rows = query.data?.pages.flatMap((page) => page.rows) ?? [];
|
|
516
|
+
const ctx = useRowContext(rows, channels);
|
|
517
|
+
const statusColumns = isMobile ? undefined : columns;
|
|
518
|
+
const status = query.isError ? (
|
|
519
|
+
<FoldStatus
|
|
520
|
+
columns={statusColumns}
|
|
521
|
+
label="Unreachable bundles"
|
|
522
|
+
onRetry={() => void query.refetch()}
|
|
523
|
+
state="error"
|
|
524
|
+
/>
|
|
525
|
+
) : query.isPending || query.isFetchingNextPage ? (
|
|
526
|
+
<FoldStatus
|
|
527
|
+
columns={statusColumns}
|
|
528
|
+
label="Loading unreachable bundles"
|
|
529
|
+
state="loading"
|
|
530
|
+
/>
|
|
531
|
+
) : query.hasNextPage ? (
|
|
532
|
+
<FoldStatus
|
|
533
|
+
columns={statusColumns}
|
|
534
|
+
label="Unreachable bundles"
|
|
535
|
+
onMore={() => void query.fetchNextPage()}
|
|
536
|
+
state="more"
|
|
537
|
+
/>
|
|
538
|
+
) : null;
|
|
539
|
+
const props = {
|
|
540
|
+
label: foldLabel(fold, UNREACHABLE_BUNDLES),
|
|
541
|
+
open,
|
|
542
|
+
onOpenChange,
|
|
543
|
+
panelId: `bundle-fold-${fold.to}`,
|
|
544
|
+
};
|
|
545
|
+
return isMobile ? (
|
|
546
|
+
<DataCardFold {...props}>
|
|
547
|
+
{rows.map((release) => render(release, ctx))}
|
|
548
|
+
{status}
|
|
549
|
+
</DataCardFold>
|
|
550
|
+
) : (
|
|
551
|
+
<DataTableFold {...props} columns={columns}>
|
|
552
|
+
{rows.map((release) => render(release, ctx))}
|
|
553
|
+
{status}
|
|
554
|
+
</DataTableFold>
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
function BundlesPage() {
|
|
559
|
+
const urlSearch = Route.useSearch();
|
|
560
|
+
const navigate = Route.useNavigate();
|
|
561
|
+
const isMobile = useIsMobile();
|
|
562
|
+
const [channelsOpen, setChannelsOpen] = useState(false);
|
|
563
|
+
const [expandedReleaseId, setExpandedReleaseId] = useState<string>();
|
|
564
|
+
const folds = useOpenFolds();
|
|
565
|
+
const channelsQuery = useChannelsQuery();
|
|
566
|
+
const channels = channelsQuery.data ?? [];
|
|
567
|
+
// The list the page shows: a URL without a channel opens on the default
|
|
568
|
+
// one, known once the channel list arrives. A loaded list outlives a failed
|
|
569
|
+
// refresh; without one, the default list waits, and nothing reads every
|
|
570
|
+
// channel in its place.
|
|
571
|
+
const channelRows = channelsQuery.data;
|
|
572
|
+
const resolved = resolveReleaseSearch(urlSearch, channelRows);
|
|
573
|
+
const channelsFailed = resolved === undefined && channelsQuery.isError;
|
|
574
|
+
const search = resolved ?? urlSearch;
|
|
575
|
+
const filter = releaseFilterOf(search);
|
|
576
|
+
const releasesQuery = useReleasesQuery(
|
|
577
|
+
{
|
|
578
|
+
afterReleaseId: search.afterReleaseId,
|
|
579
|
+
beforeReleaseId: search.beforeReleaseId,
|
|
580
|
+
filter,
|
|
581
|
+
// The selected release never folds, so a link to it shows its row.
|
|
582
|
+
releaseId: search.releaseId,
|
|
583
|
+
},
|
|
584
|
+
// Nothing reads every channel's list on the way to the default one.
|
|
585
|
+
{ enabled: resolved !== undefined },
|
|
586
|
+
);
|
|
587
|
+
const clearable = !showsDefaultReleases(urlSearch, channelRows);
|
|
588
|
+
// Until the channel is known, the list shows nothing the cache holds: a
|
|
589
|
+
// cached page of every channel, or a fold that would read more of it.
|
|
590
|
+
const list = resolved === undefined ? PENDING_RELEASES : releasesQuery;
|
|
591
|
+
const entries = list.data?.entries ?? [];
|
|
592
|
+
// The page's reachable releases (and the selected one), outside its folds.
|
|
593
|
+
const releases = entries.flatMap((entry) =>
|
|
594
|
+
entry.kind === "row" ? [entry.row] : [],
|
|
595
|
+
);
|
|
596
|
+
const pageContext = useRowContext(releases, channels);
|
|
597
|
+
const nextCursor = list.data?.next;
|
|
598
|
+
const previousCursor = list.data?.previous;
|
|
448
599
|
// Features add columns, such as release activity where the console reads it.
|
|
449
600
|
const featureColumns = useReleaseColumns();
|
|
450
601
|
const columnCount = 10 + featureColumns.length;
|
|
@@ -452,19 +603,37 @@ function BundlesPage() {
|
|
|
452
603
|
channels.map((channel) => [channel.id, channel.name]),
|
|
453
604
|
);
|
|
454
605
|
|
|
606
|
+
// A lineage panel shows only with its row: whatever hides the row, a fold
|
|
607
|
+
// closing, a filter, a refetch or Back, closes the panel, and opening the
|
|
608
|
+
// row again opens none.
|
|
609
|
+
const visible = (releaseId: string) =>
|
|
610
|
+
releases.some((release) => release.id === releaseId) ||
|
|
611
|
+
entries.some(
|
|
612
|
+
(entry) =>
|
|
613
|
+
entry.kind === "fold" &&
|
|
614
|
+
folds.isOpen(foldKey(entry)) &&
|
|
615
|
+
foldHolds(entry, releaseId),
|
|
616
|
+
);
|
|
617
|
+
const lineageVisible =
|
|
618
|
+
expandedReleaseId !== undefined && visible(expandedReleaseId);
|
|
455
619
|
useEffect(() => {
|
|
456
|
-
if (
|
|
457
|
-
expandedReleaseId &&
|
|
458
|
-
!releases.some((release) => release.id === expandedReleaseId)
|
|
459
|
-
) {
|
|
620
|
+
if (expandedReleaseId !== undefined && !lineageVisible) {
|
|
460
621
|
setExpandedReleaseId(undefined);
|
|
461
622
|
}
|
|
462
|
-
}, [expandedReleaseId,
|
|
623
|
+
}, [expandedReleaseId, lineageVisible]);
|
|
463
624
|
|
|
464
625
|
const go = (nextSearch: ReleaseSearch, resetScroll = true) =>
|
|
465
626
|
void navigate({ resetScroll, search: nextSearch, to: "/" });
|
|
466
627
|
const changeFilters = (filters: Partial<ReleaseSearch>) =>
|
|
467
628
|
go(updateReleaseFilters(search, filters));
|
|
629
|
+
// Selecting a bundle in an open fold splits the fold around it: the part
|
|
630
|
+
// under it opens too, so no row moves out of sight.
|
|
631
|
+
const select = (release: ReleaseListRow) => {
|
|
632
|
+
if (!releases.some(({ id }) => id === release.id)) {
|
|
633
|
+
folds.set(release.id, true);
|
|
634
|
+
}
|
|
635
|
+
go({ ...search, releaseId: release.id }, false);
|
|
636
|
+
};
|
|
468
637
|
const openChildBundle = (bundle: Bundle) => {
|
|
469
638
|
const childRelease = releases.find(
|
|
470
639
|
(release) => release.bundle_id === bundle.id,
|
|
@@ -482,8 +651,10 @@ function BundlesPage() {
|
|
|
482
651
|
const previousSearch: ReleaseSearch | null = previousCursor
|
|
483
652
|
? {
|
|
484
653
|
...search,
|
|
485
|
-
afterReleaseId:
|
|
486
|
-
|
|
654
|
+
afterReleaseId:
|
|
655
|
+
"after" in previousCursor ? previousCursor.after : undefined,
|
|
656
|
+
beforeReleaseId:
|
|
657
|
+
"before" in previousCursor ? previousCursor.before : undefined,
|
|
487
658
|
releaseId: undefined,
|
|
488
659
|
}
|
|
489
660
|
: null;
|
|
@@ -502,190 +673,355 @@ function BundlesPage() {
|
|
|
502
673
|
releaseId: undefined,
|
|
503
674
|
};
|
|
504
675
|
|
|
676
|
+
const renderCard = (release: ReleaseListRow, ctx: RowContext) => {
|
|
677
|
+
const channelName =
|
|
678
|
+
channelNames.get(release.channel_id) ?? release.channel_id;
|
|
679
|
+
const patchCount = release.bundle_id
|
|
680
|
+
? ctx.patchCounts[release.bundle_id]
|
|
681
|
+
: 0;
|
|
682
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
683
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
684
|
+
|
|
685
|
+
return (
|
|
686
|
+
<Fragment key={release.id}>
|
|
687
|
+
{/* The ID button opens it for keyboards and screen
|
|
688
|
+
readers; a tap anywhere else on the card does too. */}
|
|
689
|
+
<DataCard
|
|
690
|
+
aria-label={`Bundle ${release.id}`}
|
|
691
|
+
className={cn(
|
|
692
|
+
"gap-3",
|
|
693
|
+
release.currentlyUnreachable &&
|
|
694
|
+
"bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100",
|
|
695
|
+
isExpanded && "border-b-0 bg-primary/5",
|
|
696
|
+
)}
|
|
697
|
+
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
698
|
+
onClick={openOutsideControls(() => select(release))}
|
|
699
|
+
>
|
|
700
|
+
<div className="flex items-start justify-between gap-3">
|
|
701
|
+
<BundleEntry
|
|
702
|
+
expanded={isExpanded}
|
|
703
|
+
onOpen={() => select(release)}
|
|
704
|
+
onToggleExpand={() =>
|
|
705
|
+
setExpandedReleaseId(isExpanded ? undefined : release.id)
|
|
706
|
+
}
|
|
707
|
+
release={release}
|
|
708
|
+
/>
|
|
709
|
+
<ChannelBadge channel={channelName} className="shrink-0" />
|
|
710
|
+
</div>
|
|
711
|
+
<p className="flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
712
|
+
<span className="flex items-center gap-1.5 text-foreground">
|
|
713
|
+
<PlatformIcon className="size-4" platform={release.platform} />
|
|
714
|
+
{release.platform === "ios" ? "iOS" : "Android"}
|
|
715
|
+
</span>
|
|
716
|
+
{patchCount === undefined || patchCount > 0 ? (
|
|
717
|
+
<>
|
|
718
|
+
<span aria-hidden="true">·</span>
|
|
719
|
+
<span>
|
|
720
|
+
{patchCount === undefined
|
|
721
|
+
? "Checking patches"
|
|
722
|
+
: `${patchCount} ${patchCount === 1 ? "patch" : "patches"}`}
|
|
723
|
+
</span>
|
|
724
|
+
</>
|
|
725
|
+
) : null}
|
|
726
|
+
<span aria-hidden="true">·</span>
|
|
727
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
728
|
+
</p>
|
|
729
|
+
<div className="flex flex-wrap items-center gap-x-3 gap-y-2 text-xs">
|
|
730
|
+
<RolloutPercentageBadge
|
|
731
|
+
percentage={release.rollout_cohort_count / 10}
|
|
732
|
+
/>
|
|
733
|
+
<ReleaseStateBadge release={release} />
|
|
734
|
+
{release.should_force_update ? (
|
|
735
|
+
<Badge variant="secondary">Force update</Badge>
|
|
736
|
+
) : null}
|
|
737
|
+
<span className="flex items-center">
|
|
738
|
+
<span className="sr-only">Target </span>
|
|
739
|
+
<TargetDisplay
|
|
740
|
+
appVersion={release.target_app_version}
|
|
741
|
+
fingerprintHash={release.fingerprint_hash}
|
|
742
|
+
/>
|
|
743
|
+
</span>
|
|
744
|
+
</div>
|
|
745
|
+
{featureColumns.map(({ Cell, feature, label }) => (
|
|
746
|
+
<div className="mt-3 text-xs" key={feature}>
|
|
747
|
+
<span className="sr-only">{label}</span>
|
|
748
|
+
<Cell releaseId={release.id} releases={ctx.slotReleases} />
|
|
749
|
+
</div>
|
|
750
|
+
))}
|
|
751
|
+
{release.message ? (
|
|
752
|
+
<p className="line-clamp-2 text-xs text-muted-foreground">
|
|
753
|
+
{release.message}
|
|
754
|
+
</p>
|
|
755
|
+
) : null}
|
|
756
|
+
</DataCard>
|
|
757
|
+
{isExpanded && release.bundle_id ? (
|
|
758
|
+
<ReleaseBundleChildrenPanel
|
|
759
|
+
onDetailClick={openChildBundle}
|
|
760
|
+
panelId={panelId}
|
|
761
|
+
release={release}
|
|
762
|
+
/>
|
|
763
|
+
) : null}
|
|
764
|
+
</Fragment>
|
|
765
|
+
);
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
const renderRow = (release: ReleaseListRow, ctx: RowContext) => {
|
|
769
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
770
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
771
|
+
|
|
772
|
+
return (
|
|
773
|
+
<Fragment key={release.id}>
|
|
774
|
+
<DataTableRow
|
|
775
|
+
aria-label={`Open bundle ${release.id}`}
|
|
776
|
+
className={cn(
|
|
777
|
+
release.currentlyUnreachable &&
|
|
778
|
+
"bg-muted/60 saturate-50 hover:bg-muted/60 hover:saturate-100 focus-within:saturate-100",
|
|
779
|
+
isExpanded && "bg-primary/5",
|
|
780
|
+
)}
|
|
781
|
+
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
782
|
+
onOpen={() => select(release)}
|
|
783
|
+
>
|
|
784
|
+
<TableCell>
|
|
785
|
+
<BundleEntry
|
|
786
|
+
expanded={isExpanded}
|
|
787
|
+
onOpen={() => select(release)}
|
|
788
|
+
onToggleExpand={() =>
|
|
789
|
+
setExpandedReleaseId(isExpanded ? undefined : release.id)
|
|
790
|
+
}
|
|
791
|
+
release={release}
|
|
792
|
+
/>
|
|
793
|
+
</TableCell>
|
|
794
|
+
<TableCell>
|
|
795
|
+
<ChannelBadge
|
|
796
|
+
channel={
|
|
797
|
+
channelNames.get(release.channel_id) ?? release.channel_id
|
|
798
|
+
}
|
|
799
|
+
/>
|
|
800
|
+
</TableCell>
|
|
801
|
+
<TableCell className="whitespace-nowrap">
|
|
802
|
+
<PlatformLabel platform={release.platform} />
|
|
803
|
+
</TableCell>
|
|
804
|
+
<TableCell>
|
|
805
|
+
{release.bundle_id &&
|
|
806
|
+
ctx.patchCounts[release.bundle_id] === undefined ? (
|
|
807
|
+
<span className="text-sm text-muted-foreground">Checking</span>
|
|
808
|
+
) : release.bundle_id && ctx.patchCounts[release.bundle_id]! > 0 ? (
|
|
809
|
+
<Badge variant="secondary">
|
|
810
|
+
{ctx.patchCounts[release.bundle_id]}{" "}
|
|
811
|
+
{ctx.patchCounts[release.bundle_id] === 1 ? "patch" : "patches"}
|
|
812
|
+
</Badge>
|
|
813
|
+
) : (
|
|
814
|
+
<span className="text-muted-foreground">-</span>
|
|
815
|
+
)}
|
|
816
|
+
</TableCell>
|
|
817
|
+
<TableCell>
|
|
818
|
+
<TargetDisplay
|
|
819
|
+
appVersion={release.target_app_version}
|
|
820
|
+
fingerprintHash={release.fingerprint_hash}
|
|
821
|
+
/>
|
|
822
|
+
</TableCell>
|
|
823
|
+
<TableCell>
|
|
824
|
+
<span className="flex items-center">
|
|
825
|
+
<EnabledStatusIcon enabled={release.enabled} />
|
|
826
|
+
<span className="sr-only">
|
|
827
|
+
{release.enabled ? "Enabled" : "Disabled"}
|
|
828
|
+
</span>
|
|
829
|
+
</span>
|
|
830
|
+
</TableCell>
|
|
831
|
+
<TableCell>
|
|
832
|
+
<span className="flex items-center">
|
|
833
|
+
<EnabledStatusIcon
|
|
834
|
+
enabled={release.should_force_update}
|
|
835
|
+
falseIcon="minus"
|
|
836
|
+
/>
|
|
837
|
+
<span className="sr-only">
|
|
838
|
+
{release.should_force_update ? "Required" : "Optional"}
|
|
839
|
+
</span>
|
|
840
|
+
</span>
|
|
841
|
+
</TableCell>
|
|
842
|
+
<TableCell>
|
|
843
|
+
<RolloutPercentageBadge
|
|
844
|
+
percentage={release.rollout_cohort_count / 10}
|
|
845
|
+
/>
|
|
846
|
+
</TableCell>
|
|
847
|
+
{featureColumns.map(({ Cell, feature }) => (
|
|
848
|
+
<TableCell key={feature}>
|
|
849
|
+
<Cell releaseId={release.id} releases={ctx.slotReleases} />
|
|
850
|
+
</TableCell>
|
|
851
|
+
))}
|
|
852
|
+
<TableCell
|
|
853
|
+
className="text-sm text-muted-foreground"
|
|
854
|
+
title={release.message ?? undefined}
|
|
855
|
+
>
|
|
856
|
+
{release.message || "-"}
|
|
857
|
+
</TableCell>
|
|
858
|
+
<TableCell className="text-xs text-muted-foreground">
|
|
859
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
860
|
+
</TableCell>
|
|
861
|
+
</DataTableRow>
|
|
862
|
+
{isExpanded && release.bundle_id ? (
|
|
863
|
+
<TableRow className="hover:bg-transparent">
|
|
864
|
+
<TableCell className="border-t-0 p-0" colSpan={columnCount}>
|
|
865
|
+
<ReleaseBundleChildrenPanel
|
|
866
|
+
onDetailClick={openChildBundle}
|
|
867
|
+
panelId={panelId}
|
|
868
|
+
release={release}
|
|
869
|
+
/>
|
|
870
|
+
</TableCell>
|
|
871
|
+
</TableRow>
|
|
872
|
+
) : null}
|
|
873
|
+
</Fragment>
|
|
874
|
+
);
|
|
875
|
+
};
|
|
876
|
+
|
|
877
|
+
const fold = (
|
|
878
|
+
entry: Fold,
|
|
879
|
+
render: (release: ReleaseListRow, ctx: RowContext) => ReactNode,
|
|
880
|
+
) => (
|
|
881
|
+
<UnreachableBundlesFold
|
|
882
|
+
channels={channels}
|
|
883
|
+
columns={columnCount}
|
|
884
|
+
filter={filter}
|
|
885
|
+
fold={entry}
|
|
886
|
+
isMobile={isMobile}
|
|
887
|
+
key={`fold-${entry.to}`}
|
|
888
|
+
onOpenChange={(open) => folds.set(foldKey(entry), open)}
|
|
889
|
+
open={folds.isOpen(foldKey(entry))}
|
|
890
|
+
render={render}
|
|
891
|
+
/>
|
|
892
|
+
);
|
|
893
|
+
// The list it opens on, when that channel has no bundle for the platform.
|
|
894
|
+
const openingTitle = (
|
|
895
|
+
<>
|
|
896
|
+
No {search.platform === "android" ? "Android" : "iOS"} bundles in{" "}
|
|
897
|
+
<span translate="no">
|
|
898
|
+
{channelNames.get(search.channelId ?? "") ?? search.channelId}
|
|
899
|
+
</span>
|
|
900
|
+
</>
|
|
901
|
+
);
|
|
902
|
+
// A page of unreachable bundles alone: one fold under the empty state.
|
|
903
|
+
const foldedOnly = releases.length === 0 && entries.length > 0;
|
|
904
|
+
const empty = (
|
|
905
|
+
<DataTableEmpty
|
|
906
|
+
icon={Package}
|
|
907
|
+
title={
|
|
908
|
+
foldedOnly
|
|
909
|
+
? "No device gets the bundles here"
|
|
910
|
+
: onLaterPage
|
|
911
|
+
? "No more bundles"
|
|
912
|
+
: !hasReleaseFilters(search)
|
|
913
|
+
? "No bundles yet"
|
|
914
|
+
: clearable
|
|
915
|
+
? "No bundles match these filters"
|
|
916
|
+
: openingTitle
|
|
917
|
+
}
|
|
918
|
+
>
|
|
919
|
+
{onLaterPage ? (
|
|
920
|
+
<Link
|
|
921
|
+
className={buttonVariants({
|
|
922
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
923
|
+
variant: "outline",
|
|
924
|
+
})}
|
|
925
|
+
search={newestSearch}
|
|
926
|
+
to="/"
|
|
927
|
+
>
|
|
928
|
+
Show the newest bundles
|
|
929
|
+
</Link>
|
|
930
|
+
) : clearable ? (
|
|
931
|
+
<Button
|
|
932
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
933
|
+
onClick={() => go({})}
|
|
934
|
+
variant="outline"
|
|
935
|
+
>
|
|
936
|
+
Clear filters
|
|
937
|
+
</Button>
|
|
938
|
+
) : hasReleaseFilters(search) ? (
|
|
939
|
+
<Button
|
|
940
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
941
|
+
onClick={() =>
|
|
942
|
+
changeFilters({ channelId: undefined, channels: ALL_CHANNELS })
|
|
943
|
+
}
|
|
944
|
+
variant="outline"
|
|
945
|
+
>
|
|
946
|
+
Show all channels
|
|
947
|
+
</Button>
|
|
948
|
+
) : (
|
|
949
|
+
<>
|
|
950
|
+
<p>Deploy one from your app's project:</p>
|
|
951
|
+
<div className="w-full text-left">
|
|
952
|
+
<CopyableText
|
|
953
|
+
label="the deploy command"
|
|
954
|
+
value="npx hot-updater deploy"
|
|
955
|
+
wrap
|
|
956
|
+
/>
|
|
957
|
+
</div>
|
|
958
|
+
</>
|
|
959
|
+
)}
|
|
960
|
+
</DataTableEmpty>
|
|
961
|
+
);
|
|
962
|
+
|
|
505
963
|
return (
|
|
506
964
|
<div className="flex h-svh min-h-0 min-w-0 flex-col">
|
|
507
965
|
<BundleFilterToolbar
|
|
508
966
|
channels={channels}
|
|
967
|
+
clearable={clearable}
|
|
509
968
|
onChange={changeFilters}
|
|
510
969
|
onClear={() => go({})}
|
|
511
970
|
onManageChannels={() => setChannelsOpen(true)}
|
|
971
|
+
pending={resolved === undefined}
|
|
512
972
|
search={search}
|
|
513
973
|
/>
|
|
514
974
|
|
|
515
975
|
<div className="flex min-h-0 min-w-0 flex-1 flex-col gap-6 bg-muted/5 p-3 sm:p-6">
|
|
516
|
-
{
|
|
976
|
+
{channelsFailed ? (
|
|
977
|
+
<Alert variant="destructive">
|
|
978
|
+
<AlertTriangle />
|
|
979
|
+
<AlertTitle>Channels couldn't be loaded</AlertTitle>
|
|
980
|
+
<AlertDescription>
|
|
981
|
+
Bundles show once the channels load.
|
|
982
|
+
</AlertDescription>
|
|
983
|
+
<AlertAction>
|
|
984
|
+
<Button
|
|
985
|
+
className="min-h-11 sm:min-h-7"
|
|
986
|
+
onClick={() => void channelsQuery.refetch()}
|
|
987
|
+
size="xs"
|
|
988
|
+
variant="outline"
|
|
989
|
+
>
|
|
990
|
+
<RefreshCw data-icon="inline-start" />
|
|
991
|
+
Retry
|
|
992
|
+
</Button>
|
|
993
|
+
</AlertAction>
|
|
994
|
+
</Alert>
|
|
995
|
+
) : list.isError ? (
|
|
517
996
|
<Alert variant="destructive">
|
|
518
997
|
<AlertTriangle />
|
|
519
998
|
<AlertTitle>Bundles could not be loaded</AlertTitle>
|
|
520
|
-
<AlertDescription>{
|
|
999
|
+
<AlertDescription>{list.error?.message}</AlertDescription>
|
|
521
1000
|
</Alert>
|
|
522
1001
|
) : (
|
|
523
|
-
<
|
|
1002
|
+
<DataTableFrame>
|
|
524
1003
|
{isMobile ? (
|
|
525
1004
|
<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
|
-
})
|
|
1005
|
+
{list.isPending ? (
|
|
1006
|
+
<DataCardSkeletons />
|
|
675
1007
|
) : (
|
|
676
|
-
|
|
677
|
-
{
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
1008
|
+
<>
|
|
1009
|
+
{releases.length === 0 ? (
|
|
1010
|
+
<DataCardsEmpty>{empty}</DataCardsEmpty>
|
|
1011
|
+
) : null}
|
|
1012
|
+
{entries.map((entry) =>
|
|
1013
|
+
entry.kind === "row"
|
|
1014
|
+
? renderCard(entry.row, pageContext)
|
|
1015
|
+
: fold(entry, renderCard),
|
|
1016
|
+
)}
|
|
1017
|
+
</>
|
|
683
1018
|
)}
|
|
684
1019
|
</div>
|
|
685
1020
|
) : (
|
|
686
|
-
<
|
|
687
|
-
|
|
688
|
-
|
|
1021
|
+
<DataTable
|
|
1022
|
+
rowGroups
|
|
1023
|
+
header={
|
|
1024
|
+
<>
|
|
689
1025
|
<TableHead>ID</TableHead>
|
|
690
1026
|
<TableHead>Channel</TableHead>
|
|
691
1027
|
<TableHead>Platform</TableHead>
|
|
@@ -699,296 +1035,53 @@ function BundlesPage() {
|
|
|
699
1035
|
))}
|
|
700
1036
|
<TableHead>Message</TableHead>
|
|
701
1037
|
<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>
|
|
1038
|
+
</>
|
|
1039
|
+
}
|
|
1040
|
+
>
|
|
1041
|
+
{list.isPending ? (
|
|
1042
|
+
<DataTableBody>
|
|
1043
|
+
<DataTableSkeletonRows columns={columnCount} />
|
|
1044
|
+
</DataTableBody>
|
|
1045
|
+
) : (
|
|
1046
|
+
<>
|
|
1047
|
+
{releases.length === 0 ? (
|
|
1048
|
+
<DataTableBody>
|
|
1049
|
+
<DataTableFullRow columns={columnCount}>
|
|
1050
|
+
{empty}
|
|
1051
|
+
</DataTableFullRow>
|
|
1052
|
+
</DataTableBody>
|
|
1053
|
+
) : null}
|
|
1054
|
+
{groupsOf(entries).map((group) =>
|
|
1055
|
+
group.kind === "fold" ? (
|
|
1056
|
+
fold(group.fold, renderRow)
|
|
1057
|
+
) : (
|
|
1058
|
+
<DataTableBody key={`rows-${group.rows[0]!.id}`}>
|
|
1059
|
+
{group.rows.map((release) =>
|
|
1060
|
+
renderRow(release, pageContext),
|
|
1061
|
+
)}
|
|
1062
|
+
</DataTableBody>
|
|
1063
|
+
),
|
|
1064
|
+
)}
|
|
1065
|
+
</>
|
|
1066
|
+
)}
|
|
1067
|
+
</DataTable>
|
|
915
1068
|
)}
|
|
916
|
-
</
|
|
1069
|
+
</DataTableFrame>
|
|
917
1070
|
)}
|
|
918
1071
|
|
|
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>
|
|
1072
|
+
{!channelsFailed && !list.isError && !list.isPending ? (
|
|
1073
|
+
<DataTablePagination
|
|
1074
|
+
count={releases.length}
|
|
1075
|
+
folded={{ ...foldedTotal(entries), label: "unreachable" }}
|
|
1076
|
+
label="Bundle pagination"
|
|
1077
|
+
noun={["bundle", "bundles"]}
|
|
1078
|
+
pending={list.isPlaceholderData}
|
|
1079
|
+
newest={onLaterPage ? { search: newestSearch, to: "/" } : undefined}
|
|
1080
|
+
next={nextSearch ? { search: nextSearch, to: "/" } : undefined}
|
|
1081
|
+
previous={
|
|
1082
|
+
previousSearch ? { search: previousSearch, to: "/" } : undefined
|
|
1083
|
+
}
|
|
1084
|
+
/>
|
|
992
1085
|
) : null}
|
|
993
1086
|
</div>
|
|
994
1087
|
|