@hot-updater/console 1.2.0-rc.26 → 1.2.0-rc.28
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-OlRj4Jz0.js → -native-builds-search-7blX2yQW.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-B0gAH01c.js +1 -0
- package/.output/public/assets/CompositeItem-Dy4xgOMg.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-DUqlpHCp.js → ConsoleFeatureUnavailable-cy_snb33.js} +1 -1
- package/.output/public/assets/{EventDetails-DZsRlDHk.js → EventDetails-sxag8Hfc.js} +1 -1
- package/.output/public/assets/{HashValueDisplay-MoZMmTeP.js → HashValueDisplay-DMweha_0.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-2bTrjXln.js → InsightsPageHeader-D5TJspVe.js} +1 -1
- package/.output/public/assets/IosInstall-B5NspihF.js +1 -0
- package/.output/public/assets/NativeBuildsNav-CjOOlbEu.js +1 -0
- package/.output/public/assets/{NotFoundPage-Ckb5GMhh.js → NotFoundPage-DDOJarFa.js} +1 -1
- package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-BBvlg6JY.js} +1 -1
- package/.output/public/assets/RelativeTime-CY1dKZpv.js +1 -0
- package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-BHgHkBGB.js} +1 -1
- package/.output/public/assets/RowReason-BMx_vclu.js +1 -0
- package/.output/public/assets/SandboxBadge-irEkMf1P.js +1 -0
- package/.output/public/assets/TargetDisplay-DB8D019f.js +1 -0
- package/.output/public/assets/{alert-dialog-DiRLrFVe.js → alert-dialog-CLC_h1fL.js} +1 -1
- package/.output/public/assets/api-DLryz9hA.js +1 -0
- package/.output/public/assets/api-keys-Cd-aNt-v.js +1 -0
- package/.output/public/assets/api-keys-D3tAc4Uu.js +1 -0
- package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
- package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
- package/.output/public/assets/{badge-D0NFvUY5.js → badge-DJMW4YVM.js} +1 -1
- package/.output/public/assets/card-C4sBAMU-.js +1 -0
- package/.output/public/assets/check-CqWNyG93.js +1 -0
- package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
- package/.output/public/assets/dialog-tCTZmAo8.js +1 -0
- package/.output/public/assets/{dist-Bf1BPKMs.js → dist-Bw_uSBJn.js} +1 -1
- package/.output/public/assets/empty-DsbLxQ1w.js +1 -0
- package/.output/public/assets/field-DL4OXTJ7.js +1 -0
- package/.output/public/assets/git-branch-ByZMEBxZ.js +1 -0
- package/.output/public/assets/history-wYnPoVmT.js +1 -0
- package/.output/public/assets/index-CAnjb7M2.js +10 -0
- package/.output/public/assets/{input-group-D_NfhUbX.js → input-group-B7jx0icS.js} +1 -1
- package/.output/public/assets/insights-DIs4nJI9.js +2 -0
- package/.output/public/assets/insights-DTF7C4jb.js +42 -0
- package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
- package/.output/public/assets/insights-bUk3ChoU.js +1 -0
- package/.output/public/assets/{insights-search-CYPrQVUC.js → insights-search-TfRz5kGG.js} +1 -1
- package/.output/public/assets/insights-usage-rpc-B4V-Qqo4.js +1 -0
- package/.output/public/assets/insights_.distribution-BPl5oRt4.js +2 -0
- package/.output/public/assets/{insights_.distribution-_dZi1_ay.js → insights_.distribution-BqfzAuAf.js} +1 -1
- package/.output/public/assets/insights_.distribution-BqtmnGTt.js +1 -0
- package/.output/public/assets/installations-6U8c_03X.js +1 -0
- package/.output/public/assets/{installations-Y_7QW_p8.js → installations-BU65zztK.js} +1 -1
- package/.output/public/assets/installations-D3MbzcFb.js +2 -0
- package/.output/public/assets/{key-round-DzBe6DHr.js → key-round-B-P_hhUB.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
- package/.output/public/assets/{list-B6GeoQ_b.js → list-fFsS8Wxe.js} +1 -1
- package/.output/public/assets/loader-circle-GWIgH0fo.js +1 -0
- package/.output/public/assets/native-builds-BdzfAFnF.js +1 -0
- package/.output/public/assets/native-builds-CWwvuOXr.js +2 -0
- package/.output/public/assets/native-builds-Eh72Vr2G.js +1 -0
- package/.output/public/assets/native-builds_._buildId-33ksAlnZ.js +1 -0
- package/.output/public/assets/native-builds_._buildId-BVA5GnZP.js +2 -0
- package/.output/public/assets/native-builds_.devices-CElovmwq.js +1 -0
- package/.output/public/assets/native-builds_.devices-DWtcOVYO.js +2 -0
- package/.output/public/assets/{package-ytYrywZH.js → package-CXSDZsME.js} +1 -1
- package/.output/public/assets/plus-Cx-yFNd9.js +1 -0
- package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
- package/.output/public/assets/{refresh-cw-C-tvoCcE.js → refresh-cw-BgiOaFX3.js} +1 -1
- package/.output/public/assets/{relativeTime-DvyxGIsm.js → relativeTime-CBmDq8wh.js} +1 -1
- package/.output/public/assets/remote-config-B3oq9qR0.js +1 -0
- package/.output/public/assets/remote-config-CGbqsPh_.js +6 -0
- package/.output/public/assets/remote-config-D1OkfQKt.js +1 -0
- package/.output/public/assets/{rotate-cw-Clk5xTeE.js → rotate-cw-C1v7YuN7.js} +1 -1
- package/.output/public/assets/{routes-gQXSzO_n.js → routes-BTG3rg0l.js} +2 -2
- package/.output/public/assets/routes-CVbPjRKo.js +1 -0
- package/.output/public/assets/search-DiOSjaYL.js +1 -0
- package/.output/public/assets/select-CA8r-UUe.js +1 -0
- package/.output/public/assets/send-BgXZNiEA.js +1 -0
- package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
- package/.output/public/assets/smartphone-CxP0GGT6.js +1 -0
- package/.output/public/assets/styles-B0kzy3kp.css +2 -0
- package/.output/public/assets/switch-BTHWmKQ5.js +1 -0
- package/.output/public/assets/table-CwF7yxj4.js +1 -0
- package/.output/public/assets/tabs-CHNnCyvw.js +1 -0
- package/.output/public/assets/trash-2-CYISg7ZF.js +1 -0
- package/.output/public/assets/{undo-2-Bt0YXG26.js → undo-2-Bod3vw7x.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
- package/.output/server/{__23tanstack-start-server-fn-resolver-z8rr63xV.mjs → __23tanstack-start-server-fn-resolver-BFiPs5uv.mjs} +85 -49
- 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 +1 -1
- package/.output/server/_libs/lucide-react.mjs +22 -2
- 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-M6t7EIt4.mjs → -native-builds-search-Mm_AZoRU.mjs} +8 -2
- package/.output/server/_ssr/{BundleIdDisplay-DRnAzJse.mjs → BundleIdDisplay-BSBR5eJ3.mjs} +3 -3
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BEU7r4aH.mjs → ConsoleFeatureUnavailable-DcZ4JBVq.mjs} +8 -8
- package/.output/server/_ssr/CopyableText-DgNEsByt.mjs +33 -0
- package/.output/server/_ssr/{EventDetails-CjT6o2sJ.mjs → EventDetails-CUHZuwei.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-Bkim8r3-.mjs → HashValueDisplay-B9ORaCcP.mjs} +3 -3
- package/.output/server/_ssr/{InsightsPageHeader-Ctw4N3SZ.mjs → InsightsPageHeader-C0bJqC-n.mjs} +9 -9
- package/.output/server/_ssr/IosInstall-C5Y5gnDY.mjs +574 -0
- package/.output/server/_ssr/NativeBuildsNav-hFiyBaFW.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-Bh3gFsR6.mjs → NotFoundPage-D4xRjmIA.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-DjdCU0J7.mjs → RelativeTime-DnvxB666.mjs} +20 -9
- package/.output/server/_ssr/{RolloutPercentageBadge-BiIHw-V2.mjs → RolloutPercentageBadge-NBnIOzY9.mjs} +4 -4
- package/.output/server/_ssr/RowReason-B_jZN48d.mjs +169 -0
- package/.output/server/_ssr/{StoreSubmission-Cv59joPo.mjs → SandboxBadge-CFtTG1ZJ.mjs} +17 -17
- package/.output/server/_ssr/{TargetDisplay-D1PKOupt.mjs → TargetDisplay-0sb03v_6.mjs} +7 -33
- package/.output/server/_ssr/{alert-dialog-BOKQTpmP.mjs → alert-dialog-SLr1Q_AI.mjs} +2 -2
- package/.output/server/_ssr/{api-CDvGGB1B.mjs → api-CkgOQzSb.mjs} +74 -17
- package/.output/server/_ssr/{api-keys-DvbSgd9L.mjs → api-keys-BP7NJtoX.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-NYJ0VaDB.mjs → api-keys-BcSzq0TA.mjs} +11 -11
- package/.output/server/_ssr/{api-keys-rpc-B0MrcD15.mjs → api-keys-rpc-IWPOq5vn.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-CIB9gcI7.mjs → api-rpc-cNJTB3v4.mjs} +48 -32
- package/.output/server/_ssr/{auth-rpc-DsIffEXe.mjs → auth-rpc-oaBbtxSP.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-Dt9XHLs_.mjs → auth.server-WQw9JjMm.mjs} +587 -19
- package/.output/server/_ssr/{badge-KS3YftV5.mjs → badge-n3c0OTBQ.mjs} +2 -2
- package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
- package/.output/server/_ssr/{card-CG5GqIoA.mjs → card-CYgCcRUd.mjs} +2 -2
- package/.output/server/_ssr/{config.server-CJs-9Zd_.mjs → config.server-R3KQbcML.mjs} +4 -4
- package/.output/server/_ssr/{console-access-ClmTMpo_.mjs → console-access-BLVi82IN.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-CpMYF0Pb.mjs → console-features-api-B2JvJOlE.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-D-dr-WF8.mjs → console-features-rpc-LAxQoSNw.mjs} +3 -3
- package/.output/server/_ssr/{console-features-CRP-pfov.mjs → console-features-xaGDhRC9.mjs} +1 -1
- package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
- package/.output/server/_ssr/{dialog-DvHMJkq7.mjs → dialog-eru_h5oK.mjs} +2 -2
- package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
- package/.output/server/_ssr/{empty-Bx8DnyWN.mjs → empty-Bu4qodCx.mjs} +3 -3
- package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
- package/.output/server/_ssr/{field-BVI4lxoz.mjs → field-DA5lwO5U.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-BJTufthT.mjs → getBundleChildren-CdqFonhl.mjs} +1 -1
- package/.output/server/_ssr/{input-group-CpJwooTk.mjs → input-group-VV5E3q78.mjs} +2 -2
- package/.output/server/_ssr/{insights-b1hq1O0p.mjs → insights-BJIt1xuT.mjs} +2 -2
- package/.output/server/_ssr/{insights-B-VtObqr.mjs → insights-C23mopzv.mjs} +5 -5
- package/.output/server/_ssr/{insights-DxlHHXPK.mjs → insights-Ci82qdkq.mjs} +27 -27
- package/.output/server/_ssr/{insights-api-8PWQ7PiR.mjs → insights-api-BwXMKUSe.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-Bz3sWNZm.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-DNQ9qVVf.mjs → insights-failures-7zH97WOO.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-pY2KV9HI.mjs → insights-failures-rpc-BuZ-jnby.mjs} +10 -10
- package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-CejmWL_y.mjs → insights-recovery-rpc-DrXSy9aA.mjs} +6 -6
- package/.output/server/_ssr/{insights-rpc-D_7d_AAJ.mjs → insights-rpc-DyrIZg3a.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-CoMkZvRt.mjs → insights-search-CNkNB-aa.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-CrGZDHzO.mjs → insights-usage-rpc-C7UC1lom.mjs} +6 -6
- package/.output/server/_ssr/{insights-usage-rpc-B1XSuara.mjs → insights-usage-rpc-cTgmD-Ej.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-EOOOOTb6.mjs → insights_.distribution-BauOpBTE.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-CpqnDZNG.mjs → insights_.distribution-CIY_IGmh.mjs} +16 -16
- package/.output/server/_ssr/{insights_.distribution-B9sPDvG4.mjs → insights_.distribution-wfFKEv-Z.mjs} +5 -5
- package/.output/server/_ssr/{installations-BOI_y7Ma.mjs → installations-Ba3YVrAf.mjs} +13 -13
- package/.output/server/_ssr/{installations-dWlOOS7Y.mjs → installations-VzacOKHp.mjs} +2 -2
- package/.output/server/_ssr/{installations-D0_0hzdi.mjs → installations-jGW7nvEV.mjs} +4 -4
- package/.output/server/_ssr/ios-devices-rpc-Bhn7VVIh.mjs +138 -0
- package/.output/server/_ssr/iosDeviceProfile-_XT8TpgZ.mjs +176 -0
- package/.output/server/_ssr/iosDevices-Bc27J72d.mjs +129 -0
- package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
- package/.output/server/_ssr/{native-builds-OUdRtp6m.mjs → native-builds-BXBkklfA.mjs} +28 -6
- package/.output/server/_ssr/{native-builds-Bx_az6YZ.mjs → native-builds-DZFJGcHy.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-C721Rw23.mjs → native-builds-DiNkKHly.mjs} +221 -86
- package/.output/server/_ssr/{native-builds_._buildId-ubi48Sfs.mjs → native-builds_._buildId-CuM1PsT6.mjs} +108 -294
- package/.output/server/_ssr/{native-builds_._buildId-YItxv8j9.mjs → native-builds_._buildId-D0n4QZY6.mjs} +3 -3
- package/.output/server/_ssr/native-builds_.devices-D0JJlX8E.mjs +689 -0
- package/.output/server/_ssr/native-builds_.devices-DiM2FdcW.mjs +10 -0
- package/.output/server/_ssr/{nativeBuildDownloadLink-C0I8eLpS.mjs → nativeBuildDownloadLink-CvvWuhh0.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildInstall-CxG8K8TL.mjs → nativeBuildInstall-BqcVHBaD.mjs} +54 -7
- package/.output/server/_ssr/{nativeBuilds-CRLmvFaO.mjs → nativeBuilds-Cub0EUGN.mjs} +135 -13
- package/.output/server/_ssr/{publicConsoleBase-DvHYxDaG.mjs → publicConsoleBase-f67NLLXZ.mjs} +11 -3
- package/.output/server/_ssr/{release-adoption-C7sUFDwa.mjs → release-adoption-DeICczY7.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-DcZAYRWJ.mjs → release-adoption-rpc-Dm-5yAJG.mjs} +8 -8
- package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-gKqDKMxk.mjs → remote-config-D1BhIBKu.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-DOcSXzxG.mjs → remote-config-D7RruPiO.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-BZ_vGV97.mjs → remote-config-ZFm-l4Gi.mjs} +20 -20
- package/.output/server/_ssr/{remote-config-rpc-CVPd3V69.mjs → remote-config-rpc-C7AZy37o.mjs} +3 -3
- package/.output/server/_ssr/{router-Bcyej4cr.mjs → router-BGkGFMsT.mjs} +72 -75
- package/.output/server/_ssr/{routes-B10xsCh4.mjs → routes-CJJxz-Ak.mjs} +304 -230
- package/.output/server/_ssr/{routes-ddBRVSju.mjs → routes-CiJ2dhL9.mjs} +14 -13
- package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
- package/.output/server/_ssr/{schema-migration-rpc-iWZzLv70.mjs → schema-migration-rpc-D4YlwvGH.mjs} +3 -3
- package/.output/server/_ssr/{select-i4WT0c9r.mjs → select-BB8GE7OZ.mjs} +3 -3
- package/.output/server/_ssr/{server-CMgMPrDx.mjs → server-DAHTchcr.mjs} +5 -5
- package/.output/server/_ssr/{sidebar-mIQgB0iy.mjs → sidebar-CsKVgZHa.mjs} +3 -3
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-By4wHYjG.mjs → start-D3noqqOK.mjs} +1 -1
- package/.output/server/_ssr/{switch-DR8EAh5C.mjs → switch-BvvmP7Y3.mjs} +3 -3
- package/.output/server/_ssr/{table-DXmK6G7A.mjs → table-WKKzprFn.mjs} +2 -2
- package/.output/server/_ssr/{tabs-DAfypcYe.mjs → tabs-BJ-4SgmC.mjs} +4 -4
- package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
- package/.output/server/_tanstack-start-manifest_v-CSUJeG5D.mjs +219 -0
- package/.output/server/index.mjs +436 -366
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/DataTable.tsx +21 -2
- package/src/components/FoldedRows.tsx +201 -0
- package/src/components/RowReason.tsx +56 -0
- package/src/components/features/native-builds/InstallCard.tsx +1 -1
- package/src/components/features/native-builds/IosDevicesPage.tsx +892 -0
- package/src/components/features/native-builds/IosInstall.tsx +292 -62
- package/src/components/features/native-builds/IpaDevicesCard.tsx +107 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +7 -0
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +2 -0
- package/src/components/features/native-builds/NativeBuildsTable.tsx +214 -30
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +56 -29
- package/src/lib/api.ts +65 -2
- package/src/lib/ios-devices-api.ts +110 -0
- package/src/lib/ios-devices-rpc.ts +174 -0
- package/src/lib/native-builds.ts +72 -7
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +187 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceProfile.ts +230 -0
- package/src/lib/server/iosDevices.ts +223 -0
- package/src/lib/server/listReleases.ts +101 -62
- package/src/lib/server/nativeBuildInstall.ts +138 -7
- package/src/lib/server/nativeBuilds.ts +221 -26
- package/src/routeTree.gen.ts +64 -67
- package/src/routes/-native-builds-search.ts +20 -0
- 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/index.tsx +444 -299
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
- package/.output/public/assets/RelativeTime-TCmpOVPg.js +0 -1
- package/.output/public/assets/StoreSubmission-CqSg880n.js +0 -1
- package/.output/public/assets/TargetDisplay-DwOaMOiI.js +0 -1
- package/.output/public/assets/api-LQJH44FU.js +0 -1
- package/.output/public/assets/api-keys-4w2-ofii.js +0 -1
- package/.output/public/assets/api-keys-uFY8FsN9.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/card-ulgg5xHn.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-CLIaC82_.js +0 -1
- package/.output/public/assets/empty-Bhlj8PEo.js +0 -1
- package/.output/public/assets/field-q4sTYzNU.js +0 -1
- package/.output/public/assets/history-DakJoeSM.js +0 -1
- package/.output/public/assets/index-CJclLsbG.js +0 -10
- package/.output/public/assets/insights-0TUItqwh.js +0 -1
- package/.output/public/assets/insights-B75txQ_F.js +0 -42
- package/.output/public/assets/insights-C17Z0whn.js +0 -2
- package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
- package/.output/public/assets/insights-usage-rpc-BbFllvi_.js +0 -1
- package/.output/public/assets/insights_.distribution-AZcfvK7x.js +0 -1
- package/.output/public/assets/insights_.distribution-gDqNqI5E.js +0 -2
- package/.output/public/assets/installations-Ap2G2tDs.js +0 -1
- package/.output/public/assets/installations-D0g3xvw8.js +0 -2
- package/.output/public/assets/native-builds-Ba6cEZfm.js +0 -2
- package/.output/public/assets/native-builds-C3_-21we.js +0 -1
- package/.output/public/assets/native-builds_._buildId-BnP31v32.js +0 -1
- package/.output/public/assets/native-builds_._buildId-Cp9LJiMP.js +0 -2
- package/.output/public/assets/plus-BVhOauU3.js +0 -1
- package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
- package/.output/public/assets/remote-config-BRdy8QFR.js +0 -1
- package/.output/public/assets/remote-config-C9p5Pcdj.js +0 -6
- package/.output/public/assets/remote-config-CIAEArwq.js +0 -1
- package/.output/public/assets/routes-BLTF7nwe.js +0 -1
- package/.output/public/assets/search-nnvSOTEB.js +0 -1
- package/.output/public/assets/select-CBIU0_M1.js +0 -1
- package/.output/public/assets/smartphone-r0rRdPas.js +0 -1
- package/.output/public/assets/styles-BdlrKlVs.css +0 -2
- package/.output/public/assets/switch-CP6GsHmN.js +0 -1
- package/.output/public/assets/table-TUtVz-2l.js +0 -1
- package/.output/public/assets/tabs-CP3CSmtI.js +0 -1
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
- package/.output/server/_ssr/listReleases-CQEceg8j.mjs +0 -79
- package/.output/server/_ssr/nativeBuildDevice-DJUAzAIj.mjs +0 -210
- package/.output/server/_tanstack-start-manifest_v-8M7ggCuB.mjs +0 -192
- package/src/lib/server/nativeBuildDevice.ts +0 -253
- package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +0 -17
- package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +0 -17
- package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +0 -17
- /package/.output/public/assets/{uuidv7-cI6C63Fm.js → uuidv7-CVJ09bBG.js} +0 -0
- /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Db73Kirz.js} +0 -0
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
DataCardSkeletons,
|
|
18
18
|
DataCardsEmpty,
|
|
19
19
|
DataTable,
|
|
20
|
+
DataTableBody,
|
|
20
21
|
DataTableEmpty,
|
|
21
22
|
DataTableFrame,
|
|
22
23
|
DataTableFullRow,
|
|
@@ -25,6 +26,15 @@ import {
|
|
|
25
26
|
DataTableSkeletonRows,
|
|
26
27
|
openOutsideControls,
|
|
27
28
|
} from "@/components/DataTable";
|
|
29
|
+
import {
|
|
30
|
+
DataCardFold,
|
|
31
|
+
DataTableFold,
|
|
32
|
+
foldKey,
|
|
33
|
+
foldLabel,
|
|
34
|
+
FoldStatus,
|
|
35
|
+
groupsOf,
|
|
36
|
+
useOpenFolds,
|
|
37
|
+
} from "@/components/FoldedRows";
|
|
28
38
|
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
29
39
|
import { RelativeTime } from "@/components/RelativeTime";
|
|
30
40
|
import {
|
|
@@ -42,6 +52,7 @@ import { Badge } from "@/components/ui/badge";
|
|
|
42
52
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
43
53
|
import { TableCell, TableHead } from "@/components/ui/table";
|
|
44
54
|
import { useIsMobile } from "@/hooks/use-mobile";
|
|
55
|
+
import { useNativeBuildFoldQuery } from "@/lib/api";
|
|
45
56
|
import {
|
|
46
57
|
formatByteSize,
|
|
47
58
|
nativeBuildArtifacts,
|
|
@@ -50,10 +61,12 @@ import {
|
|
|
50
61
|
nativeBuildFileName,
|
|
51
62
|
platformLabel,
|
|
52
63
|
} from "@/lib/native-builds";
|
|
53
|
-
import type {
|
|
64
|
+
import type { Fold } from "@/lib/server/foldedPage";
|
|
65
|
+
import type { NativeBuildFoldedPage } from "@/lib/server/nativeBuilds";
|
|
54
66
|
|
|
55
67
|
import { CopyableText } from "./CopyableText";
|
|
56
68
|
import { IMPORT_COMMAND, IMPORT_GUIDE_URL } from "./ImportBuild";
|
|
69
|
+
import { OlderBuildLabel } from "./OlderBuildLabel";
|
|
57
70
|
import { SandboxBadge } from "./SandboxBadge";
|
|
58
71
|
import { isSubmitted, StoreSubmissionBadge } from "./StoreSubmission";
|
|
59
72
|
|
|
@@ -66,18 +79,29 @@ const COLUMNS = 10;
|
|
|
66
79
|
const channelSearch = (channel: string | undefined) =>
|
|
67
80
|
channel === undefined ? {} : { channel };
|
|
68
81
|
|
|
82
|
+
/** A fold of older builds: "1 older build", "12 older builds". */
|
|
83
|
+
const OLDER_BUILDS = { one: "older build", other: "older builds" } as const;
|
|
84
|
+
|
|
69
85
|
function EmptyState({
|
|
70
86
|
channel,
|
|
71
87
|
paged,
|
|
88
|
+
folded,
|
|
72
89
|
onClearChannel,
|
|
73
90
|
}: {
|
|
74
91
|
readonly channel: string | undefined;
|
|
75
92
|
readonly paged: boolean;
|
|
93
|
+
/** Whether the page holds older builds alone, folded. */
|
|
94
|
+
readonly folded: boolean;
|
|
76
95
|
readonly onClearChannel: () => void;
|
|
77
96
|
}) {
|
|
78
|
-
if (paged) {
|
|
97
|
+
if (paged || folded) {
|
|
79
98
|
return (
|
|
80
|
-
<DataTableEmpty
|
|
99
|
+
<DataTableEmpty
|
|
100
|
+
icon={HardDrive}
|
|
101
|
+
title={
|
|
102
|
+
folded ? "Each build here has a newer one" : "No more native builds"
|
|
103
|
+
}
|
|
104
|
+
>
|
|
81
105
|
<Link
|
|
82
106
|
className={buttonVariants({
|
|
83
107
|
className: "mt-1 min-h-11 sm:min-h-8",
|
|
@@ -294,9 +318,15 @@ const createdAt = (build: NativeBuildRow) =>
|
|
|
294
318
|
|
|
295
319
|
function BuildRow({
|
|
296
320
|
build,
|
|
321
|
+
older = false,
|
|
322
|
+
newer,
|
|
297
323
|
onChannel,
|
|
298
324
|
}: {
|
|
299
325
|
readonly build: NativeBuildRow;
|
|
326
|
+
/** Whether a newer build on its path passes it over: a fold's build. */
|
|
327
|
+
readonly older?: boolean;
|
|
328
|
+
/** That newer build, when it was found. */
|
|
329
|
+
readonly newer?: NativeBuildRow;
|
|
300
330
|
readonly onChannel: (channel: string) => void;
|
|
301
331
|
}) {
|
|
302
332
|
const navigate = useNavigate();
|
|
@@ -304,6 +334,8 @@ function BuildRow({
|
|
|
304
334
|
return (
|
|
305
335
|
<DataTableRow
|
|
306
336
|
aria-label={`Open native build ${build.id}`}
|
|
337
|
+
className="data-[older=true]:bg-muted/35 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/50 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100"
|
|
338
|
+
data-older={older ? true : undefined}
|
|
307
339
|
onOpen={() =>
|
|
308
340
|
void navigate({
|
|
309
341
|
to: "/native-builds/$buildId",
|
|
@@ -339,7 +371,14 @@ function BuildRow({
|
|
|
339
371
|
{formatByteSize(build.byte_size)}
|
|
340
372
|
</TableCell>
|
|
341
373
|
<TableCell className="text-xs text-muted-foreground">
|
|
342
|
-
|
|
374
|
+
{!older ? (
|
|
375
|
+
<RelativeTime ms={createdAt(build)} />
|
|
376
|
+
) : (
|
|
377
|
+
<span className="flex flex-col items-start gap-1">
|
|
378
|
+
<RelativeTime ms={createdAt(build)} />
|
|
379
|
+
<OlderBuildLabel newer={newer} />
|
|
380
|
+
</span>
|
|
381
|
+
)}
|
|
343
382
|
</TableCell>
|
|
344
383
|
<TableCell className="text-right">
|
|
345
384
|
<DownloadButton build={build} />
|
|
@@ -355,9 +394,15 @@ function BuildRow({
|
|
|
355
394
|
*/
|
|
356
395
|
function BuildCard({
|
|
357
396
|
build,
|
|
397
|
+
older = false,
|
|
398
|
+
newer,
|
|
358
399
|
onChannel,
|
|
359
400
|
}: {
|
|
360
401
|
readonly build: NativeBuildRow;
|
|
402
|
+
/** Whether a newer build on its path passes it over: a fold's build. */
|
|
403
|
+
readonly older?: boolean;
|
|
404
|
+
/** That newer build, when it was found. */
|
|
405
|
+
readonly newer?: NativeBuildRow;
|
|
361
406
|
readonly onChannel: (channel: string) => void;
|
|
362
407
|
}) {
|
|
363
408
|
const navigate = useNavigate();
|
|
@@ -366,7 +411,8 @@ function BuildCard({
|
|
|
366
411
|
return (
|
|
367
412
|
<DataCard
|
|
368
413
|
aria-label={`Native build ${buildTitle(build)} ${build.id}`}
|
|
369
|
-
className="gap-3 border-b-0"
|
|
414
|
+
className="gap-3 border-b-0 data-[older=true]:bg-muted/35 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/50 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100"
|
|
415
|
+
data-older={older ? true : undefined}
|
|
370
416
|
onClick={openOutsideControls(
|
|
371
417
|
() =>
|
|
372
418
|
void navigate({
|
|
@@ -383,6 +429,7 @@ function BuildCard({
|
|
|
383
429
|
platform={build.platform}
|
|
384
430
|
/>
|
|
385
431
|
<BuildIdentity build={build} />
|
|
432
|
+
{older ? <OlderBuildLabel newer={newer} /> : null}
|
|
386
433
|
</div>
|
|
387
434
|
<DownloadButton build={build} />
|
|
388
435
|
</div>
|
|
@@ -431,10 +478,106 @@ function BuildCard({
|
|
|
431
478
|
);
|
|
432
479
|
}
|
|
433
480
|
|
|
481
|
+
/**
|
|
482
|
+
* A fold of older builds, where they sit in the list: closed, the number it
|
|
483
|
+
* holds; open, those builds in order, each shaded and saying which newer
|
|
484
|
+
* build passes it over, read a chunk at a time once it opens.
|
|
485
|
+
*/
|
|
486
|
+
function OlderBuildsFold({
|
|
487
|
+
fold,
|
|
488
|
+
channel,
|
|
489
|
+
isMobile,
|
|
490
|
+
open,
|
|
491
|
+
onOpenChange,
|
|
492
|
+
onChannel,
|
|
493
|
+
}: {
|
|
494
|
+
readonly fold: Fold;
|
|
495
|
+
readonly channel: string | undefined;
|
|
496
|
+
readonly isMobile: boolean;
|
|
497
|
+
readonly open: boolean;
|
|
498
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
499
|
+
readonly onChannel: (channel: string) => void;
|
|
500
|
+
}) {
|
|
501
|
+
const query = useNativeBuildFoldQuery(
|
|
502
|
+
channel,
|
|
503
|
+
{ ...(fold.from === undefined ? {} : { from: fold.from }), to: fold.to },
|
|
504
|
+
open,
|
|
505
|
+
);
|
|
506
|
+
const pages = query.data?.pages ?? [];
|
|
507
|
+
const newer = Object.assign({}, ...pages.map((page) => page.newer)) as Record<
|
|
508
|
+
string,
|
|
509
|
+
NativeBuildRow
|
|
510
|
+
>;
|
|
511
|
+
const rows = pages.flatMap((page) => page.rows);
|
|
512
|
+
const columns = isMobile ? undefined : COLUMNS;
|
|
513
|
+
const status = query.isError ? (
|
|
514
|
+
<FoldStatus
|
|
515
|
+
columns={columns}
|
|
516
|
+
label="Older builds"
|
|
517
|
+
onRetry={() => void query.refetch()}
|
|
518
|
+
state="error"
|
|
519
|
+
/>
|
|
520
|
+
) : query.isPending || query.isFetchingNextPage ? (
|
|
521
|
+
<FoldStatus
|
|
522
|
+
columns={columns}
|
|
523
|
+
label="Loading older builds"
|
|
524
|
+
state="loading"
|
|
525
|
+
/>
|
|
526
|
+
) : query.hasNextPage ? (
|
|
527
|
+
<FoldStatus
|
|
528
|
+
columns={columns}
|
|
529
|
+
label="Older builds"
|
|
530
|
+
onMore={() => void query.fetchNextPage()}
|
|
531
|
+
state="more"
|
|
532
|
+
/>
|
|
533
|
+
) : null;
|
|
534
|
+
const props = {
|
|
535
|
+
label: foldLabel(fold, OLDER_BUILDS),
|
|
536
|
+
open,
|
|
537
|
+
onOpenChange,
|
|
538
|
+
panelId: `native-build-fold-${fold.to}`,
|
|
539
|
+
};
|
|
540
|
+
return isMobile ? (
|
|
541
|
+
<DataCardFold {...props} inList>
|
|
542
|
+
{rows.map((build) => (
|
|
543
|
+
<div
|
|
544
|
+
className="border-b last:border-b-0"
|
|
545
|
+
key={build.id}
|
|
546
|
+
role="listitem"
|
|
547
|
+
>
|
|
548
|
+
<BuildCard
|
|
549
|
+
build={build}
|
|
550
|
+
newer={newer[build.id]}
|
|
551
|
+
older
|
|
552
|
+
onChannel={onChannel}
|
|
553
|
+
/>
|
|
554
|
+
</div>
|
|
555
|
+
))}
|
|
556
|
+
{status}
|
|
557
|
+
</DataCardFold>
|
|
558
|
+
) : (
|
|
559
|
+
<DataTableFold {...props} columns={COLUMNS}>
|
|
560
|
+
{rows.map((build) => (
|
|
561
|
+
<BuildRow
|
|
562
|
+
build={build}
|
|
563
|
+
key={build.id}
|
|
564
|
+
newer={newer[build.id]}
|
|
565
|
+
older
|
|
566
|
+
onChannel={onChannel}
|
|
567
|
+
/>
|
|
568
|
+
))}
|
|
569
|
+
{status}
|
|
570
|
+
</DataTableFold>
|
|
571
|
+
);
|
|
572
|
+
}
|
|
573
|
+
|
|
434
574
|
/**
|
|
435
575
|
* The registered native builds, newest first, one page at a time, as a
|
|
436
576
|
* column table like Bundles' on wide screens and cards on narrow ones. A
|
|
437
577
|
* row opens the build's page; its channel filters the list by that channel.
|
|
578
|
+
* A page counts the newest build of each distribution path and the store
|
|
579
|
+
* build; the builds a newer one passes over fold where they sit, each run
|
|
580
|
+
* one fold that opens on its own.
|
|
438
581
|
*/
|
|
439
582
|
export function NativeBuildsTable({
|
|
440
583
|
builds,
|
|
@@ -443,7 +586,7 @@ export function NativeBuildsTable({
|
|
|
443
586
|
onChannel,
|
|
444
587
|
}: {
|
|
445
588
|
readonly builds: {
|
|
446
|
-
readonly data:
|
|
589
|
+
readonly data: NativeBuildFoldedPage | undefined;
|
|
447
590
|
readonly isError: boolean;
|
|
448
591
|
readonly isLoading: boolean;
|
|
449
592
|
readonly isPlaceholderData: boolean;
|
|
@@ -456,8 +599,10 @@ export function NativeBuildsTable({
|
|
|
456
599
|
readonly onChannel: (channel: string | undefined) => void;
|
|
457
600
|
}) {
|
|
458
601
|
const isMobile = useIsMobile();
|
|
459
|
-
const
|
|
602
|
+
const folds = useOpenFolds();
|
|
603
|
+
const entries = builds.data?.entries;
|
|
460
604
|
const { next, previous } = builds.data ?? {};
|
|
605
|
+
const count = entries?.filter(({ kind }) => kind === "row").length ?? 0;
|
|
461
606
|
|
|
462
607
|
if (builds.isError) {
|
|
463
608
|
return (
|
|
@@ -484,10 +629,22 @@ export function NativeBuildsTable({
|
|
|
484
629
|
const empty = (
|
|
485
630
|
<EmptyState
|
|
486
631
|
channel={channel}
|
|
632
|
+
folded={(entries?.length ?? 0) > 0}
|
|
487
633
|
onClearChannel={() => onChannel(undefined)}
|
|
488
634
|
paged={paged}
|
|
489
635
|
/>
|
|
490
636
|
);
|
|
637
|
+
const fold = (entry: Fold) => (
|
|
638
|
+
<OlderBuildsFold
|
|
639
|
+
channel={channel}
|
|
640
|
+
fold={entry}
|
|
641
|
+
isMobile={isMobile}
|
|
642
|
+
key={`fold-${entry.to}`}
|
|
643
|
+
onChannel={onChannel}
|
|
644
|
+
onOpenChange={(open) => folds.set(foldKey(entry), open)}
|
|
645
|
+
open={folds.isOpen(foldKey(entry))}
|
|
646
|
+
/>
|
|
647
|
+
);
|
|
491
648
|
|
|
492
649
|
return (
|
|
493
650
|
<>
|
|
@@ -501,18 +658,23 @@ export function NativeBuildsTable({
|
|
|
501
658
|
>
|
|
502
659
|
{builds.isLoading ? (
|
|
503
660
|
<DataCardSkeletons label="Loading native builds" />
|
|
504
|
-
) : rows?.length === 0 ? (
|
|
505
|
-
<DataCardsEmpty>{empty}</DataCardsEmpty>
|
|
506
661
|
) : (
|
|
507
|
-
|
|
508
|
-
<
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
662
|
+
<>
|
|
663
|
+
{count === 0 ? <DataCardsEmpty>{empty}</DataCardsEmpty> : null}
|
|
664
|
+
{entries?.map((entry) =>
|
|
665
|
+
entry.kind === "fold" ? (
|
|
666
|
+
fold(entry)
|
|
667
|
+
) : (
|
|
668
|
+
<div
|
|
669
|
+
className="border-b last:border-b-0"
|
|
670
|
+
key={entry.row.id}
|
|
671
|
+
role="listitem"
|
|
672
|
+
>
|
|
673
|
+
<BuildCard build={entry.row} onChannel={onChannel} />
|
|
674
|
+
</div>
|
|
675
|
+
),
|
|
676
|
+
)}
|
|
677
|
+
</>
|
|
516
678
|
)}
|
|
517
679
|
</div>
|
|
518
680
|
) : (
|
|
@@ -537,25 +699,47 @@ export function NativeBuildsTable({
|
|
|
537
699
|
</TableHead>
|
|
538
700
|
</>
|
|
539
701
|
}
|
|
702
|
+
rowGroups
|
|
540
703
|
>
|
|
541
704
|
{builds.isLoading ? (
|
|
542
|
-
<
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
705
|
+
<DataTableBody>
|
|
706
|
+
<DataTableSkeletonRows
|
|
707
|
+
columns={COLUMNS}
|
|
708
|
+
label="Loading native builds"
|
|
709
|
+
/>
|
|
710
|
+
</DataTableBody>
|
|
548
711
|
) : (
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
712
|
+
<>
|
|
713
|
+
{count === 0 ? (
|
|
714
|
+
<DataTableBody>
|
|
715
|
+
<DataTableFullRow columns={COLUMNS}>
|
|
716
|
+
{empty}
|
|
717
|
+
</DataTableFullRow>
|
|
718
|
+
</DataTableBody>
|
|
719
|
+
) : null}
|
|
720
|
+
{groupsOf(entries ?? []).map((group) =>
|
|
721
|
+
group.kind === "fold" ? (
|
|
722
|
+
fold(group.fold)
|
|
723
|
+
) : (
|
|
724
|
+
<DataTableBody key={`rows-${group.rows[0]!.id}`}>
|
|
725
|
+
{group.rows.map((build) => (
|
|
726
|
+
<BuildRow
|
|
727
|
+
build={build}
|
|
728
|
+
key={build.id}
|
|
729
|
+
onChannel={onChannel}
|
|
730
|
+
/>
|
|
731
|
+
))}
|
|
732
|
+
</DataTableBody>
|
|
733
|
+
),
|
|
734
|
+
)}
|
|
735
|
+
</>
|
|
552
736
|
)}
|
|
553
737
|
</DataTable>
|
|
554
738
|
)}
|
|
555
739
|
</DataTableFrame>
|
|
556
|
-
{builds.isLoading ||
|
|
740
|
+
{builds.isLoading || entries === undefined ? null : (
|
|
557
741
|
<DataTablePagination
|
|
558
|
-
count={
|
|
742
|
+
count={count}
|
|
559
743
|
label="Native build pages"
|
|
560
744
|
pending={builds.isPlaceholderData}
|
|
561
745
|
newest={
|
|
@@ -575,7 +759,7 @@ export function NativeBuildsTable({
|
|
|
575
759
|
previous === undefined
|
|
576
760
|
? undefined
|
|
577
761
|
: {
|
|
578
|
-
search: { ...channelSearch(channel),
|
|
762
|
+
search: { ...channelSearch(channel), ...previous },
|
|
579
763
|
to: "/native-builds",
|
|
580
764
|
}
|
|
581
765
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { NativeBuildRow } from "@hot-updater/plugin-core";
|
|
2
|
+
import { History } from "lucide-react";
|
|
3
|
+
|
|
4
|
+
import { RowReason } from "@/components/RowReason";
|
|
5
|
+
import { nativeBuildArtifacts, nativeBuildLabel } from "@/lib/native-builds";
|
|
6
|
+
|
|
7
|
+
import { storeTrackLabels } from "./StoreSubmission";
|
|
8
|
+
|
|
9
|
+
/** How an `.ipa`'s export method names it, such as "ad hoc IPA". */
|
|
10
|
+
const EXPORT_METHOD_LABELS = {
|
|
11
|
+
"app-store": "App Store",
|
|
12
|
+
"ad-hoc": "ad hoc",
|
|
13
|
+
development: "development",
|
|
14
|
+
enterprise: "enterprise",
|
|
15
|
+
} as const;
|
|
16
|
+
|
|
17
|
+
/** What a path's builds are called, such as "TestFlight build" or "ad hoc IPA". */
|
|
18
|
+
const pathNoun = (build: NativeBuildRow) => {
|
|
19
|
+
const artifact = nativeBuildArtifacts[build.artifact_kind].label;
|
|
20
|
+
const noun =
|
|
21
|
+
build.submitted_to !== null
|
|
22
|
+
? `${storeTrackLabels[build.submitted_to]} build`
|
|
23
|
+
: build.artifact_kind === "ipa" && build.export_method !== null
|
|
24
|
+
? `${EXPORT_METHOD_LABELS[build.export_method]} ${artifact}`
|
|
25
|
+
: artifact;
|
|
26
|
+
return build.is_sandbox ? `sandbox ${noun}` : noun;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** Why a build shows as older: the newer build on its path, when found. */
|
|
30
|
+
export const olderBuildReason = (newer: NativeBuildRow | undefined) => {
|
|
31
|
+
if (newer === undefined) {
|
|
32
|
+
return {
|
|
33
|
+
sentence: "A newer build on its channel reaches people the same way.",
|
|
34
|
+
label: "Older: a newer build on its channel reaches people the same way",
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
const name = nativeBuildLabel(newer);
|
|
38
|
+
return {
|
|
39
|
+
sentence: `A newer ${pathNoun(newer)} exists${name === null ? "." : `: ${name}`}`,
|
|
40
|
+
label: `Older: a newer ${pathNoun(newer)} exists${name === null ? "" : `, ${name}`}`,
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* "Older" on a build a newer one on its path passes over, quiet like the
|
|
46
|
+
* Bundles list's "Unreachable", naming the newer build. The build may still
|
|
47
|
+
* install, so it says no more.
|
|
48
|
+
*/
|
|
49
|
+
export function OlderBuildLabel({
|
|
50
|
+
newer,
|
|
51
|
+
}: {
|
|
52
|
+
/** The newer build on its path, when it was found. */
|
|
53
|
+
readonly newer?: NativeBuildRow;
|
|
54
|
+
}) {
|
|
55
|
+
const reason = olderBuildReason(newer);
|
|
56
|
+
return (
|
|
57
|
+
<RowReason icon={History} label={reason.label} reason={reason.sentence}>
|
|
58
|
+
Older
|
|
59
|
+
</RowReason>
|
|
60
|
+
);
|
|
61
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -43,6 +43,15 @@ export type HotUpdaterConsoleConfig = Readonly<{
|
|
|
43
43
|
console?: {
|
|
44
44
|
/** The Git repository whose commits the console links bundles to. */
|
|
45
45
|
gitUrl?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The signed-in emails that may approve iPhones and iPads for ad hoc
|
|
48
|
+
* builds, each of which the next build registers with your Apple account
|
|
49
|
+
* and spends one of its yearly device slots on. Left out or empty, nobody
|
|
50
|
+
* approves in this Console: approve from a terminal with
|
|
51
|
+
* `npx hot-updater native-build devices add`. The emails come from the
|
|
52
|
+
* Console's sign-in, so a custom auth adapter must supply verified ones.
|
|
53
|
+
*/
|
|
54
|
+
deviceApprovers?: readonly string[];
|
|
46
55
|
};
|
|
47
56
|
}>;
|
|
48
57
|
|
package/src/lib/api-rpc.ts
CHANGED
|
@@ -9,11 +9,13 @@ import { assertCanonicalChannelName } from "@hot-updater/protocol";
|
|
|
9
9
|
import { createServerFn } from "@tanstack/react-start";
|
|
10
10
|
|
|
11
11
|
import { consoleAccess } from "./console-access";
|
|
12
|
-
import { DEFAULT_PAGE_LIMIT } from "./constants";
|
|
13
12
|
import { channelIdOf, releaseNativeBuildScope } from "./native-builds";
|
|
14
13
|
import { withPublicBundleMutationErrors } from "./public-bundle-error";
|
|
15
|
-
import {
|
|
16
|
-
|
|
14
|
+
import {
|
|
15
|
+
listReleaseFolds,
|
|
16
|
+
readReleaseFilter,
|
|
17
|
+
readReleaseFold,
|
|
18
|
+
} from "./server/listReleases";
|
|
17
19
|
|
|
18
20
|
type GetBundleInput = {
|
|
19
21
|
bundleId: string;
|
|
@@ -34,7 +36,28 @@ type GetReleasesInput = {
|
|
|
34
36
|
beforeReleaseId?: string;
|
|
35
37
|
/** Releases newer than this id: the previous page. */
|
|
36
38
|
afterReleaseId?: string;
|
|
37
|
-
|
|
39
|
+
/** The selected release, which never folds. */
|
|
40
|
+
releaseId?: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** A fold of a list's page, as the page gave it, and where its last chunk ended. */
|
|
44
|
+
type FoldInput = { from?: string; to: string; after?: string };
|
|
45
|
+
|
|
46
|
+
/** The bounds of a fold, checked: IDs as text. */
|
|
47
|
+
const readFoldInput = (input: FoldInput) => {
|
|
48
|
+
const text = (value: unknown) => typeof value === "string" && value !== "";
|
|
49
|
+
if (
|
|
50
|
+
!text(input.to) ||
|
|
51
|
+
(input.from !== undefined && !text(input.from)) ||
|
|
52
|
+
(input.after !== undefined && !text(input.after))
|
|
53
|
+
) {
|
|
54
|
+
throw new Error("A fold is its to, and optionally from and after.");
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
to: input.to,
|
|
58
|
+
...(input.from === undefined ? {} : { from: input.from }),
|
|
59
|
+
...(input.after === undefined ? {} : { after: input.after }),
|
|
60
|
+
};
|
|
38
61
|
};
|
|
39
62
|
|
|
40
63
|
type ReleaseMutationInput = {
|
|
@@ -48,16 +71,6 @@ type DeleteReleaseInput = {
|
|
|
48
71
|
releaseId: string;
|
|
49
72
|
};
|
|
50
73
|
|
|
51
|
-
const MAX_PAGE_LIMIT = 100;
|
|
52
|
-
|
|
53
|
-
const pageLimit = (limit: number | undefined) => {
|
|
54
|
-
const value = limit ?? DEFAULT_PAGE_LIMIT;
|
|
55
|
-
if (!Number.isSafeInteger(value) || value < 1 || value > MAX_PAGE_LIMIT) {
|
|
56
|
-
throw new Error(`limit must be between 1 and ${MAX_PAGE_LIMIT}.`);
|
|
57
|
-
}
|
|
58
|
-
return value;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
74
|
const prepare = async () => {
|
|
62
75
|
const { prepareConfig } = await import("./server/config.server");
|
|
63
76
|
return prepareConfig();
|
|
@@ -73,16 +86,18 @@ export const getReleases = createServerFn({ method: "GET" })
|
|
|
73
86
|
...(input?.beforeReleaseId === undefined
|
|
74
87
|
? {}
|
|
75
88
|
: { beforeReleaseId: input.beforeReleaseId }),
|
|
76
|
-
|
|
89
|
+
...(input?.releaseId === undefined ? {} : { releaseId: input.releaseId }),
|
|
77
90
|
}))
|
|
78
|
-
.handler(async ({ data }) =>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
91
|
+
.handler(async ({ data }) => listReleaseFolds((await prepare()).core, data));
|
|
92
|
+
|
|
93
|
+
/** One chunk of a release page's fold. */
|
|
94
|
+
export const getReleaseFold = createServerFn({ method: "GET" })
|
|
95
|
+
.middleware([consoleAccess])
|
|
96
|
+
.validator((input: FoldInput & { filter?: ReleaseFilter }) => ({
|
|
97
|
+
filter: readReleaseFilter(input.filter),
|
|
98
|
+
...readFoldInput(input),
|
|
99
|
+
}))
|
|
100
|
+
.handler(async ({ data }) => readReleaseFold((await prepare()).core, data));
|
|
86
101
|
|
|
87
102
|
export const getRelease = createServerFn({ method: "GET" })
|
|
88
103
|
.middleware([consoleAccess])
|
|
@@ -257,22 +272,34 @@ export const getNativeBuilds = createServerFn({ method: "GET" })
|
|
|
257
272
|
.middleware([consoleAccess])
|
|
258
273
|
.validator(
|
|
259
274
|
(
|
|
260
|
-
input:
|
|
261
|
-
| { before?: string; after?: string; channel?: string; limit?: number }
|
|
262
|
-
| undefined,
|
|
275
|
+
input: { before?: string; after?: string; channel?: string } | undefined,
|
|
263
276
|
) => ({
|
|
264
277
|
...(input?.before === undefined ? {} : { before: input.before }),
|
|
265
278
|
...(input?.after === undefined ? {} : { after: input.after }),
|
|
266
279
|
...channelIdFilter(input?.channel),
|
|
267
|
-
limit: pageLimit(input?.limit),
|
|
268
280
|
}),
|
|
269
281
|
)
|
|
270
282
|
.handler(async ({ data }) => {
|
|
271
|
-
const [{ core }, {
|
|
283
|
+
const [{ core }, { listNativeBuildFolds }] = await Promise.all([
|
|
284
|
+
prepare(),
|
|
285
|
+
import("./server/nativeBuilds"),
|
|
286
|
+
]);
|
|
287
|
+
return listNativeBuildFolds(core, data);
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
/** One chunk of a native build page's fold. */
|
|
291
|
+
export const getNativeBuildFold = createServerFn({ method: "GET" })
|
|
292
|
+
.middleware([consoleAccess])
|
|
293
|
+
.validator((input: FoldInput & { channel?: string }) => ({
|
|
294
|
+
...channelIdFilter(input.channel),
|
|
295
|
+
...readFoldInput(input),
|
|
296
|
+
}))
|
|
297
|
+
.handler(async ({ data }) => {
|
|
298
|
+
const [{ core }, { readNativeBuildFold }] = await Promise.all([
|
|
272
299
|
prepare(),
|
|
273
300
|
import("./server/nativeBuilds"),
|
|
274
301
|
]);
|
|
275
|
-
return
|
|
302
|
+
return readNativeBuildFold(core, data);
|
|
276
303
|
});
|
|
277
304
|
|
|
278
305
|
/** A native build's page: the build, its built-in bundle, what it is served, and its patches. */
|