@hot-updater/console 1.2.0-rc.4 → 1.2.0-rc.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/-native-builds-search-BFcW2mlI.js +1 -0
- package/.output/public/assets/BundleIdDisplay-C0X-k49t.js +1 -0
- package/.output/public/assets/ChannelBadge-BgVCJfJs.js +1 -0
- package/.output/public/assets/ChannelPicker-BQKoyxnf.js +1 -0
- package/.output/public/assets/CompositeItem-B7uxFM46.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
- package/.output/public/assets/EventDetails-CWiI1CXb.js +1 -0
- package/.output/public/assets/HashValueDisplay-DvwvQchI.js +1 -0
- package/.output/public/assets/InsightsPageHeader-BjUAikRe.js +1 -0
- package/.output/public/assets/IosInstall-B5IdjCP2.js +1 -0
- package/.output/public/assets/NativeBuildsNav-BKdnlKMN.js +1 -0
- package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-BEpesHEm.js} +1 -1
- package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-D4KPXCHL.js} +1 -1
- package/.output/public/assets/QrCode-BFSCkbPj.js +1 -0
- package/.output/public/assets/RelativeTime-5ZP9WlQ6.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-DCtG7c1o.js +1 -0
- package/.output/public/assets/RowReason-CXMCJ-Jc.js +1 -0
- package/.output/public/assets/SandboxBadge-PM92jCk6.js +1 -0
- package/.output/public/assets/TargetDisplay-DG_I3qln.js +1 -0
- package/.output/public/assets/alert-dialog-DGPqJBCk.js +1 -0
- package/.output/public/assets/api-eO-sq3Jd.js +1 -0
- package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
- package/.output/public/assets/api-keys-ztwXoKcj.js +1 -0
- package/.output/public/assets/arrow-left-68S4uy4I.js +1 -0
- package/.output/public/assets/arrow-right-DjRwIoF1.js +1 -0
- package/.output/public/assets/arrow-up-right-C_1ALUCD.js +1 -0
- package/.output/public/assets/badge-zMibJGR5.js +1 -0
- package/.output/public/assets/card-BAs80yql.js +1 -0
- package/.output/public/assets/check-C3VCvMOV.js +1 -0
- package/.output/public/assets/chevron-right-RAuPv9r1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-DvYMC5yF.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-D0JWZ1KF.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-CtbGqKyr.js} +1 -1
- package/.output/public/assets/{uuidv7-zXMtwR9Q.js → constants-C5gi7fdZ.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-BjVLMKbo.js} +1 -1
- package/.output/public/assets/dialog-BvZDZzdQ.js +1 -0
- package/.output/public/assets/dist-BEmib-ZM.js +1 -0
- package/.output/public/assets/{download-Cf24LBde.js → download-CgpaZb23.js} +1 -1
- package/.output/public/assets/empty-C5GqArX9.js +1 -0
- package/.output/public/assets/field-DInLQ5oV.js +1 -0
- package/.output/public/assets/git-branch-BGatQV8Q.js +1 -0
- package/.output/public/assets/history-Ci4dhphE.js +1 -0
- package/.output/public/assets/index-Ck4fZq4M.js +10 -0
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
- package/.output/public/assets/insights-api-D4-FZeEI.js +1 -0
- package/.output/public/assets/insights-fSY6n4k3.js +42 -0
- package/.output/public/assets/insights-osTmFzzR.js +2 -0
- package/.output/public/assets/insights-search-CZtvD-Vf.js +1 -0
- package/.output/public/assets/insights-usage-rpc-Dw5_pmRH.js +1 -0
- package/.output/public/assets/insights_.distribution-Cws8lYLC.js +1 -0
- package/.output/public/assets/insights_.distribution-DpppHhaU.js +2 -0
- package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
- package/.output/public/assets/installations-Byojb0Rv.js +2 -0
- package/.output/public/assets/installations-CFGDrY-W.js +1 -0
- package/.output/public/assets/installations-CcPrSZwW.js +1 -0
- package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-BkeLvA1m.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CRMwpc7-.js} +2 -2
- package/.output/public/assets/{list--NIee1FZ.js → list-DQ9YBIDW.js} +1 -1
- package/.output/public/assets/loader-circle-8lunBReu.js +1 -0
- package/.output/public/assets/native-builds-C4u6JvxV.js +2 -0
- package/.output/public/assets/native-builds-D9hoJd6W.js +1 -0
- package/.output/public/assets/native-builds-zwqucwx2.js +1 -0
- package/.output/public/assets/native-builds_._buildId-CXx2xjoI.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DymsEZlO.js +2 -0
- package/.output/public/assets/native-builds_.devices-DF3g--dt.js +1 -0
- package/.output/public/assets/native-builds_.devices-QToUV8FB.js +2 -0
- package/.output/public/assets/plus-DztQIXYL.js +1 -0
- package/.output/public/assets/preload-helper-CE9OukVC.js +1 -0
- package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-RUNbaMyO.js} +1 -1
- package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
- package/.output/public/assets/remote-config-BJJAxy_g.js +6 -0
- package/.output/public/assets/remote-config-Dm1MCHDN.js +1 -0
- package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
- package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-BFQcpUTO.js} +1 -1
- package/.output/public/assets/routes-9gxYg__u.js +1 -0
- package/.output/public/assets/routes-CUsayL0T.js +2 -0
- package/.output/public/assets/search-BfEqtE64.js +1 -0
- package/.output/public/assets/select-Bk52fOVX.js +1 -0
- package/.output/public/assets/sidebar-BmzmPGuv.js +3 -0
- package/.output/public/assets/smartphone-Dy13ukaU.js +1 -0
- package/.output/public/assets/styles-C1iqL6CR.css +2 -0
- package/.output/public/assets/switch-CI393qIT.js +1 -0
- package/.output/public/assets/table-DbZPkzdz.js +1 -0
- package/.output/public/assets/tabs-BnpNC0zf.js +1 -0
- package/.output/public/assets/trash-2-DI0biNI-.js +1 -0
- package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CxhBbgJw.js} +1 -1
- package/.output/public/assets/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
- package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-Cbk_weKW.js} +1 -1
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-D7IuoOLE.js} +1 -1
- package/.output/public/assets/valueToPercent-Db73Kirz.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-X9YQcrQI.mjs → __23tanstack-start-server-fn-resolver-76SKGuoc.mjs} +94 -46
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@base-ui/react+[...].mjs +4436 -3131
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +2 -2
- package/.output/server/_libs/_.mjs +2 -0
- package/.output/server/_libs/lucide-react.mjs +34 -28
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +1 -1
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__react-query.mjs +1 -1
- package/.output/server/_ssr/-native-builds-search-Bwt8tQzp.mjs +55 -0
- package/.output/server/_ssr/{BundleIdDisplay-BVrZXzTm.mjs → BundleIdDisplay-By3CbbRM.mjs} +3 -3
- package/.output/server/_ssr/ChannelBadge-CDup7l56.mjs +23 -0
- package/.output/server/_ssr/ChannelPicker-Du2TmP3P.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CULyV3nR.mjs → ConsoleFeatureUnavailable-C6aGoKDE.mjs} +8 -8
- package/.output/server/_ssr/{EventDetails-DeI1rOQc.mjs → EventDetails-VbcnMnSs.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-DpnPD3U2.mjs → HashValueDisplay-CnC2fHER.mjs} +7 -7
- package/.output/server/_ssr/{InsightsPageHeader-Dwmdtelg.mjs → InsightsPageHeader-BuOanVZL.mjs} +13 -13
- package/.output/server/_ssr/IosInstall-BAFhW7Q9.mjs +751 -0
- package/.output/server/_ssr/NativeBuildsNav-BoTu4aLF.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-Dddp1HSc.mjs → NotFoundPage-Bz05xF5Q.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
- package/.output/server/_ssr/QrCode-DWshAW81.mjs +50 -0
- package/.output/server/_ssr/RelativeTime-D5kDQVn1.mjs +242 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-Dwx7dEeQ.mjs} +20 -4
- package/.output/server/_ssr/RowReason-pVOWQ7t5.mjs +186 -0
- package/.output/server/_ssr/SandboxBadge-DFbUYwhO.mjs +85 -0
- package/.output/server/_ssr/TargetDisplay-BtE5vntq.mjs +105 -0
- package/.output/server/_ssr/{alert-dialog-ei2c1b6A.mjs → alert-dialog-tcfkkNUX.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-CVi7E0qS.mjs → api-keys-12_U0SQM.mjs} +14 -11
- package/.output/server/_ssr/{api-keys-BLHCygD_.mjs → api-keys-Bm8uDp2u.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-CLZsTwih.mjs → api-keys-rpc-BxkfToWI.mjs} +4 -4
- package/.output/server/_ssr/{api-rpc-p-7EhGIG.mjs → api-rpc-TSnLWB7e.mjs} +83 -35
- package/.output/server/_ssr/{api-CvwqILEx.mjs → api-xOHZxbzu.mjs} +174 -37
- package/.output/server/_ssr/{auth-rpc-B1W4-hxa.mjs → auth-rpc-D3w54vsW.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-CVKs7SWJ.mjs → auth.server-a2eP6q5P.mjs} +952 -186
- package/.output/server/_ssr/{badge-nS9EbEA0.mjs → badge-DrfbN1n0.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/card-DEItjgKG.mjs +49 -0
- package/.output/server/_ssr/{config.server-BAdvotbH.mjs → config.server-K8dd4dRv.mjs} +4 -4
- package/.output/server/_ssr/{console-access-BiuC2QFp.mjs → console-access-D-DHU4YH.mjs} +2 -2
- package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-DTYyXrWO.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-FvbqhbTg.mjs → console-features-api-Chy2PrzZ.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-Cl3J66aP.mjs → console-features-rpc-_31L0k1i.mjs} +4 -4
- package/.output/server/_ssr/constants-BjsJZqaU.mjs +10 -0
- package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
- package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BZMFl5QV.mjs} +3 -3
- package/.output/server/_ssr/deviceProfileToken-xzDLfE0T.mjs +98 -0
- package/.output/server/_ssr/{dialog-GmTPeUS4.mjs → dialog-SAl1vP74.mjs} +5 -5
- package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-CXWKv24M.mjs → empty-opJc9Fjw.mjs} +3 -3
- package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
- package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-lwIHAwLc.mjs → field-D6Y7zDZd.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CUjJqtlF.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CnOf4Frp.mjs} +2 -2
- package/.output/server/_ssr/{input-group-Dgr4DNbE.mjs → input-group-D2PvPRdm.mjs} +3 -3
- package/.output/server/_ssr/{insights-BxtyBLt0.mjs → insights-Cro4cYp7.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-PN_9ilr8.mjs → insights-api-BPyvQert.mjs} +5 -5
- package/.output/server/_ssr/{insights-DSnQTQw1.mjs → insights-dWeLneo1.mjs} +45 -191
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-Cxu3UtyB.mjs → insights-failures-rpc-D7M8-Et9.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc--c6kBp3k.mjs → insights-recovery-rpc-BUMK4m4H.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-oTMaAqc1.mjs → insights-rpc-BZZ4U2Ll.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-r-Z50f0Y.mjs → insights-search-Czi553oN.mjs} +6 -8
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-DoElOI5b.mjs → insights-usage-rpc-BXvUr-z6.mjs} +7 -7
- package/.output/server/_ssr/{insights-usage-rpc-B00vjt0a.mjs → insights-usage-rpc-HOr6mniz.mjs} +5 -5
- package/.output/server/_ssr/{insights-B9NvjAWc.mjs → insights-vmCmvfXx.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-CnYddZ2Y.mjs → insights_.distribution-B2dxcCd_.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-mpZ0wS_R.mjs → insights_.distribution-B5V_NbK4.mjs} +17 -16
- package/.output/server/_ssr/{insights_.distribution-B8AMBp-Q.mjs → insights_.distribution-DongF2jp.mjs} +5 -5
- package/.output/server/_ssr/{installations-BfhcY_XQ.mjs → installations-B7w4LGJp.mjs} +4 -4
- package/.output/server/_ssr/{installations-CWTRzcR7.mjs → installations-B84kSetd.mjs} +2 -2
- package/.output/server/_ssr/{installations-O6Jzc5PO.mjs → installations-bieZA3xt.mjs} +13 -13
- package/.output/server/_ssr/ios-devices-rpc-DOQg4dpb.mjs +137 -0
- package/.output/server/_ssr/iosDeviceCookie-DhWNFpC6.mjs +155 -0
- package/.output/server/_ssr/iosDeviceProfile-jC8w4zEF.mjs +176 -0
- package/.output/server/_ssr/iosDevices-B4kQLURA.mjs +113 -0
- package/.output/server/_ssr/listReleases-QF91GLE7.mjs +94 -0
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/native-artifact-D4ZISXRZ.mjs +1517 -0
- package/.output/server/_ssr/native-builds-BU9Njiwm.mjs +696 -0
- package/.output/server/_ssr/native-builds-lEyKQemV.mjs +262 -0
- package/.output/server/_ssr/{native-builds-UIgRLMb8.mjs → native-builds-zpCsEYyA.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-DjUqI5sa.mjs → native-builds_._buildId-BJ4R32fq.mjs} +3 -3
- package/.output/server/_ssr/native-builds_._buildId-RHUotAYb.mjs +1148 -0
- package/.output/server/_ssr/native-builds_.devices-C0IlQkLv.mjs +10 -0
- package/.output/server/_ssr/native-builds_.devices-D1Ke-Fc-.mjs +820 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-MCd5xUqP.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-DcsqDS-O.mjs +253 -0
- package/.output/server/_ssr/nativeBuilds-CRa36wNn.mjs +287 -0
- package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-D9CCkDjn.mjs} +7 -6
- package/.output/server/_ssr/publicConsoleBase-wTKw3_iB.mjs +15 -0
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-PLyiDnas.mjs → release-adoption-rpc-C4G_d8qK.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CJ2Shida.mjs} +4 -3
- package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-C5j4CfGa.mjs → remote-config-1QZ0HgEu.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-eNxv5Kzc.mjs → remote-config-CsbpqWAR.mjs} +24 -23
- package/.output/server/_ssr/{remote-config-tOdzsFMi.mjs → remote-config-DkgBxBka.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-Cy4VwdMt.mjs → remote-config-rpc-KjJA9DC-.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-DaQ6OkIp.mjs → router-Dy3fmb8q.mjs} +137 -64
- package/.output/server/_ssr/{routes-Drni4c1E.mjs → routes-68rZQGee.mjs} +470 -474
- package/.output/server/_ssr/{routes-BYmUIYfN.mjs → routes-Ug9uqzob.mjs} +50 -18
- package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BUbb281Z.mjs} +4 -4
- package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-CaIuQCXb.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-mZ_19Wt_.mjs → schema-migration-rpc-kntY9oPm.mjs} +4 -4
- package/.output/server/_ssr/{select-Cjrp1Sl9.mjs → select-BOKFFr_G.mjs} +12 -10
- package/.output/server/_ssr/{server-y3KoaSil.mjs → server-DetMvRBJ.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-tRHVNWpo.mjs → sidebar-B46houn0.mjs} +17 -10
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-BSkL2B6C.mjs} +2 -2
- package/.output/server/_ssr/{switch-YrqCYfP-.mjs → switch-BMYzd71j.mjs} +4 -4
- package/.output/server/_ssr/{table-NHakBPSp.mjs → table-DWrYwJ_a.mjs} +2 -2
- package/.output/server/_ssr/tabs-DusHAcYy.mjs +45 -0
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
- package/.output/server/_ssr/{dist-TEpM_UAD.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
- package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-CD1q5k0m.mjs +228 -0
- package/.output/server/index.mjs +503 -391
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/ChannelBadge.tsx +9 -9
- package/src/components/ChannelPicker.tsx +227 -0
- package/src/components/DataTable.tsx +363 -0
- package/src/components/FoldedRows.tsx +219 -0
- package/src/components/HashValueDisplay.tsx +6 -3
- package/src/components/PlatformIcon.tsx +10 -0
- package/src/components/RelativeTime.tsx +31 -0
- package/src/components/RowReason.tsx +56 -0
- package/src/components/TargetDisplay.tsx +95 -0
- package/src/components/ThemeProvider.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +5 -3
- package/src/components/features/bundles/BundleMetadata.tsx +1 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +10 -11
- package/src/components/features/insights/AppUsage.tsx +3 -5
- package/src/components/features/insights/FailureReports.tsx +3 -2
- package/src/components/features/insights/InsightsControls.tsx +10 -69
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/InsightsPageHeader.tsx +10 -15
- package/src/components/features/insights/ReleaseActivity.tsx +6 -2
- package/src/components/features/insights/ReleaseCombobox.tsx +1 -1
- package/src/components/features/insights/UpdateFailures.tsx +1 -0
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +122 -61
- package/src/components/features/native-builds/CommitLink.tsx +3 -2
- package/src/components/features/native-builds/ImportBuild.tsx +1 -1
- package/src/components/features/native-builds/InstallCard.tsx +316 -91
- package/src/components/features/native-builds/IosDevicesPage.tsx +1100 -0
- package/src/components/features/native-builds/IosInstall.tsx +732 -0
- package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +30 -6
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +94 -108
- package/src/components/features/native-builds/NativeBuildsTable.tsx +649 -323
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/components/features/native-builds/PatchesCard.tsx +28 -19
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +5 -5
- package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
- package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
- package/src/components/features/native-builds/ShortHash.tsx +6 -3
- package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
- package/src/components/features/native-builds/playTracks.ts +7 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +8 -6
- package/src/components/features/remote-config/PublishDialog.tsx +4 -1
- package/src/components/features/remote-config/VersionsCard.tsx +5 -2
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/badge.tsx +2 -0
- package/src/components/ui/button.tsx +11 -2
- package/src/components/ui/combobox.tsx +2 -2
- package/src/components/ui/dialog.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/select.tsx +15 -7
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/sonner.tsx +3 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +125 -35
- package/src/lib/api.ts +160 -16
- package/src/lib/constants.ts +15 -0
- package/src/lib/insights-search.ts +0 -3
- package/src/lib/ios-devices-api.ts +290 -0
- package/src/lib/ios-devices-rpc.ts +188 -0
- package/src/lib/native-builds.ts +261 -20
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +221 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceCookie.ts +239 -0
- package/src/lib/server/iosDeviceProfile.ts +232 -0
- package/src/lib/server/iosDevices.ts +193 -0
- package/src/lib/server/listReleases.ts +101 -62
- package/src/lib/server/local-console.ts +1 -1
- package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
- package/src/lib/server/nativeBuildInstall.ts +502 -0
- package/src/lib/server/nativeBuilds.ts +314 -58
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/routeTree.gen.ts +129 -18
- package/src/routes/-native-builds-search.ts +52 -4
- package/src/routes/-releases-search.ts +63 -2
- package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
- package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
- package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
- package/src/routes/[_]hot-updater/devices/request.ts +28 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
- package/src/routes/api/native-builds/$buildId/download.ts +22 -1
- package/src/routes/index.tsx +657 -577
- package/src/routes/insights.tsx +3 -5
- package/src/routes/insights_.distribution.tsx +2 -2
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/src/styles.css +24 -0
- package/.output/public/assets/-native-builds-search-C-TGpFAm.js +0 -1
- package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
- package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
- package/.output/public/assets/InsightsPageHeader-DHhqY3DT.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
- package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
- package/.output/public/assets/alert-dialog-BqYScr9y.js +0 -1
- package/.output/public/assets/api-P2g8dCNg.js +0 -1
- package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
- package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
- package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
- package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
- package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
- package/.output/public/assets/badge-DWFcDWho.js +0 -1
- package/.output/public/assets/check-CXVR3s3X.js +0 -1
- package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
- package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
- package/.output/public/assets/dist-CPlO6ko9.js +0 -1
- package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
- package/.output/public/assets/field-D-2-mnNh.js +0 -1
- package/.output/public/assets/history-DqHlgSuV.js +0 -1
- package/.output/public/assets/index-CqP5HPV6.js +0 -10
- package/.output/public/assets/input-group-D3OUBk4n.js +0 -1
- package/.output/public/assets/insights-B-0odqpt.js +0 -42
- package/.output/public/assets/insights-BSVGfxSL.js +0 -1
- package/.output/public/assets/insights-NK5B6ReS.js +0 -2
- package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
- package/.output/public/assets/insights-search-DghCbEnk.js +0 -1
- package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
- package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
- package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
- package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
- package/.output/public/assets/installations-B674P5Z5.js +0 -2
- package/.output/public/assets/installations-BWxczZ2t.js +0 -1
- package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
- package/.output/public/assets/native-builds-BOC71grI.js +0 -1
- package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
- package/.output/public/assets/native-builds-DAy2678K.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
- package/.output/public/assets/plus-BReVKct-.js +0 -1
- package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
- package/.output/public/assets/refresh-cw-B9HHjLej.js +0 -1
- package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
- package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
- package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
- package/.output/public/assets/routes-BDdBIxYS.js +0 -1
- package/.output/public/assets/routes-CCD33Azv.js +0 -2
- package/.output/public/assets/search-BCel4Oy6.js +0 -1
- package/.output/public/assets/select-CBIU0_M1.js +0 -1
- package/.output/public/assets/sidebar-Di9SN47G.js +0 -3
- package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
- package/.output/public/assets/styles-uK-0vUMk.css +0 -2
- package/.output/public/assets/switch-BpdiHL_t.js +0 -1
- package/.output/public/assets/table-Bpy3SvSo.js +0 -1
- package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
- package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
- package/.output/server/_ssr/-native-builds-search-CwNcoXf4.mjs +0 -37
- package/.output/server/_ssr/RolloutPercentageBadge-CoBhJtv9.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-CPg_Rn5E.mjs +0 -139
- package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
- package/.output/server/_ssr/native-builds-BDcOlKnd.mjs +0 -510
- package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
- package/.output/server/_ssr/native-builds_._buildId-BjsdQO93.mjs +0 -813
- package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
- package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
- package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
- package/.output/server/_ssr/tabs-BgTTFotk.mjs +0 -45
- package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
- package/src/lib/server/nativeBuildQr.ts +0 -73
- package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
|
@@ -0,0 +1,696 @@
|
|
|
1
|
+
import { Tt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
2
|
+
import { I as FileUp, M as HardDrive, _ as RefreshCw, i as TriangleAlert, j as History, nt as ArrowUpRight } from "../_libs/lucide-react.mjs";
|
|
3
|
+
import { O as buttonVariants, S as SidebarTrigger, j as useIsMobile, t as Button$1 } from "./sidebar-B46houn0.mjs";
|
|
4
|
+
import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-DrfbN1n0.mjs";
|
|
5
|
+
import { a as DialogHeader, n as DialogContent, o as DialogTitle, r as DialogDescription, s as DialogTrigger, t as Dialog$1 } from "./dialog-SAl1vP74.mjs";
|
|
6
|
+
import { i as TableHead, r as TableCell } from "./table-DWrYwJ_a.mjs";
|
|
7
|
+
import { g as useNavigate, h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
8
|
+
import { E as nativeBuildLabel, b as nativeBuildChannel, j as platformLabel, m as formatByteSize, v as nativeBuildArtifacts } from "./native-builds-lEyKQemV.mjs";
|
|
9
|
+
import { r as extractTimestampFromUUIDv7 } from "./uuidv7-C0jNe2Om.mjs";
|
|
10
|
+
import { g as useNativeBuildsQuery, i as useChannelsQuery, p as useNativeBuildFoldQuery } from "./api-xOHZxbzu.mjs";
|
|
11
|
+
import { n as PlatformLabel, t as PlatformIcon } from "./PlatformIcon-C22qEcwo.mjs";
|
|
12
|
+
import { t as ChannelPicker } from "./ChannelPicker-Du2TmP3P.mjs";
|
|
13
|
+
import { t as resolveNativeBuildsSearch } from "./-native-builds-search-Bwt8tQzp.mjs";
|
|
14
|
+
import { t as Route } from "./native-builds-zpCsEYyA.mjs";
|
|
15
|
+
import { t as ChannelBadge } from "./ChannelBadge-CDup7l56.mjs";
|
|
16
|
+
import { a as DataTableBody, c as DataTableFullRow, d as DataTableSkeletonRows, f as RelativeTime, i as DataTable, l as DataTablePagination, n as DataCardSkeletons, o as DataTableEmpty, p as openOutsideControls, r as DataCardsEmpty, s as DataTableFrame, t as DataCard, u as DataTableRow } from "./RelativeTime-D5kDQVn1.mjs";
|
|
17
|
+
import { i as TargetDisplay, n as CopyableText, r as NoValue, t as BuildKeyDisplay } from "./TargetDisplay-BtE5vntq.mjs";
|
|
18
|
+
import { a as foldKey, c as groupsOf, i as RowReason, l as useOpenFolds, n as DataTableFold, o as foldLabel, r as FoldStatus, s as foldedTotal, t as DataCardFold } from "./RowReason-pVOWQ7t5.mjs";
|
|
19
|
+
import { t as NativeBuildsNav } from "./NativeBuildsNav-BoTu4aLF.mjs";
|
|
20
|
+
import { i as storeTrackLabels, n as StoreSubmissionBadge, r as isSubmitted, t as SandboxBadge } from "./SandboxBadge-DFbUYwhO.mjs";
|
|
21
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/native-builds-BU9Njiwm.js
|
|
22
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
23
|
+
/** The command that tracks a build made elsewhere. */
|
|
24
|
+
var IMPORT_COMMAND = "npx hot-updater native-build import <file>";
|
|
25
|
+
/** `native-build import`'s section of the native build guide. */
|
|
26
|
+
var IMPORT_GUIDE_URL = "https://hot-updater.dev/docs/guides/native-build#import-a-build-made-elsewhere";
|
|
27
|
+
/**
|
|
28
|
+
* The toolbar's "Import a build" button and the command it shows: the CLI
|
|
29
|
+
* reads the artifact on the machine that has it, so the Console uploads
|
|
30
|
+
* nothing, since a host may cap a request's body far below an `.ipa`. The
|
|
31
|
+
* guide has the rest, such as `--channel`.
|
|
32
|
+
*/
|
|
33
|
+
function ImportBuildDialog() {
|
|
34
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Dialog$1, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogTrigger, {
|
|
35
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
36
|
+
"aria-label": "Import a build",
|
|
37
|
+
className: "min-h-11 min-w-11 sm:min-h-7 sm:min-w-0",
|
|
38
|
+
size: "sm",
|
|
39
|
+
variant: "outline"
|
|
40
|
+
}),
|
|
41
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FileUp, { "data-icon": "inline-start" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
42
|
+
className: "hidden sm:inline",
|
|
43
|
+
children: "Import a build"
|
|
44
|
+
})]
|
|
45
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogContent, {
|
|
46
|
+
className: "sm:max-w-lg",
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogTitle, { children: "Import a build" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogDescription, { children: "Track an .ipa, .aab, .apk or .app built elsewhere as a patch base." })] }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
50
|
+
label: "the import command",
|
|
51
|
+
value: IMPORT_COMMAND,
|
|
52
|
+
wrap: true
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
55
|
+
className: buttonVariants({
|
|
56
|
+
className: "min-h-11 w-full sm:min-h-8 sm:w-fit",
|
|
57
|
+
variant: "outline"
|
|
58
|
+
}),
|
|
59
|
+
href: IMPORT_GUIDE_URL,
|
|
60
|
+
rel: "noreferrer",
|
|
61
|
+
target: "_blank",
|
|
62
|
+
children: ["Import guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
})] });
|
|
66
|
+
}
|
|
67
|
+
/** How an `.ipa`'s export method names it, such as "ad hoc IPA". */
|
|
68
|
+
var EXPORT_METHOD_LABELS = {
|
|
69
|
+
"app-store": "App Store",
|
|
70
|
+
"ad-hoc": "ad hoc",
|
|
71
|
+
development: "development",
|
|
72
|
+
enterprise: "enterprise"
|
|
73
|
+
};
|
|
74
|
+
/** What a path's builds are called, such as "TestFlight build" or "ad hoc IPA". */
|
|
75
|
+
var pathNoun = (build) => {
|
|
76
|
+
const artifact = nativeBuildArtifacts[build.artifact_kind].label;
|
|
77
|
+
const noun = build.submitted_to !== null ? `${storeTrackLabels[build.submitted_to]} build` : build.artifact_kind === "ipa" && build.export_method !== null ? `${EXPORT_METHOD_LABELS[build.export_method]} ${artifact}` : artifact;
|
|
78
|
+
return build.is_sandbox ? `sandbox ${noun}` : noun;
|
|
79
|
+
};
|
|
80
|
+
/** Why a build shows as older: the newer build on its path, when found. */
|
|
81
|
+
var olderBuildReason = (newer) => {
|
|
82
|
+
if (newer === void 0) return {
|
|
83
|
+
sentence: "A newer build on its channel reaches people the same way.",
|
|
84
|
+
label: "Older: a newer build on its channel reaches people the same way"
|
|
85
|
+
};
|
|
86
|
+
const name = nativeBuildLabel(newer);
|
|
87
|
+
return {
|
|
88
|
+
sentence: `A newer ${pathNoun(newer)} exists${name === null ? "." : `: ${name}`}`,
|
|
89
|
+
label: `Older: a newer ${pathNoun(newer)} exists${name === null ? "" : `, ${name}`}`
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* "Older" on a build a newer one on its path passes over, quiet like the
|
|
94
|
+
* Bundles list's "Unreachable", naming the newer build. The build may still
|
|
95
|
+
* install, so it says no more.
|
|
96
|
+
*/
|
|
97
|
+
function OlderBuildLabel({ newer }) {
|
|
98
|
+
const reason = olderBuildReason(newer);
|
|
99
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RowReason, {
|
|
100
|
+
icon: History,
|
|
101
|
+
label: reason.label,
|
|
102
|
+
reason: reason.sentence,
|
|
103
|
+
children: "Older"
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
var NATIVE_BUILD_GUIDE_URL = "https://hot-updater.dev/docs/guides/native-build#how-a-build-is-tracked";
|
|
107
|
+
var COLUMNS = 9;
|
|
108
|
+
/** The page of the list that shows `channel`'s builds, or every build. */
|
|
109
|
+
var channelSearch = (channel) => channel === void 0 ? { channels: "all" } : { channel };
|
|
110
|
+
/** A fold of older builds: "1 older build", "12 older builds". */
|
|
111
|
+
var OLDER_BUILDS = {
|
|
112
|
+
one: "older build",
|
|
113
|
+
other: "older builds"
|
|
114
|
+
};
|
|
115
|
+
function EmptyState({ channel, paged, folded, onClearChannel }) {
|
|
116
|
+
if (paged || folded) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableEmpty, {
|
|
117
|
+
icon: HardDrive,
|
|
118
|
+
title: folded ? "Each build here has a newer one" : "No more native builds",
|
|
119
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
120
|
+
className: buttonVariants({
|
|
121
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
122
|
+
variant: "outline"
|
|
123
|
+
}),
|
|
124
|
+
search: channelSearch(channel),
|
|
125
|
+
to: "/native-builds",
|
|
126
|
+
children: "Show the newest builds"
|
|
127
|
+
})
|
|
128
|
+
});
|
|
129
|
+
if (channel !== void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataTableEmpty, {
|
|
130
|
+
icon: HardDrive,
|
|
131
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: ["No native build embeds ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
132
|
+
translate: "no",
|
|
133
|
+
children: channel
|
|
134
|
+
})] }),
|
|
135
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "A build embeds the channel it was built on. Build one on this channel, or list every channel's builds." }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
136
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
137
|
+
onClick: onClearChannel,
|
|
138
|
+
variant: "outline",
|
|
139
|
+
children: "Show all channels"
|
|
140
|
+
})]
|
|
141
|
+
});
|
|
142
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataTableEmpty, {
|
|
143
|
+
icon: HardDrive,
|
|
144
|
+
title: "No native builds",
|
|
145
|
+
children: [
|
|
146
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
147
|
+
"Build one with",
|
|
148
|
+
" ",
|
|
149
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
150
|
+
className: "font-mono text-xs",
|
|
151
|
+
children: "native-build android"
|
|
152
|
+
}),
|
|
153
|
+
" or",
|
|
154
|
+
" ",
|
|
155
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
156
|
+
className: "font-mono text-xs",
|
|
157
|
+
children: "native-build ios"
|
|
158
|
+
}),
|
|
159
|
+
", or import one built elsewhere:"
|
|
160
|
+
] }),
|
|
161
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
162
|
+
className: "w-full text-left",
|
|
163
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
164
|
+
label: "the import command",
|
|
165
|
+
value: IMPORT_COMMAND,
|
|
166
|
+
wrap: true
|
|
167
|
+
})
|
|
168
|
+
}),
|
|
169
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
170
|
+
className: buttonVariants({
|
|
171
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
172
|
+
variant: "outline"
|
|
173
|
+
}),
|
|
174
|
+
href: NATIVE_BUILD_GUIDE_URL,
|
|
175
|
+
rel: "noreferrer",
|
|
176
|
+
target: "_blank",
|
|
177
|
+
children: ["Native build guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
|
|
178
|
+
}),
|
|
179
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
180
|
+
className: buttonVariants({
|
|
181
|
+
className: "min-h-11 sm:min-h-8",
|
|
182
|
+
variant: "outline"
|
|
183
|
+
}),
|
|
184
|
+
href: IMPORT_GUIDE_URL,
|
|
185
|
+
rel: "noreferrer",
|
|
186
|
+
target: "_blank",
|
|
187
|
+
children: ["Import guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
|
|
188
|
+
})
|
|
189
|
+
]
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/** What a build is: its platform's name and artifact kind, such as "Android APK". */
|
|
193
|
+
var buildTitle = (build) => `${platformLabel(build.platform)} ${nativeBuildArtifacts[build.artifact_kind].label}`;
|
|
194
|
+
/**
|
|
195
|
+
* The build's artifact kind, such as "IPA", linking to its page. The Platform
|
|
196
|
+
* beside it names the platform; the link's name is the whole build.
|
|
197
|
+
*/
|
|
198
|
+
function BuildLink({ build }) {
|
|
199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
200
|
+
"aria-label": buildTitle(build),
|
|
201
|
+
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",
|
|
202
|
+
params: { buildId: build.id },
|
|
203
|
+
to: "/native-builds/$buildId",
|
|
204
|
+
children: nativeBuildArtifacts[build.artifact_kind].label
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* What the build is, its artifact kind and whether it is a sandbox build, kept
|
|
209
|
+
* together so the tag never wraps away from the kind it qualifies. In a table
|
|
210
|
+
* cell the tag sits beside the kind, so a sandbox row is as tall as any other,
|
|
211
|
+
* and the cell is capped at its widest short kind ("AAB Sandbox"): only a
|
|
212
|
+
* longer kind, such as a sandbox "Simulator app", puts its tag under it rather
|
|
213
|
+
* than widen the table past its frame. A fold's build says "Older" after them,
|
|
214
|
+
* as a Bundles row says "Unreachable" beside its ID, wrapping under the kind
|
|
215
|
+
* within the same cap. On a card the tag sits beside the kind, under it only
|
|
216
|
+
* when a narrow card has no room.
|
|
217
|
+
*/
|
|
218
|
+
function BuildIdentity({ build, inTable = false, older = false, newer }) {
|
|
219
|
+
if (inTable) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
220
|
+
className: "flex max-w-24 flex-wrap items-center gap-x-1.5 gap-y-1",
|
|
221
|
+
children: [
|
|
222
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildLink, { build }),
|
|
223
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SandboxBadge, { build }),
|
|
224
|
+
older ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OlderBuildLabel, { newer }) : null
|
|
225
|
+
]
|
|
226
|
+
});
|
|
227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
228
|
+
className: "flex min-w-0 flex-wrap items-center gap-x-1.5 gap-y-1",
|
|
229
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildLink, { build }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SandboxBadge, { build })]
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
/** The channel the build embeds; a click lists that channel's builds. */
|
|
233
|
+
function ChannelFilterButton({ channel, onChannel }) {
|
|
234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
235
|
+
"aria-label": `Show the builds that embed ${channel}`,
|
|
236
|
+
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",
|
|
237
|
+
onClick: () => onChannel(channel),
|
|
238
|
+
title: channel,
|
|
239
|
+
type: "button",
|
|
240
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelBadge, {
|
|
241
|
+
channel,
|
|
242
|
+
className: "block max-w-32 truncate"
|
|
243
|
+
})
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* The store track a build went to, and under it the store build mark, so a
|
|
248
|
+
* build with both stays one badge wide.
|
|
249
|
+
*/
|
|
250
|
+
function StoreCell({ build }) {
|
|
251
|
+
if (!isSubmitted(build) && !build.is_store_build) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NoValue, {});
|
|
252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreBadges, {
|
|
253
|
+
build,
|
|
254
|
+
className: "flex flex-col items-start gap-1"
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
/** The store badges, laid out by the caller. */
|
|
258
|
+
function StoreBadges({ build, className }) {
|
|
259
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
260
|
+
className,
|
|
261
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreSubmissionBadge, { build }), build.is_store_build ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
262
|
+
className: "px-1.5",
|
|
263
|
+
variant: "muted",
|
|
264
|
+
children: "Store build"
|
|
265
|
+
}) : null]
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
function BuildNumber({ build }) {
|
|
269
|
+
return build.build_number ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
270
|
+
className: "font-mono tabular-nums",
|
|
271
|
+
translate: "no",
|
|
272
|
+
children: build.build_number
|
|
273
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NoValue, {});
|
|
274
|
+
}
|
|
275
|
+
/** When the build was registered, from its ID. */
|
|
276
|
+
var createdAt = (build) => extractTimestampFromUUIDv7(build.id);
|
|
277
|
+
function BuildRow({ build, older = false, newer, onChannel }) {
|
|
278
|
+
const navigate = useNavigate();
|
|
279
|
+
const channel = nativeBuildChannel(build);
|
|
280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataTableRow, {
|
|
281
|
+
"aria-label": `Open native build ${build.id}`,
|
|
282
|
+
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",
|
|
283
|
+
"data-older": older ? true : void 0,
|
|
284
|
+
onOpen: () => void navigate({
|
|
285
|
+
to: "/native-builds/$buildId",
|
|
286
|
+
params: { buildId: build.id }
|
|
287
|
+
}),
|
|
288
|
+
children: [
|
|
289
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildIdentity, {
|
|
290
|
+
build,
|
|
291
|
+
inTable: true,
|
|
292
|
+
newer,
|
|
293
|
+
older
|
|
294
|
+
}) }),
|
|
295
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelFilterButton, {
|
|
296
|
+
channel,
|
|
297
|
+
onChannel
|
|
298
|
+
}) }),
|
|
299
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
300
|
+
className: "whitespace-nowrap",
|
|
301
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformLabel, { platform: build.platform })
|
|
302
|
+
}),
|
|
303
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildNumber, { build }) }),
|
|
304
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TargetDisplay, {
|
|
305
|
+
appVersion: build.app_version,
|
|
306
|
+
fingerprintHash: build.fingerprint_hash,
|
|
307
|
+
nativeAppVersion: build.native_app_version
|
|
308
|
+
}) }),
|
|
309
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildKeyDisplay, { value: build.build_key }) }),
|
|
310
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreCell, { build }) }),
|
|
311
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
312
|
+
className: "whitespace-nowrap text-muted-foreground tabular-nums",
|
|
313
|
+
children: formatByteSize(build.byte_size)
|
|
314
|
+
}),
|
|
315
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
316
|
+
className: "text-xs text-muted-foreground",
|
|
317
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: createdAt(build) })
|
|
318
|
+
})
|
|
319
|
+
]
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* A build's card on a narrow screen, scannable a few to a screen: what it is
|
|
324
|
+
* and where, then when, then its target and build key, then its store. Every
|
|
325
|
+
* value of the row is on it, and a tap opens the build's page.
|
|
326
|
+
*/
|
|
327
|
+
function BuildCard({ build, older = false, newer, onChannel }) {
|
|
328
|
+
const navigate = useNavigate();
|
|
329
|
+
const channel = nativeBuildChannel(build);
|
|
330
|
+
const stored = isSubmitted(build) || build.is_store_build;
|
|
331
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCard, {
|
|
332
|
+
"aria-label": `Native build ${buildTitle(build)} ${build.id}`,
|
|
333
|
+
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",
|
|
334
|
+
"data-older": older ? true : void 0,
|
|
335
|
+
onClick: openOutsideControls(() => void navigate({
|
|
336
|
+
to: "/native-builds/$buildId",
|
|
337
|
+
params: { buildId: build.id }
|
|
338
|
+
})),
|
|
339
|
+
children: [
|
|
340
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
341
|
+
className: "flex min-w-0 items-center gap-x-2.5",
|
|
342
|
+
children: [
|
|
343
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
|
|
344
|
+
className: "size-4 shrink-0 text-muted-foreground",
|
|
345
|
+
platform: build.platform
|
|
346
|
+
}),
|
|
347
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildIdentity, { build }),
|
|
348
|
+
older ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OlderBuildLabel, { newer }) : null
|
|
349
|
+
]
|
|
350
|
+
}),
|
|
351
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
352
|
+
className: "flex min-w-0",
|
|
353
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelFilterButton, {
|
|
354
|
+
channel,
|
|
355
|
+
onChannel
|
|
356
|
+
})
|
|
357
|
+
}),
|
|
358
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
359
|
+
className: "flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",
|
|
360
|
+
children: [
|
|
361
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
362
|
+
className: "sr-only",
|
|
363
|
+
children: platformLabel(build.platform)
|
|
364
|
+
}),
|
|
365
|
+
build.build_number ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
366
|
+
translate: "no",
|
|
367
|
+
children: [
|
|
368
|
+
"Build",
|
|
369
|
+
" ",
|
|
370
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
371
|
+
className: "font-mono tabular-nums text-foreground",
|
|
372
|
+
children: build.build_number
|
|
373
|
+
})
|
|
374
|
+
]
|
|
375
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
376
|
+
"aria-hidden": "true",
|
|
377
|
+
children: "·"
|
|
378
|
+
})] }) : null,
|
|
379
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
380
|
+
className: "tabular-nums",
|
|
381
|
+
children: formatByteSize(build.byte_size)
|
|
382
|
+
}),
|
|
383
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
384
|
+
"aria-hidden": "true",
|
|
385
|
+
children: "·"
|
|
386
|
+
}),
|
|
387
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: createdAt(build) })
|
|
388
|
+
]
|
|
389
|
+
}),
|
|
390
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
391
|
+
className: "flex flex-wrap items-end gap-x-4 gap-y-6 text-xs",
|
|
392
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
393
|
+
className: "flex items-center",
|
|
394
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
395
|
+
className: "sr-only",
|
|
396
|
+
children: "Target "
|
|
397
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TargetDisplay, {
|
|
398
|
+
appVersion: build.app_version,
|
|
399
|
+
fingerprintHash: build.fingerprint_hash,
|
|
400
|
+
nativeAppVersion: build.native_app_version
|
|
401
|
+
})]
|
|
402
|
+
}), build.build_key ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
403
|
+
className: "flex items-center",
|
|
404
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
405
|
+
className: "sr-only",
|
|
406
|
+
children: "Build key "
|
|
407
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildKeyDisplay, { value: build.build_key })]
|
|
408
|
+
}) : null]
|
|
409
|
+
}),
|
|
410
|
+
stored ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreBadges, {
|
|
411
|
+
build,
|
|
412
|
+
className: "flex flex-wrap items-center gap-1.5"
|
|
413
|
+
}) : null
|
|
414
|
+
]
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* A fold of older builds, where they sit in the list: closed, the number it
|
|
419
|
+
* holds; open, those builds in order, each shaded and saying which newer
|
|
420
|
+
* build passes it over, read a chunk at a time once it opens.
|
|
421
|
+
*/
|
|
422
|
+
function OlderBuildsFold({ fold, channel, isMobile, open, onOpenChange, onChannel }) {
|
|
423
|
+
const query = useNativeBuildFoldQuery(channel, {
|
|
424
|
+
...fold.from === void 0 ? {} : { from: fold.from },
|
|
425
|
+
to: fold.to
|
|
426
|
+
}, open);
|
|
427
|
+
const pages = query.data?.pages ?? [];
|
|
428
|
+
const newer = Object.assign({}, ...pages.map((page) => page.newer));
|
|
429
|
+
const rows = pages.flatMap((page) => page.rows);
|
|
430
|
+
const columns = isMobile ? void 0 : COLUMNS;
|
|
431
|
+
const status = query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FoldStatus, {
|
|
432
|
+
columns,
|
|
433
|
+
label: "Older builds",
|
|
434
|
+
onRetry: () => void query.refetch(),
|
|
435
|
+
state: "error"
|
|
436
|
+
}) : query.isPending || query.isFetchingNextPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FoldStatus, {
|
|
437
|
+
columns,
|
|
438
|
+
label: "Loading older builds",
|
|
439
|
+
state: "loading"
|
|
440
|
+
}) : query.hasNextPage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FoldStatus, {
|
|
441
|
+
columns,
|
|
442
|
+
label: "Older builds",
|
|
443
|
+
onMore: () => void query.fetchNextPage(),
|
|
444
|
+
state: "more"
|
|
445
|
+
}) : null;
|
|
446
|
+
const props = {
|
|
447
|
+
label: foldLabel(fold, OLDER_BUILDS),
|
|
448
|
+
open,
|
|
449
|
+
onOpenChange,
|
|
450
|
+
panelId: `native-build-fold-${fold.to}`
|
|
451
|
+
};
|
|
452
|
+
return isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCardFold, {
|
|
453
|
+
...props,
|
|
454
|
+
inList: true,
|
|
455
|
+
children: [rows.map((build) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
456
|
+
className: "border-b last:border-b-0",
|
|
457
|
+
role: "listitem",
|
|
458
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildCard, {
|
|
459
|
+
build,
|
|
460
|
+
newer: newer[build.id],
|
|
461
|
+
older: true,
|
|
462
|
+
onChannel
|
|
463
|
+
})
|
|
464
|
+
}, build.id)), status]
|
|
465
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataTableFold, {
|
|
466
|
+
...props,
|
|
467
|
+
columns: COLUMNS,
|
|
468
|
+
children: [rows.map((build) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildRow, {
|
|
469
|
+
build,
|
|
470
|
+
newer: newer[build.id],
|
|
471
|
+
older: true,
|
|
472
|
+
onChannel
|
|
473
|
+
}, build.id)), status]
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* The registered native builds, newest first, one page at a time, as a
|
|
478
|
+
* column table like Bundles' on wide screens and cards on narrow ones. A
|
|
479
|
+
* row opens the build's page; its channel filters the list by that channel.
|
|
480
|
+
* A page counts the newest build of each distribution path and the store
|
|
481
|
+
* build; the builds a newer one passes over fold where they sit, each run
|
|
482
|
+
* one fold that opens on its own.
|
|
483
|
+
*/
|
|
484
|
+
function NativeBuildsTable({ builds, channel, paged, onChannel }) {
|
|
485
|
+
const isMobile = useIsMobile();
|
|
486
|
+
const folds = useOpenFolds();
|
|
487
|
+
const entries = builds.data?.entries;
|
|
488
|
+
const { next, previous } = builds.data ?? {};
|
|
489
|
+
const count = entries?.filter(({ kind }) => kind === "row").length ?? 0;
|
|
490
|
+
if (builds.isError) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
|
|
491
|
+
variant: "destructive",
|
|
492
|
+
children: [
|
|
493
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
|
|
494
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Native builds couldn't be loaded" }),
|
|
495
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "Check your connection and try again." }),
|
|
496
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
497
|
+
onClick: () => void builds.refetch(),
|
|
498
|
+
size: "xs",
|
|
499
|
+
variant: "outline",
|
|
500
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
|
|
501
|
+
}) })
|
|
502
|
+
]
|
|
503
|
+
});
|
|
504
|
+
const empty = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyState, {
|
|
505
|
+
channel,
|
|
506
|
+
folded: (entries?.length ?? 0) > 0,
|
|
507
|
+
onClearChannel: () => onChannel(void 0),
|
|
508
|
+
paged
|
|
509
|
+
});
|
|
510
|
+
const fold = (entry) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OlderBuildsFold, {
|
|
511
|
+
channel,
|
|
512
|
+
fold: entry,
|
|
513
|
+
isMobile,
|
|
514
|
+
onChannel,
|
|
515
|
+
onOpenChange: (open) => folds.set(foldKey(entry), open),
|
|
516
|
+
open: folds.isOpen(foldKey(entry))
|
|
517
|
+
}, `fold-${entry.to}`);
|
|
518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFrame, { children: isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
519
|
+
"aria-busy": builds.isPlaceholderData,
|
|
520
|
+
"aria-label": "Native builds",
|
|
521
|
+
className: "h-full overflow-y-auto aria-busy:opacity-60",
|
|
522
|
+
role: "list",
|
|
523
|
+
children: builds.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardSkeletons, { label: "Loading native builds" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [count === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardsEmpty, { children: empty }) : null, entries?.map((entry) => entry.kind === "fold" ? fold(entry) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
524
|
+
className: "border-b last:border-b-0",
|
|
525
|
+
role: "listitem",
|
|
526
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildCard, {
|
|
527
|
+
build: entry.row,
|
|
528
|
+
onChannel
|
|
529
|
+
})
|
|
530
|
+
}, entry.row.id))] })
|
|
531
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTable, {
|
|
532
|
+
"aria-busy": builds.isPlaceholderData,
|
|
533
|
+
"aria-label": "Native builds",
|
|
534
|
+
className: "aria-busy:opacity-60 [&_td]:px-1.5 [&_th]:px-1.5",
|
|
535
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
536
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Artifact" }),
|
|
537
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Channel" }),
|
|
538
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Platform" }),
|
|
539
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Build" }),
|
|
540
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Target" }),
|
|
541
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Build key" }),
|
|
542
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Store" }),
|
|
543
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Size" }),
|
|
544
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Created" })
|
|
545
|
+
] }),
|
|
546
|
+
rowGroups: true,
|
|
547
|
+
children: builds.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableBody, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableSkeletonRows, {
|
|
548
|
+
columns: COLUMNS,
|
|
549
|
+
label: "Loading native builds"
|
|
550
|
+
}) }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [count === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableBody, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFullRow, {
|
|
551
|
+
columns: COLUMNS,
|
|
552
|
+
children: empty
|
|
553
|
+
}) }) : null, groupsOf(entries ?? []).map((group) => group.kind === "fold" ? fold(group.fold) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableBody, { children: group.rows.map((build) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildRow, {
|
|
554
|
+
build,
|
|
555
|
+
onChannel
|
|
556
|
+
}, build.id)) }, `rows-${group.rows[0].id}`))] })
|
|
557
|
+
}) }), builds.isPending || entries === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTablePagination, {
|
|
558
|
+
count,
|
|
559
|
+
folded: {
|
|
560
|
+
...foldedTotal(entries),
|
|
561
|
+
label: "older"
|
|
562
|
+
},
|
|
563
|
+
label: "Native build pages",
|
|
564
|
+
noun: ["build", "builds"],
|
|
565
|
+
pending: builds.isPlaceholderData,
|
|
566
|
+
newest: paged ? {
|
|
567
|
+
search: channelSearch(channel),
|
|
568
|
+
to: "/native-builds"
|
|
569
|
+
} : void 0,
|
|
570
|
+
next: next === void 0 ? void 0 : {
|
|
571
|
+
search: {
|
|
572
|
+
...channelSearch(channel),
|
|
573
|
+
before: next
|
|
574
|
+
},
|
|
575
|
+
to: "/native-builds"
|
|
576
|
+
},
|
|
577
|
+
previous: previous === void 0 ? void 0 : {
|
|
578
|
+
search: {
|
|
579
|
+
...channelSearch(channel),
|
|
580
|
+
...previous
|
|
581
|
+
},
|
|
582
|
+
to: "/native-builds"
|
|
583
|
+
}
|
|
584
|
+
})] });
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* The list while its channel is unknown: loading, whatever the cache holds,
|
|
588
|
+
* and nothing to refresh. A disabled query still reads when refetched.
|
|
589
|
+
*/
|
|
590
|
+
var PENDING_BUILDS = {
|
|
591
|
+
data: void 0,
|
|
592
|
+
isError: false,
|
|
593
|
+
isPending: true,
|
|
594
|
+
isPlaceholderData: false,
|
|
595
|
+
refetch: () => void 0
|
|
596
|
+
};
|
|
597
|
+
/**
|
|
598
|
+
* The native builds Hot Updater tracks: one page at a time, newest first,
|
|
599
|
+
* those that embed one channel, the default one unless the URL names another
|
|
600
|
+
* or every channel. The page and the channel are in the URL, so a pull
|
|
601
|
+
* request links to its channel's builds.
|
|
602
|
+
*/
|
|
603
|
+
function NativeBuildsPage({ search, onSearchChange }) {
|
|
604
|
+
const channels = useChannelsQuery();
|
|
605
|
+
const channelNames = channels.data?.map(({ name }) => name) ?? [];
|
|
606
|
+
const page = resolveNativeBuildsSearch(search, channels.data && channelNames);
|
|
607
|
+
const pending = page === void 0;
|
|
608
|
+
const channelsFailed = pending && channels.isError;
|
|
609
|
+
const { channel, before, after } = page ?? search;
|
|
610
|
+
const query = useNativeBuildsQuery(page ?? {}, { enabled: !pending });
|
|
611
|
+
const builds = pending ? PENDING_BUILDS : query;
|
|
612
|
+
const filterBy = (next) => onSearchChange(next === void 0 ? { channels: "all" } : { channel: next });
|
|
613
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
614
|
+
className: "flex h-svh min-h-0 min-w-0 flex-col",
|
|
615
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
616
|
+
className: "sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm",
|
|
617
|
+
children: [
|
|
618
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
|
|
619
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
620
|
+
className: "flex items-center gap-1.5",
|
|
621
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDrive, {
|
|
622
|
+
"aria-hidden": "true",
|
|
623
|
+
className: "size-3.5 text-muted-foreground"
|
|
624
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
625
|
+
className: "text-sm font-medium",
|
|
626
|
+
children: "Native builds"
|
|
627
|
+
})]
|
|
628
|
+
}),
|
|
629
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
630
|
+
className: "basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0",
|
|
631
|
+
children: "Store and test builds, each the built-in bundle its OTAs patch from."
|
|
632
|
+
})
|
|
633
|
+
]
|
|
634
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
635
|
+
className: "flex min-h-0 min-w-0 flex-1 flex-col gap-4 bg-muted/5 p-3 sm:p-6",
|
|
636
|
+
children: [
|
|
637
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsNav, { current: "builds" }),
|
|
638
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
639
|
+
className: "flex flex-wrap items-center gap-2",
|
|
640
|
+
children: [
|
|
641
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChannelPicker, {
|
|
642
|
+
allChannels: true,
|
|
643
|
+
className: "max-sm:min-w-0 max-sm:basis-full",
|
|
644
|
+
onValueChange: filterBy,
|
|
645
|
+
pending,
|
|
646
|
+
value: channel
|
|
647
|
+
}),
|
|
648
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
649
|
+
className: "ml-auto",
|
|
650
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ImportBuildDialog, {})
|
|
651
|
+
}),
|
|
652
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
653
|
+
"aria-label": "Refresh native builds",
|
|
654
|
+
className: "size-11 sm:size-7",
|
|
655
|
+
disabled: builds.isPending,
|
|
656
|
+
onClick: () => void builds.refetch(),
|
|
657
|
+
size: "icon-sm",
|
|
658
|
+
variant: "ghost",
|
|
659
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "aria-hidden": "true" })
|
|
660
|
+
})
|
|
661
|
+
]
|
|
662
|
+
}),
|
|
663
|
+
channelsFailed ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
|
|
664
|
+
variant: "destructive",
|
|
665
|
+
children: [
|
|
666
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
|
|
667
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Channels couldn't be loaded" }),
|
|
668
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "Native builds show once the channels load." }),
|
|
669
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
670
|
+
className: "min-h-11 sm:min-h-7",
|
|
671
|
+
onClick: () => void channels.refetch(),
|
|
672
|
+
size: "xs",
|
|
673
|
+
variant: "outline",
|
|
674
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
|
|
675
|
+
}) })
|
|
676
|
+
]
|
|
677
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsTable, {
|
|
678
|
+
builds,
|
|
679
|
+
channel,
|
|
680
|
+
onChannel: filterBy,
|
|
681
|
+
paged: before !== void 0 || after !== void 0
|
|
682
|
+
})
|
|
683
|
+
]
|
|
684
|
+
})]
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
function NativeBuildsRoute() {
|
|
688
|
+
const search = Route.useSearch();
|
|
689
|
+
const navigate = Route.useNavigate();
|
|
690
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsPage, {
|
|
691
|
+
onSearchChange: (next) => void navigate({ search: next }),
|
|
692
|
+
search
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
//#endregion
|
|
696
|
+
export { NativeBuildsRoute as component };
|