@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
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { ChevronRight } from "lucide-react";
|
|
2
|
+
import { useState, type ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
import { DataTableBody } from "@/components/DataTable";
|
|
5
|
+
import { Button } from "@/components/ui/button";
|
|
6
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
7
|
+
import { TableCell, TableRow } from "@/components/ui/table";
|
|
8
|
+
import type { Fold, FoldedEntry } from "@/lib/server/foldedPage";
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
* A fold of a list's page: the run of rows between two ordinary ones (older
|
|
12
|
+
* native builds, unreachable bundles), shown where the run sits as one row
|
|
13
|
+
* that says how many it holds. Opening it shows exactly those rows in its
|
|
14
|
+
* place, in the list's order, read when it first opens. Each fold opens on
|
|
15
|
+
* its own; the page's own read never changes with them.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/** What one row of a fold is, and many are: "older build", "older builds". */
|
|
19
|
+
export interface FoldNoun {
|
|
20
|
+
readonly one: string;
|
|
21
|
+
readonly other: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** A fold's key on its page: the row above it, which no other fold shares. */
|
|
25
|
+
export const foldKey = (fold: Pick<Fold, "from">) => fold.from ?? "";
|
|
26
|
+
|
|
27
|
+
/** "1 older build", "12 older builds", "100+ older builds". */
|
|
28
|
+
export const foldLabel = (fold: Pick<Fold, "count" | "more">, noun: FoldNoun) =>
|
|
29
|
+
`${fold.count}${fold.more ? "+" : ""} ${
|
|
30
|
+
fold.count === 1 && !fold.more ? noun.one : noun.other
|
|
31
|
+
}`;
|
|
32
|
+
|
|
33
|
+
/** A page's entries as table row groups: each run of rows, and each fold. */
|
|
34
|
+
export const groupsOf = <T extends { readonly id: string }>(
|
|
35
|
+
entries: readonly FoldedEntry<T>[],
|
|
36
|
+
) => {
|
|
37
|
+
const groups: (
|
|
38
|
+
| { readonly kind: "rows"; readonly rows: T[] }
|
|
39
|
+
| { readonly kind: "fold"; readonly fold: Fold }
|
|
40
|
+
)[] = [];
|
|
41
|
+
for (const entry of entries) {
|
|
42
|
+
const last = groups.at(-1);
|
|
43
|
+
if (entry.kind === "fold") groups.push({ kind: "fold", fold: entry });
|
|
44
|
+
else if (last?.kind === "rows") last.rows.push(entry.row);
|
|
45
|
+
else groups.push({ kind: "rows", rows: [entry.row] });
|
|
46
|
+
}
|
|
47
|
+
return groups;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** Which folds of a page are open, by `foldKey`. */
|
|
51
|
+
export function useOpenFolds() {
|
|
52
|
+
const [open, setOpen] = useState<ReadonlySet<string>>(() => new Set());
|
|
53
|
+
return {
|
|
54
|
+
isOpen: (key: string) => open.has(key),
|
|
55
|
+
set: (key: string, value: boolean) =>
|
|
56
|
+
setOpen((previous) => {
|
|
57
|
+
if (previous.has(key) === value) return previous;
|
|
58
|
+
const next = new Set(previous);
|
|
59
|
+
if (value) next.add(key);
|
|
60
|
+
else next.delete(key);
|
|
61
|
+
return next;
|
|
62
|
+
}),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface FoldProps {
|
|
67
|
+
readonly label: string;
|
|
68
|
+
readonly open: boolean;
|
|
69
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
70
|
+
/** The ID of the group that holds the fold's rows, which it opens. */
|
|
71
|
+
readonly panelId: string;
|
|
72
|
+
/** The fold's rows while open, with `FoldStatus` while they load. */
|
|
73
|
+
readonly children: ReactNode;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The fold's button: a chevron and "12 older builds", as tall as a touch
|
|
78
|
+
* needs on a phone and as a row's text on a wide screen.
|
|
79
|
+
*/
|
|
80
|
+
function FoldButton({
|
|
81
|
+
label,
|
|
82
|
+
open,
|
|
83
|
+
onOpenChange,
|
|
84
|
+
panelId,
|
|
85
|
+
}: Omit<FoldProps, "children">) {
|
|
86
|
+
return (
|
|
87
|
+
<button
|
|
88
|
+
aria-controls={panelId}
|
|
89
|
+
aria-expanded={open}
|
|
90
|
+
className="group/fold flex min-h-11 w-full items-center gap-2 px-4 text-left text-xs font-medium text-muted-foreground transition-colors hover:bg-muted/30 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-inset motion-reduce:transition-none sm:min-h-9 sm:px-3"
|
|
91
|
+
onClick={() => onOpenChange(!open)}
|
|
92
|
+
type="button"
|
|
93
|
+
>
|
|
94
|
+
<ChevronRight
|
|
95
|
+
aria-hidden="true"
|
|
96
|
+
className="size-3.5 shrink-0 transition-transform group-aria-expanded/fold:rotate-90 motion-reduce:transition-none"
|
|
97
|
+
/>
|
|
98
|
+
{label}
|
|
99
|
+
</button>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** A fold in a `rowGroups` table: its row, then the group of its rows. */
|
|
104
|
+
export function DataTableFold({
|
|
105
|
+
columns,
|
|
106
|
+
children,
|
|
107
|
+
...props
|
|
108
|
+
}: FoldProps & { readonly columns: number }) {
|
|
109
|
+
return (
|
|
110
|
+
<>
|
|
111
|
+
<DataTableBody>
|
|
112
|
+
<TableRow className="bg-muted/20 hover:bg-muted/20">
|
|
113
|
+
<TableCell className="p-0" colSpan={columns}>
|
|
114
|
+
<FoldButton {...props} />
|
|
115
|
+
</TableCell>
|
|
116
|
+
</TableRow>
|
|
117
|
+
</DataTableBody>
|
|
118
|
+
<DataTableBody hidden={!props.open} id={props.panelId}>
|
|
119
|
+
{props.open ? children : null}
|
|
120
|
+
</DataTableBody>
|
|
121
|
+
</>
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* A fold in a list of cards on a narrow screen; `inList` when the cards are
|
|
127
|
+
* a list's items, so its row is one too.
|
|
128
|
+
*/
|
|
129
|
+
export function DataCardFold({
|
|
130
|
+
children,
|
|
131
|
+
inList = false,
|
|
132
|
+
...props
|
|
133
|
+
}: FoldProps & { readonly inList?: boolean }) {
|
|
134
|
+
return (
|
|
135
|
+
<>
|
|
136
|
+
<div
|
|
137
|
+
className="border-b bg-muted/20"
|
|
138
|
+
role={inList ? "listitem" : undefined}
|
|
139
|
+
>
|
|
140
|
+
<FoldButton {...props} />
|
|
141
|
+
</div>
|
|
142
|
+
<div hidden={!props.open} id={props.panelId}>
|
|
143
|
+
{props.open ? children : null}
|
|
144
|
+
</div>
|
|
145
|
+
</>
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* What an open fold shows past its rows: that they load, that more of them
|
|
151
|
+
* load on request, or that they couldn't be read.
|
|
152
|
+
*/
|
|
153
|
+
export function FoldStatus({
|
|
154
|
+
state,
|
|
155
|
+
label,
|
|
156
|
+
onMore,
|
|
157
|
+
onRetry,
|
|
158
|
+
columns,
|
|
159
|
+
}: {
|
|
160
|
+
readonly state: "loading" | "more" | "error";
|
|
161
|
+
/**
|
|
162
|
+
* What loads, such as "Loading older builds" for screen readers, or the
|
|
163
|
+
* rows themselves, such as "Older builds", which an error names.
|
|
164
|
+
*/
|
|
165
|
+
readonly label: string;
|
|
166
|
+
readonly onMore?: () => void;
|
|
167
|
+
readonly onRetry?: () => void;
|
|
168
|
+
/** Set in a table, to span its columns. */
|
|
169
|
+
readonly columns?: number;
|
|
170
|
+
}) {
|
|
171
|
+
const body =
|
|
172
|
+
state === "loading" ? (
|
|
173
|
+
<div aria-live="polite" className="flex flex-col gap-2 p-3">
|
|
174
|
+
<span className="sr-only">{label}</span>
|
|
175
|
+
<Skeleton className="h-8 w-full" />
|
|
176
|
+
<Skeleton className="h-8 w-full" />
|
|
177
|
+
</div>
|
|
178
|
+
) : (
|
|
179
|
+
<div className="flex items-center gap-3 px-4 py-2 sm:px-3">
|
|
180
|
+
{state === "error" ? (
|
|
181
|
+
<span className="text-xs text-muted-foreground" role="status">
|
|
182
|
+
{label} couldn't be loaded.
|
|
183
|
+
</span>
|
|
184
|
+
) : null}
|
|
185
|
+
<Button
|
|
186
|
+
className="h-11 px-3 text-xs sm:h-8"
|
|
187
|
+
onClick={state === "error" ? onRetry : onMore}
|
|
188
|
+
size="sm"
|
|
189
|
+
variant="ghost"
|
|
190
|
+
>
|
|
191
|
+
{state === "error" ? "Retry" : "Show more"}
|
|
192
|
+
</Button>
|
|
193
|
+
</div>
|
|
194
|
+
);
|
|
195
|
+
return columns === undefined ? (
|
|
196
|
+
<div className="border-b">{body}</div>
|
|
197
|
+
) : (
|
|
198
|
+
<TableRow className="hover:bg-transparent">
|
|
199
|
+
<TableCell className="p-0" colSpan={columns}>
|
|
200
|
+
{body}
|
|
201
|
+
</TableCell>
|
|
202
|
+
</TableRow>
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* What a page's folds hold: their counts summed, and whether any holds more
|
|
208
|
+
* than it says (past its cap, or past the page), so the total is a floor.
|
|
209
|
+
*/
|
|
210
|
+
export const foldedTotal = (entries: readonly FoldedEntry<unknown>[]) => {
|
|
211
|
+
let count = 0;
|
|
212
|
+
let more = false;
|
|
213
|
+
for (const entry of entries) {
|
|
214
|
+
if (entry.kind !== "fold") continue;
|
|
215
|
+
count += entry.count;
|
|
216
|
+
more ||= entry.more;
|
|
217
|
+
}
|
|
218
|
+
return { count, more };
|
|
219
|
+
};
|
|
@@ -6,6 +6,8 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip";
|
|
|
6
6
|
|
|
7
7
|
interface HashValueDisplayProps {
|
|
8
8
|
value: string;
|
|
9
|
+
/** What the pill shows, shortened, when it isn't `value`; `value` is copied. */
|
|
10
|
+
display?: string;
|
|
9
11
|
maxLength?: number;
|
|
10
12
|
className?: string;
|
|
11
13
|
buttonClassName?: string;
|
|
@@ -18,12 +20,13 @@ export const shortenIdentifier = (value: string, maxLength = 12) =>
|
|
|
18
20
|
|
|
19
21
|
export function HashValueDisplay({
|
|
20
22
|
value,
|
|
23
|
+
display = value,
|
|
21
24
|
maxLength = 12,
|
|
22
25
|
className,
|
|
23
26
|
buttonClassName,
|
|
24
27
|
}: HashValueDisplayProps) {
|
|
25
|
-
const isTruncated = value.length > maxLength;
|
|
26
|
-
const truncated = shortenIdentifier(
|
|
28
|
+
const isTruncated = display !== value || display.length > maxLength;
|
|
29
|
+
const truncated = shortenIdentifier(display, maxLength);
|
|
27
30
|
|
|
28
31
|
const copyValue = async () => {
|
|
29
32
|
try {
|
|
@@ -71,7 +74,7 @@ export function HashValueDisplay({
|
|
|
71
74
|
aria-label={`Copy full value: ${value}`}
|
|
72
75
|
translate="no"
|
|
73
76
|
className={cn(
|
|
74
|
-
"ring-ring/30 bg-muted/40 border-border/70 inline-flex min-w-0 max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]",
|
|
77
|
+
"ring-ring/30 bg-muted/40 border-border/70 relative inline-flex min-w-0 after:absolute after:inset-x-0 after:-inset-y-3 sm:after:hidden max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]",
|
|
75
78
|
"hover:bg-muted/70 active:scale-[0.98] active:bg-muted/85 focus-visible:ring-[2px]",
|
|
76
79
|
"touch-manipulation select-none motion-reduce:transition-none motion-reduce:active:scale-100",
|
|
77
80
|
!isTruncated && "cursor-copy",
|
|
@@ -37,3 +37,13 @@ export function PlatformIcon({ platform, className }: PlatformIconProps) {
|
|
|
37
37
|
}
|
|
38
38
|
return <AndroidIcon className={className} />;
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
/** A platform's icon and name, as a table's Platform column shows it. */
|
|
42
|
+
export function PlatformLabel({ platform }: { platform: "ios" | "android" }) {
|
|
43
|
+
return (
|
|
44
|
+
<span className="flex items-center gap-2">
|
|
45
|
+
<PlatformIcon className="size-4" platform={platform} />
|
|
46
|
+
{platform === "ios" ? "iOS" : "Android"}
|
|
47
|
+
</span>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import relativeTime from "dayjs/plugin/relativeTime";
|
|
3
|
+
|
|
4
|
+
dayjs.extend(relativeTime);
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* When something was created, as the Bundles and Native builds lists show
|
|
8
|
+
* it: relative, such as "4 hours ago", with the exact time on hover. A card
|
|
9
|
+
* has no hover, so `withDate` puts the exact time under it.
|
|
10
|
+
*/
|
|
11
|
+
export function RelativeTime({
|
|
12
|
+
ms,
|
|
13
|
+
withDate = false,
|
|
14
|
+
}: {
|
|
15
|
+
/** Epoch milliseconds. */
|
|
16
|
+
readonly ms: number;
|
|
17
|
+
readonly withDate?: boolean;
|
|
18
|
+
}) {
|
|
19
|
+
const date = dayjs(ms);
|
|
20
|
+
const exact = date.format("YYYY-MM-DD HH:mm:ss");
|
|
21
|
+
return (
|
|
22
|
+
<time
|
|
23
|
+
className="flex flex-col whitespace-nowrap tabular-nums"
|
|
24
|
+
dateTime={date.toISOString()}
|
|
25
|
+
title={exact}
|
|
26
|
+
>
|
|
27
|
+
<span>{date.fromNow()}</span>
|
|
28
|
+
{withDate ? <span className="text-muted-foreground">{exact}</span> : null}
|
|
29
|
+
</time>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import { useId, useState } from "react";
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
Tooltip,
|
|
6
|
+
TooltipContent,
|
|
7
|
+
TooltipTrigger,
|
|
8
|
+
} from "@/components/ui/tooltip";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A quiet word on a row a list shades, such as "Older" or "Unreachable",
|
|
12
|
+
* that says why on a tap, a click, or focus: a touch or a keyboard reaches
|
|
13
|
+
* the reason, not only a pointer's hover. A control of its own, so it opens
|
|
14
|
+
* no row.
|
|
15
|
+
*/
|
|
16
|
+
export function RowReason({
|
|
17
|
+
icon: Icon,
|
|
18
|
+
children,
|
|
19
|
+
label,
|
|
20
|
+
reason,
|
|
21
|
+
}: {
|
|
22
|
+
readonly icon: LucideIcon;
|
|
23
|
+
/** The word the row shows. */
|
|
24
|
+
readonly children: string;
|
|
25
|
+
/** The word and its reason, as a screen reader names the control. */
|
|
26
|
+
readonly label: string;
|
|
27
|
+
/** The reason, as its tooltip says it. */
|
|
28
|
+
readonly reason: string;
|
|
29
|
+
}) {
|
|
30
|
+
const id = useId();
|
|
31
|
+
const [open, setOpen] = useState(false);
|
|
32
|
+
return (
|
|
33
|
+
<Tooltip onOpenChange={setOpen} open={open} triggerId={id}>
|
|
34
|
+
<TooltipTrigger
|
|
35
|
+
aria-describedby={open ? `${id}-reason` : undefined}
|
|
36
|
+
aria-label={label}
|
|
37
|
+
className="relative inline-flex shrink-0 items-center gap-1 rounded-sm text-xs text-muted-foreground transition-colors after:absolute after:-inset-x-2 after:-inset-y-3.5 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none motion-reduce:transition-none sm:after:hidden"
|
|
38
|
+
closeOnClick={false}
|
|
39
|
+
id={id}
|
|
40
|
+
onClick={() => setOpen((value) => !value)}
|
|
41
|
+
type="button"
|
|
42
|
+
>
|
|
43
|
+
<Icon aria-hidden="true" className="size-3.5" />
|
|
44
|
+
{children}
|
|
45
|
+
</TooltipTrigger>
|
|
46
|
+
<TooltipContent
|
|
47
|
+
className="max-w-64"
|
|
48
|
+
id={`${id}-reason`}
|
|
49
|
+
role="tooltip"
|
|
50
|
+
side="bottom"
|
|
51
|
+
>
|
|
52
|
+
{reason}
|
|
53
|
+
</TooltipContent>
|
|
54
|
+
</Tooltip>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Fingerprint, KeyRound, type LucideIcon, Package } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
import { HashValueDisplay } from "./HashValueDisplay";
|
|
4
|
+
|
|
5
|
+
/** A hash behind its icon, shortened to `xxxxxxxx…xxxx` and copied on click. */
|
|
6
|
+
function IconHash({
|
|
7
|
+
icon: Icon,
|
|
8
|
+
value,
|
|
9
|
+
display,
|
|
10
|
+
}: {
|
|
11
|
+
readonly icon: LucideIcon;
|
|
12
|
+
readonly value: string;
|
|
13
|
+
readonly display?: string;
|
|
14
|
+
}) {
|
|
15
|
+
return (
|
|
16
|
+
<span className="flex items-center gap-2">
|
|
17
|
+
<Icon className="size-4 shrink-0 text-muted-foreground" />
|
|
18
|
+
<HashValueDisplay display={display} maxLength={12} value={value} />
|
|
19
|
+
</span>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** The cell of a missing value, such as an imported build's build key. */
|
|
24
|
+
export function NoValue() {
|
|
25
|
+
return <span className="text-muted-foreground">-</span>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** An app version behind its icon, as the Target column shows one. */
|
|
29
|
+
function AppVersion({ value }: { readonly value: string }) {
|
|
30
|
+
return (
|
|
31
|
+
<span className="flex items-center gap-2">
|
|
32
|
+
<Package className="size-4 shrink-0 text-muted-foreground" />
|
|
33
|
+
<span className="font-medium">{value}</span>
|
|
34
|
+
</span>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* What OTAs target: an app version, or a fingerprint. The Bundles table's
|
|
40
|
+
* Target column and a native build's show one release's target the same way,
|
|
41
|
+
* so the two compare at a glance. A native build also passes
|
|
42
|
+
* `nativeAppVersion`, the app version its artifact reports: a fingerprint
|
|
43
|
+
* build shows it over its fingerprint, so every build names its version in
|
|
44
|
+
* the column's width. Without one, as on a build registered before it was
|
|
45
|
+
* recorded, the fingerprint shows alone.
|
|
46
|
+
*/
|
|
47
|
+
export function TargetDisplay({
|
|
48
|
+
appVersion,
|
|
49
|
+
fingerprintHash,
|
|
50
|
+
nativeAppVersion,
|
|
51
|
+
}: {
|
|
52
|
+
readonly appVersion: string | null;
|
|
53
|
+
readonly fingerprintHash: string | null;
|
|
54
|
+
readonly nativeAppVersion?: string | null;
|
|
55
|
+
}) {
|
|
56
|
+
if (appVersion) {
|
|
57
|
+
return <AppVersion value={appVersion} />;
|
|
58
|
+
}
|
|
59
|
+
if (fingerprintHash) {
|
|
60
|
+
const hash = <IconHash icon={Fingerprint} value={fingerprintHash} />;
|
|
61
|
+
if (!nativeAppVersion) return hash;
|
|
62
|
+
return (
|
|
63
|
+
<span
|
|
64
|
+
className="flex flex-col items-start gap-3 sm:gap-1"
|
|
65
|
+
data-target-display=""
|
|
66
|
+
>
|
|
67
|
+
{/* The build's own version, which OTAs don't target: named so. On
|
|
68
|
+
a phone, the gap clears the fingerprint's 44 px hit area. */}
|
|
69
|
+
<span title="The app version this build reports">
|
|
70
|
+
<span className="sr-only">App version </span>
|
|
71
|
+
<AppVersion value={nativeAppVersion} />
|
|
72
|
+
</span>
|
|
73
|
+
{hash}
|
|
74
|
+
</span>
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
return <NoValue />;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* A native build's build key, `nbk1:` and a SHA-256 of the build's inputs,
|
|
82
|
+
* shown past its prefix as a fingerprint is, and copied whole; none for an
|
|
83
|
+
* imported build.
|
|
84
|
+
*/
|
|
85
|
+
export function BuildKeyDisplay({ value }: { readonly value: string | null }) {
|
|
86
|
+
return value ? (
|
|
87
|
+
<IconHash
|
|
88
|
+
display={value.replace(/^nbk1:/, "")}
|
|
89
|
+
icon={KeyRound}
|
|
90
|
+
value={value}
|
|
91
|
+
/>
|
|
92
|
+
) : (
|
|
93
|
+
<NoValue />
|
|
94
|
+
);
|
|
95
|
+
}
|
|
@@ -24,7 +24,12 @@ export function ThemeProvider({
|
|
|
24
24
|
const [theme, setTheme] = useState<Theme>(defaultTheme);
|
|
25
25
|
|
|
26
26
|
useEffect(() => {
|
|
27
|
-
|
|
27
|
+
let stored: Theme | null = null;
|
|
28
|
+
try {
|
|
29
|
+
stored = localStorage.getItem(storageKey) as Theme | null;
|
|
30
|
+
} catch {
|
|
31
|
+
// A browser that keeps nothing: the default theme stands.
|
|
32
|
+
}
|
|
28
33
|
if (stored) {
|
|
29
34
|
setTheme(stored);
|
|
30
35
|
}
|
|
@@ -97,7 +102,11 @@ export function ThemeProvider({
|
|
|
97
102
|
const value = {
|
|
98
103
|
theme,
|
|
99
104
|
setTheme: (newTheme: Theme) => {
|
|
100
|
-
|
|
105
|
+
try {
|
|
106
|
+
localStorage.setItem(storageKey, newTheme);
|
|
107
|
+
} catch {
|
|
108
|
+
// A browser that keeps nothing: the theme lasts this visit.
|
|
109
|
+
}
|
|
101
110
|
setTheme(newTheme);
|
|
102
111
|
},
|
|
103
112
|
};
|
|
@@ -113,7 +113,7 @@ function CreateApiKeyDialog() {
|
|
|
113
113
|
|
|
114
114
|
return (
|
|
115
115
|
<>
|
|
116
|
-
<Button onClick={() => setOpen(true)}>
|
|
116
|
+
<Button className="max-md:h-11" onClick={() => setOpen(true)}>
|
|
117
117
|
<Plus data-icon="inline-start" />
|
|
118
118
|
Create API key
|
|
119
119
|
</Button>
|
|
@@ -160,7 +160,7 @@ function CreateApiKeyDialog() {
|
|
|
160
160
|
{create.isPending ? (
|
|
161
161
|
<Loader2
|
|
162
162
|
data-icon="inline-start"
|
|
163
|
-
className="animate-spin"
|
|
163
|
+
className="animate-spin motion-reduce:animate-none"
|
|
164
164
|
/>
|
|
165
165
|
) : (
|
|
166
166
|
<KeyRound data-icon="inline-start" />
|
|
@@ -224,7 +224,9 @@ function RevokeApiKeyDialog({ record }: { record: ApiKeyView }) {
|
|
|
224
224
|
if (!revoke.isPending) setOpen(nextOpen);
|
|
225
225
|
}}
|
|
226
226
|
>
|
|
227
|
-
<AlertDialogTrigger
|
|
227
|
+
<AlertDialogTrigger
|
|
228
|
+
render={<Button className="max-md:h-11" size="sm" variant="ghost" />}
|
|
229
|
+
>
|
|
228
230
|
<ShieldOff data-icon="inline-start" />
|
|
229
231
|
Revoke
|
|
230
232
|
</AlertDialogTrigger>
|
|
@@ -74,7 +74,7 @@ export function BundleMetadata({ bundle, release }: BundleMetadataProps) {
|
|
|
74
74
|
{gitCommitUrl ? (
|
|
75
75
|
<a
|
|
76
76
|
aria-label="Open git commit"
|
|
77
|
-
className="shrink-0 text-primary hover:underline"
|
|
77
|
+
className="relative shrink-0 text-primary after:absolute after:-inset-2.5 hover:underline md:after:hidden"
|
|
78
78
|
href={gitCommitUrl}
|
|
79
79
|
rel="noopener noreferrer"
|
|
80
80
|
target="_blank"
|
|
@@ -147,7 +147,14 @@ export function RolloutCohortsDialog({
|
|
|
147
147
|
return (
|
|
148
148
|
<Dialog>
|
|
149
149
|
<DialogTrigger
|
|
150
|
-
render={
|
|
150
|
+
render={
|
|
151
|
+
<Button
|
|
152
|
+
className="max-md:h-11"
|
|
153
|
+
size="sm"
|
|
154
|
+
type="button"
|
|
155
|
+
variant="outline"
|
|
156
|
+
/>
|
|
157
|
+
}
|
|
151
158
|
>
|
|
152
159
|
<List data-icon="inline-start" />
|
|
153
160
|
Preview cohorts
|
|
@@ -127,13 +127,14 @@ export function ChannelManagementDialog({
|
|
|
127
127
|
disabled={createChannel.isPending}
|
|
128
128
|
/>
|
|
129
129
|
<Button
|
|
130
|
+
className="max-md:h-11"
|
|
130
131
|
type="submit"
|
|
131
132
|
disabled={!normalizedName || createChannel.isPending}
|
|
132
133
|
>
|
|
133
134
|
{createChannel.isPending ? (
|
|
134
135
|
<Loader2
|
|
135
136
|
data-icon="inline-start"
|
|
136
|
-
className="animate-spin"
|
|
137
|
+
className="animate-spin motion-reduce:animate-none"
|
|
137
138
|
/>
|
|
138
139
|
) : (
|
|
139
140
|
<Plus data-icon="inline-start" />
|
|
@@ -147,7 +148,7 @@ export function ChannelManagementDialog({
|
|
|
147
148
|
<div className="max-h-72 overflow-y-auto rounded-lg border">
|
|
148
149
|
{isLoadingChannels ? (
|
|
149
150
|
<div className="flex h-20 items-center justify-center text-muted-foreground">
|
|
150
|
-
<Loader2 className="mr-2 size-3.5 animate-spin" />
|
|
151
|
+
<Loader2 className="mr-2 size-3.5 animate-spin motion-reduce:animate-none" />
|
|
151
152
|
Loading channels
|
|
152
153
|
</div>
|
|
153
154
|
) : channels.length === 0 ? (
|
|
@@ -161,14 +162,12 @@ export function ChannelManagementDialog({
|
|
|
161
162
|
key={channel.id}
|
|
162
163
|
className="flex min-h-12 items-center gap-3 px-3 py-2"
|
|
163
164
|
>
|
|
164
|
-
<
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
</p>
|
|
171
|
-
</div>
|
|
165
|
+
<p
|
|
166
|
+
className="min-w-0 flex-1 truncate text-xs font-medium"
|
|
167
|
+
title={channel.name}
|
|
168
|
+
>
|
|
169
|
+
{channel.name}
|
|
170
|
+
</p>
|
|
172
171
|
<Button
|
|
173
172
|
type="button"
|
|
174
173
|
variant="ghost"
|
|
@@ -177,7 +176,7 @@ export function ChannelManagementDialog({
|
|
|
177
176
|
title={`Delete ${channel.name}`}
|
|
178
177
|
disabled={deleteChannel.isPending}
|
|
179
178
|
onClick={() => setChannelToDelete(channel)}
|
|
180
|
-
className="text-muted-foreground hover:text-destructive"
|
|
179
|
+
className="text-muted-foreground hover:text-destructive max-md:size-11"
|
|
181
180
|
>
|
|
182
181
|
<Trash2 data-icon="inline-start" />
|
|
183
182
|
</Button>
|
|
@@ -37,15 +37,13 @@ import {
|
|
|
37
37
|
TableHeader,
|
|
38
38
|
TableRow,
|
|
39
39
|
} from "@/components/ui/table";
|
|
40
|
+
import { DEFAULT_CHANNEL } from "@/lib/constants";
|
|
40
41
|
import {
|
|
41
42
|
DEFAULT_INSIGHTS_RETENTION,
|
|
42
43
|
type InsightsRetentionDays,
|
|
43
44
|
keepsTwelveMonths,
|
|
44
45
|
} from "@/lib/insights-retention";
|
|
45
|
-
import {
|
|
46
|
-
DEFAULT_INSIGHTS_CHANNEL,
|
|
47
|
-
type InsightsSearch,
|
|
48
|
-
} from "@/lib/insights-search";
|
|
46
|
+
import type { InsightsSearch } from "@/lib/insights-search";
|
|
49
47
|
import type { AppUsageReport, UsageWindow } from "@/lib/insights-usage";
|
|
50
48
|
|
|
51
49
|
import { EstimatedCount } from "./EstimatedCount";
|
|
@@ -105,7 +103,7 @@ export function AppUsage({
|
|
|
105
103
|
<div className="flex min-w-0 flex-col gap-1">
|
|
106
104
|
<CardTitle>App usage</CardTitle>
|
|
107
105
|
<InsightsScope
|
|
108
|
-
channel={search.channel ??
|
|
106
|
+
channel={search.channel ?? DEFAULT_CHANNEL}
|
|
109
107
|
platform={search.platform ?? "all"}
|
|
110
108
|
narrower={
|
|
111
109
|
search.appVersion ? [`App version ${search.appVersion}`] : []
|
|
@@ -113,7 +113,7 @@ function FailureDetail({ group }: { readonly group: FailureGroup }) {
|
|
|
113
113
|
</p>
|
|
114
114
|
) : null}
|
|
115
115
|
<Button
|
|
116
|
-
className="w-fit"
|
|
116
|
+
className="w-fit max-md:h-11"
|
|
117
117
|
variant="outline"
|
|
118
118
|
onClick={() => void copy()}
|
|
119
119
|
>
|
|
@@ -175,7 +175,7 @@ function FailureDetail({ group }: { readonly group: FailureGroup }) {
|
|
|
175
175
|
<EventBundleTransition event={event} />
|
|
176
176
|
<Button
|
|
177
177
|
variant="outline"
|
|
178
|
-
className="w-fit"
|
|
178
|
+
className="w-fit max-md:h-11"
|
|
179
179
|
render={
|
|
180
180
|
<Link
|
|
181
181
|
to="/installations"
|
|
@@ -260,6 +260,7 @@ export function FailureReportsList({
|
|
|
260
260
|
variant="ghost"
|
|
261
261
|
size="icon-lg"
|
|
262
262
|
aria-label="Refresh error reports"
|
|
263
|
+
className="max-md:size-11"
|
|
263
264
|
disabled={isFetching}
|
|
264
265
|
onClick={onRefresh}
|
|
265
266
|
>
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
SelectValue,
|
|
22
22
|
} from "@/components/ui/select";
|
|
23
23
|
import { useChannelsQuery } from "@/lib/api";
|
|
24
|
-
import {
|
|
24
|
+
import { DEFAULT_CHANNEL } from "@/lib/constants";
|
|
25
25
|
import type { AdoptionRelease, HealthPlatform } from "@/lib/release-adoption";
|
|
26
26
|
|
|
27
27
|
import { platformLabel } from "./InsightsScope";
|
|
@@ -36,7 +36,7 @@ export type InsightsFilters = {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
const DEFAULT_FILTERS = {
|
|
39
|
-
channel:
|
|
39
|
+
channel: DEFAULT_CHANNEL,
|
|
40
40
|
platform: "all",
|
|
41
41
|
appVersion: undefined,
|
|
42
42
|
releaseId: undefined,
|