@hot-updater/console 1.2.0-rc.34 → 1.2.0-rc.36
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-DNupPw5R.js +1 -0
- package/.output/public/assets/{CompositeItem-CyQoQkYs.js → CompositeItem-CcgQyrSU.js} +1 -1
- package/.output/public/assets/{ConsoleFeatureUnavailable-C0iDIboF.js → ConsoleFeatureUnavailable-P2up1IkX.js} +1 -1
- package/.output/public/assets/{EventDetails-DFWS-HcW.js → EventDetails-BYZUOYsT.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-DKziWjEg.js → HashValueDisplay-N89T2mVj.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-BATHTZWn.js → InsightsPageHeader-DhOT-Tmn.js} +1 -1
- package/.output/public/assets/IosInstall-BkjuGzx0.js +1 -0
- package/.output/public/assets/{NativeBuildsNav-D3FIlSu0.js → NativeBuildsNav-CivF1UpI.js} +1 -1
- package/.output/public/assets/{RelativeTime-CP7nosYx.js → RelativeTime-CAIee8Fr.js} +1 -1
- package/.output/public/assets/RolloutPercentageBadge-BmtfOGOm.js +1 -0
- package/.output/public/assets/{RowReason-D7TZ2xwW.js → RowReason-Cuf4SbKm.js} +1 -1
- package/.output/public/assets/{SandboxBadge-BPf2uve4.js → SandboxBadge-Cn1mlvQg.js} +1 -1
- package/.output/public/assets/{TargetDisplay-DzSkf5yP.js → TargetDisplay-DeKn2_3n.js} +1 -1
- package/.output/public/assets/api-USY_IWMu.js +1 -0
- package/.output/public/assets/api-keys-Bjv4olzj.js +1 -0
- package/.output/public/assets/api-keys-CrrBMw2x.js +1 -0
- package/.output/public/assets/{uuidv7-DgXZ1zRR.js → constants-CNrAvpew.js} +1 -1
- package/.output/public/assets/dist-BDfiL2Qz.js +1 -0
- package/.output/public/assets/{index-CccnEzaa.js → index-DHcRzryp.js} +3 -3
- package/.output/public/assets/insights-9CSkLhLx.js +2 -0
- package/.output/public/assets/{insights-Bm4Kua5R.js → insights-BGMOFCgn.js} +2 -2
- package/.output/public/assets/insights-QaHXTgmd.js +1 -0
- package/.output/public/assets/insights-search-Bax3nNBz.js +1 -0
- package/.output/public/assets/{insights-usage-rpc-DdmD1Nuy.js → insights-usage-rpc-BG7EOn2n.js} +1 -1
- package/.output/public/assets/insights_.distribution-BfEb7XIX.js +1 -0
- package/.output/public/assets/insights_.distribution-Ce5y7hIU.js +2 -0
- package/.output/public/assets/insights_.distribution-gCONJgiU.js +1 -0
- package/.output/public/assets/installations-BKAdFmTM.js +1 -0
- package/.output/public/assets/{installations-DYT2mSjX.js → installations-BfbwP-Ub.js} +2 -2
- package/.output/public/assets/installations-D5bvOxlY.js +1 -0
- package/.output/public/assets/native-builds-CrRx3_wN.js +1 -0
- package/.output/public/assets/native-builds-FBNFjP4d.js +1 -0
- package/.output/public/assets/native-builds-FpedinKi.js +2 -0
- package/.output/public/assets/native-builds_._buildId-D0Y_qtSu.js +2 -0
- package/.output/public/assets/native-builds_._buildId-UU2Ja88v.js +1 -0
- package/.output/public/assets/native-builds_.devices-B0GrWGwS.js +2 -0
- package/.output/public/assets/native-builds_.devices-DossOQcr.js +1 -0
- package/.output/public/assets/remote-config-9h5s5yCy.js +1 -0
- package/.output/public/assets/{remote-config-D1EMK2er.js → remote-config-BbLyVNLo.js} +1 -1
- package/.output/public/assets/remote-config-CqFs9CSU.js +6 -0
- package/.output/public/assets/routes-BV7VD8Tr.js +1 -0
- package/.output/public/assets/routes-COOKrhya.js +2 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-CUEijItf.mjs → __23tanstack-start-server-fn-resolver-DEsK7hJ-.mjs} +58 -58
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_libs/lucide-react.mjs +13 -1
- package/.output/server/_ssr/{-native-builds-search-OJ8XmaBa.mjs → -native-builds-search-woFrbAdI.mjs} +19 -7
- package/.output/server/_ssr/{BundleIdDisplay-C2Yhau3H.mjs → BundleIdDisplay-BLXpHocZ.mjs} +2 -2
- package/.output/server/_ssr/{ChannelBadge-BTUSgvbr.mjs → ChannelBadge-CWIc9tmb.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BDSJSs7U.mjs → ConsoleFeatureUnavailable-B4w26Z-l.mjs} +7 -7
- package/.output/server/_ssr/{EventDetails-wqpPsSDt.mjs → EventDetails-CnAKWnvZ.mjs} +8 -8
- package/.output/server/_ssr/{HashValueDisplay-yosN9R32.mjs → HashValueDisplay-DbMfscEm.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-DUvHESff.mjs → InsightsPageHeader-CGB3vsS1.mjs} +8 -8
- package/.output/server/_ssr/{IosInstall-DAZxDeBB.mjs → IosInstall-D9zJGmaC.mjs} +9 -9
- package/.output/server/_ssr/{NativeBuildsNav-JvQo5YkG.mjs → NativeBuildsNav-CEKiVJZ2.mjs} +3 -3
- package/.output/server/_ssr/{NotFoundPage-Z48ip8aB.mjs → NotFoundPage-DZ6L0Lix.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-X18AN8Yp.mjs → PlatformIcon-C22qEcwo.mjs} +1 -1
- package/.output/server/_ssr/{QrCode-NrGOfAPX.mjs → QrCode-Be-7de3s.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-BiGH0j0S.mjs → RelativeTime-B2N63vu0.mjs} +4 -4
- package/.output/server/_ssr/{RolloutPercentageBadge-O0jbSRuI.mjs → RolloutPercentageBadge-DgyHwvnj.mjs} +3 -3
- package/.output/server/_ssr/{RowReason-DneEz--P.mjs → RowReason-DOCMSWpB.mjs} +5 -5
- package/.output/server/_ssr/{SandboxBadge-ujAuQ6FN.mjs → SandboxBadge-DVOkxy3O.mjs} +2 -2
- package/.output/server/_ssr/{TargetDisplay-DFV5VpPn.mjs → TargetDisplay-DcY84JrG.mjs} +3 -3
- package/.output/server/_ssr/{alert-dialog-B2IG3q93.mjs → alert-dialog-Bj6jW5-Q.mjs} +1 -1
- package/.output/server/_ssr/{api-CHpFJ_c4.mjs → api-BYa88in2.mjs} +13 -10
- package/.output/server/_ssr/{api-keys-ZufcGzhb.mjs → api-keys-C3gWr3Qj.mjs} +10 -10
- package/.output/server/_ssr/{api-keys-DpSj11mK.mjs → api-keys-CIB4jF6t.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-N3V7gkvv.mjs → api-keys-rpc-CtMsJx1w.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-DXvqIbGs.mjs → api-rpc-sxif8D9h.mjs} +16 -16
- package/.output/server/_ssr/{auth-rpc-Cx72ajwL.mjs → auth-rpc-DYXg2d-s.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-DT4SuI6u.mjs → auth.server-BCtkdsmT.mjs} +25 -8
- package/.output/server/_ssr/{badge-DNrlMwwO.mjs → badge-DVmF0rbO.mjs} +1 -1
- package/.output/server/_ssr/{bundleActivity-a-pEDiqu.mjs → bundleActivity-CjE9yslP.mjs} +1 -1
- package/.output/server/_ssr/{card-BSFwWT9T.mjs → card-C7gkmtDR.mjs} +1 -1
- package/.output/server/_ssr/{config.server-BEg-Ln3t.mjs → config.server-D5yjc-Hm.mjs} +3 -3
- package/.output/server/_ssr/{console-access-CPYdc4mK.mjs → console-access-MNaEuKXy.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-D_KFX0JV.mjs → console-features-api-B8PfM6k1.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-CSogovr5.mjs → console-features-rpc-Dl1bAdxy.mjs} +3 -3
- package/.output/server/_ssr/constants-B8b1IliD.mjs +8 -0
- package/.output/server/_ssr/{deviceProfileToken-xzDLfE0T.mjs → deviceProfileToken-Eeltr-o0.mjs} +1 -1
- package/.output/server/_ssr/{dialog-BE-0BoPu.mjs → dialog-COs-Oov4.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-C1KOnpiF.mjs → downloadBundle-DLkb7A7E.mjs} +1 -1
- package/.output/server/_ssr/{empty-DVeNY_6z.mjs → empty-BCi8eUlp.mjs} +2 -2
- package/.output/server/_ssr/{failureReports-BVufgM3l.mjs → failureReports-Bd7CaadE.mjs} +3 -3
- package/.output/server/_ssr/{field-C_NBjv_7.mjs → field-D7na2Ch2.mjs} +2 -2
- package/.output/server/_ssr/{foldedPage-CUjJqtlF.mjs → foldedPage-DrxWt5XS.mjs} +1 -1
- package/.output/server/_ssr/{getBundleChildren-CnOf4Frp.mjs → getBundleChildren-DA9zbUBD.mjs} +1 -1
- package/.output/server/_ssr/{input-group-CGiryg7I.mjs → input-group-B64ZFSYp.mjs} +1 -1
- package/.output/server/_ssr/{insights-hDsGL-yq.mjs → insights-B9kdn-hT.mjs} +29 -28
- package/.output/server/_ssr/{insights-DNNsxJlD.mjs → insights-DaaYBkr3.mjs} +5 -5
- package/.output/server/_ssr/{insights-ECnoz9jp.mjs → insights-Do0mUArh.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-DvbUK1vp.mjs → insights-api-C6hqqqUk.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-DwUaDs0Z.mjs → insights-errors-BrToSfI9.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-DGO2_3Vx.mjs → insights-failures-lmcxwKb3.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-DCu8iR4V.mjs → insights-failures-rpc-k6uyvIeh.mjs} +8 -8
- package/.output/server/_ssr/{insights-recovery-Cdg3Msrj.mjs → insights-recovery-Dhg3WGpC.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-Bla1PuCq.mjs → insights-recovery-rpc-DPW8WjEX.mjs} +5 -5
- package/.output/server/_ssr/{insights-rpc-ViJh0Q-s.mjs → insights-rpc-DDLtqUqS.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-DfEqsfAa.mjs → insights-search-BxLGFC2Y.mjs} +3 -5
- package/.output/server/_ssr/{insights-usage-BVm7CDw9.mjs → insights-usage-gW3T5N6N.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-DWSPBftd.mjs → insights-usage-rpc-_3iuUmaJ.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-CLsYlcnO.mjs → insights-usage-rpc-a9HwsRB_.mjs} +4 -4
- package/.output/server/_ssr/{insightsUsage-lPKyRC2o.mjs → insightsUsage-B_7pM9wp.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-6t26Hce4.mjs → insights_.distribution-BjWQk0tw.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-CbZmys6X.mjs → insights_.distribution-CCCQgeXp.mjs} +16 -16
- package/.output/server/_ssr/{insights_.distribution-Bj054JTo.mjs → insights_.distribution-DTvhOF_Z.mjs} +5 -5
- package/.output/server/_ssr/{installations-BOzetKfl.mjs → installations-BgKaxLj8.mjs} +2 -2
- package/.output/server/_ssr/{installations-ARFvJMie.mjs → installations-DZoaae-j.mjs} +12 -12
- package/.output/server/_ssr/{installations-CL-nVRbZ.mjs → installations-IiZ1O2zJ.mjs} +4 -4
- package/.output/server/_ssr/{ios-devices-rpc-Xln3pLFJ.mjs → ios-devices-rpc-mzVC4RTM.mjs} +8 -8
- package/.output/server/_ssr/{iosDeviceCookie-BG4X3Kbt.mjs → iosDeviceCookie-LOJ7WfKJ.mjs} +5 -5
- package/.output/server/_ssr/{iosDeviceProfile-C8NvflH9.mjs → iosDeviceProfile-DtTmTG9a.mjs} +6 -6
- package/.output/server/_ssr/{iosDevices-Ck5ko5IX.mjs → iosDevices-DC-DR7X-.mjs} +3 -3
- package/.output/server/_ssr/{listReleases-QF91GLE7.mjs → listReleases-B2Q9xwFv.mjs} +3 -3
- package/.output/server/_ssr/{native-artifact-BRNP_q-y.mjs → native-artifact-BurROe05.mjs} +43 -2
- package/.output/server/_ssr/{native-builds-nRuXKypG.mjs → native-builds-Bnx0fVWs.mjs} +10 -5
- package/.output/server/_ssr/{native-builds-B70NqL0z.mjs → native-builds-DBVS616m.mjs} +63 -32
- package/.output/server/_ssr/{native-builds-6Kq2Pamq.mjs → native-builds-uMIPDSmT.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-B4uQUP7t.mjs → native-builds_._buildId-BmB6oLsi.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-zbXBoGs8.mjs → native-builds_._buildId-CfYzRkoT.mjs} +61 -45
- package/.output/server/_ssr/{native-builds_.devices-OLR3gTfc.mjs → native-builds_.devices-CBoAFcVA.mjs} +18 -18
- package/.output/server/_ssr/{native-builds_.devices-DcgdiEiK.mjs → native-builds_.devices-PvBuqXp0.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildDownloadLink-DHsPiwsg.mjs → nativeBuildDownloadLink-B-Slw1_O.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-DnpC3dUR.mjs → nativeBuildInstall-_vrEhN0E.mjs} +8 -8
- package/.output/server/_ssr/{nativeBuilds-DaF-TcfO.mjs → nativeBuilds-WKdqgemR.mjs} +7 -7
- package/.output/server/_ssr/{publicConsoleBase-wTKw3_iB.mjs → publicConsoleBase-C3sNbafy.mjs} +1 -1
- package/.output/server/_ssr/{release-adoption-gfhE5tz5.mjs → release-adoption-D2719HVh.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-C8oj79w3.mjs → release-adoption-rpc-BsUYFCSo.mjs} +7 -7
- package/.output/server/_ssr/{releaseAdoption-DfEYq7I4.mjs → releaseAdoption-CxGKmUXx.mjs} +4 -4
- package/.output/server/_ssr/{releaseReachability-Ch1JpJkY.mjs → releaseReachability-sWr0bLRk.mjs} +1 -1
- package/.output/server/_ssr/{remote-config-DOinV02U.mjs → remote-config-D-8SQ4po.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-MEFtxtmM.mjs → remote-config-DQzpUpwK.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-ClsnMl5Y.mjs → remote-config-ZObJS2_F.mjs} +20 -20
- package/.output/server/_ssr/{remote-config-rpc-CCPIk5TC.mjs → remote-config-rpc-COjwhaa3.mjs} +3 -3
- package/.output/server/_ssr/{router-jomm2ZkW.mjs → router-DFO8ezEY.mjs} +37 -37
- package/.output/server/_ssr/{routes-D0sAXxvj.mjs → routes-B0kFLck5.mjs} +96 -44
- package/.output/server/_ssr/{routes-YuEmTB66.mjs → routes-DLdhFkXy.mjs} +48 -14
- package/.output/server/_ssr/{schema-migration-rpc-CzOI4qIc.mjs → schema-migration-rpc-BTlEpk00.mjs} +3 -3
- package/.output/server/_ssr/{select-jxef2GHj.mjs → select-l3hYdF9p.mjs} +2 -2
- package/.output/server/_ssr/{server-DowlVz8B.mjs → server-Dsb2hUyp.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-DbK9IOE6.mjs → sidebar-DU3F2THA.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BaUpXI0L.mjs → start-BXlykDIg.mjs} +1 -1
- package/.output/server/_ssr/{switch-PuW4wKem.mjs → switch-B_NczfZN.mjs} +2 -2
- package/.output/server/_ssr/{table-CTjtU7u0.mjs → table-DScwmE5W.mjs} +1 -1
- package/.output/server/_ssr/{tabs-CYGM4B-P.mjs → tabs-DodX8IAE.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-BwDwIoNu.mjs → updateFailures-DGuFoK6A.mjs} +3 -3
- package/.output/server/{_tanstack-start-manifest_v-Dzfgn9EO.mjs → _tanstack-start-manifest_v-D4QtfwLE.mjs} +94 -95
- package/.output/server/index.mjs +311 -318
- package/package.json +7 -7
- package/src/components/features/insights/AppUsage.tsx +3 -5
- package/src/components/features/insights/InsightsControls.tsx +2 -2
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +21 -5
- package/src/components/features/native-builds/InstallCard.tsx +32 -24
- package/src/components/features/native-builds/IosInstall.tsx +3 -2
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +2 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +79 -21
- package/src/components/features/native-builds/NativeBuildsTable.tsx +8 -6
- package/src/components/features/native-builds/PatchesCard.tsx +28 -20
- package/src/lib/api-rpc.ts +2 -1
- package/src/lib/api.ts +10 -2
- package/src/lib/constants.ts +12 -0
- package/src/lib/insights-search.ts +0 -3
- package/src/lib/native-builds.ts +10 -3
- package/src/lib/server/nativeBuildInstall.ts +3 -1
- package/src/lib/server/nativeBuilds.ts +15 -8
- package/src/routes/-native-builds-search.ts +32 -4
- package/src/routes/-releases-search.ts +63 -2
- package/src/routes/index.tsx +113 -29
- package/src/routes/insights.tsx +3 -5
- package/src/routes/insights_.distribution.tsx +2 -2
- package/.output/public/assets/-native-builds-search-BvCftqF2.js +0 -1
- package/.output/public/assets/IosInstall-DsKczesK.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-DnmU8XbU.js +0 -1
- package/.output/public/assets/api-B1z_XXrQ.js +0 -1
- package/.output/public/assets/api-keys-C_u_ZmPS.js +0 -1
- package/.output/public/assets/api-keys-DPuPM7ag.js +0 -1
- package/.output/public/assets/dist-BEIz5ojx.js +0 -1
- package/.output/public/assets/insights-CpnFoyo5.js +0 -2
- package/.output/public/assets/insights-MQrx_wbP.js +0 -1
- package/.output/public/assets/insights-search-CtEcj6lz.js +0 -1
- package/.output/public/assets/insights_.distribution-Bjo0aQE4.js +0 -1
- package/.output/public/assets/insights_.distribution-Dd2mYz8D.js +0 -2
- package/.output/public/assets/insights_.distribution-REbBAqgL.js +0 -1
- package/.output/public/assets/installations-Di02gX_V.js +0 -1
- package/.output/public/assets/installations-iqDa8KPW.js +0 -1
- package/.output/public/assets/native-builds-7sC78eTq.js +0 -1
- package/.output/public/assets/native-builds-BOSmoLed.js +0 -1
- package/.output/public/assets/native-builds-CXDwW54k.js +0 -2
- package/.output/public/assets/native-builds_._buildId-C7-yUwvH.js +0 -2
- package/.output/public/assets/native-builds_._buildId-u5dG7ej5.js +0 -1
- package/.output/public/assets/native-builds_.devices-CQ_tB3SO.js +0 -1
- package/.output/public/assets/native-builds_.devices-C_YZoRxB.js +0 -2
- package/.output/public/assets/refresh-cw-CpCxPYma.js +0 -1
- package/.output/public/assets/remote-config-CD50k2u7.js +0 -6
- package/.output/public/assets/remote-config-Dmuqm9xx.js +0 -1
- package/.output/public/assets/routes-Dj_ukxU_.js +0 -2
- package/.output/public/assets/routes-DvCD6Kib.js +0 -1
- /package/.output/public/assets/{BundleIdDisplay-D8oR8mcP.js → BundleIdDisplay-Bm85NZma.js} +0 -0
- /package/.output/public/assets/{ChannelBadge-Do-lWsLM.js → ChannelBadge-B04sTjw5.js} +0 -0
- /package/.output/public/assets/{NotFoundPage-CijSy63W.js → NotFoundPage-DUWkihqx.js} +0 -0
- /package/.output/public/assets/{PlatformIcon-Kq3q98tU.js → PlatformIcon-CZjIJt0C.js} +0 -0
- /package/.output/public/assets/{QrCode-D3-Vuudy.js → QrCode-DJ5leikY.js} +0 -0
- /package/.output/public/assets/{alert-dialog-Dihztkem.js → alert-dialog-ndHfUqUh.js} +0 -0
- /package/.output/public/assets/{card-BfeRlTvj.js → card-VtWYErXu.js} +0 -0
- /package/.output/public/assets/{dialog-e9AF5T6h.js → dialog-Dx9gstou.js} +0 -0
- /package/.output/public/assets/{empty-DpSPWLc2.js → empty-Cdfs8tuN.js} +0 -0
- /package/.output/public/assets/{field-PkdRPD3A.js → field-CubHQ_EM.js} +0 -0
- /package/.output/public/assets/{relativeTime-D_aYJRc7.js → relativeTime-Wk64dka-.js} +0 -0
- /package/.output/public/assets/{table-r_sYqKTQ.js → table-DtcLx8yw.js} +0 -0
- /package/.output/public/assets/{tabs-BBfg-c0h.js → tabs-DYlO8l4M.js} +0 -0
- /package/.output/public/assets/{valueToPercent-Bn8p2lng.js → valueToPercent-Db73Kirz.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.36",
|
|
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/bsdiff": "1.2.0-rc.
|
|
63
|
-
"@hot-updater/protocol": "1.2.0-rc.
|
|
64
|
-
"@hot-updater/server": "1.2.0-rc.
|
|
65
|
-
"@hot-updater/plugin-core": "1.2.0-rc.
|
|
62
|
+
"@hot-updater/bsdiff": "1.2.0-rc.36",
|
|
63
|
+
"@hot-updater/protocol": "1.2.0-rc.36",
|
|
64
|
+
"@hot-updater/server": "1.2.0-rc.36",
|
|
65
|
+
"@hot-updater/plugin-core": "1.2.0-rc.36"
|
|
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.36",
|
|
90
|
+
"@hot-updater/mock": "1.2.0-rc.36"
|
|
91
91
|
},
|
|
92
92
|
"description": "React Native OTA solution for self-hosted",
|
|
93
93
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -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}`] : []
|
|
@@ -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,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Link } from "@tanstack/react-router";
|
|
2
|
-
import { ArrowUpRight, CircleCheck, History } from "lucide-react";
|
|
2
|
+
import { ArrowUpRight, CircleCheck, CircleSlash, History } from "lucide-react";
|
|
3
3
|
import { toast } from "sonner";
|
|
4
4
|
|
|
5
5
|
import { BundleIdDisplay } from "@/components/BundleIdDisplay";
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
nativeBuildArtifacts,
|
|
14
14
|
nativeBuildLabel,
|
|
15
15
|
platformLabel,
|
|
16
|
+
SANDBOX_NO_PATCH_BASE,
|
|
16
17
|
} from "@/lib/native-builds";
|
|
17
18
|
import type { NativeBuildDetail } from "@/lib/server/nativeBuilds";
|
|
18
19
|
|
|
@@ -73,10 +74,25 @@ function StoreBuildAction({ detail }: { readonly detail: NativeBuildDetail }) {
|
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
76
|
* Which build new deploys patch from: this one, as the store build or as the
|
|
76
|
-
* newest with no mark, or another, which it links to.
|
|
77
|
+
* newest with no mark, or another, which it links to. A sandbox build is never
|
|
78
|
+
* one, whatever its scope holds.
|
|
77
79
|
*/
|
|
78
80
|
function BaselineStatus({ detail }: { readonly detail: NativeBuildDetail }) {
|
|
79
81
|
const { build, newestInScope, storeBuildInScope } = detail;
|
|
82
|
+
if (build.is_sandbox) {
|
|
83
|
+
return (
|
|
84
|
+
<div className="flex items-start gap-2 rounded-md border bg-muted/40 p-3 text-xs">
|
|
85
|
+
<CircleSlash
|
|
86
|
+
aria-hidden="true"
|
|
87
|
+
className="mt-0.5 size-3.5 shrink-0 text-muted-foreground"
|
|
88
|
+
/>
|
|
89
|
+
<p>
|
|
90
|
+
<span className="font-medium">No patch base.</span>{" "}
|
|
91
|
+
{SANDBOX_NO_PATCH_BASE}
|
|
92
|
+
</p>
|
|
93
|
+
</div>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
80
96
|
const base = storeBuildInScope ?? newestInScope;
|
|
81
97
|
if (base === null) return null;
|
|
82
98
|
const isBase = base.id === build.id;
|
|
@@ -204,9 +220,9 @@ export function BuiltInBundleCard({
|
|
|
204
220
|
</dl>
|
|
205
221
|
<BaselineStatus detail={detail} />
|
|
206
222
|
<p className="text-xs text-muted-foreground">
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
223
|
+
{build.is_sandbox
|
|
224
|
+
? "An install of this build runs this bundle until it opens an OTA."
|
|
225
|
+
: "A store or test install of this build runs this bundle until its first OTA. That OTA downloads as a patch from this bundle when one exists, and as the full bundle otherwise."}
|
|
210
226
|
</p>
|
|
211
227
|
</CardContent>
|
|
212
228
|
</Card>
|
|
@@ -30,25 +30,40 @@ import { IosInstall, useIosDevice } from "./IosInstall";
|
|
|
30
30
|
import { PLAY_TRACKS } from "./playTracks";
|
|
31
31
|
import { isSubmitted, type Submitted } from "./StoreSubmission";
|
|
32
32
|
|
|
33
|
+
const IPA_LIMIT =
|
|
34
|
+
"The .ipa installs only on devices its signing profile allows (development or ad hoc)";
|
|
35
|
+
|
|
33
36
|
/**
|
|
34
37
|
* What an artifact installs on, where the file alone isn't enough: the card
|
|
35
|
-
* says it once, under the QR code, or without one, in its place.
|
|
38
|
+
* says it once, under the QR code, or without one, in its place. A sandbox
|
|
39
|
+
* build gets no TestFlight advice.
|
|
36
40
|
*/
|
|
37
|
-
const
|
|
38
|
-
{
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
const installLimit = (build: NativeBuildRow): string | undefined => {
|
|
42
|
+
switch (build.artifact_kind) {
|
|
43
|
+
case "ipa":
|
|
44
|
+
return build.is_sandbox
|
|
45
|
+
? `${IPA_LIMIT}.`
|
|
46
|
+
: `${IPA_LIMIT}; an App Store export reaches testers through TestFlight.`;
|
|
47
|
+
case "aab":
|
|
48
|
+
return "The .aab installs through Google Play or bundletool, not from the file.";
|
|
49
|
+
default:
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
42
53
|
|
|
43
54
|
/**
|
|
44
55
|
* What scanning a build's QR code gets, by its artifact. The install steps
|
|
45
56
|
* beside it add only what this doesn't say, so the card says each thing once.
|
|
46
57
|
*/
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
58
|
+
const qrCaption = (build: NativeBuildRow): string => {
|
|
59
|
+
switch (build.artifact_kind) {
|
|
60
|
+
case "apk":
|
|
61
|
+
return "Scan with an Android phone's camera, then open the APK to install it.";
|
|
62
|
+
case "app":
|
|
63
|
+
return "Scan to download the .app.zip on a Mac.";
|
|
64
|
+
default:
|
|
65
|
+
return `Scan to download. ${installLimit(build)}`;
|
|
66
|
+
}
|
|
52
67
|
};
|
|
53
68
|
|
|
54
69
|
/**
|
|
@@ -90,7 +105,7 @@ function ScannableUrl({
|
|
|
90
105
|
value={url}
|
|
91
106
|
/>
|
|
92
107
|
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
93
|
-
{
|
|
108
|
+
{qrCaption(build)}
|
|
94
109
|
</p>
|
|
95
110
|
{note ? (
|
|
96
111
|
<p className="max-w-56 text-center text-xs text-muted-foreground">
|
|
@@ -122,7 +137,7 @@ function StorageQrCode({ build }: { readonly build: NativeBuildRow }) {
|
|
|
122
137
|
// A storage without download URLs serves the build only through the
|
|
123
138
|
// console, which a phone that scans isn't signed in to.
|
|
124
139
|
if (url === null) {
|
|
125
|
-
const limits =
|
|
140
|
+
const limits = installLimit(build);
|
|
126
141
|
return (
|
|
127
142
|
<div className="flex flex-col gap-2 text-xs text-muted-foreground">
|
|
128
143
|
<p>
|
|
@@ -292,16 +307,9 @@ function InstallSteps({ build }: { readonly build: NativeBuildRow }) {
|
|
|
292
307
|
processed it, and a preview's pull request comment shows that state.
|
|
293
308
|
</p>
|
|
294
309
|
) : (
|
|
295
|
-
<
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
without a registered device:
|
|
299
|
-
</p>
|
|
300
|
-
<CopyableText
|
|
301
|
-
label="the TestFlight command"
|
|
302
|
-
value="npx hot-updater testflight"
|
|
303
|
-
/>
|
|
304
|
-
</div>
|
|
310
|
+
<p className="text-xs text-muted-foreground">
|
|
311
|
+
Over USB, Xcode or Apple Configurator installs it.
|
|
312
|
+
</p>
|
|
305
313
|
);
|
|
306
314
|
}
|
|
307
315
|
}
|
|
@@ -358,7 +366,7 @@ export function InstallCard({ build }: { readonly build: NativeBuildRow }) {
|
|
|
358
366
|
|
|
359
367
|
/**
|
|
360
368
|
* On the iPhone, what installs the IPA from a computer, closed under the one
|
|
361
|
-
* action this phone takes: over USB,
|
|
369
|
+
* action this phone takes: over USB, the download, and its link.
|
|
362
370
|
*/
|
|
363
371
|
function OtherWaysToInstall({ children }: { readonly children: ReactNode }) {
|
|
364
372
|
const [open, setOpen] = useState(false);
|
|
@@ -662,8 +662,9 @@ export function IosInstall({
|
|
|
662
662
|
if (result.status === "store") {
|
|
663
663
|
return (
|
|
664
664
|
<p className="text-xs text-muted-foreground">
|
|
665
|
-
|
|
666
|
-
|
|
665
|
+
{build.is_sandbox
|
|
666
|
+
? "This IPA is an App Store export, which doesn't install from this page."
|
|
667
|
+
: "This IPA is an App Store export, which installs through TestFlight, not from this page."}
|
|
667
668
|
</p>
|
|
668
669
|
);
|
|
669
670
|
}
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
import { SidebarTrigger } from "@/components/ui/sidebar";
|
|
21
21
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
22
22
|
import { type KeysetPage, useNativeBuildDetailQuery } from "@/lib/api";
|
|
23
|
+
import { ALL_CHANNELS } from "@/lib/constants";
|
|
23
24
|
import {
|
|
24
25
|
formatByteSize,
|
|
25
26
|
nativeBuildArtifacts,
|
|
@@ -152,6 +153,7 @@ export function NativeBuildDetailPage({
|
|
|
152
153
|
className: "min-h-11 sm:min-h-8",
|
|
153
154
|
variant: "outline",
|
|
154
155
|
})}
|
|
156
|
+
search={{ channels: ALL_CHANNELS }}
|
|
155
157
|
to="/native-builds"
|
|
156
158
|
>
|
|
157
159
|
Show all native builds
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { HardDrive, RefreshCw } from "lucide-react";
|
|
1
|
+
import { AlertTriangle, HardDrive, RefreshCw } from "lucide-react";
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
Alert,
|
|
5
|
+
AlertAction,
|
|
6
|
+
AlertDescription,
|
|
7
|
+
AlertTitle,
|
|
8
|
+
} from "@/components/ui/alert";
|
|
3
9
|
import { Button } from "@/components/ui/button";
|
|
4
10
|
import {
|
|
5
11
|
Select,
|
|
@@ -10,11 +16,12 @@ import {
|
|
|
10
16
|
SelectValue,
|
|
11
17
|
} from "@/components/ui/select";
|
|
12
18
|
import { SidebarTrigger } from "@/components/ui/sidebar";
|
|
19
|
+
import { useChannelsQuery, useNativeBuildsQuery } from "@/lib/api";
|
|
20
|
+
import { ALL_CHANNELS } from "@/lib/constants";
|
|
13
21
|
import {
|
|
14
|
-
type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "@/lib/api";
|
|
22
|
+
type NativeBuildsSearch,
|
|
23
|
+
resolveNativeBuildsSearch,
|
|
24
|
+
} from "@/routes/-native-builds-search";
|
|
18
25
|
|
|
19
26
|
import { ImportBuildDialog } from "./ImportBuild";
|
|
20
27
|
import { NativeBuildsNav } from "./NativeBuildsNav";
|
|
@@ -24,34 +31,57 @@ import { NativeBuildsTable } from "./NativeBuildsTable";
|
|
|
24
31
|
* The filter's values: a channel's is its name behind a prefix, so no channel
|
|
25
32
|
* name, `all` included, can be taken for "All channels".
|
|
26
33
|
*/
|
|
27
|
-
const ALL_CHANNELS = "all";
|
|
28
34
|
const CHANNEL_VALUE_PREFIX = "channel:";
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The list while its channel is unknown: loading, whatever the cache holds,
|
|
38
|
+
* and nothing to refresh. A disabled query still reads when refetched.
|
|
39
|
+
*/
|
|
40
|
+
const PENDING_BUILDS = {
|
|
41
|
+
data: undefined,
|
|
42
|
+
isError: false,
|
|
43
|
+
isPending: true,
|
|
44
|
+
isPlaceholderData: false,
|
|
45
|
+
refetch: () => undefined,
|
|
46
|
+
} as const;
|
|
29
47
|
const channelValue = (name: string) => `${CHANNEL_VALUE_PREFIX}${name}`;
|
|
30
48
|
|
|
31
49
|
/**
|
|
32
50
|
* The native builds Hot Updater tracks: one page at a time, newest first,
|
|
33
|
-
*
|
|
34
|
-
* are in the URL, so a pull
|
|
51
|
+
* those that embed one channel, the default one unless the URL names another
|
|
52
|
+
* or every channel. The page and the channel are in the URL, so a pull
|
|
53
|
+
* request links to its channel's builds.
|
|
35
54
|
*/
|
|
36
55
|
export function NativeBuildsPage({
|
|
37
56
|
search,
|
|
38
57
|
onSearchChange,
|
|
39
58
|
}: {
|
|
40
|
-
readonly search:
|
|
41
|
-
readonly onSearchChange: (search:
|
|
59
|
+
readonly search: NativeBuildsSearch;
|
|
60
|
+
readonly onSearchChange: (search: NativeBuildsSearch) => void;
|
|
42
61
|
}) {
|
|
43
|
-
const { channel, before, after } = search;
|
|
44
|
-
const builds = useNativeBuildsQuery(search);
|
|
45
62
|
// The filter's choices; the rows decode their channel from its ID.
|
|
46
63
|
const channels = useChannelsQuery();
|
|
47
64
|
const channelNames = channels.data?.map(({ name }) => name) ?? [];
|
|
65
|
+
// The page the list shows: a URL without a channel opens on the default
|
|
66
|
+
// one, known once the channel list arrives. A loaded list outlives a failed
|
|
67
|
+
// refresh; without one, the default page waits, and nothing reads every
|
|
68
|
+
// channel in its place.
|
|
69
|
+
const page = resolveNativeBuildsSearch(search, channels.data && channelNames);
|
|
70
|
+
const pending = page === undefined;
|
|
71
|
+
const channelsFailed = pending && channels.isError;
|
|
72
|
+
const { channel, before, after } = page ?? search;
|
|
73
|
+
// Nothing reads every channel's builds on the way to the default channel's.
|
|
74
|
+
const query = useNativeBuildsQuery(page ?? {}, { enabled: !pending });
|
|
75
|
+
const builds = pending ? PENDING_BUILDS : query;
|
|
48
76
|
// A filtered channel may be gone, or not loaded yet: it stays a choice.
|
|
49
77
|
const choices =
|
|
50
78
|
channel === undefined || channelNames.includes(channel)
|
|
51
79
|
? channelNames
|
|
52
80
|
: [channel, ...channelNames];
|
|
53
81
|
const filterBy = (next: string | undefined) =>
|
|
54
|
-
onSearchChange(
|
|
82
|
+
onSearchChange(
|
|
83
|
+
next === undefined ? { channels: ALL_CHANNELS } : { channel: next },
|
|
84
|
+
);
|
|
55
85
|
|
|
56
86
|
return (
|
|
57
87
|
<div className="flex h-svh min-h-0 min-w-0 flex-col">
|
|
@@ -73,6 +103,7 @@ export function NativeBuildsPage({
|
|
|
73
103
|
<NativeBuildsNav current="builds" />
|
|
74
104
|
<div className="flex items-center gap-2">
|
|
75
105
|
<Select
|
|
106
|
+
disabled={pending}
|
|
76
107
|
items={[
|
|
77
108
|
{ label: "All channels", value: ALL_CHANNELS },
|
|
78
109
|
...choices.map((name) => ({
|
|
@@ -91,7 +122,13 @@ export function NativeBuildsPage({
|
|
|
91
122
|
: undefined,
|
|
92
123
|
)
|
|
93
124
|
}
|
|
94
|
-
value={
|
|
125
|
+
value={
|
|
126
|
+
pending
|
|
127
|
+
? null
|
|
128
|
+
: channel === undefined
|
|
129
|
+
? ALL_CHANNELS
|
|
130
|
+
: channelValue(channel)
|
|
131
|
+
}
|
|
95
132
|
>
|
|
96
133
|
<SelectTrigger
|
|
97
134
|
aria-label="Channel"
|
|
@@ -120,7 +157,7 @@ export function NativeBuildsPage({
|
|
|
120
157
|
<Button
|
|
121
158
|
aria-label="Refresh native builds"
|
|
122
159
|
className="size-11 sm:size-7"
|
|
123
|
-
disabled={builds.
|
|
160
|
+
disabled={builds.isPending}
|
|
124
161
|
onClick={() => void builds.refetch()}
|
|
125
162
|
size="icon-sm"
|
|
126
163
|
variant="ghost"
|
|
@@ -128,12 +165,33 @@ export function NativeBuildsPage({
|
|
|
128
165
|
<RefreshCw aria-hidden="true" />
|
|
129
166
|
</Button>
|
|
130
167
|
</div>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
168
|
+
{channelsFailed ? (
|
|
169
|
+
<Alert variant="destructive">
|
|
170
|
+
<AlertTriangle />
|
|
171
|
+
<AlertTitle>Channels couldn't be loaded</AlertTitle>
|
|
172
|
+
<AlertDescription>
|
|
173
|
+
Native builds show once the channels load.
|
|
174
|
+
</AlertDescription>
|
|
175
|
+
<AlertAction>
|
|
176
|
+
<Button
|
|
177
|
+
className="min-h-11 sm:min-h-7"
|
|
178
|
+
onClick={() => void channels.refetch()}
|
|
179
|
+
size="xs"
|
|
180
|
+
variant="outline"
|
|
181
|
+
>
|
|
182
|
+
<RefreshCw data-icon="inline-start" />
|
|
183
|
+
Retry
|
|
184
|
+
</Button>
|
|
185
|
+
</AlertAction>
|
|
186
|
+
</Alert>
|
|
187
|
+
) : (
|
|
188
|
+
<NativeBuildsTable
|
|
189
|
+
builds={builds}
|
|
190
|
+
channel={channel}
|
|
191
|
+
onChannel={filterBy}
|
|
192
|
+
paged={before !== undefined || after !== undefined}
|
|
193
|
+
/>
|
|
194
|
+
)}
|
|
137
195
|
</div>
|
|
138
196
|
</div>
|
|
139
197
|
);
|
|
@@ -54,6 +54,7 @@ import { Button, buttonVariants } from "@/components/ui/button";
|
|
|
54
54
|
import { TableCell, TableHead } from "@/components/ui/table";
|
|
55
55
|
import { useIsMobile } from "@/hooks/use-mobile";
|
|
56
56
|
import { useNativeBuildFoldQuery } from "@/lib/api";
|
|
57
|
+
import { ALL_CHANNELS } from "@/lib/constants";
|
|
57
58
|
import {
|
|
58
59
|
formatByteSize,
|
|
59
60
|
nativeBuildArtifacts,
|
|
@@ -64,6 +65,7 @@ import {
|
|
|
64
65
|
} from "@/lib/native-builds";
|
|
65
66
|
import type { Fold } from "@/lib/server/foldedPage";
|
|
66
67
|
import type { NativeBuildFoldedPage } from "@/lib/server/nativeBuilds";
|
|
68
|
+
import type { NativeBuildsSearch } from "@/routes/-native-builds-search";
|
|
67
69
|
|
|
68
70
|
import { CopyableText } from "./CopyableText";
|
|
69
71
|
import { IMPORT_COMMAND, IMPORT_GUIDE_URL } from "./ImportBuild";
|
|
@@ -77,8 +79,8 @@ export const NATIVE_BUILD_GUIDE_URL =
|
|
|
77
79
|
const COLUMNS = 10;
|
|
78
80
|
|
|
79
81
|
/** The page of the list that shows `channel`'s builds, or every build. */
|
|
80
|
-
const channelSearch = (channel: string | undefined) =>
|
|
81
|
-
channel === undefined ? {} : { channel };
|
|
82
|
+
const channelSearch = (channel: string | undefined): NativeBuildsSearch =>
|
|
83
|
+
channel === undefined ? { channels: ALL_CHANNELS } : { channel };
|
|
82
84
|
|
|
83
85
|
/** A fold of older builds: "1 older build", "12 older builds". */
|
|
84
86
|
const OLDER_BUILDS = { one: "older build", other: "older builds" } as const;
|
|
@@ -594,7 +596,7 @@ export function NativeBuildsTable({
|
|
|
594
596
|
readonly builds: {
|
|
595
597
|
readonly data: NativeBuildFoldedPage | undefined;
|
|
596
598
|
readonly isError: boolean;
|
|
597
|
-
readonly
|
|
599
|
+
readonly isPending: boolean;
|
|
598
600
|
readonly isPlaceholderData: boolean;
|
|
599
601
|
readonly refetch: () => unknown;
|
|
600
602
|
};
|
|
@@ -662,7 +664,7 @@ export function NativeBuildsTable({
|
|
|
662
664
|
className="h-full overflow-y-auto aria-busy:opacity-60"
|
|
663
665
|
role="list"
|
|
664
666
|
>
|
|
665
|
-
{builds.
|
|
667
|
+
{builds.isPending ? (
|
|
666
668
|
<DataCardSkeletons label="Loading native builds" />
|
|
667
669
|
) : (
|
|
668
670
|
<>
|
|
@@ -707,7 +709,7 @@ export function NativeBuildsTable({
|
|
|
707
709
|
}
|
|
708
710
|
rowGroups
|
|
709
711
|
>
|
|
710
|
-
{builds.
|
|
712
|
+
{builds.isPending ? (
|
|
711
713
|
<DataTableBody>
|
|
712
714
|
<DataTableSkeletonRows
|
|
713
715
|
columns={COLUMNS}
|
|
@@ -743,7 +745,7 @@ export function NativeBuildsTable({
|
|
|
743
745
|
</DataTable>
|
|
744
746
|
)}
|
|
745
747
|
</DataTableFrame>
|
|
746
|
-
{builds.
|
|
748
|
+
{builds.isPending || entries === undefined ? null : (
|
|
747
749
|
<DataTablePagination
|
|
748
750
|
count={count}
|
|
749
751
|
folded={{ ...foldedTotal(entries), label: "older" }}
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
TableRow,
|
|
36
36
|
} from "@/components/ui/table";
|
|
37
37
|
import { type KeysetPage, useNativeBuildPatchesQuery } from "@/lib/api";
|
|
38
|
-
import { formatByteSize } from "@/lib/native-builds";
|
|
38
|
+
import { formatByteSize, SANDBOX_NO_PATCH_BASE } from "@/lib/native-builds";
|
|
39
39
|
import type {
|
|
40
40
|
NativeBuildDetail,
|
|
41
41
|
NativeBuildPatchPage,
|
|
@@ -123,27 +123,35 @@ export function PatchesCard({
|
|
|
123
123
|
</EmptyMedia>
|
|
124
124
|
<EmptyTitle>No patches from this build</EmptyTitle>
|
|
125
125
|
<EmptyDescription>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
{detail.build.is_sandbox ? (
|
|
127
|
+
SANDBOX_NO_PATCH_BASE
|
|
128
|
+
) : (
|
|
129
|
+
<>
|
|
130
|
+
A deploy adds a patch from this build's bundle while it is
|
|
131
|
+
its scope's store build, or its newest build with none
|
|
132
|
+
marked, and the deploy config turns patches on, with{" "}
|
|
133
|
+
<code className="font-mono">patch</code> in{" "}
|
|
134
|
+
<code className="font-mono">hot-updater.config.ts</code>.
|
|
135
|
+
</>
|
|
136
|
+
)}
|
|
131
137
|
</EmptyDescription>
|
|
132
138
|
</EmptyHeader>
|
|
133
|
-
|
|
134
|
-
<
|
|
135
|
-
|
|
136
|
-
className
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
139
|
+
{detail.build.is_sandbox ? null : (
|
|
140
|
+
<EmptyContent>
|
|
141
|
+
<a
|
|
142
|
+
className={buttonVariants({
|
|
143
|
+
className: "min-h-11 sm:min-h-8",
|
|
144
|
+
variant: "outline",
|
|
145
|
+
})}
|
|
146
|
+
href={BUNDLE_DIFFING_GUIDE_URL}
|
|
147
|
+
rel="noreferrer"
|
|
148
|
+
target="_blank"
|
|
149
|
+
>
|
|
150
|
+
Bundle diffing guide
|
|
151
|
+
<ArrowUpRight data-icon="inline-end" />
|
|
152
|
+
</a>
|
|
153
|
+
</EmptyContent>
|
|
154
|
+
)}
|
|
147
155
|
</Empty>
|
|
148
156
|
)
|
|
149
157
|
) : (
|
package/src/lib/api-rpc.ts
CHANGED
|
@@ -334,7 +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, and
|
|
337
|
+
* release of an app version range has no one build, and a sandbox channel's
|
|
338
|
+
* builds are no patch base: those read nothing.
|
|
338
339
|
*/
|
|
339
340
|
export const getReleaseNativeBuild = createServerFn({ method: "GET" })
|
|
340
341
|
.middleware([consoleAccess])
|
package/src/lib/api.ts
CHANGED
|
@@ -146,11 +146,15 @@ export function useChannelsQuery() {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
export function useReleasesQuery(
|
|
149
|
+
export function useReleasesQuery(
|
|
150
|
+
filters?: ReleaseFilters,
|
|
151
|
+
{ enabled = true }: { readonly enabled?: boolean } = {},
|
|
152
|
+
) {
|
|
150
153
|
return useQuery({
|
|
151
154
|
queryKey: queryKeys.releases.list(filters),
|
|
152
155
|
queryFn: () => getReleases({ data: filters }),
|
|
153
156
|
placeholderData: (previousData) => previousData,
|
|
157
|
+
enabled,
|
|
154
158
|
});
|
|
155
159
|
}
|
|
156
160
|
|
|
@@ -251,12 +255,16 @@ export function useNativeBuildFoldQuery(
|
|
|
251
255
|
}
|
|
252
256
|
|
|
253
257
|
/** One page of native builds, newest first, kept on screen while the next loads. */
|
|
254
|
-
export function useNativeBuildsQuery(
|
|
258
|
+
export function useNativeBuildsQuery(
|
|
259
|
+
page: NativeBuildPage,
|
|
260
|
+
{ enabled = true }: { readonly enabled?: boolean } = {},
|
|
261
|
+
) {
|
|
255
262
|
return useQuery({
|
|
256
263
|
queryKey: queryKeys.nativeBuilds.list(page),
|
|
257
264
|
queryFn: () => getNativeBuilds({ data: page }),
|
|
258
265
|
placeholderData: (previousData) => previousData,
|
|
259
266
|
staleTime: 60_000,
|
|
267
|
+
enabled,
|
|
260
268
|
});
|
|
261
269
|
}
|
|
262
270
|
|
package/src/lib/constants.ts
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
1
|
export const DEFAULT_PAGE_LIMIT = 20;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The channel the SDK and the CLI use when none is chosen. Insights, Bundles,
|
|
5
|
+
* and Native builds open on it when the URL names no channel.
|
|
6
|
+
*/
|
|
7
|
+
export const DEFAULT_CHANNEL = "production";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The URL's `channels` value that lists every channel. It has a key of its
|
|
11
|
+
* own because any name, `all` included, can be a channel's.
|
|
12
|
+
*/
|
|
13
|
+
export const ALL_CHANNELS = "all";
|
|
@@ -17,9 +17,6 @@ const readHealthChart = (value: unknown): HealthChart | undefined =>
|
|
|
17
17
|
const readUsageWindow = (value: unknown): UsageWindow | undefined =>
|
|
18
18
|
value === "12m" ? value : readWindow(value);
|
|
19
19
|
|
|
20
|
-
/** The channel Insights reads when none is chosen: the SDK's and the CLI's default. */
|
|
21
|
-
export const DEFAULT_INSIGHTS_CHANNEL = "production";
|
|
22
|
-
|
|
23
20
|
export type InsightsSearch = {
|
|
24
21
|
/** Every report's platform; both when omitted. */
|
|
25
22
|
platform?: AppUsageScope["platform"];
|
package/src/lib/native-builds.ts
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
decodeChannelKey,
|
|
10
10
|
encodeChannelKey,
|
|
11
11
|
} from "@hot-updater/protocol";
|
|
12
|
+
import { isSandboxChannel } from "@hot-updater/protocol/native-artifact";
|
|
12
13
|
|
|
13
14
|
import { shellQuote } from "./shell";
|
|
14
15
|
|
|
@@ -331,10 +332,15 @@ export const nativeBuildCatalogScopeKey = (build: NativeBuildRow): string => {
|
|
|
331
332
|
});
|
|
332
333
|
};
|
|
333
334
|
|
|
335
|
+
/** What a sandbox build's page says of its built-in bundle as a patch base. */
|
|
336
|
+
export const SANDBOX_NO_PATCH_BASE =
|
|
337
|
+
"Deploys make no patches from a sandbox build's built-in bundle.";
|
|
338
|
+
|
|
334
339
|
/**
|
|
335
|
-
* The native build scope
|
|
336
|
-
* it: a release of an app version range, rather than one
|
|
337
|
-
* targets many builds
|
|
340
|
+
* The native build scope whose base new deploys of a release patch from, or
|
|
341
|
+
* null when it has none: a release of an app version range, rather than one
|
|
342
|
+
* exact version, targets many builds, and a sandbox channel's builds are no
|
|
343
|
+
* patch base.
|
|
338
344
|
*/
|
|
339
345
|
export const releaseNativeBuildScope = (release: {
|
|
340
346
|
readonly platform: "ios" | "android";
|
|
@@ -342,6 +348,7 @@ export const releaseNativeBuildScope = (release: {
|
|
|
342
348
|
readonly fingerprintHash: string | null;
|
|
343
349
|
readonly targetAppVersion: string | null;
|
|
344
350
|
}): NativeBuildScope | null => {
|
|
351
|
+
if (isSandboxChannel(release.channel)) return null;
|
|
345
352
|
if (release.fingerprintHash !== null) {
|
|
346
353
|
return {
|
|
347
354
|
platform: release.platform,
|