@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
|
@@ -1,17 +1,47 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
extractTimestampFromUUIDv7,
|
|
3
|
+
type NativeBuildRow,
|
|
4
|
+
} from "@hot-updater/plugin-core";
|
|
2
5
|
import { Link, useNavigate } from "@tanstack/react-router";
|
|
3
6
|
import {
|
|
4
7
|
AlertTriangle,
|
|
5
8
|
ArrowUpRight,
|
|
6
|
-
|
|
7
|
-
ChevronRight,
|
|
8
|
-
Download,
|
|
9
|
-
HardDriveDownload,
|
|
9
|
+
HardDrive,
|
|
10
10
|
RefreshCw,
|
|
11
11
|
} from "lucide-react";
|
|
12
12
|
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
13
|
+
import { ChannelBadge } from "@/components/ChannelBadge";
|
|
14
|
+
import {
|
|
15
|
+
DataCard,
|
|
16
|
+
DataCardSkeletons,
|
|
17
|
+
DataCardsEmpty,
|
|
18
|
+
DataTable,
|
|
19
|
+
DataTableBody,
|
|
20
|
+
DataTableEmpty,
|
|
21
|
+
DataTableFrame,
|
|
22
|
+
DataTableFullRow,
|
|
23
|
+
DataTablePagination,
|
|
24
|
+
DataTableRow,
|
|
25
|
+
DataTableSkeletonRows,
|
|
26
|
+
openOutsideControls,
|
|
27
|
+
} from "@/components/DataTable";
|
|
28
|
+
import {
|
|
29
|
+
DataCardFold,
|
|
30
|
+
DataTableFold,
|
|
31
|
+
foldKey,
|
|
32
|
+
foldLabel,
|
|
33
|
+
FoldStatus,
|
|
34
|
+
foldedTotal,
|
|
35
|
+
groupsOf,
|
|
36
|
+
useOpenFolds,
|
|
37
|
+
} from "@/components/FoldedRows";
|
|
38
|
+
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
39
|
+
import { RelativeTime } from "@/components/RelativeTime";
|
|
40
|
+
import {
|
|
41
|
+
BuildKeyDisplay,
|
|
42
|
+
NoValue,
|
|
43
|
+
TargetDisplay,
|
|
44
|
+
} from "@/components/TargetDisplay";
|
|
15
45
|
import {
|
|
16
46
|
Alert,
|
|
17
47
|
AlertAction,
|
|
@@ -20,307 +50,526 @@ import {
|
|
|
20
50
|
} from "@/components/ui/alert";
|
|
21
51
|
import { Badge } from "@/components/ui/badge";
|
|
22
52
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
TableCell,
|
|
28
|
-
TableHead,
|
|
29
|
-
TableHeader,
|
|
30
|
-
TableRow,
|
|
31
|
-
} from "@/components/ui/table";
|
|
53
|
+
import { TableCell, TableHead } from "@/components/ui/table";
|
|
54
|
+
import { useIsMobile } from "@/hooks/use-mobile";
|
|
55
|
+
import { useNativeBuildFoldQuery } from "@/lib/api";
|
|
56
|
+
import { ALL_CHANNELS } from "@/lib/constants";
|
|
32
57
|
import {
|
|
33
58
|
formatByteSize,
|
|
34
59
|
nativeBuildArtifacts,
|
|
35
60
|
nativeBuildChannel,
|
|
36
|
-
nativeBuildDownloadPath,
|
|
37
|
-
nativeBuildFileName,
|
|
38
|
-
nativeBuildTarget,
|
|
39
61
|
platformLabel,
|
|
40
62
|
} from "@/lib/native-builds";
|
|
41
|
-
import type {
|
|
63
|
+
import type { Fold } from "@/lib/server/foldedPage";
|
|
64
|
+
import type { NativeBuildFoldedPage } from "@/lib/server/nativeBuilds";
|
|
65
|
+
import type { NativeBuildsSearch } from "@/routes/-native-builds-search";
|
|
42
66
|
|
|
43
|
-
import { CommitLink } from "./CommitLink";
|
|
44
67
|
import { CopyableText } from "./CopyableText";
|
|
45
68
|
import { IMPORT_COMMAND, IMPORT_GUIDE_URL } from "./ImportBuild";
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
69
|
+
import { OlderBuildLabel } from "./OlderBuildLabel";
|
|
70
|
+
import { SandboxBadge } from "./SandboxBadge";
|
|
71
|
+
import { isSubmitted, StoreSubmissionBadge } from "./StoreSubmission";
|
|
48
72
|
|
|
49
73
|
export const NATIVE_BUILD_GUIDE_URL =
|
|
50
|
-
"https://hot-updater.dev/docs/guides/native-build#
|
|
74
|
+
"https://hot-updater.dev/docs/guides/native-build#how-a-build-is-tracked";
|
|
75
|
+
|
|
76
|
+
const COLUMNS = 9;
|
|
51
77
|
|
|
52
|
-
|
|
78
|
+
/** The page of the list that shows `channel`'s builds, or every build. */
|
|
79
|
+
const channelSearch = (channel: string | undefined): NativeBuildsSearch =>
|
|
80
|
+
channel === undefined ? { channels: ALL_CHANNELS } : { channel };
|
|
53
81
|
|
|
54
|
-
|
|
82
|
+
/** A fold of older builds: "1 older build", "12 older builds". */
|
|
83
|
+
const OLDER_BUILDS = { one: "older build", other: "older builds" } as const;
|
|
84
|
+
|
|
85
|
+
function EmptyState({
|
|
55
86
|
channel,
|
|
56
87
|
paged,
|
|
88
|
+
folded,
|
|
57
89
|
onClearChannel,
|
|
58
|
-
onNewest,
|
|
59
90
|
}: {
|
|
60
91
|
readonly channel: string | undefined;
|
|
61
92
|
readonly paged: boolean;
|
|
93
|
+
/** Whether the page holds older builds alone, folded. */
|
|
94
|
+
readonly folded: boolean;
|
|
62
95
|
readonly onClearChannel: () => void;
|
|
63
|
-
readonly onNewest: () => void;
|
|
64
96
|
}) {
|
|
97
|
+
if (paged || folded) {
|
|
98
|
+
return (
|
|
99
|
+
<DataTableEmpty
|
|
100
|
+
icon={HardDrive}
|
|
101
|
+
title={
|
|
102
|
+
folded ? "Each build here has a newer one" : "No more native builds"
|
|
103
|
+
}
|
|
104
|
+
>
|
|
105
|
+
<Link
|
|
106
|
+
className={buttonVariants({
|
|
107
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
108
|
+
variant: "outline",
|
|
109
|
+
})}
|
|
110
|
+
search={channelSearch(channel)}
|
|
111
|
+
to="/native-builds"
|
|
112
|
+
>
|
|
113
|
+
Show the newest builds
|
|
114
|
+
</Link>
|
|
115
|
+
</DataTableEmpty>
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
if (channel !== undefined) {
|
|
119
|
+
return (
|
|
120
|
+
<DataTableEmpty
|
|
121
|
+
icon={HardDrive}
|
|
122
|
+
title={
|
|
123
|
+
<>
|
|
124
|
+
No native build embeds <span translate="no">{channel}</span>
|
|
125
|
+
</>
|
|
126
|
+
}
|
|
127
|
+
>
|
|
128
|
+
<p>
|
|
129
|
+
A build embeds the channel it was built on. Build one on this channel,
|
|
130
|
+
or list every channel's builds.
|
|
131
|
+
</p>
|
|
132
|
+
<Button
|
|
133
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
134
|
+
onClick={onClearChannel}
|
|
135
|
+
variant="outline"
|
|
136
|
+
>
|
|
137
|
+
Show all channels
|
|
138
|
+
</Button>
|
|
139
|
+
</DataTableEmpty>
|
|
140
|
+
);
|
|
141
|
+
}
|
|
65
142
|
return (
|
|
66
|
-
<
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
143
|
+
<DataTableEmpty icon={HardDrive} title="No native builds">
|
|
144
|
+
<p>
|
|
145
|
+
Build one with{" "}
|
|
146
|
+
<code className="font-mono text-xs">native-build android</code> or{" "}
|
|
147
|
+
<code className="font-mono text-xs">native-build ios</code>, or import
|
|
148
|
+
one built elsewhere:
|
|
149
|
+
</p>
|
|
150
|
+
<div className="w-full text-left">
|
|
151
|
+
<CopyableText label="the import command" value={IMPORT_COMMAND} wrap />
|
|
152
|
+
</div>
|
|
153
|
+
<a
|
|
154
|
+
className={buttonVariants({
|
|
155
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
156
|
+
variant: "outline",
|
|
157
|
+
})}
|
|
158
|
+
href={NATIVE_BUILD_GUIDE_URL}
|
|
159
|
+
rel="noreferrer"
|
|
160
|
+
target="_blank"
|
|
70
161
|
>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<>
|
|
88
|
-
<p className="font-medium text-foreground">
|
|
89
|
-
No native build embeds <span translate="no">{channel}</span>
|
|
90
|
-
</p>
|
|
91
|
-
<p>
|
|
92
|
-
A build embeds the channel it was built on. Build one on this
|
|
93
|
-
channel, or list every channel's builds.
|
|
94
|
-
</p>
|
|
95
|
-
<Button
|
|
96
|
-
className="mt-1 min-h-11 sm:min-h-8"
|
|
97
|
-
onClick={onClearChannel}
|
|
98
|
-
variant="outline"
|
|
99
|
-
>
|
|
100
|
-
Show all channels
|
|
101
|
-
</Button>
|
|
102
|
-
</>
|
|
103
|
-
) : (
|
|
104
|
-
<>
|
|
105
|
-
<p className="font-medium text-foreground">No native builds</p>
|
|
106
|
-
<p>
|
|
107
|
-
Build one with{" "}
|
|
108
|
-
<code className="font-mono text-xs">native-build android</code>{" "}
|
|
109
|
-
or <code className="font-mono text-xs">native-build ios</code>,
|
|
110
|
-
or import one built elsewhere:
|
|
111
|
-
</p>
|
|
112
|
-
<div className="w-full text-left">
|
|
113
|
-
<CopyableText
|
|
114
|
-
label="the import command"
|
|
115
|
-
value={IMPORT_COMMAND}
|
|
116
|
-
wrap
|
|
117
|
-
/>
|
|
118
|
-
</div>
|
|
119
|
-
<a
|
|
120
|
-
className={buttonVariants({
|
|
121
|
-
className: "mt-1 min-h-11 sm:min-h-8",
|
|
122
|
-
variant: "outline",
|
|
123
|
-
})}
|
|
124
|
-
href={NATIVE_BUILD_GUIDE_URL}
|
|
125
|
-
rel="noreferrer"
|
|
126
|
-
target="_blank"
|
|
127
|
-
>
|
|
128
|
-
Native build guide
|
|
129
|
-
<ArrowUpRight data-icon="inline-end" />
|
|
130
|
-
</a>
|
|
131
|
-
<a
|
|
132
|
-
className={buttonVariants({
|
|
133
|
-
className: "min-h-11 sm:min-h-8",
|
|
134
|
-
variant: "outline",
|
|
135
|
-
})}
|
|
136
|
-
href={IMPORT_GUIDE_URL}
|
|
137
|
-
rel="noreferrer"
|
|
138
|
-
target="_blank"
|
|
139
|
-
>
|
|
140
|
-
Import guide
|
|
141
|
-
<ArrowUpRight data-icon="inline-end" />
|
|
142
|
-
</a>
|
|
143
|
-
</>
|
|
144
|
-
)}
|
|
145
|
-
</div>
|
|
146
|
-
</TableCell>
|
|
147
|
-
</TableRow>
|
|
162
|
+
Native build guide
|
|
163
|
+
<ArrowUpRight data-icon="inline-end" />
|
|
164
|
+
</a>
|
|
165
|
+
<a
|
|
166
|
+
className={buttonVariants({
|
|
167
|
+
className: "min-h-11 sm:min-h-8",
|
|
168
|
+
variant: "outline",
|
|
169
|
+
})}
|
|
170
|
+
href={IMPORT_GUIDE_URL}
|
|
171
|
+
rel="noreferrer"
|
|
172
|
+
target="_blank"
|
|
173
|
+
>
|
|
174
|
+
Import guide
|
|
175
|
+
<ArrowUpRight data-icon="inline-end" />
|
|
176
|
+
</a>
|
|
177
|
+
</DataTableEmpty>
|
|
148
178
|
);
|
|
149
179
|
}
|
|
150
180
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
<TableCell className="hidden sm:table-cell">
|
|
171
|
-
<Skeleton className="h-3.5 w-20" />
|
|
172
|
-
</TableCell>
|
|
173
|
-
<TableCell>
|
|
174
|
-
<Skeleton className="ml-auto h-6 w-16" />
|
|
175
|
-
</TableCell>
|
|
176
|
-
</TableRow>
|
|
177
|
-
));
|
|
181
|
+
/** What a build is: its platform's name and artifact kind, such as "Android APK". */
|
|
182
|
+
const buildTitle = (build: NativeBuildRow) =>
|
|
183
|
+
`${platformLabel(build.platform)} ${nativeBuildArtifacts[build.artifact_kind].label}`;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The build's artifact kind, such as "IPA", linking to its page. The Platform
|
|
187
|
+
* beside it names the platform; the link's name is the whole build.
|
|
188
|
+
*/
|
|
189
|
+
function BuildLink({ build }: { readonly build: NativeBuildRow }) {
|
|
190
|
+
return (
|
|
191
|
+
<Link
|
|
192
|
+
aria-label={buildTitle(build)}
|
|
193
|
+
className="relative rounded-sm font-medium whitespace-nowrap text-foreground transition-colors underline-offset-4 after:absolute after:-inset-x-[10px] after:-inset-y-[10px] hover:text-primary hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden"
|
|
194
|
+
params={{ buildId: build.id }}
|
|
195
|
+
to="/native-builds/$buildId"
|
|
196
|
+
>
|
|
197
|
+
{nativeBuildArtifacts[build.artifact_kind].label}
|
|
198
|
+
</Link>
|
|
199
|
+
);
|
|
178
200
|
}
|
|
179
201
|
|
|
202
|
+
/**
|
|
203
|
+
* What the build is, its artifact kind and whether it is a sandbox build, kept
|
|
204
|
+
* together so the tag never wraps away from the kind it qualifies. In a table
|
|
205
|
+
* cell the tag sits beside the kind, so a sandbox row is as tall as any other,
|
|
206
|
+
* and the cell is capped at its widest short kind ("AAB Sandbox"): only a
|
|
207
|
+
* longer kind, such as a sandbox "Simulator app", puts its tag under it rather
|
|
208
|
+
* than widen the table past its frame. A fold's build says "Older" after them,
|
|
209
|
+
* as a Bundles row says "Unreachable" beside its ID, wrapping under the kind
|
|
210
|
+
* within the same cap. On a card the tag sits beside the kind, under it only
|
|
211
|
+
* when a narrow card has no room.
|
|
212
|
+
*/
|
|
213
|
+
function BuildIdentity({
|
|
214
|
+
build,
|
|
215
|
+
inTable = false,
|
|
216
|
+
older = false,
|
|
217
|
+
newer,
|
|
218
|
+
}: {
|
|
219
|
+
readonly build: NativeBuildRow;
|
|
220
|
+
readonly inTable?: boolean;
|
|
221
|
+
/** "Older" after the kind and its tag, where Bundles says "Unreachable". */
|
|
222
|
+
readonly older?: boolean;
|
|
223
|
+
readonly newer?: NativeBuildRow;
|
|
224
|
+
}) {
|
|
225
|
+
if (inTable) {
|
|
226
|
+
return (
|
|
227
|
+
<span className="flex max-w-24 flex-wrap items-center gap-x-1.5 gap-y-1">
|
|
228
|
+
<BuildLink build={build} />
|
|
229
|
+
<SandboxBadge build={build} />
|
|
230
|
+
{older ? <OlderBuildLabel newer={newer} /> : null}
|
|
231
|
+
</span>
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
return (
|
|
235
|
+
<span className="flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1">
|
|
236
|
+
<BuildLink build={build} />
|
|
237
|
+
<SandboxBadge build={build} />
|
|
238
|
+
</span>
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/** The channel the build embeds; a click lists that channel's builds. */
|
|
243
|
+
function ChannelFilterButton({
|
|
244
|
+
channel,
|
|
245
|
+
onChannel,
|
|
246
|
+
}: {
|
|
247
|
+
readonly channel: string;
|
|
248
|
+
readonly onChannel: (channel: string) => void;
|
|
249
|
+
}) {
|
|
250
|
+
return (
|
|
251
|
+
<button
|
|
252
|
+
aria-label={`Show the builds that embed ${channel}`}
|
|
253
|
+
className="relative flex max-w-full min-w-0 rounded-md text-left after:absolute after:-inset-x-1 after:-inset-y-[11px] focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden"
|
|
254
|
+
onClick={() => onChannel(channel)}
|
|
255
|
+
title={channel}
|
|
256
|
+
type="button"
|
|
257
|
+
>
|
|
258
|
+
{/* A long channel ends in an ellipsis; its tooltip and label name it. */}
|
|
259
|
+
<ChannelBadge channel={channel} className="block max-w-32 truncate" />
|
|
260
|
+
</button>
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* The store track a build went to, and under it the store build mark, so a
|
|
266
|
+
* build with both stays one badge wide.
|
|
267
|
+
*/
|
|
268
|
+
function StoreCell({ build }: { readonly build: NativeBuildRow }) {
|
|
269
|
+
if (!isSubmitted(build) && !build.is_store_build) return <NoValue />;
|
|
270
|
+
return (
|
|
271
|
+
<StoreBadges build={build} className="flex flex-col items-start gap-1" />
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/** The store badges, laid out by the caller. */
|
|
276
|
+
function StoreBadges({
|
|
277
|
+
build,
|
|
278
|
+
className,
|
|
279
|
+
}: {
|
|
280
|
+
readonly build: NativeBuildRow;
|
|
281
|
+
readonly className: string;
|
|
282
|
+
}) {
|
|
283
|
+
return (
|
|
284
|
+
<span className={className}>
|
|
285
|
+
<StoreSubmissionBadge build={build} />
|
|
286
|
+
{build.is_store_build ? (
|
|
287
|
+
<Badge className="px-1.5" variant="muted">
|
|
288
|
+
Store build
|
|
289
|
+
</Badge>
|
|
290
|
+
) : null}
|
|
291
|
+
</span>
|
|
292
|
+
);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
function BuildNumber({ build }: { readonly build: NativeBuildRow }) {
|
|
296
|
+
return build.build_number ? (
|
|
297
|
+
<span className="font-mono tabular-nums" translate="no">
|
|
298
|
+
{build.build_number}
|
|
299
|
+
</span>
|
|
300
|
+
) : (
|
|
301
|
+
<NoValue />
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/** When the build was registered, from its ID. */
|
|
306
|
+
const createdAt = (build: NativeBuildRow) =>
|
|
307
|
+
extractTimestampFromUUIDv7(build.id);
|
|
308
|
+
|
|
180
309
|
function BuildRow({
|
|
181
310
|
build,
|
|
311
|
+
older = false,
|
|
312
|
+
newer,
|
|
182
313
|
onChannel,
|
|
183
314
|
}: {
|
|
184
315
|
readonly build: NativeBuildRow;
|
|
316
|
+
/** Whether a newer build on its path passes it over: a fold's build. */
|
|
317
|
+
readonly older?: boolean;
|
|
318
|
+
/** That newer build, when it was found. */
|
|
319
|
+
readonly newer?: NativeBuildRow;
|
|
185
320
|
readonly onChannel: (channel: string) => void;
|
|
186
321
|
}) {
|
|
187
322
|
const navigate = useNavigate();
|
|
188
|
-
const target = nativeBuildTarget(build);
|
|
189
323
|
const channel = nativeBuildChannel(build);
|
|
190
|
-
const title = `${platformLabel(build.platform)} ${nativeBuildArtifacts[build.artifact_kind].label}`;
|
|
191
324
|
return (
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
325
|
+
<DataTableRow
|
|
326
|
+
aria-label={`Open native build ${build.id}`}
|
|
327
|
+
className="data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100"
|
|
328
|
+
data-older={older ? true : undefined}
|
|
329
|
+
onOpen={() =>
|
|
195
330
|
void navigate({
|
|
196
331
|
to: "/native-builds/$buildId",
|
|
197
332
|
params: { buildId: build.id },
|
|
198
333
|
})
|
|
199
334
|
}
|
|
200
335
|
>
|
|
201
|
-
<TableCell
|
|
202
|
-
<
|
|
203
|
-
<div className="flex flex-wrap items-center gap-1.5">
|
|
204
|
-
<PlatformIcon
|
|
205
|
-
className="size-3.5 shrink-0 text-muted-foreground"
|
|
206
|
-
platform={build.platform}
|
|
207
|
-
/>
|
|
208
|
-
<Link
|
|
209
|
-
className="font-medium underline-offset-4 hover:underline"
|
|
210
|
-
onClick={(event) => event.stopPropagation()}
|
|
211
|
-
params={{ buildId: build.id }}
|
|
212
|
-
to="/native-builds/$buildId"
|
|
213
|
-
>
|
|
214
|
-
{title}
|
|
215
|
-
</Link>
|
|
216
|
-
<span className="text-xs text-muted-foreground tabular-nums">
|
|
217
|
-
{formatByteSize(build.byte_size)}
|
|
218
|
-
</span>
|
|
219
|
-
<StoreSubmissionBadge build={build} withTime />
|
|
220
|
-
</div>
|
|
221
|
-
<div className="flex min-w-0 flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
222
|
-
<span>{target.label}</span>
|
|
223
|
-
{build.fingerprint_hash === null ? (
|
|
224
|
-
<span className="font-mono text-foreground" translate="no">
|
|
225
|
-
{target.value}
|
|
226
|
-
</span>
|
|
227
|
-
) : (
|
|
228
|
-
<ShortHash
|
|
229
|
-
label="fingerprint"
|
|
230
|
-
length={12}
|
|
231
|
-
value={build.fingerprint_hash}
|
|
232
|
-
/>
|
|
233
|
-
)}
|
|
234
|
-
{!build.build_number ? null : (
|
|
235
|
-
<span className="tabular-nums" translate="no">
|
|
236
|
-
· build {build.build_number}
|
|
237
|
-
</span>
|
|
238
|
-
)}
|
|
239
|
-
<span className="md:hidden" translate="no">
|
|
240
|
-
· {channel}
|
|
241
|
-
</span>
|
|
242
|
-
{build.git_commit_hash === null ? null : (
|
|
243
|
-
<span className="inline-flex items-center gap-1 xl:hidden">
|
|
244
|
-
· commit <CommitLink hash={build.git_commit_hash} />
|
|
245
|
-
</span>
|
|
246
|
-
)}
|
|
247
|
-
</div>
|
|
248
|
-
{/* Below xl the column hides, so the whole ID shows here. */}
|
|
249
|
-
<div className="text-xs text-muted-foreground xl:hidden">
|
|
250
|
-
Built-in bundle{" "}
|
|
251
|
-
<span
|
|
252
|
-
className="font-mono [overflow-wrap:anywhere] text-foreground"
|
|
253
|
-
translate="no"
|
|
254
|
-
>
|
|
255
|
-
{build.min_bundle_id}
|
|
256
|
-
</span>
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
336
|
+
<TableCell>
|
|
337
|
+
<BuildIdentity build={build} inTable newer={newer} older={older} />
|
|
259
338
|
</TableCell>
|
|
260
|
-
<TableCell
|
|
261
|
-
<
|
|
262
|
-
aria-label={`Show the builds that embed ${channel}`}
|
|
263
|
-
className="rounded-md text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
|
|
264
|
-
onClick={(event) => {
|
|
265
|
-
event.stopPropagation();
|
|
266
|
-
onChannel(channel);
|
|
267
|
-
}}
|
|
268
|
-
type="button"
|
|
269
|
-
>
|
|
270
|
-
<Badge className="whitespace-nowrap" translate="no" variant="outline">
|
|
271
|
-
{channel}
|
|
272
|
-
</Badge>
|
|
273
|
-
</button>
|
|
339
|
+
<TableCell>
|
|
340
|
+
<ChannelFilterButton channel={channel} onChannel={onChannel} />
|
|
274
341
|
</TableCell>
|
|
275
|
-
<TableCell className="
|
|
276
|
-
<
|
|
277
|
-
className="font-mono text-xs text-muted-foreground"
|
|
278
|
-
translate="no"
|
|
279
|
-
>
|
|
280
|
-
{build.min_bundle_id}
|
|
281
|
-
</span>
|
|
342
|
+
<TableCell className="whitespace-nowrap">
|
|
343
|
+
<PlatformLabel platform={build.platform} />
|
|
282
344
|
</TableCell>
|
|
283
|
-
<TableCell
|
|
284
|
-
<
|
|
345
|
+
<TableCell>
|
|
346
|
+
<BuildNumber build={build} />
|
|
285
347
|
</TableCell>
|
|
286
|
-
<TableCell
|
|
287
|
-
<
|
|
348
|
+
<TableCell>
|
|
349
|
+
<TargetDisplay
|
|
350
|
+
appVersion={build.app_version}
|
|
351
|
+
fingerprintHash={build.fingerprint_hash}
|
|
352
|
+
nativeAppVersion={build.native_app_version}
|
|
353
|
+
/>
|
|
288
354
|
</TableCell>
|
|
289
|
-
<TableCell
|
|
290
|
-
<
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
size: "sm",
|
|
295
|
-
variant: "outline",
|
|
296
|
-
})}
|
|
297
|
-
download
|
|
298
|
-
href={nativeBuildDownloadPath(build.id)}
|
|
299
|
-
onClick={(event) => event.stopPropagation()}
|
|
300
|
-
>
|
|
301
|
-
<Download data-icon="inline-start" />
|
|
302
|
-
Download
|
|
303
|
-
</a>
|
|
355
|
+
<TableCell>
|
|
356
|
+
<BuildKeyDisplay value={build.build_key} />
|
|
357
|
+
</TableCell>
|
|
358
|
+
<TableCell>
|
|
359
|
+
<StoreCell build={build} />
|
|
304
360
|
</TableCell>
|
|
305
|
-
|
|
361
|
+
<TableCell className="whitespace-nowrap text-muted-foreground tabular-nums">
|
|
362
|
+
{formatByteSize(build.byte_size)}
|
|
363
|
+
</TableCell>
|
|
364
|
+
<TableCell className="text-xs text-muted-foreground">
|
|
365
|
+
<RelativeTime ms={createdAt(build)} />
|
|
366
|
+
</TableCell>
|
|
367
|
+
</DataTableRow>
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* A build's card on a narrow screen, scannable a few to a screen: what it is
|
|
373
|
+
* and where, then when, then its target and build key, then its store. Every
|
|
374
|
+
* value of the row is on it, and a tap opens the build's page.
|
|
375
|
+
*/
|
|
376
|
+
function BuildCard({
|
|
377
|
+
build,
|
|
378
|
+
older = false,
|
|
379
|
+
newer,
|
|
380
|
+
onChannel,
|
|
381
|
+
}: {
|
|
382
|
+
readonly build: NativeBuildRow;
|
|
383
|
+
/** Whether a newer build on its path passes it over: a fold's build. */
|
|
384
|
+
readonly older?: boolean;
|
|
385
|
+
/** That newer build, when it was found. */
|
|
386
|
+
readonly newer?: NativeBuildRow;
|
|
387
|
+
readonly onChannel: (channel: string) => void;
|
|
388
|
+
}) {
|
|
389
|
+
const navigate = useNavigate();
|
|
390
|
+
const channel = nativeBuildChannel(build);
|
|
391
|
+
const stored = isSubmitted(build) || build.is_store_build;
|
|
392
|
+
return (
|
|
393
|
+
<DataCard
|
|
394
|
+
aria-label={`Native build ${buildTitle(build)} ${build.id}`}
|
|
395
|
+
className="gap-3 border-b-0 data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100"
|
|
396
|
+
data-older={older ? true : undefined}
|
|
397
|
+
onClick={openOutsideControls(
|
|
398
|
+
() =>
|
|
399
|
+
void navigate({
|
|
400
|
+
to: "/native-builds/$buildId",
|
|
401
|
+
params: { buildId: build.id },
|
|
402
|
+
}),
|
|
403
|
+
)}
|
|
404
|
+
>
|
|
405
|
+
{/* What the build is on one line, its channel under it. */}
|
|
406
|
+
<div className="flex min-w-0 items-center gap-x-2.5">
|
|
407
|
+
<PlatformIcon
|
|
408
|
+
className="size-4 shrink-0 text-muted-foreground"
|
|
409
|
+
platform={build.platform}
|
|
410
|
+
/>
|
|
411
|
+
<BuildIdentity build={build} />
|
|
412
|
+
{older ? <OlderBuildLabel newer={newer} /> : null}
|
|
413
|
+
</div>
|
|
414
|
+
<div className="flex min-w-0">
|
|
415
|
+
<ChannelFilterButton channel={channel} onChannel={onChannel} />
|
|
416
|
+
</div>
|
|
417
|
+
<p className="flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
418
|
+
<span className="sr-only">{platformLabel(build.platform)}</span>
|
|
419
|
+
{build.build_number ? (
|
|
420
|
+
<>
|
|
421
|
+
<span translate="no">
|
|
422
|
+
Build{" "}
|
|
423
|
+
<span className="font-mono tabular-nums text-foreground">
|
|
424
|
+
{build.build_number}
|
|
425
|
+
</span>
|
|
426
|
+
</span>
|
|
427
|
+
<span aria-hidden="true">·</span>
|
|
428
|
+
</>
|
|
429
|
+
) : null}
|
|
430
|
+
<span className="tabular-nums">{formatByteSize(build.byte_size)}</span>
|
|
431
|
+
<span aria-hidden="true">·</span>
|
|
432
|
+
<RelativeTime ms={createdAt(build)} />
|
|
433
|
+
</p>
|
|
434
|
+
{/* Bottom-aligned: a build key sits beside a fingerprint under its
|
|
435
|
+
build's version. */}
|
|
436
|
+
<div className="flex flex-wrap items-end gap-x-4 gap-y-6 text-xs">
|
|
437
|
+
<span className="flex items-center">
|
|
438
|
+
<span className="sr-only">Target </span>
|
|
439
|
+
<TargetDisplay
|
|
440
|
+
appVersion={build.app_version}
|
|
441
|
+
fingerprintHash={build.fingerprint_hash}
|
|
442
|
+
nativeAppVersion={build.native_app_version}
|
|
443
|
+
/>
|
|
444
|
+
</span>
|
|
445
|
+
{build.build_key ? (
|
|
446
|
+
<span className="flex items-center">
|
|
447
|
+
<span className="sr-only">Build key </span>
|
|
448
|
+
<BuildKeyDisplay value={build.build_key} />
|
|
449
|
+
</span>
|
|
450
|
+
) : null}
|
|
451
|
+
</div>
|
|
452
|
+
{stored ? (
|
|
453
|
+
<StoreBadges
|
|
454
|
+
build={build}
|
|
455
|
+
className="flex flex-wrap items-center gap-1.5"
|
|
456
|
+
/>
|
|
457
|
+
) : null}
|
|
458
|
+
</DataCard>
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* A fold of older builds, where they sit in the list: closed, the number it
|
|
464
|
+
* holds; open, those builds in order, each shaded and saying which newer
|
|
465
|
+
* build passes it over, read a chunk at a time once it opens.
|
|
466
|
+
*/
|
|
467
|
+
function OlderBuildsFold({
|
|
468
|
+
fold,
|
|
469
|
+
channel,
|
|
470
|
+
isMobile,
|
|
471
|
+
open,
|
|
472
|
+
onOpenChange,
|
|
473
|
+
onChannel,
|
|
474
|
+
}: {
|
|
475
|
+
readonly fold: Fold;
|
|
476
|
+
readonly channel: string | undefined;
|
|
477
|
+
readonly isMobile: boolean;
|
|
478
|
+
readonly open: boolean;
|
|
479
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
480
|
+
readonly onChannel: (channel: string) => void;
|
|
481
|
+
}) {
|
|
482
|
+
const query = useNativeBuildFoldQuery(
|
|
483
|
+
channel,
|
|
484
|
+
{ ...(fold.from === undefined ? {} : { from: fold.from }), to: fold.to },
|
|
485
|
+
open,
|
|
486
|
+
);
|
|
487
|
+
const pages = query.data?.pages ?? [];
|
|
488
|
+
const newer = Object.assign({}, ...pages.map((page) => page.newer)) as Record<
|
|
489
|
+
string,
|
|
490
|
+
NativeBuildRow
|
|
491
|
+
>;
|
|
492
|
+
const rows = pages.flatMap((page) => page.rows);
|
|
493
|
+
const columns = isMobile ? undefined : COLUMNS;
|
|
494
|
+
const status = query.isError ? (
|
|
495
|
+
<FoldStatus
|
|
496
|
+
columns={columns}
|
|
497
|
+
label="Older builds"
|
|
498
|
+
onRetry={() => void query.refetch()}
|
|
499
|
+
state="error"
|
|
500
|
+
/>
|
|
501
|
+
) : query.isPending || query.isFetchingNextPage ? (
|
|
502
|
+
<FoldStatus
|
|
503
|
+
columns={columns}
|
|
504
|
+
label="Loading older builds"
|
|
505
|
+
state="loading"
|
|
506
|
+
/>
|
|
507
|
+
) : query.hasNextPage ? (
|
|
508
|
+
<FoldStatus
|
|
509
|
+
columns={columns}
|
|
510
|
+
label="Older builds"
|
|
511
|
+
onMore={() => void query.fetchNextPage()}
|
|
512
|
+
state="more"
|
|
513
|
+
/>
|
|
514
|
+
) : null;
|
|
515
|
+
const props = {
|
|
516
|
+
label: foldLabel(fold, OLDER_BUILDS),
|
|
517
|
+
open,
|
|
518
|
+
onOpenChange,
|
|
519
|
+
panelId: `native-build-fold-${fold.to}`,
|
|
520
|
+
};
|
|
521
|
+
return isMobile ? (
|
|
522
|
+
<DataCardFold {...props} inList>
|
|
523
|
+
{rows.map((build) => (
|
|
524
|
+
<div
|
|
525
|
+
className="border-b last:border-b-0"
|
|
526
|
+
key={build.id}
|
|
527
|
+
role="listitem"
|
|
528
|
+
>
|
|
529
|
+
<BuildCard
|
|
530
|
+
build={build}
|
|
531
|
+
newer={newer[build.id]}
|
|
532
|
+
older
|
|
533
|
+
onChannel={onChannel}
|
|
534
|
+
/>
|
|
535
|
+
</div>
|
|
536
|
+
))}
|
|
537
|
+
{status}
|
|
538
|
+
</DataCardFold>
|
|
539
|
+
) : (
|
|
540
|
+
<DataTableFold {...props} columns={COLUMNS}>
|
|
541
|
+
{rows.map((build) => (
|
|
542
|
+
<BuildRow
|
|
543
|
+
build={build}
|
|
544
|
+
key={build.id}
|
|
545
|
+
newer={newer[build.id]}
|
|
546
|
+
older
|
|
547
|
+
onChannel={onChannel}
|
|
548
|
+
/>
|
|
549
|
+
))}
|
|
550
|
+
{status}
|
|
551
|
+
</DataTableFold>
|
|
306
552
|
);
|
|
307
553
|
}
|
|
308
554
|
|
|
309
555
|
/**
|
|
310
|
-
* The registered native builds, newest first, one page at a time
|
|
311
|
-
*
|
|
556
|
+
* The registered native builds, newest first, one page at a time, as a
|
|
557
|
+
* column table like Bundles' on wide screens and cards on narrow ones. A
|
|
558
|
+
* row opens the build's page; its channel filters the list by that channel.
|
|
559
|
+
* A page counts the newest build of each distribution path and the store
|
|
560
|
+
* build; the builds a newer one passes over fold where they sit, each run
|
|
561
|
+
* one fold that opens on its own.
|
|
312
562
|
*/
|
|
313
563
|
export function NativeBuildsTable({
|
|
314
564
|
builds,
|
|
315
565
|
channel,
|
|
316
566
|
paged,
|
|
317
567
|
onChannel,
|
|
318
|
-
onPage,
|
|
319
568
|
}: {
|
|
320
569
|
readonly builds: {
|
|
321
|
-
readonly data:
|
|
570
|
+
readonly data: NativeBuildFoldedPage | undefined;
|
|
322
571
|
readonly isError: boolean;
|
|
323
|
-
readonly
|
|
572
|
+
readonly isPending: boolean;
|
|
324
573
|
readonly isPlaceholderData: boolean;
|
|
325
574
|
readonly refetch: () => unknown;
|
|
326
575
|
};
|
|
@@ -329,96 +578,173 @@ export function NativeBuildsTable({
|
|
|
329
578
|
/** Whether the list shows a page other than the newest. */
|
|
330
579
|
readonly paged: boolean;
|
|
331
580
|
readonly onChannel: (channel: string | undefined) => void;
|
|
332
|
-
readonly onPage: (page: { before?: string; after?: string }) => void;
|
|
333
581
|
}) {
|
|
334
|
-
const
|
|
582
|
+
const isMobile = useIsMobile();
|
|
583
|
+
const folds = useOpenFolds();
|
|
584
|
+
const entries = builds.data?.entries;
|
|
335
585
|
const { next, previous } = builds.data ?? {};
|
|
586
|
+
const count = entries?.filter(({ kind }) => kind === "row").length ?? 0;
|
|
336
587
|
|
|
337
588
|
if (builds.isError) {
|
|
338
589
|
return (
|
|
339
|
-
<
|
|
340
|
-
<
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
<
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
</Alert>
|
|
357
|
-
</div>
|
|
590
|
+
<Alert variant="destructive">
|
|
591
|
+
<AlertTriangle />
|
|
592
|
+
<AlertTitle>Native builds couldn't be loaded</AlertTitle>
|
|
593
|
+
<AlertDescription>
|
|
594
|
+
Check your connection and try again.
|
|
595
|
+
</AlertDescription>
|
|
596
|
+
<AlertAction>
|
|
597
|
+
<Button
|
|
598
|
+
onClick={() => void builds.refetch()}
|
|
599
|
+
size="xs"
|
|
600
|
+
variant="outline"
|
|
601
|
+
>
|
|
602
|
+
<RefreshCw data-icon="inline-start" />
|
|
603
|
+
Retry
|
|
604
|
+
</Button>
|
|
605
|
+
</AlertAction>
|
|
606
|
+
</Alert>
|
|
358
607
|
);
|
|
359
608
|
}
|
|
360
609
|
|
|
610
|
+
const empty = (
|
|
611
|
+
<EmptyState
|
|
612
|
+
channel={channel}
|
|
613
|
+
folded={(entries?.length ?? 0) > 0}
|
|
614
|
+
onClearChannel={() => onChannel(undefined)}
|
|
615
|
+
paged={paged}
|
|
616
|
+
/>
|
|
617
|
+
);
|
|
618
|
+
const fold = (entry: Fold) => (
|
|
619
|
+
<OlderBuildsFold
|
|
620
|
+
channel={channel}
|
|
621
|
+
fold={entry}
|
|
622
|
+
isMobile={isMobile}
|
|
623
|
+
key={`fold-${entry.to}`}
|
|
624
|
+
onChannel={onChannel}
|
|
625
|
+
onOpenChange={(open) => folds.set(foldKey(entry), open)}
|
|
626
|
+
open={folds.isOpen(foldKey(entry))}
|
|
627
|
+
/>
|
|
628
|
+
);
|
|
629
|
+
|
|
361
630
|
return (
|
|
362
631
|
<>
|
|
363
|
-
<
|
|
364
|
-
|
|
365
|
-
<
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
</TableHead>
|
|
371
|
-
<TableHead className="hidden xl:table-cell">Commit</TableHead>
|
|
372
|
-
<TableHead className="hidden sm:table-cell">Created</TableHead>
|
|
373
|
-
<TableHead className="text-right">
|
|
374
|
-
<span className="sr-only">Actions</span>
|
|
375
|
-
</TableHead>
|
|
376
|
-
</TableRow>
|
|
377
|
-
</TableHeader>
|
|
378
|
-
<TableBody>
|
|
379
|
-
{builds.isLoading ? (
|
|
380
|
-
<LoadingRows />
|
|
381
|
-
) : rows?.length === 0 ? (
|
|
382
|
-
<EmptyRow
|
|
383
|
-
channel={channel}
|
|
384
|
-
onClearChannel={() => onChannel(undefined)}
|
|
385
|
-
onNewest={() => onPage({})}
|
|
386
|
-
paged={paged}
|
|
387
|
-
/>
|
|
388
|
-
) : (
|
|
389
|
-
rows?.map((build) => (
|
|
390
|
-
<BuildRow build={build} key={build.id} onChannel={onChannel} />
|
|
391
|
-
))
|
|
392
|
-
)}
|
|
393
|
-
</TableBody>
|
|
394
|
-
</Table>
|
|
395
|
-
{next !== undefined || previous !== undefined ? (
|
|
396
|
-
<nav
|
|
397
|
-
aria-label="Native build pages"
|
|
398
|
-
className="flex items-center justify-end gap-2 border-t px-4 py-2"
|
|
399
|
-
>
|
|
400
|
-
<Button
|
|
401
|
-
className="min-h-11 sm:min-h-7"
|
|
402
|
-
disabled={previous === undefined || builds.isPlaceholderData}
|
|
403
|
-
onClick={() => onPage({ after: previous })}
|
|
404
|
-
size="sm"
|
|
405
|
-
variant="ghost"
|
|
632
|
+
<DataTableFrame>
|
|
633
|
+
{isMobile ? (
|
|
634
|
+
<div
|
|
635
|
+
aria-busy={builds.isPlaceholderData}
|
|
636
|
+
aria-label="Native builds"
|
|
637
|
+
className="h-full overflow-y-auto aria-busy:opacity-60"
|
|
638
|
+
role="list"
|
|
406
639
|
>
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
640
|
+
{builds.isPending ? (
|
|
641
|
+
<DataCardSkeletons label="Loading native builds" />
|
|
642
|
+
) : (
|
|
643
|
+
<>
|
|
644
|
+
{count === 0 ? <DataCardsEmpty>{empty}</DataCardsEmpty> : null}
|
|
645
|
+
{entries?.map((entry) =>
|
|
646
|
+
entry.kind === "fold" ? (
|
|
647
|
+
fold(entry)
|
|
648
|
+
) : (
|
|
649
|
+
<div
|
|
650
|
+
className="border-b last:border-b-0"
|
|
651
|
+
key={entry.row.id}
|
|
652
|
+
role="listitem"
|
|
653
|
+
>
|
|
654
|
+
<BuildCard build={entry.row} onChannel={onChannel} />
|
|
655
|
+
</div>
|
|
656
|
+
),
|
|
657
|
+
)}
|
|
658
|
+
</>
|
|
659
|
+
)}
|
|
660
|
+
</div>
|
|
661
|
+
) : (
|
|
662
|
+
<DataTable
|
|
663
|
+
aria-busy={builds.isPlaceholderData}
|
|
664
|
+
aria-label="Native builds"
|
|
665
|
+
// Nine columns fit 1440 px with 6 px between a cell and its border.
|
|
666
|
+
className="aria-busy:opacity-60 [&_td]:px-1.5 [&_th]:px-1.5"
|
|
667
|
+
header={
|
|
668
|
+
<>
|
|
669
|
+
<TableHead>Artifact</TableHead>
|
|
670
|
+
<TableHead>Channel</TableHead>
|
|
671
|
+
<TableHead>Platform</TableHead>
|
|
672
|
+
<TableHead>Build</TableHead>
|
|
673
|
+
<TableHead>Target</TableHead>
|
|
674
|
+
<TableHead>Build key</TableHead>
|
|
675
|
+
<TableHead>Store</TableHead>
|
|
676
|
+
<TableHead>Size</TableHead>
|
|
677
|
+
<TableHead>Created</TableHead>
|
|
678
|
+
</>
|
|
679
|
+
}
|
|
680
|
+
rowGroups
|
|
416
681
|
>
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
682
|
+
{builds.isPending ? (
|
|
683
|
+
<DataTableBody>
|
|
684
|
+
<DataTableSkeletonRows
|
|
685
|
+
columns={COLUMNS}
|
|
686
|
+
label="Loading native builds"
|
|
687
|
+
/>
|
|
688
|
+
</DataTableBody>
|
|
689
|
+
) : (
|
|
690
|
+
<>
|
|
691
|
+
{count === 0 ? (
|
|
692
|
+
<DataTableBody>
|
|
693
|
+
<DataTableFullRow columns={COLUMNS}>
|
|
694
|
+
{empty}
|
|
695
|
+
</DataTableFullRow>
|
|
696
|
+
</DataTableBody>
|
|
697
|
+
) : null}
|
|
698
|
+
{groupsOf(entries ?? []).map((group) =>
|
|
699
|
+
group.kind === "fold" ? (
|
|
700
|
+
fold(group.fold)
|
|
701
|
+
) : (
|
|
702
|
+
<DataTableBody key={`rows-${group.rows[0]!.id}`}>
|
|
703
|
+
{group.rows.map((build) => (
|
|
704
|
+
<BuildRow
|
|
705
|
+
build={build}
|
|
706
|
+
key={build.id}
|
|
707
|
+
onChannel={onChannel}
|
|
708
|
+
/>
|
|
709
|
+
))}
|
|
710
|
+
</DataTableBody>
|
|
711
|
+
),
|
|
712
|
+
)}
|
|
713
|
+
</>
|
|
714
|
+
)}
|
|
715
|
+
</DataTable>
|
|
716
|
+
)}
|
|
717
|
+
</DataTableFrame>
|
|
718
|
+
{builds.isPending || entries === undefined ? null : (
|
|
719
|
+
<DataTablePagination
|
|
720
|
+
count={count}
|
|
721
|
+
folded={{ ...foldedTotal(entries), label: "older" }}
|
|
722
|
+
label="Native build pages"
|
|
723
|
+
noun={["build", "builds"]}
|
|
724
|
+
pending={builds.isPlaceholderData}
|
|
725
|
+
newest={
|
|
726
|
+
paged
|
|
727
|
+
? { search: channelSearch(channel), to: "/native-builds" }
|
|
728
|
+
: undefined
|
|
729
|
+
}
|
|
730
|
+
next={
|
|
731
|
+
next === undefined
|
|
732
|
+
? undefined
|
|
733
|
+
: {
|
|
734
|
+
search: { ...channelSearch(channel), before: next },
|
|
735
|
+
to: "/native-builds",
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
previous={
|
|
739
|
+
previous === undefined
|
|
740
|
+
? undefined
|
|
741
|
+
: {
|
|
742
|
+
search: { ...channelSearch(channel), ...previous },
|
|
743
|
+
to: "/native-builds",
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
/>
|
|
747
|
+
)}
|
|
422
748
|
</>
|
|
423
749
|
);
|
|
424
750
|
}
|