@hot-updater/console 1.2.0-rc.40 → 1.2.0-rc.42
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 → -native-builds-search-BFcW2mlI.js} +1 -1
- package/.output/public/assets/ChannelPicker-BQKoyxnf.js +1 -0
- package/.output/public/assets/{CompositeItem-B541MSYC.js → CompositeItem-B7uxFM46.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-C6aryy7j.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
- package/.output/public/assets/EventDetails-CWiI1CXb.js +1 -0
- package/.output/public/assets/{InsightsPageHeader-D0Nxcccp.js → InsightsPageHeader-BjUAikRe.js} +1 -1
- package/.output/public/assets/{IosInstall-CgNa8B4v.js → IosInstall-B5IdjCP2.js} +1 -1
- package/.output/public/assets/{NativeBuildsNav-BxAmQr2E.js → NativeBuildsNav-BKdnlKMN.js} +1 -1
- package/.output/public/assets/{RelativeTime-CdQ86VoP.js → RelativeTime-5ZP9WlQ6.js} +1 -1
- package/.output/public/assets/{RolloutPercentageBadge-Cd1UNLL0.js → RolloutPercentageBadge-DCtG7c1o.js} +1 -1
- package/.output/public/assets/{RowReason-CEI-_T6G.js → RowReason-CXMCJ-Jc.js} +1 -1
- package/.output/public/assets/{SandboxBadge-CqGX5DiH.js → SandboxBadge-PM92jCk6.js} +1 -1
- package/.output/public/assets/{TargetDisplay-DMZHMgWk.js → TargetDisplay-DG_I3qln.js} +1 -1
- package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
- package/.output/public/assets/{api-keys-B9XQLCZ8.js → api-keys-ztwXoKcj.js} +1 -1
- package/.output/public/assets/{index-D7PWINwc.js → index-Ck4fZq4M.js} +3 -3
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-V3D8tYPQ.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-DkovoDrZ.js → insights-search-CZtvD-Vf.js} +1 -1
- package/.output/public/assets/{insights_.distribution-DmeI9XZw.js → insights_.distribution-Cws8lYLC.js} +1 -1
- 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-ClsF2q6A.js → installations-Byojb0Rv.js} +2 -2
- package/.output/public/assets/installations-CFGDrY-W.js +1 -0
- package/.output/public/assets/installations-CcPrSZwW.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-DZqylSRq.js → native-builds_._buildId-CXx2xjoI.js} +1 -1
- 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/remote-config-BIIj0Faf.js +1 -0
- package/.output/public/assets/remote-config-BJJAxy_g.js +6 -0
- package/.output/public/assets/{remote-config-r945bivi.js → remote-config-Dm1MCHDN.js} +1 -1
- package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
- package/.output/public/assets/routes-9gxYg__u.js +1 -0
- package/.output/public/assets/{routes-DWjGfLRs.js → routes-CUsayL0T.js} +2 -2
- package/.output/public/assets/select-Bk52fOVX.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/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-CSEErUrV.mjs → __23tanstack-start-server-fn-resolver-bwJOc7yf.mjs} +58 -58
- package/.output/server/_libs/@base-ui/react+[...].mjs +3844 -3844
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{BundleIdDisplay-BfMtMws8.mjs → BundleIdDisplay-CG9iACjI.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-CyjOxlfr.mjs → ChannelBadge-CYT75v8l.mjs} +3 -3
- package/.output/server/_ssr/ChannelPicker-BkXqCfZr.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-D5a8SXzu.mjs → ConsoleFeatureUnavailable-Dx7obWmR.mjs} +5 -5
- package/.output/server/_ssr/{EventDetails-XaXslOac.mjs → EventDetails-BXeNHows.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-CtrIkPNM.mjs → HashValueDisplay-3H3S8hmf.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-CK76Vycr.mjs → InsightsPageHeader-C-h0ChZZ.mjs} +6 -6
- package/.output/server/_ssr/{IosInstall-BD2HpMsh.mjs → IosInstall-BANz2UTe.mjs} +7 -7
- package/.output/server/_ssr/{NativeBuildsNav-DvFscYEN.mjs → NativeBuildsNav-BNpQ4ajr.mjs} +3 -3
- package/.output/server/_ssr/{NotFoundPage-CQc5Envb.mjs → NotFoundPage-Djj-PEM8.mjs} +2 -2
- package/.output/server/_ssr/{QrCode-VPGDhoTy.mjs → QrCode-Curv9Elz.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-D6qU9XeU.mjs → RelativeTime-BI0B980i.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge-7HdtPPd8.mjs → RolloutPercentageBadge-BTABZINd.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-CR2C_0d9.mjs → RowReason-830CS7kd.mjs} +4 -4
- package/.output/server/_ssr/{SandboxBadge-HQv4waT2.mjs → SandboxBadge-B1Pvq-eN.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-BQ3rf-jt.mjs → TargetDisplay-BN_l8Jis.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-DZfV4jo0.mjs → alert-dialog-BcSW6K-J.mjs} +1 -1
- package/.output/server/_ssr/{api-C3S89RIl.mjs → api-DWaVnH2C.mjs} +7 -7
- package/.output/server/_ssr/{api-keys-DhgkyA5L.mjs → api-keys-Ct4uSQCW.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-tydhn1tu.mjs → api-keys-F1mk3h4e.mjs} +9 -9
- package/.output/server/_ssr/{api-keys-rpc-PnrzjW84.mjs → api-keys-rpc-D1E5LGeY.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-D8qYGyez.mjs → api-rpc-DilLccxX.mjs} +16 -16
- package/.output/server/_ssr/{auth-rpc-rMdoXrTW.mjs → auth-rpc-CnqWWASM.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-YE2ZZC0j.mjs → auth.server-Bq8aAzOZ.mjs} +135 -23
- package/.output/server/_ssr/{badge-NON1cyRV.mjs → badge-DFb304mW.mjs} +1 -1
- package/.output/server/_ssr/{bundleActivity-CjE9yslP.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/{card-CVw7zPaM.mjs → card-DGsz5onz.mjs} +1 -1
- package/.output/server/_ssr/{config.server-BYkojQAW.mjs → config.server-CdlTA6dO.mjs} +3 -3
- package/.output/server/_ssr/{console-access-CRyGs-sb.mjs → console-access-B7Dpr9_C.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-DwbIx8oM.mjs → console-features-api-BB9z4VLS.mjs} +3 -3
- package/.output/server/_ssr/{console-features-rpc-erZu7BIN.mjs → console-features-rpc-C6JrZZMs.mjs} +3 -3
- package/.output/server/_ssr/{deviceProfileToken-Eeltr-o0.mjs → deviceProfileToken-xzDLfE0T.mjs} +1 -1
- package/.output/server/_ssr/{dialog-ZuUCxUNo.mjs → dialog-HyO7LIr3.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-DLkb7A7E.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-4FbiMhrz.mjs → empty-CTkTNzUQ.mjs} +2 -2
- package/.output/server/_ssr/{failureReports-Bd7CaadE.mjs → failureReports-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-B9YWRLoo.mjs → field-Dx06dJS_.mjs} +2 -2
- package/.output/server/_ssr/{foldedPage-DrxWt5XS.mjs → foldedPage-CUjJqtlF.mjs} +1 -1
- package/.output/server/_ssr/{getBundleChildren-DA9zbUBD.mjs → getBundleChildren-CnOf4Frp.mjs} +1 -1
- package/.output/server/_ssr/{input-group-sETcyyLC.mjs → input-group-CdVqk7gY.mjs} +1 -1
- package/.output/server/_ssr/{insights-K6CFztcF.mjs → insights-B6rcrYg3.mjs} +5 -5
- package/.output/server/_ssr/{insights-BjtOex57.mjs → insights-BhBtx1VZ.mjs} +32 -185
- package/.output/server/_ssr/{insights-api-9jE9dp-3.mjs → insights-api-BKpDd6nY.mjs} +5 -5
- package/.output/server/_ssr/{insights-CkJWItoo.mjs → insights-bIkpFyGe.mjs} +2 -2
- package/.output/server/_ssr/{insights-errors-BrToSfI9.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-lmcxwKb3.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-XxbDFtKo.mjs → insights-failures-rpc-yEApXjfH.mjs} +8 -8
- package/.output/server/_ssr/{insights-recovery-Dhg3WGpC.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-CFeoyZEw.mjs → insights-recovery-rpc-Cms_z9rZ.mjs} +5 -5
- package/.output/server/_ssr/{insights-rpc-TAS-cemx.mjs → insights-rpc-CP0XwPMh.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-DL8LLP6s.mjs → insights-search-BSk4seSF.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-gW3T5N6N.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-CrAA5_Wn.mjs → insights-usage-rpc-ChC05ZGM.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-DGSVT5eB.mjs → insights-usage-rpc-Trab8nDE.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-B_7pM9wp.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-DDr3vglh.mjs → insights_.distribution-B8cOGhRI.mjs} +13 -13
- package/.output/server/_ssr/{insights_.distribution-CK5_wfLT.mjs → insights_.distribution-BL6xIQuC.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-C9nMSRtr.mjs → insights_.distribution-CIY7kHwu.mjs} +5 -5
- package/.output/server/_ssr/{installations-BvGL_EXM.mjs → installations-B27fPBLI.mjs} +2 -2
- package/.output/server/_ssr/{installations-CWutybSC.mjs → installations-BS2xiJm1.mjs} +11 -11
- package/.output/server/_ssr/{installations-CRHGd6SX.mjs → installations-T1a0vZgO.mjs} +4 -4
- package/.output/server/_ssr/{ios-devices-rpc-CCx4TvyR.mjs → ios-devices-rpc-B2hahz-c.mjs} +8 -8
- package/.output/server/_ssr/{iosDeviceCookie-B3FPj65l.mjs → iosDeviceCookie-CgBQbWj5.mjs} +5 -5
- package/.output/server/_ssr/{iosDeviceProfile-Cclrfk8N.mjs → iosDeviceProfile-BlsIgI5i.mjs} +6 -6
- package/.output/server/_ssr/{iosDevices-DMXaKH8F.mjs → iosDevices-DvLPzcyf.mjs} +3 -3
- package/.output/server/_ssr/{listReleases-B2Q9xwFv.mjs → listReleases-QF91GLE7.mjs} +3 -3
- package/.output/server/_ssr/{native-artifact-BurROe05.mjs → native-artifact-D4ZISXRZ.mjs} +8 -64
- package/.output/server/_ssr/{native-builds-BGDsGYAp.mjs → native-builds-DmYTdM2v.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-Bnx0fVWs.mjs → native-builds-lEyKQemV.mjs} +3 -5
- package/.output/server/_ssr/{native-builds-BPiSm8HX.mjs → native-builds-vdXMzW7U.mjs} +22 -50
- package/.output/server/_ssr/{native-builds_._buildId-B749BEMp.mjs → native-builds_._buildId-Cb7osiVt.mjs} +16 -16
- package/.output/server/_ssr/{native-builds_._buildId-CS9w0JIp.mjs → native-builds_._buildId-Dtnlg-3y.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_.devices-w_jDlH8K.mjs → native-builds_.devices-BO4wrS7e.mjs} +17 -17
- package/.output/server/_ssr/{native-builds_.devices-BPT8_91w.mjs → native-builds_.devices-CN9N40ju.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildDownloadLink-CXibRgym.mjs → nativeBuildDownloadLink-9vC7V1iX.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-BLuyTfXE.mjs → nativeBuildInstall-CReQ5tp6.mjs} +10 -9
- package/.output/server/_ssr/{nativeBuilds-WKdqgemR.mjs → nativeBuilds-CRa36wNn.mjs} +3 -3
- package/.output/server/_ssr/{publicConsoleBase-C3sNbafy.mjs → publicConsoleBase-wTKw3_iB.mjs} +1 -1
- package/.output/server/_ssr/{release-adoption-D2719HVh.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-DOdELZNl.mjs → release-adoption-rpc-CRkz6cds.mjs} +7 -7
- package/.output/server/_ssr/{releaseAdoption-CxGKmUXx.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseReachability-sWr0bLRk.mjs → releaseReachability-Ch1JpJkY.mjs} +1 -1
- package/.output/server/_ssr/{remote-config-DuOo-AFR.mjs → remote-config-BSuWO1-Q.mjs} +17 -17
- package/.output/server/_ssr/{remote-config-xbBIsBh1.mjs → remote-config-DD6AWD0v.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-C5mPNt0s.mjs → remote-config-LYHVFz1q.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-rEe5HBxX.mjs → remote-config-rpc-lO71fGrN.mjs} +3 -3
- package/.output/server/_ssr/{router-Bc5Zx-dc.mjs → router-DZcyoSOU.mjs} +36 -36
- package/.output/server/_ssr/{routes-CUQ96XR2.mjs → routes-DhckL38s.mjs} +10 -10
- package/.output/server/_ssr/{routes-DCOnxOlA.mjs → routes-oSHCN37Z.mjs} +33 -50
- package/.output/server/_ssr/{schema-migration-rpc-DK_ceMAg.mjs → schema-migration-rpc-DF6yyuij.mjs} +3 -3
- package/.output/server/_ssr/{select-dGQiTkaZ.mjs → select-C6foYw3k.mjs} +1 -1
- package/.output/server/_ssr/{server-l-C5qBnr.mjs → server-DD_hZK1t.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-Ccd4WNjQ.mjs → sidebar-BMc8xWl7.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BXlykDIg.mjs → start-BSkL2B6C.mjs} +1 -1
- package/.output/server/_ssr/{switch-CC7UK0Nw.mjs → switch-OUPYZj1M.mjs} +2 -2
- package/.output/server/_ssr/{table-BAlgZdxo.mjs → table-C-rOSjym.mjs} +1 -1
- package/.output/server/_ssr/{tabs-Bm7PWhQk.mjs → tabs-DWW5sA9K.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-DGuFoK6A.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
- package/.output/server/{_tanstack-start-manifest_v-C_zDNaKT.mjs → _tanstack-start-manifest_v-CD1q5k0m.mjs} +99 -94
- package/.output/server/index.mjs +308 -287
- package/package.json +7 -7
- package/src/components/ChannelPicker.tsx +227 -0
- package/src/components/features/insights/InsightsControls.tsx +8 -67
- package/src/components/features/native-builds/NativeBuildsPage.tsx +11 -74
- package/src/components/ui/combobox.tsx +2 -2
- package/src/lib/api-rpc.ts +2 -2
- package/src/lib/native-builds.ts +2 -4
- package/src/lib/server/nativeBuildInstall.ts +7 -2
- package/src/routes/index.tsx +23 -36
- package/.output/public/assets/EventDetails-BdqU96Wu.js +0 -1
- package/.output/public/assets/api-keys-D4tjInrB.js +0 -1
- package/.output/public/assets/input-group-CPboh0Rx.js +0 -1
- package/.output/public/assets/insights-B7GL298D.js +0 -1
- package/.output/public/assets/insights-BzKbxWIo.js +0 -42
- package/.output/public/assets/insights-Q2nAkSMz.js +0 -2
- package/.output/public/assets/insights_.distribution-BafQuEd0.js +0 -1
- package/.output/public/assets/insights_.distribution-DHU1udei.js +0 -2
- package/.output/public/assets/installations-CmuNX_Ok.js +0 -1
- package/.output/public/assets/installations-oGkAO7nb.js +0 -1
- package/.output/public/assets/native-builds-DJlYvvPY.js +0 -2
- package/.output/public/assets/native-builds-NyGMlBx2.js +0 -1
- package/.output/public/assets/native-builds-uKuvmyXZ.js +0 -1
- package/.output/public/assets/native-builds_._buildId-Dza7vEcy.js +0 -2
- package/.output/public/assets/native-builds_.devices-BykEftlY.js +0 -1
- package/.output/public/assets/native-builds_.devices-DH1JB1zr.js +0 -2
- package/.output/public/assets/remote-config-BiD075AT.js +0 -1
- package/.output/public/assets/remote-config-CBirPcRR.js +0 -6
- package/.output/public/assets/routes-5U4k3N1_.js +0 -1
- package/.output/public/assets/select-DIyG5G-V.js +0 -1
- package/.output/public/assets/styles-C_9Rf75p.css +0 -2
- package/.output/public/assets/switch-B_7OwJhK.js +0 -1
- /package/.output/public/assets/{BundleIdDisplay-BKaGARD1.js → BundleIdDisplay-C0X-k49t.js} +0 -0
- /package/.output/public/assets/{ChannelBadge-CPc1M44L.js → ChannelBadge-BgVCJfJs.js} +0 -0
- /package/.output/public/assets/{HashValueDisplay-BHL4xWSY.js → HashValueDisplay-DvwvQchI.js} +0 -0
- /package/.output/public/assets/{NotFoundPage-haKPLHiT.js → NotFoundPage-BEpesHEm.js} +0 -0
- /package/.output/public/assets/{PlatformIcon-DYsYaYt6.js → PlatformIcon-D4KPXCHL.js} +0 -0
- /package/.output/public/assets/{QrCode-BSNEn_M-.js → QrCode-BFSCkbPj.js} +0 -0
- /package/.output/public/assets/{alert-dialog-Cj7AOTIE.js → alert-dialog-DGPqJBCk.js} +0 -0
- /package/.output/public/assets/{api-tJRzijjy.js → api-eO-sq3Jd.js} +0 -0
- /package/.output/public/assets/{card-pYZSDIxg.js → card-BAs80yql.js} +0 -0
- /package/.output/public/assets/{constants-zSb7FXDh.js → constants-C5gi7fdZ.js} +0 -0
- /package/.output/public/assets/{dialog-DlAv6zou.js → dialog-BvZDZzdQ.js} +0 -0
- /package/.output/public/assets/{empty-Bwao2ztZ.js → empty-C5GqArX9.js} +0 -0
- /package/.output/public/assets/{field-BiSGCVoS.js → field-DInLQ5oV.js} +0 -0
- /package/.output/public/assets/{insights-usage-rpc-DkJgbAYm.js → insights-usage-rpc-Dw5_pmRH.js} +0 -0
- /package/.output/public/assets/{relativeTime-Dbefsycs.js → relativeTime-RUNbaMyO.js} +0 -0
- /package/.output/public/assets/{table-Bo1jU9-v.js → table-DbZPkzdz.js} +0 -0
- /package/.output/public/assets/{tabs-DARDj-XC.js → tabs-BnpNC0zf.js} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/console",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.0-rc.
|
|
4
|
+
"version": "1.2.0-rc.42",
|
|
5
5
|
"files": [
|
|
6
6
|
".output",
|
|
7
7
|
"lib",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"tw-animate-css": "^1.4.0",
|
|
60
60
|
"uqr": "^0.1.3",
|
|
61
61
|
"verkit": "0.4.0",
|
|
62
|
-
"@hot-updater/
|
|
63
|
-
"@hot-updater/
|
|
64
|
-
"@hot-updater/protocol": "1.2.0-rc.
|
|
65
|
-
"@hot-updater/
|
|
62
|
+
"@hot-updater/plugin-core": "1.2.0-rc.42",
|
|
63
|
+
"@hot-updater/server": "1.2.0-rc.42",
|
|
64
|
+
"@hot-updater/protocol": "1.2.0-rc.42",
|
|
65
|
+
"@hot-updater/bsdiff": "1.2.0-rc.42"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@tanstack/devtools-vite": "^0.6.0",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
"vite-tsconfig-paths": "^6.1.1",
|
|
87
87
|
"vitest": "4.1.4",
|
|
88
88
|
"web-vitals": "^5.1.0",
|
|
89
|
-
"@hot-updater/cli-tools": "1.2.0-rc.
|
|
90
|
-
"@hot-updater/mock": "1.2.0-rc.
|
|
89
|
+
"@hot-updater/cli-tools": "1.2.0-rc.42",
|
|
90
|
+
"@hot-updater/mock": "1.2.0-rc.42"
|
|
91
91
|
},
|
|
92
92
|
"description": "React Native OTA solution for self-hosted",
|
|
93
93
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { RefreshCw } from "lucide-react";
|
|
2
|
+
import { type ComponentProps, useRef, useState } from "react";
|
|
3
|
+
|
|
4
|
+
import { Button } from "@/components/ui/button";
|
|
5
|
+
import {
|
|
6
|
+
Combobox,
|
|
7
|
+
ComboboxContent,
|
|
8
|
+
ComboboxEmpty,
|
|
9
|
+
ComboboxInput,
|
|
10
|
+
ComboboxItem,
|
|
11
|
+
ComboboxList,
|
|
12
|
+
ComboboxTrigger,
|
|
13
|
+
} from "@/components/ui/combobox";
|
|
14
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
15
|
+
import { useChannelsQuery } from "@/lib/api";
|
|
16
|
+
import { ALL_CHANNELS_LABEL } from "@/lib/constants";
|
|
17
|
+
import { cn } from "@/lib/utils";
|
|
18
|
+
|
|
19
|
+
/** A choice in the list: a channel's name, or every channel (no name). */
|
|
20
|
+
type ChannelChoice = {
|
|
21
|
+
readonly name: string | undefined;
|
|
22
|
+
readonly label: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* One look for every filter button: 44 px on a phone, compact from sm, and
|
|
27
|
+
* filled when the filter is narrower than its default.
|
|
28
|
+
*/
|
|
29
|
+
export function FilterChip({
|
|
30
|
+
className,
|
|
31
|
+
...props
|
|
32
|
+
}: ComponentProps<typeof Button>) {
|
|
33
|
+
return (
|
|
34
|
+
<Button
|
|
35
|
+
className={cn(
|
|
36
|
+
"h-11 shrink-0 gap-1.5 px-3 text-sm data-[active=true]:border-primary/60 data-[active=true]:bg-primary/10 sm:h-8 sm:text-xs",
|
|
37
|
+
className,
|
|
38
|
+
)}
|
|
39
|
+
variant="outline"
|
|
40
|
+
{...props}
|
|
41
|
+
/>
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const EVERY_CHANNEL: ChannelChoice = {
|
|
46
|
+
name: undefined,
|
|
47
|
+
label: ALL_CHANNELS_LABEL,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* How old the cached channel list may be when the list opens. An older one
|
|
52
|
+
* is read again, so a pull request's new channel shows up without a reload;
|
|
53
|
+
* a younger one is shown as it is.
|
|
54
|
+
*/
|
|
55
|
+
export const CHANNELS_FRESH_MS = 30_000;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The channel filter Insights, Bundles, and Native builds share: a button
|
|
59
|
+
* that reads "Channel <name>" and opens a searchable list of the project's
|
|
60
|
+
* channels. Typing narrows the list, and Enter picks the first match.
|
|
61
|
+
*
|
|
62
|
+
* Every channel is one more choice where a page offers it. It is no name,
|
|
63
|
+
* so a channel named `all` stays a channel of its own.
|
|
64
|
+
*/
|
|
65
|
+
export function ChannelPicker({
|
|
66
|
+
value,
|
|
67
|
+
onValueChange,
|
|
68
|
+
allChannels = false,
|
|
69
|
+
pending = false,
|
|
70
|
+
active,
|
|
71
|
+
className,
|
|
72
|
+
}: {
|
|
73
|
+
/** The channel's name; undefined is every channel, where offered. */
|
|
74
|
+
readonly value: string | undefined;
|
|
75
|
+
readonly onValueChange: (name: string | undefined) => void;
|
|
76
|
+
/** Whether "All channels" is a choice. */
|
|
77
|
+
readonly allChannels?: boolean;
|
|
78
|
+
/** Whether the page has yet to decide which channel it shows. */
|
|
79
|
+
readonly pending?: boolean;
|
|
80
|
+
/** Whether the filter is narrower than the page's default. */
|
|
81
|
+
readonly active?: boolean;
|
|
82
|
+
readonly className?: string;
|
|
83
|
+
}) {
|
|
84
|
+
const channels = useChannelsQuery();
|
|
85
|
+
const [query, setQuery] = useState("");
|
|
86
|
+
const list = useRef<HTMLDivElement>(null);
|
|
87
|
+
// Whether the list has just opened and still has to start at its top.
|
|
88
|
+
const opening = useRef(false);
|
|
89
|
+
const names = channels.data?.map(({ name }) => name) ?? [];
|
|
90
|
+
// A filtered channel may be gone, or not loaded yet: it stays a choice.
|
|
91
|
+
const shown =
|
|
92
|
+
value === undefined || names.includes(value) ? names : [value, ...names];
|
|
93
|
+
const choices: ChannelChoice[] = [
|
|
94
|
+
...(allChannels ? [EVERY_CHANNEL] : []),
|
|
95
|
+
...shown.map((name) => ({ name, label: name })),
|
|
96
|
+
];
|
|
97
|
+
const typed = query.trim().toLowerCase();
|
|
98
|
+
const matches = choices.filter((choice) =>
|
|
99
|
+
choice.label.toLowerCase().includes(typed),
|
|
100
|
+
);
|
|
101
|
+
const selected =
|
|
102
|
+
choices.find((choice) => choice.name === value) ??
|
|
103
|
+
(value === undefined ? EVERY_CHANNEL : { name: value, label: value });
|
|
104
|
+
const label = pending ? undefined : selected.label;
|
|
105
|
+
|
|
106
|
+
return (
|
|
107
|
+
<Combobox
|
|
108
|
+
autoHighlight
|
|
109
|
+
disabled={pending}
|
|
110
|
+
filter={null}
|
|
111
|
+
inputValue={query}
|
|
112
|
+
isItemEqualToValue={(item: ChannelChoice, current: ChannelChoice) =>
|
|
113
|
+
item.name === current.name
|
|
114
|
+
}
|
|
115
|
+
itemToStringLabel={(choice: ChannelChoice) => choice.label}
|
|
116
|
+
items={matches}
|
|
117
|
+
onInputValueChange={setQuery}
|
|
118
|
+
onItemHighlighted={(_, details) => {
|
|
119
|
+
if (!opening.current || details.reason !== "none") return;
|
|
120
|
+
opening.current = false;
|
|
121
|
+
// Opening highlights the current channel, and Base UI scrolls it
|
|
122
|
+
// into view in the next frame. The list starts at its first item
|
|
123
|
+
// instead: the reset runs after that scroll, before the frame paints.
|
|
124
|
+
queueMicrotask(() =>
|
|
125
|
+
requestAnimationFrame(() => {
|
|
126
|
+
if (list.current) list.current.scrollTop = 0;
|
|
127
|
+
}),
|
|
128
|
+
);
|
|
129
|
+
}}
|
|
130
|
+
onOpenChange={(next) => {
|
|
131
|
+
opening.current = next;
|
|
132
|
+
if (!next) {
|
|
133
|
+
setQuery("");
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
// A pull request's channel appears while the page is open, once
|
|
137
|
+
// the cached list is old enough to read again.
|
|
138
|
+
if (
|
|
139
|
+
channels.data !== undefined &&
|
|
140
|
+
!channels.isFetching &&
|
|
141
|
+
Date.now() - channels.dataUpdatedAt > CHANNELS_FRESH_MS
|
|
142
|
+
)
|
|
143
|
+
void channels.refetch();
|
|
144
|
+
}}
|
|
145
|
+
onValueChange={(choice: ChannelChoice | null) => {
|
|
146
|
+
if (choice !== null && choice.name !== value)
|
|
147
|
+
onValueChange(choice.name);
|
|
148
|
+
}}
|
|
149
|
+
value={pending ? null : selected}
|
|
150
|
+
>
|
|
151
|
+
<ComboboxTrigger
|
|
152
|
+
aria-label={label === undefined ? "Channel" : `Channel: ${label}`}
|
|
153
|
+
data-active={active}
|
|
154
|
+
render={<FilterChip className={className} />}
|
|
155
|
+
title={label}
|
|
156
|
+
>
|
|
157
|
+
<span className="text-muted-foreground">Channel</span>
|
|
158
|
+
{label === undefined ? (
|
|
159
|
+
// A failed list leaves nothing to wait for: the page says so.
|
|
160
|
+
channels.isError ? null : (
|
|
161
|
+
<Skeleton className="h-3 w-16" />
|
|
162
|
+
)
|
|
163
|
+
) : (
|
|
164
|
+
<span
|
|
165
|
+
className="min-w-0 flex-1 truncate text-left sm:max-w-48"
|
|
166
|
+
translate={value === undefined ? undefined : "no"}
|
|
167
|
+
>
|
|
168
|
+
{label}
|
|
169
|
+
</span>
|
|
170
|
+
)}
|
|
171
|
+
</ComboboxTrigger>
|
|
172
|
+
<ComboboxContent className="w-72 min-w-(--anchor-width)">
|
|
173
|
+
<ComboboxInput
|
|
174
|
+
aria-label="Search channels"
|
|
175
|
+
maxLength={1024}
|
|
176
|
+
placeholder="Search channels…"
|
|
177
|
+
showTrigger={false}
|
|
178
|
+
/>
|
|
179
|
+
{channels.isPending ? (
|
|
180
|
+
<p className="px-3 pt-2 text-xs text-muted-foreground">
|
|
181
|
+
Loading channels…
|
|
182
|
+
</p>
|
|
183
|
+
) : channels.isError && channels.data === undefined ? (
|
|
184
|
+
<div className="flex items-center justify-between gap-2 px-3 pt-2 text-xs text-muted-foreground">
|
|
185
|
+
Couldn't load channels.
|
|
186
|
+
<Button
|
|
187
|
+
className="max-md:min-h-11"
|
|
188
|
+
onClick={() => void channels.refetch()}
|
|
189
|
+
size="sm"
|
|
190
|
+
variant="outline"
|
|
191
|
+
>
|
|
192
|
+
<RefreshCw data-icon="inline-start" />
|
|
193
|
+
Retry channels
|
|
194
|
+
</Button>
|
|
195
|
+
</div>
|
|
196
|
+
) : null}
|
|
197
|
+
<ComboboxEmpty className="flex-col items-center gap-2 px-3">
|
|
198
|
+
{typed === "" ? null : (
|
|
199
|
+
<>
|
|
200
|
+
No channel matches “{query.trim()}”.
|
|
201
|
+
<Button
|
|
202
|
+
className="max-md:min-h-11"
|
|
203
|
+
onClick={() => setQuery("")}
|
|
204
|
+
size="sm"
|
|
205
|
+
variant="outline"
|
|
206
|
+
>
|
|
207
|
+
Clear search
|
|
208
|
+
</Button>
|
|
209
|
+
</>
|
|
210
|
+
)}
|
|
211
|
+
</ComboboxEmpty>
|
|
212
|
+
<ComboboxList ref={list}>
|
|
213
|
+
{(choice: ChannelChoice) => (
|
|
214
|
+
<ComboboxItem key={choice.name ?? ""} value={choice}>
|
|
215
|
+
<span
|
|
216
|
+
className="min-w-0 [overflow-wrap:anywhere]"
|
|
217
|
+
translate={choice.name === undefined ? undefined : "no"}
|
|
218
|
+
>
|
|
219
|
+
{choice.label}
|
|
220
|
+
</span>
|
|
221
|
+
</ComboboxItem>
|
|
222
|
+
)}
|
|
223
|
+
</ComboboxList>
|
|
224
|
+
</ComboboxContent>
|
|
225
|
+
</Combobox>
|
|
226
|
+
);
|
|
227
|
+
}
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { RotateCcw, X } from "lucide-react";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
|
|
4
|
+
import { ChannelPicker, FilterChip } from "@/components/ChannelPicker";
|
|
4
5
|
import { PlatformIcon } from "@/components/PlatformIcon";
|
|
5
6
|
import { Button } from "@/components/ui/button";
|
|
6
|
-
import {
|
|
7
|
-
Combobox,
|
|
8
|
-
ComboboxContent,
|
|
9
|
-
ComboboxEmpty,
|
|
10
|
-
ComboboxInput,
|
|
11
|
-
ComboboxItem,
|
|
12
|
-
ComboboxList,
|
|
13
|
-
ComboboxTrigger,
|
|
14
|
-
} from "@/components/ui/combobox";
|
|
7
|
+
import { ComboboxTrigger } from "@/components/ui/combobox";
|
|
15
8
|
import {
|
|
16
9
|
Select,
|
|
17
10
|
SelectContent,
|
|
@@ -20,7 +13,6 @@ import {
|
|
|
20
13
|
SelectTrigger,
|
|
21
14
|
SelectValue,
|
|
22
15
|
} from "@/components/ui/select";
|
|
23
|
-
import { useChannelsQuery } from "@/lib/api";
|
|
24
16
|
import { DEFAULT_CHANNEL } from "@/lib/constants";
|
|
25
17
|
import type { AdoptionRelease, HealthPlatform } from "@/lib/release-adoption";
|
|
26
18
|
|
|
@@ -43,8 +35,6 @@ const DEFAULT_FILTERS = {
|
|
|
43
35
|
} as const satisfies InsightsFilters;
|
|
44
36
|
|
|
45
37
|
// One look for every filter; a filter narrower than its default is filled.
|
|
46
|
-
const CHIP =
|
|
47
|
-
"h-11 shrink-0 gap-1.5 px-3 text-sm data-[active=true]:border-primary/60 data-[active=true]:bg-primary/10 sm:h-8 sm:text-xs";
|
|
48
38
|
const SELECT_CHIP =
|
|
49
39
|
"shrink-0 gap-1.5 px-3 text-sm data-[active=true]:border-primary/60 data-[active=true]:bg-primary/10 data-[size=default]:h-11 sm:text-xs sm:data-[size=default]:h-8";
|
|
50
40
|
|
|
@@ -101,8 +91,6 @@ export function InsightsControls({
|
|
|
101
91
|
...(filters.appVersion ? [filters.appVersion] : []),
|
|
102
92
|
]),
|
|
103
93
|
];
|
|
104
|
-
const channelsQuery = useChannelsQuery();
|
|
105
|
-
const channels = channelsQuery.data?.map((item) => item.name) ?? [];
|
|
106
94
|
const narrowed = {
|
|
107
95
|
channel: filters.channel !== DEFAULT_FILTERS.channel,
|
|
108
96
|
platform: filters.platform !== DEFAULT_FILTERS.platform,
|
|
@@ -116,60 +104,13 @@ export function InsightsControls({
|
|
|
116
104
|
className="flex shrink-0 items-center gap-2 overflow-x-auto border-b bg-background px-3 py-2 sm:flex-wrap sm:overflow-visible sm:px-4"
|
|
117
105
|
role="group"
|
|
118
106
|
>
|
|
119
|
-
<
|
|
120
|
-
|
|
107
|
+
<ChannelPicker
|
|
108
|
+
active={narrowed.channel}
|
|
121
109
|
value={filters.channel}
|
|
122
|
-
onValueChange={(
|
|
123
|
-
if (
|
|
124
|
-
onFiltersChange({ channel: value });
|
|
110
|
+
onValueChange={(channel) => {
|
|
111
|
+
if (channel !== undefined) onFiltersChange({ channel });
|
|
125
112
|
}}
|
|
126
|
-
|
|
127
|
-
<ComboboxTrigger
|
|
128
|
-
aria-label={`Channel: ${filters.channel}`}
|
|
129
|
-
data-active={narrowed.channel}
|
|
130
|
-
render={<Button className={CHIP} variant="outline" />}
|
|
131
|
-
>
|
|
132
|
-
<span className="text-muted-foreground">Channel</span>
|
|
133
|
-
<span className="max-w-48 truncate">{filters.channel}</span>
|
|
134
|
-
</ComboboxTrigger>
|
|
135
|
-
<ComboboxContent className="w-64">
|
|
136
|
-
<ComboboxInput
|
|
137
|
-
aria-label="Search channels"
|
|
138
|
-
placeholder="Search channels…"
|
|
139
|
-
showTrigger={false}
|
|
140
|
-
maxLength={1024}
|
|
141
|
-
/>
|
|
142
|
-
<ComboboxEmpty>
|
|
143
|
-
{channelsQuery.isPending ? (
|
|
144
|
-
"Loading channels…"
|
|
145
|
-
) : channelsQuery.isError ? (
|
|
146
|
-
<div className="flex flex-col items-center gap-2 p-2">
|
|
147
|
-
Couldn't load channels.
|
|
148
|
-
<Button
|
|
149
|
-
onClick={() => void channelsQuery.refetch()}
|
|
150
|
-
size="sm"
|
|
151
|
-
variant="outline"
|
|
152
|
-
>
|
|
153
|
-
Retry channels
|
|
154
|
-
</Button>
|
|
155
|
-
</div>
|
|
156
|
-
) : (
|
|
157
|
-
"No channels found."
|
|
158
|
-
)}
|
|
159
|
-
</ComboboxEmpty>
|
|
160
|
-
<ComboboxList>
|
|
161
|
-
{(item: string) => (
|
|
162
|
-
<ComboboxItem
|
|
163
|
-
className="min-h-11 pr-8 sm:min-h-8"
|
|
164
|
-
key={item}
|
|
165
|
-
value={item}
|
|
166
|
-
>
|
|
167
|
-
<span className="truncate">{item}</span>
|
|
168
|
-
</ComboboxItem>
|
|
169
|
-
)}
|
|
170
|
-
</ComboboxList>
|
|
171
|
-
</ComboboxContent>
|
|
172
|
-
</Combobox>
|
|
113
|
+
/>
|
|
173
114
|
<Clearable
|
|
174
115
|
name="platform"
|
|
175
116
|
active={narrowed.platform}
|
|
@@ -273,7 +214,7 @@ export function InsightsControls({
|
|
|
273
214
|
<ComboboxTrigger
|
|
274
215
|
aria-label={`Release: ${filters.releaseId ?? "All"}`}
|
|
275
216
|
data-active={narrowed.releaseId}
|
|
276
|
-
render={<
|
|
217
|
+
render={<FilterChip />}
|
|
277
218
|
>
|
|
278
219
|
<span className="text-muted-foreground">Release</span>
|
|
279
220
|
{filters.releaseId ? (
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AlertTriangle, HardDrive, RefreshCw } from "lucide-react";
|
|
2
2
|
|
|
3
|
+
import { ChannelPicker } from "@/components/ChannelPicker";
|
|
3
4
|
import {
|
|
4
5
|
Alert,
|
|
5
6
|
AlertAction,
|
|
@@ -7,17 +8,9 @@ import {
|
|
|
7
8
|
AlertTitle,
|
|
8
9
|
} from "@/components/ui/alert";
|
|
9
10
|
import { Button } from "@/components/ui/button";
|
|
10
|
-
import {
|
|
11
|
-
Select,
|
|
12
|
-
SelectContent,
|
|
13
|
-
SelectGroup,
|
|
14
|
-
SelectItem,
|
|
15
|
-
SelectTrigger,
|
|
16
|
-
SelectValue,
|
|
17
|
-
} from "@/components/ui/select";
|
|
18
11
|
import { SidebarTrigger } from "@/components/ui/sidebar";
|
|
19
12
|
import { useChannelsQuery, useNativeBuildsQuery } from "@/lib/api";
|
|
20
|
-
import { ALL_CHANNELS
|
|
13
|
+
import { ALL_CHANNELS } from "@/lib/constants";
|
|
21
14
|
import {
|
|
22
15
|
type NativeBuildsSearch,
|
|
23
16
|
resolveNativeBuildsSearch,
|
|
@@ -27,12 +20,6 @@ import { ImportBuildDialog } from "./ImportBuild";
|
|
|
27
20
|
import { NativeBuildsNav } from "./NativeBuildsNav";
|
|
28
21
|
import { NativeBuildsTable } from "./NativeBuildsTable";
|
|
29
22
|
|
|
30
|
-
/**
|
|
31
|
-
* The filter's values: a channel's is its name behind a prefix, so no channel
|
|
32
|
-
* name, `all` included, can be taken for "All channels".
|
|
33
|
-
*/
|
|
34
|
-
const CHANNEL_VALUE_PREFIX = "channel:";
|
|
35
|
-
|
|
36
23
|
/**
|
|
37
24
|
* The list while its channel is unknown: loading, whatever the cache holds,
|
|
38
25
|
* and nothing to refresh. A disabled query still reads when refetched.
|
|
@@ -44,7 +31,6 @@ const PENDING_BUILDS = {
|
|
|
44
31
|
isPlaceholderData: false,
|
|
45
32
|
refetch: () => undefined,
|
|
46
33
|
} as const;
|
|
47
|
-
const channelValue = (name: string) => `${CHANNEL_VALUE_PREFIX}${name}`;
|
|
48
34
|
|
|
49
35
|
/**
|
|
50
36
|
* The native builds Hot Updater tracks: one page at a time, newest first,
|
|
@@ -59,7 +45,7 @@ export function NativeBuildsPage({
|
|
|
59
45
|
readonly search: NativeBuildsSearch;
|
|
60
46
|
readonly onSearchChange: (search: NativeBuildsSearch) => void;
|
|
61
47
|
}) {
|
|
62
|
-
// The
|
|
48
|
+
// The default channel's input; the rows decode their channel from its ID.
|
|
63
49
|
const channels = useChannelsQuery();
|
|
64
50
|
const channelNames = channels.data?.map(({ name }) => name) ?? [];
|
|
65
51
|
// The page the list shows: a URL without a channel opens on the default
|
|
@@ -73,11 +59,6 @@ export function NativeBuildsPage({
|
|
|
73
59
|
// Nothing reads every channel's builds on the way to the default channel's.
|
|
74
60
|
const query = useNativeBuildsQuery(page ?? {}, { enabled: !pending });
|
|
75
61
|
const builds = pending ? PENDING_BUILDS : query;
|
|
76
|
-
// A filtered channel may be gone, or not loaded yet: it stays a choice.
|
|
77
|
-
const choices =
|
|
78
|
-
channel === undefined || channelNames.includes(channel)
|
|
79
|
-
? channelNames
|
|
80
|
-
: [channel, ...channelNames];
|
|
81
62
|
const filterBy = (next: string | undefined) =>
|
|
82
63
|
onSearchChange(
|
|
83
64
|
next === undefined ? { channels: ALL_CHANNELS } : { channel: next },
|
|
@@ -101,58 +82,14 @@ export function NativeBuildsPage({
|
|
|
101
82
|
|
|
102
83
|
<div className="flex min-h-0 min-w-0 flex-1 flex-col gap-4 bg-muted/5 p-3 sm:p-6">
|
|
103
84
|
<NativeBuildsNav current="builds" />
|
|
104
|
-
<div className="flex items-center gap-2">
|
|
105
|
-
<
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
})),
|
|
113
|
-
]}
|
|
114
|
-
onOpenChange={(open) => {
|
|
115
|
-
// A pull request's channel appears while the page is open.
|
|
116
|
-
if (open) void channels.refetch();
|
|
117
|
-
}}
|
|
118
|
-
onValueChange={(value) =>
|
|
119
|
-
filterBy(
|
|
120
|
-
value?.startsWith(CHANNEL_VALUE_PREFIX)
|
|
121
|
-
? value.slice(CHANNEL_VALUE_PREFIX.length)
|
|
122
|
-
: undefined,
|
|
123
|
-
)
|
|
124
|
-
}
|
|
125
|
-
value={
|
|
126
|
-
pending
|
|
127
|
-
? null
|
|
128
|
-
: channel === undefined
|
|
129
|
-
? ALL_CHANNELS
|
|
130
|
-
: channelValue(channel)
|
|
131
|
-
}
|
|
132
|
-
>
|
|
133
|
-
<SelectTrigger
|
|
134
|
-
aria-label="Channel"
|
|
135
|
-
className="min-w-0 flex-1 text-xs data-[size=default]:h-11 sm:w-48 sm:flex-none sm:data-[size=default]:h-8"
|
|
136
|
-
>
|
|
137
|
-
<SelectValue />
|
|
138
|
-
</SelectTrigger>
|
|
139
|
-
<SelectContent>
|
|
140
|
-
<SelectGroup>
|
|
141
|
-
<SelectItem value={ALL_CHANNELS}>
|
|
142
|
-
{ALL_CHANNELS_LABEL}
|
|
143
|
-
</SelectItem>
|
|
144
|
-
{choices.map((name) => (
|
|
145
|
-
<SelectItem
|
|
146
|
-
key={name}
|
|
147
|
-
translate="no"
|
|
148
|
-
value={channelValue(name)}
|
|
149
|
-
>
|
|
150
|
-
{name}
|
|
151
|
-
</SelectItem>
|
|
152
|
-
))}
|
|
153
|
-
</SelectGroup>
|
|
154
|
-
</SelectContent>
|
|
155
|
-
</Select>
|
|
85
|
+
<div className="flex flex-wrap items-center gap-2">
|
|
86
|
+
<ChannelPicker
|
|
87
|
+
allChannels
|
|
88
|
+
className="max-sm:min-w-0 max-sm:basis-full"
|
|
89
|
+
onValueChange={filterBy}
|
|
90
|
+
pending={pending}
|
|
91
|
+
value={channel}
|
|
92
|
+
/>
|
|
156
93
|
<div className="ml-auto">
|
|
157
94
|
<ImportBuildDialog />
|
|
158
95
|
</div>
|
|
@@ -115,7 +115,7 @@ function ComboboxContent({
|
|
|
115
115
|
data-slot="combobox-content"
|
|
116
116
|
data-chips={!!anchor}
|
|
117
117
|
className={cn(
|
|
118
|
-
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-input/20 dark:bg-popover max-h-72 min-w-32 overflow-hidden rounded-lg shadow-md ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-7 *:data-[slot=input-group]:border-none *:data-[slot=input-group]:shadow-none dark group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)",
|
|
118
|
+
"bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-input/20 dark:bg-popover max-h-72 min-w-32 overflow-hidden rounded-lg shadow-md ring-1 duration-100 *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-7 max-md:*:data-[slot=input-group]:h-11 *:data-[slot=input-group]:border-none *:data-[slot=input-group]:shadow-none dark group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)",
|
|
119
119
|
className,
|
|
120
120
|
)}
|
|
121
121
|
{...props}
|
|
@@ -147,7 +147,7 @@ function ComboboxItem({
|
|
|
147
147
|
<ComboboxPrimitive.Item
|
|
148
148
|
data-slot="combobox-item"
|
|
149
149
|
className={cn(
|
|
150
|
-
"data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground min-h-7 gap-2 rounded-md
|
|
150
|
+
"data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground min-h-7 gap-2 rounded-md py-1 pr-8 pl-2 text-xs/relaxed max-md:min-h-11 [&_svg:not([class*='size-'])]:size-3.5 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
151
151
|
className,
|
|
152
152
|
)}
|
|
153
153
|
{...props}
|
package/src/lib/api-rpc.ts
CHANGED
|
@@ -334,8 +334,8 @@ export const getNativeBuildPatches = createServerFn({ method: "GET" })
|
|
|
334
334
|
/**
|
|
335
335
|
* The native build new deploys to a release's scope patch from: the scope's
|
|
336
336
|
* store build in one read, or with no mark its newest build in one more. A
|
|
337
|
-
* release of an app version range has no one build
|
|
338
|
-
*
|
|
337
|
+
* release of an app version range has no one build: it reads nothing. A
|
|
338
|
+
* sandbox build is never in the scope, so it is never the one.
|
|
339
339
|
*/
|
|
340
340
|
export const getReleaseNativeBuild = createServerFn({ method: "GET" })
|
|
341
341
|
.middleware([consoleAccess])
|
package/src/lib/native-builds.ts
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
decodeChannelKey,
|
|
10
10
|
encodeChannelKey,
|
|
11
11
|
} from "@hot-updater/protocol";
|
|
12
|
-
import { isSandboxChannel } from "@hot-updater/protocol/native-artifact";
|
|
13
12
|
|
|
14
13
|
import { shellQuote } from "./shell";
|
|
15
14
|
|
|
@@ -339,8 +338,8 @@ export const SANDBOX_NO_PATCH_BASE =
|
|
|
339
338
|
/**
|
|
340
339
|
* The native build scope whose base new deploys of a release patch from, or
|
|
341
340
|
* null when it has none: a release of an app version range, rather than one
|
|
342
|
-
* exact version, targets many builds
|
|
343
|
-
* patch base.
|
|
341
|
+
* exact version, targets many builds. The scope holds no sandbox build, which
|
|
342
|
+
* is no patch base.
|
|
344
343
|
*/
|
|
345
344
|
export const releaseNativeBuildScope = (release: {
|
|
346
345
|
readonly platform: "ios" | "android";
|
|
@@ -348,7 +347,6 @@ export const releaseNativeBuildScope = (release: {
|
|
|
348
347
|
readonly fingerprintHash: string | null;
|
|
349
348
|
readonly targetAppVersion: string | null;
|
|
350
349
|
}): NativeBuildScope | null => {
|
|
351
|
-
if (isSandboxChannel(release.channel)) return null;
|
|
352
350
|
if (release.fingerprintHash !== null) {
|
|
353
351
|
return {
|
|
354
352
|
platform: release.platform,
|
|
@@ -214,7 +214,8 @@ const isExpired = ({ expiresAtMs }: IpaInstallInfo, now: number) =>
|
|
|
214
214
|
/**
|
|
215
215
|
* The build a registered device's row names, when it is newer than `build`,
|
|
216
216
|
* of the same app (bundle ID, read from its IPA, and sandbox or not), on the
|
|
217
|
-
* same channel,
|
|
217
|
+
* same channel, or for a sandbox build, of the same sandbox scope on any
|
|
218
|
+
* channel, ad hoc, unexpired, and its IPA lists the device; null
|
|
218
219
|
* otherwise, and for a build gone or unreadable. Its row is read only for a
|
|
219
220
|
* registered device whose row names a newer build, and its IPA only when the
|
|
220
221
|
* row matches.
|
|
@@ -245,8 +246,12 @@ const newerBuildListing = async (
|
|
|
245
246
|
newer === null ||
|
|
246
247
|
newer.artifact_kind !== "ipa" ||
|
|
247
248
|
newer.platform !== build.platform ||
|
|
248
|
-
newer.channel_id !== build.channel_id ||
|
|
249
249
|
newer.is_sandbox !== build.is_sandbox ||
|
|
250
|
+
// A sandbox build's replacement may embed another pull request's
|
|
251
|
+
// channel: its scope, which names none, says it is the same app.
|
|
252
|
+
(build.is_sandbox
|
|
253
|
+
? newer.scope_key !== build.scope_key
|
|
254
|
+
: newer.channel_id !== build.channel_id) ||
|
|
250
255
|
// Null on an IPA registered before it was recorded: its profile decides.
|
|
251
256
|
(newer.export_method !== null && newer.export_method !== "ad-hoc")
|
|
252
257
|
) {
|