@hot-updater/console 1.2.0-rc.27 → 1.2.0-rc.29
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-DdHwfe4q.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-CTBdtFQ8.js +1 -0
- package/.output/public/assets/ChannelBadge-CEabmopB.js +1 -0
- package/.output/public/assets/CompositeItem-KUM5yQVr.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-DUqlpHCp.js → ConsoleFeatureUnavailable-Be-0iTww.js} +1 -1
- package/.output/public/assets/EventDetails-bDOYte1z.js +1 -0
- package/.output/public/assets/HashValueDisplay-D2f0HmyU.js +1 -0
- package/.output/public/assets/{InsightsPageHeader-2bTrjXln.js → InsightsPageHeader-Cj2ROSQO.js} +1 -1
- package/.output/public/assets/IosInstall-CHI2C4Yd.js +1 -0
- package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +1 -0
- package/.output/public/assets/{NotFoundPage-Ckb5GMhh.js → NotFoundPage-CVBtl68B.js} +1 -1
- package/.output/public/assets/{PlatformIcon-CJ69KopR.js → PlatformIcon-DVnzzGqM.js} +1 -1
- package/.output/public/assets/RelativeTime-B4PK8qDw.js +1 -0
- package/.output/public/assets/{RolloutPercentageBadge-G6qt8rVb.js → RolloutPercentageBadge-D_I0Raj2.js} +1 -1
- package/.output/public/assets/RowReason-B7VM1ztc.js +1 -0
- package/.output/public/assets/SandboxBadge-BVxHg_HF.js +1 -0
- package/.output/public/assets/TargetDisplay-KU7JhIWG.js +1 -0
- package/.output/public/assets/{alert-dialog-DiRLrFVe.js → alert-dialog-Ch0QxRsa.js} +1 -1
- package/.output/public/assets/api-C1OPeiG1.js +1 -0
- package/.output/public/assets/api-keys-DLC8jjaM.js +1 -0
- package/.output/public/assets/api-keys-eDnzgFAf.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-FZMD5vvS.js} +1 -1
- package/.output/public/assets/card-CyHYmHue.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-BLj71-Nf.js +1 -0
- package/.output/public/assets/{dist-Bf1BPKMs.js → dist-DAM__Tdz.js} +1 -1
- package/.output/public/assets/download-B2GjTySo.js +1 -0
- package/.output/public/assets/empty--YaE5Z4p.js +1 -0
- package/.output/public/assets/field-CdhSgWhI.js +1 -0
- package/.output/public/assets/git-branch-DG1VDaKq.js +1 -0
- package/.output/public/assets/history-C0wv4htz.js +1 -0
- package/.output/public/assets/index-BdyQq4-k.js +10 -0
- package/.output/public/assets/{input-group-D_NfhUbX.js → input-group-XKLcUGoa.js} +1 -1
- package/.output/public/assets/insights-C94CdeAA.js +1 -0
- package/.output/public/assets/insights-DILMVpk8.js +2 -0
- package/.output/public/assets/insights-_j_ieOyh.js +42 -0
- package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
- package/.output/public/assets/{insights-search-CYPrQVUC.js → insights-search-Bgvg6wSP.js} +1 -1
- package/.output/public/assets/insights-usage-rpc-BUCinjSN.js +1 -0
- package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +2 -0
- package/.output/public/assets/{insights_.distribution-_dZi1_ay.js → insights_.distribution-CRkGNelG.js} +1 -1
- package/.output/public/assets/insights_.distribution-CyAu3RN3.js +1 -0
- package/.output/public/assets/installations-BA01mqJE.js +1 -0
- package/.output/public/assets/installations-BsD6LgNc.js +2 -0
- package/.output/public/assets/installations-CYTzndfP.js +1 -0
- package/.output/public/assets/{key-round-DzBe6DHr.js → key-round-D7UgdXyA.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
- package/.output/public/assets/{list-B6GeoQ_b.js → list-Bm-CfN5g.js} +1 -1
- package/.output/public/assets/loader-circle-iMqC-8ZE.js +1 -0
- package/.output/public/assets/native-builds-BMbws1g5.js +2 -0
- package/.output/public/assets/native-builds-xgHiHQML.js +1 -0
- package/.output/public/assets/native-builds_._buildId-B04z9yfk.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DaMmTcHo.js +2 -0
- package/.output/public/assets/native-builds_.devices-B-u7uLLG.js +2 -0
- package/.output/public/assets/native-builds_.devices-CVNAQtSy.js +1 -0
- package/.output/public/assets/{package-ytYrywZH.js → package-BmfoZ5Zj.js} +1 -1
- package/.output/public/assets/plus-Db0KxLZp.js +1 -0
- package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
- package/.output/public/assets/{refresh-cw-C-tvoCcE.js → refresh-cw-BHhBYjS8.js} +1 -1
- package/.output/public/assets/{relativeTime-DvyxGIsm.js → relativeTime-BYRt19mj.js} +1 -1
- package/.output/public/assets/remote-config-Cxkr7_BP.js +1 -0
- package/.output/public/assets/remote-config-DAOyn5xL.js +1 -0
- package/.output/public/assets/remote-config-DXv25LX1.js +6 -0
- package/.output/public/assets/{rotate-cw-Clk5xTeE.js → rotate-cw-Ba-slJea.js} +1 -1
- package/.output/public/assets/{routes-gQXSzO_n.js → routes-DM3TyTLW.js} +2 -2
- package/.output/public/assets/routes-Des97uK_.js +1 -0
- package/.output/public/assets/search-dJG2BYmx.js +1 -0
- package/.output/public/assets/select-CA8r-UUe.js +1 -0
- package/.output/public/assets/send-DuMOCzbD.js +1 -0
- package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
- package/.output/public/assets/smartphone-D1C6BRd_.js +1 -0
- package/.output/public/assets/styles-BHLI87EH.css +2 -0
- package/.output/public/assets/switch-BsV3d4km.js +1 -0
- package/.output/public/assets/table-D8YjT_ht.js +1 -0
- package/.output/public/assets/tabs-RdhEl9sE.js +1 -0
- package/.output/public/assets/trash-2-B5KIvrXy.js +1 -0
- package/.output/public/assets/{undo-2-Bt0YXG26.js → undo-2-CFcU9dIB.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-CIN7Hpjl.mjs → __23tanstack-start-server-fn-resolver-DTuNq7_z.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 +2 -2
- 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-BaFPllhZ.mjs → BundleIdDisplay-BX6DLh1K.mjs} +3 -3
- package/.output/server/_ssr/ChannelBadge-D7O95Ack.mjs +23 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-C-1Ls1sm.mjs → ConsoleFeatureUnavailable-Dfs3WUZf.mjs} +8 -8
- package/.output/server/_ssr/{EventDetails-jVM6sD8m.mjs → EventDetails-C1Q9caVa.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-C7nja_fn.mjs → HashValueDisplay-SIEeZe0O.mjs} +3 -3
- package/.output/server/_ssr/{InsightsPageHeader-CDJhClRy.mjs → InsightsPageHeader-CAcbXSFD.mjs} +9 -9
- package/.output/server/_ssr/IosInstall-B7yxnQ7o.mjs +615 -0
- package/.output/server/_ssr/NativeBuildsNav-BwoEX7xx.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-DclXpGzY.mjs → NotFoundPage-Cd_nKv04.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CMLs3Wez.mjs → PlatformIcon-BpGOEXjU.mjs} +2 -2
- package/.output/server/_ssr/{RelativeTime-DUr_cgha.mjs → RelativeTime-B5txzq94.mjs} +40 -12
- package/.output/server/_ssr/{RolloutPercentageBadge-Mg4g25Gf.mjs → RolloutPercentageBadge-BEV8btLv.mjs} +4 -4
- package/.output/server/_ssr/RowReason-CEDEk7-N.mjs +186 -0
- package/.output/server/_ssr/{StoreSubmission-CUIg6WXQ.mjs → SandboxBadge-wlOMZIUd.mjs} +17 -17
- package/.output/server/_ssr/{TargetDisplay-C-C8MKuf.mjs → TargetDisplay-076I9qHx.mjs} +6 -23
- package/.output/server/_ssr/{alert-dialog-CiN6BFHg.mjs → alert-dialog-DrD4hAp4.mjs} +2 -2
- package/.output/server/_ssr/{api-BeWenjNl.mjs → api-C1plnjZg.mjs} +74 -17
- package/.output/server/_ssr/{api-keys-DzWwXpi5.mjs → api-keys-Bzn-P-lX.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-Bzaj1vWD.mjs → api-keys-L8_p18pO.mjs} +12 -12
- package/.output/server/_ssr/{api-keys-rpc-BRnZWUpw.mjs → api-keys-rpc-Mne2yo8z.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-B87QoJwB.mjs → api-rpc-ChVBmeca.mjs} +56 -33
- package/.output/server/_ssr/{auth-rpc-CO1_TL1b.mjs → auth-rpc-Dml8l_eq.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-BWTHsAlW.mjs → auth.server-DOShgraQ.mjs} +587 -19
- package/.output/server/_ssr/{badge-C7PdVtoH.mjs → badge-BasQflNy.mjs} +2 -2
- package/.output/server/_ssr/{bundleActivity-BGVvqWx7.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
- package/.output/server/_ssr/{card-BkxhOkGp.mjs → card-BrGGQYC0.mjs} +2 -2
- package/.output/server/_ssr/{config.server-Bvqyj9Ec.mjs → config.server-CVOdMDBk.mjs} +4 -4
- package/.output/server/_ssr/{console-access-CHD7-b3E.mjs → console-access-Bi-abtY-.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-Btkz_ZEj.mjs → console-features-api-Bjxo5ur3.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-DYf3xbak.mjs → console-features-rpc-xzdodg3g.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-fnm03nlH.mjs → dialog-7iMkt9l0.mjs} +2 -2
- package/.output/server/_ssr/{downloadBundle-BX8ODCZT.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
- package/.output/server/_ssr/{empty-BzjaWjuQ.mjs → empty-Chb-YL3R.mjs} +3 -3
- package/.output/server/_ssr/{failureReports-C_CmBF4x.mjs → failureReports-BA2eg11O.mjs} +3 -3
- package/.output/server/_ssr/{field-C2GZCygB.mjs → field-mL_Aa6ff.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-Cu6TtdYb.mjs → input-group-C00_xYka.mjs} +2 -2
- package/.output/server/_ssr/{insights-DuQB3_VX.mjs → insights-BcVNQCXf.mjs} +28 -28
- package/.output/server/_ssr/{insights-DZZsKfdZ.mjs → insights-BdF3o0Yp.mjs} +2 -2
- package/.output/server/_ssr/{insights-D_XXiwXz.mjs → insights-C9sSQPMF.mjs} +5 -5
- package/.output/server/_ssr/{insights-api-a8B90BHl.mjs → insights-api-CShlv9dA.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-DM5dPfnS.mjs → insights-failures-rpc-C-cv9bId.mjs} +10 -10
- package/.output/server/_ssr/{insights-recovery-DOkpqnQ8.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-C81f-2Xa.mjs → insights-recovery-rpc-Ct-jIQZU.mjs} +6 -6
- package/.output/server/_ssr/{insights-rpc-DVbg0dsI.mjs → insights-rpc-Dc0I8O3n.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-sCdCd-8P.mjs → insights-search-D_vVwBwW.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-4KDIN3Kg.mjs → insights-usage-h8fipPTv.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-CKfXb-tc.mjs → insights-usage-rpc-4TR94EHa.mjs} +6 -6
- package/.output/server/_ssr/{insights-usage-rpc-DAwc4FE6.mjs → insights-usage-rpc-D60hOhzl.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-DmQdJZqT.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-FhZMnsNm.mjs → insights_.distribution-BgnfMzw1.mjs} +17 -17
- package/.output/server/_ssr/{insights_.distribution-CvPrNh8j.mjs → insights_.distribution-DkD7uAwA.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-Bq52kUtA.mjs → insights_.distribution-wT1mjWsG.mjs} +2 -2
- package/.output/server/_ssr/{installations-BjOaol_w.mjs → installations-DtRbzy3N.mjs} +2 -2
- package/.output/server/_ssr/{installations-CKe2Srtx.mjs → installations-DvxMRP5u.mjs} +4 -4
- package/.output/server/_ssr/{installations-B2anrEwv.mjs → installations-tFsFnxKk.mjs} +13 -13
- package/.output/server/_ssr/ios-devices-rpc-CIPuCUQ8.mjs +139 -0
- package/.output/server/_ssr/iosDeviceProfile-WyMC1593.mjs +176 -0
- package/.output/server/_ssr/iosDevices-B0TjF_sb.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-DSOAh1CX.mjs → native-builds-C458T7Ts.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-BsfydODe.mjs → native-builds-C5WxR0BT.mjs} +235 -90
- package/.output/server/_ssr/{native-builds_._buildId-BOedzqOS.mjs → native-builds_._buildId-CyCGKZ1H.mjs} +165 -323
- package/.output/server/_ssr/{native-builds_._buildId-DSfes24H.mjs → native-builds_._buildId-UsgsqKI8.mjs} +3 -3
- package/.output/server/_ssr/native-builds_.devices-BcfLIzJs.mjs +10 -0
- package/.output/server/_ssr/native-builds_.devices-BpTcIWm0.mjs +689 -0
- package/.output/server/_ssr/{nativeBuildDownloadLink-D-yCU-H7.mjs → nativeBuildDownloadLink-CtB2G7qG.mjs} +3 -3
- package/.output/server/_ssr/{nativeBuildInstall-szlEt-t_.mjs → nativeBuildInstall-PavEyZtZ.mjs} +56 -8
- 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-DHqnRw73.mjs → release-adoption-rpc-DkT6ui4_.mjs} +8 -8
- package/.output/server/_ssr/{releaseAdoption-D6ScSu-W.mjs → releaseAdoption-kHZo8P90.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-D2wHSNjm.mjs → remote-config-BKlK0dFP.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-Byc4JHkB.mjs → remote-config-D_nQT__6.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-ZOfBMLtE.mjs → remote-config-rpc-BW6lyp9Y.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-DkrjdfMC.mjs → remote-config-v1hs050H.mjs} +24 -24
- package/.output/server/_ssr/{router-D0GDdWkI.mjs → router-hKO__Vrv.mjs} +74 -77
- package/.output/server/_ssr/{routes-C10oCddR.mjs → routes-DKxm5A7X.mjs} +312 -233
- package/.output/server/_ssr/{routes-ChnyY2qP.mjs → routes-OhljAvlx.mjs} +15 -14
- package/.output/server/_ssr/{runtime.server-wcHT2Cop.mjs → runtime.server-CkSbWaZm.mjs} +2 -2
- package/.output/server/_ssr/{schema-migration-rpc-BKRs4MNf.mjs → schema-migration-rpc-DrrYEFqy.mjs} +3 -3
- package/.output/server/_ssr/{select-B9du7Z50.mjs → select-M4kWGKJW.mjs} +3 -3
- package/.output/server/_ssr/{server-CApi3lVS.mjs → server-4hXySEh0.mjs} +5 -5
- package/.output/server/_ssr/{sidebar-BwMkm72O.mjs → sidebar-CFlo6lny.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-DyShvUOF.mjs → switch-xTCGSBdC.mjs} +3 -3
- package/.output/server/_ssr/{table-DMj6AnqH.mjs → table-CqdaVMjd.mjs} +2 -2
- package/.output/server/_ssr/{tabs-5a_JPYme.mjs → tabs-DtMAFr25.mjs} +4 -4
- package/.output/server/_ssr/{updateFailures-DNiv3S_y.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
- package/.output/server/_tanstack-start-manifest_v-CYfHRC4i.mjs +225 -0
- package/.output/server/index.mjs +452 -375
- package/lib/index.d.mts +9 -0
- package/package.json +7 -7
- package/src/components/DataTable.tsx +47 -3
- package/src/components/FoldedRows.tsx +219 -0
- package/src/components/RowReason.tsx +56 -0
- package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +2 -2
- package/src/components/features/native-builds/CommitLink.tsx +2 -1
- package/src/components/features/native-builds/InstallCard.tsx +77 -40
- package/src/components/features/native-builds/IosDevicesPage.tsx +925 -0
- package/src/components/features/native-builds/IosInstall.tsx +375 -73
- package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -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 +220 -32
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/components/features/native-builds/ShortHash.tsx +5 -2
- package/src/components/features/remote-config/PublishDialog.tsx +4 -1
- package/src/components/features/remote-config/VersionsCard.tsx +5 -2
- package/src/components/ui/sonner.tsx +3 -1
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +70 -30
- package/src/lib/api.ts +65 -2
- package/src/lib/ios-devices-api.ts +110 -0
- package/src/lib/ios-devices-rpc.ts +183 -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 +147 -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 +447 -299
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/src/styles.css +2 -2
- package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +0 -1
- package/.output/public/assets/EventDetails-DZsRlDHk.js +0 -1
- package/.output/public/assets/HashValueDisplay-MoZMmTeP.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/installations-Y_7QW_p8.js +0 -1
- 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-DAoOOpz9.js} +0 -0
- /package/.output/public/assets/{valueToPercent-B6X9rUJM.js → valueToPercent-Bn8p2lng.js} +0 -0
|
@@ -28,9 +28,11 @@ import {
|
|
|
28
28
|
|
|
29
29
|
import { BuiltInBundleCard } from "./BuiltInBundleCard";
|
|
30
30
|
import { InstallCard } from "./InstallCard";
|
|
31
|
+
import { IpaDevicesCard } from "./IpaDevicesCard";
|
|
31
32
|
import { PatchesCard } from "./PatchesCard";
|
|
32
33
|
import { SandboxBadge } from "./SandboxBadge";
|
|
33
34
|
import { ServedNowCard } from "./ServedNowCard";
|
|
35
|
+
import { isSubmitted } from "./StoreSubmission";
|
|
34
36
|
|
|
35
37
|
export interface NativeBuildDetailSearch {
|
|
36
38
|
/** Patches older than this target bundle: the next page. */
|
|
@@ -160,6 +162,11 @@ export function NativeBuildDetailPage({
|
|
|
160
162
|
) : (
|
|
161
163
|
<>
|
|
162
164
|
<InstallCard build={detail.build} />
|
|
165
|
+
{/* A store's IPA lists no devices: its page reads nothing more. */}
|
|
166
|
+
{detail.build.artifact_kind === "ipa" &&
|
|
167
|
+
!isSubmitted(detail.build) ? (
|
|
168
|
+
<IpaDevicesCard build={detail.build} />
|
|
169
|
+
) : null}
|
|
163
170
|
<BuiltInBundleCard detail={detail} />
|
|
164
171
|
<ServedNowCard detail={detail} />
|
|
165
172
|
<PatchesCard
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Link } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
import { tabsListVariants } from "@/components/ui/tabs";
|
|
4
|
+
import { cn } from "@/lib/utils";
|
|
5
|
+
|
|
6
|
+
const TAB_CLASS =
|
|
7
|
+
"relative inline-flex h-full items-center justify-center rounded-md border border-transparent px-3 text-xs font-medium whitespace-nowrap text-foreground/60 transition-colors hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none aria-[current=page]:bg-background aria-[current=page]:text-foreground aria-[current=page]:shadow-sm dark:text-muted-foreground dark:hover:text-foreground dark:aria-[current=page]:border-input dark:aria-[current=page]:bg-input/30 dark:aria-[current=page]:text-foreground";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The two views of Native builds: the builds, and the iOS devices ad hoc
|
|
11
|
+
* builds install on. Links, so each view has its own URL and Back works.
|
|
12
|
+
*/
|
|
13
|
+
export function NativeBuildsNav({
|
|
14
|
+
current,
|
|
15
|
+
}: {
|
|
16
|
+
readonly current: "builds" | "devices";
|
|
17
|
+
}) {
|
|
18
|
+
return (
|
|
19
|
+
<nav
|
|
20
|
+
aria-label="Native builds views"
|
|
21
|
+
className={cn(
|
|
22
|
+
tabsListVariants(),
|
|
23
|
+
"h-11 sm:h-8 [&>a]:min-h-10 sm:[&>a]:min-h-0",
|
|
24
|
+
)}
|
|
25
|
+
>
|
|
26
|
+
<Link
|
|
27
|
+
activeOptions={{ exact: true, includeSearch: false }}
|
|
28
|
+
aria-current={current === "builds" ? "page" : undefined}
|
|
29
|
+
className={TAB_CLASS}
|
|
30
|
+
to="/native-builds"
|
|
31
|
+
>
|
|
32
|
+
Builds
|
|
33
|
+
</Link>
|
|
34
|
+
<Link
|
|
35
|
+
activeOptions={{ exact: true, includeSearch: false }}
|
|
36
|
+
aria-current={current === "devices" ? "page" : undefined}
|
|
37
|
+
className={TAB_CLASS}
|
|
38
|
+
to="/native-builds/devices"
|
|
39
|
+
>
|
|
40
|
+
iOS devices
|
|
41
|
+
</Link>
|
|
42
|
+
</nav>
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
} from "@/lib/api";
|
|
18
18
|
|
|
19
19
|
import { ImportBuildDialog } from "./ImportBuild";
|
|
20
|
+
import { NativeBuildsNav } from "./NativeBuildsNav";
|
|
20
21
|
import { NativeBuildsTable } from "./NativeBuildsTable";
|
|
21
22
|
|
|
22
23
|
/**
|
|
@@ -69,6 +70,7 @@ export function NativeBuildsPage({
|
|
|
69
70
|
</header>
|
|
70
71
|
|
|
71
72
|
<div className="flex min-h-0 min-w-0 flex-1 flex-col gap-4 bg-muted/5 p-3 sm:p-6">
|
|
73
|
+
<NativeBuildsNav current="builds" />
|
|
72
74
|
<div className="flex items-center gap-2">
|
|
73
75
|
<Select
|
|
74
76
|
items={[
|
|
@@ -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,16 @@ 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
|
+
foldedTotal,
|
|
36
|
+
groupsOf,
|
|
37
|
+
useOpenFolds,
|
|
38
|
+
} from "@/components/FoldedRows";
|
|
28
39
|
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
29
40
|
import { RelativeTime } from "@/components/RelativeTime";
|
|
30
41
|
import {
|
|
@@ -42,6 +53,7 @@ import { Badge } from "@/components/ui/badge";
|
|
|
42
53
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
43
54
|
import { TableCell, TableHead } from "@/components/ui/table";
|
|
44
55
|
import { useIsMobile } from "@/hooks/use-mobile";
|
|
56
|
+
import { useNativeBuildFoldQuery } from "@/lib/api";
|
|
45
57
|
import {
|
|
46
58
|
formatByteSize,
|
|
47
59
|
nativeBuildArtifacts,
|
|
@@ -50,10 +62,12 @@ import {
|
|
|
50
62
|
nativeBuildFileName,
|
|
51
63
|
platformLabel,
|
|
52
64
|
} from "@/lib/native-builds";
|
|
53
|
-
import type {
|
|
65
|
+
import type { Fold } from "@/lib/server/foldedPage";
|
|
66
|
+
import type { NativeBuildFoldedPage } from "@/lib/server/nativeBuilds";
|
|
54
67
|
|
|
55
68
|
import { CopyableText } from "./CopyableText";
|
|
56
69
|
import { IMPORT_COMMAND, IMPORT_GUIDE_URL } from "./ImportBuild";
|
|
70
|
+
import { OlderBuildLabel } from "./OlderBuildLabel";
|
|
57
71
|
import { SandboxBadge } from "./SandboxBadge";
|
|
58
72
|
import { isSubmitted, StoreSubmissionBadge } from "./StoreSubmission";
|
|
59
73
|
|
|
@@ -66,18 +80,29 @@ const COLUMNS = 10;
|
|
|
66
80
|
const channelSearch = (channel: string | undefined) =>
|
|
67
81
|
channel === undefined ? {} : { channel };
|
|
68
82
|
|
|
83
|
+
/** A fold of older builds: "1 older build", "12 older builds". */
|
|
84
|
+
const OLDER_BUILDS = { one: "older build", other: "older builds" } as const;
|
|
85
|
+
|
|
69
86
|
function EmptyState({
|
|
70
87
|
channel,
|
|
71
88
|
paged,
|
|
89
|
+
folded,
|
|
72
90
|
onClearChannel,
|
|
73
91
|
}: {
|
|
74
92
|
readonly channel: string | undefined;
|
|
75
93
|
readonly paged: boolean;
|
|
94
|
+
/** Whether the page holds older builds alone, folded. */
|
|
95
|
+
readonly folded: boolean;
|
|
76
96
|
readonly onClearChannel: () => void;
|
|
77
97
|
}) {
|
|
78
|
-
if (paged) {
|
|
98
|
+
if (paged || folded) {
|
|
79
99
|
return (
|
|
80
|
-
<DataTableEmpty
|
|
100
|
+
<DataTableEmpty
|
|
101
|
+
icon={HardDrive}
|
|
102
|
+
title={
|
|
103
|
+
folded ? "Each build here has a newer one" : "No more native builds"
|
|
104
|
+
}
|
|
105
|
+
>
|
|
81
106
|
<Link
|
|
82
107
|
className={buttonVariants({
|
|
83
108
|
className: "mt-1 min-h-11 sm:min-h-8",
|
|
@@ -181,21 +206,29 @@ function BuildLink({ build }: { readonly build: NativeBuildRow }) {
|
|
|
181
206
|
* cell the tag sits beside the kind, so a sandbox row is as tall as any other,
|
|
182
207
|
* and the cell is capped at its widest short kind ("AAB Sandbox"): only a
|
|
183
208
|
* longer kind, such as a sandbox "Simulator app", puts its tag under it rather
|
|
184
|
-
* than widen the table past its frame.
|
|
185
|
-
*
|
|
209
|
+
* than widen the table past its frame. A fold's build says "Older" after them,
|
|
210
|
+
* as a Bundles row says "Unreachable" beside its ID, wrapping under the kind
|
|
211
|
+
* within the same cap. On a card the tag sits beside the kind, under it only
|
|
212
|
+
* when a narrow card has no room.
|
|
186
213
|
*/
|
|
187
214
|
function BuildIdentity({
|
|
188
215
|
build,
|
|
189
216
|
inTable = false,
|
|
217
|
+
older = false,
|
|
218
|
+
newer,
|
|
190
219
|
}: {
|
|
191
220
|
readonly build: NativeBuildRow;
|
|
192
221
|
readonly inTable?: boolean;
|
|
222
|
+
/** "Older" after the kind and its tag, where Bundles says "Unreachable". */
|
|
223
|
+
readonly older?: boolean;
|
|
224
|
+
readonly newer?: NativeBuildRow;
|
|
193
225
|
}) {
|
|
194
226
|
if (inTable) {
|
|
195
227
|
return (
|
|
196
228
|
<span className="flex max-w-24 flex-wrap items-center gap-x-1.5 gap-y-1">
|
|
197
229
|
<BuildLink build={build} />
|
|
198
230
|
<SandboxBadge build={build} />
|
|
231
|
+
{older ? <OlderBuildLabel newer={newer} /> : null}
|
|
199
232
|
</span>
|
|
200
233
|
);
|
|
201
234
|
}
|
|
@@ -294,9 +327,15 @@ const createdAt = (build: NativeBuildRow) =>
|
|
|
294
327
|
|
|
295
328
|
function BuildRow({
|
|
296
329
|
build,
|
|
330
|
+
older = false,
|
|
331
|
+
newer,
|
|
297
332
|
onChannel,
|
|
298
333
|
}: {
|
|
299
334
|
readonly build: NativeBuildRow;
|
|
335
|
+
/** Whether a newer build on its path passes it over: a fold's build. */
|
|
336
|
+
readonly older?: boolean;
|
|
337
|
+
/** That newer build, when it was found. */
|
|
338
|
+
readonly newer?: NativeBuildRow;
|
|
300
339
|
readonly onChannel: (channel: string) => void;
|
|
301
340
|
}) {
|
|
302
341
|
const navigate = useNavigate();
|
|
@@ -304,6 +343,8 @@ function BuildRow({
|
|
|
304
343
|
return (
|
|
305
344
|
<DataTableRow
|
|
306
345
|
aria-label={`Open native build ${build.id}`}
|
|
346
|
+
className="data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100"
|
|
347
|
+
data-older={older ? true : undefined}
|
|
307
348
|
onOpen={() =>
|
|
308
349
|
void navigate({
|
|
309
350
|
to: "/native-builds/$buildId",
|
|
@@ -312,7 +353,7 @@ function BuildRow({
|
|
|
312
353
|
}
|
|
313
354
|
>
|
|
314
355
|
<TableCell>
|
|
315
|
-
<BuildIdentity build={build} inTable />
|
|
356
|
+
<BuildIdentity build={build} inTable newer={newer} older={older} />
|
|
316
357
|
</TableCell>
|
|
317
358
|
<TableCell>
|
|
318
359
|
<ChannelFilterButton channel={channel} onChannel={onChannel} />
|
|
@@ -355,9 +396,15 @@ function BuildRow({
|
|
|
355
396
|
*/
|
|
356
397
|
function BuildCard({
|
|
357
398
|
build,
|
|
399
|
+
older = false,
|
|
400
|
+
newer,
|
|
358
401
|
onChannel,
|
|
359
402
|
}: {
|
|
360
403
|
readonly build: NativeBuildRow;
|
|
404
|
+
/** Whether a newer build on its path passes it over: a fold's build. */
|
|
405
|
+
readonly older?: boolean;
|
|
406
|
+
/** That newer build, when it was found. */
|
|
407
|
+
readonly newer?: NativeBuildRow;
|
|
361
408
|
readonly onChannel: (channel: string) => void;
|
|
362
409
|
}) {
|
|
363
410
|
const navigate = useNavigate();
|
|
@@ -366,7 +413,8 @@ function BuildCard({
|
|
|
366
413
|
return (
|
|
367
414
|
<DataCard
|
|
368
415
|
aria-label={`Native build ${buildTitle(build)} ${build.id}`}
|
|
369
|
-
className="gap-3 border-b-0"
|
|
416
|
+
className="gap-3 border-b-0 data-[older=true]:bg-muted/60 data-[older=true]:saturate-50 data-[older=true]:hover:bg-muted/60 data-[older=true]:hover:saturate-100 data-[older=true]:focus-within:saturate-100"
|
|
417
|
+
data-older={older ? true : undefined}
|
|
370
418
|
onClick={openOutsideControls(
|
|
371
419
|
() =>
|
|
372
420
|
void navigate({
|
|
@@ -383,6 +431,7 @@ function BuildCard({
|
|
|
383
431
|
platform={build.platform}
|
|
384
432
|
/>
|
|
385
433
|
<BuildIdentity build={build} />
|
|
434
|
+
{older ? <OlderBuildLabel newer={newer} /> : null}
|
|
386
435
|
</div>
|
|
387
436
|
<DownloadButton build={build} />
|
|
388
437
|
</div>
|
|
@@ -431,10 +480,106 @@ function BuildCard({
|
|
|
431
480
|
);
|
|
432
481
|
}
|
|
433
482
|
|
|
483
|
+
/**
|
|
484
|
+
* A fold of older builds, where they sit in the list: closed, the number it
|
|
485
|
+
* holds; open, those builds in order, each shaded and saying which newer
|
|
486
|
+
* build passes it over, read a chunk at a time once it opens.
|
|
487
|
+
*/
|
|
488
|
+
function OlderBuildsFold({
|
|
489
|
+
fold,
|
|
490
|
+
channel,
|
|
491
|
+
isMobile,
|
|
492
|
+
open,
|
|
493
|
+
onOpenChange,
|
|
494
|
+
onChannel,
|
|
495
|
+
}: {
|
|
496
|
+
readonly fold: Fold;
|
|
497
|
+
readonly channel: string | undefined;
|
|
498
|
+
readonly isMobile: boolean;
|
|
499
|
+
readonly open: boolean;
|
|
500
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
501
|
+
readonly onChannel: (channel: string) => void;
|
|
502
|
+
}) {
|
|
503
|
+
const query = useNativeBuildFoldQuery(
|
|
504
|
+
channel,
|
|
505
|
+
{ ...(fold.from === undefined ? {} : { from: fold.from }), to: fold.to },
|
|
506
|
+
open,
|
|
507
|
+
);
|
|
508
|
+
const pages = query.data?.pages ?? [];
|
|
509
|
+
const newer = Object.assign({}, ...pages.map((page) => page.newer)) as Record<
|
|
510
|
+
string,
|
|
511
|
+
NativeBuildRow
|
|
512
|
+
>;
|
|
513
|
+
const rows = pages.flatMap((page) => page.rows);
|
|
514
|
+
const columns = isMobile ? undefined : COLUMNS;
|
|
515
|
+
const status = query.isError ? (
|
|
516
|
+
<FoldStatus
|
|
517
|
+
columns={columns}
|
|
518
|
+
label="Older builds"
|
|
519
|
+
onRetry={() => void query.refetch()}
|
|
520
|
+
state="error"
|
|
521
|
+
/>
|
|
522
|
+
) : query.isPending || query.isFetchingNextPage ? (
|
|
523
|
+
<FoldStatus
|
|
524
|
+
columns={columns}
|
|
525
|
+
label="Loading older builds"
|
|
526
|
+
state="loading"
|
|
527
|
+
/>
|
|
528
|
+
) : query.hasNextPage ? (
|
|
529
|
+
<FoldStatus
|
|
530
|
+
columns={columns}
|
|
531
|
+
label="Older builds"
|
|
532
|
+
onMore={() => void query.fetchNextPage()}
|
|
533
|
+
state="more"
|
|
534
|
+
/>
|
|
535
|
+
) : null;
|
|
536
|
+
const props = {
|
|
537
|
+
label: foldLabel(fold, OLDER_BUILDS),
|
|
538
|
+
open,
|
|
539
|
+
onOpenChange,
|
|
540
|
+
panelId: `native-build-fold-${fold.to}`,
|
|
541
|
+
};
|
|
542
|
+
return isMobile ? (
|
|
543
|
+
<DataCardFold {...props} inList>
|
|
544
|
+
{rows.map((build) => (
|
|
545
|
+
<div
|
|
546
|
+
className="border-b last:border-b-0"
|
|
547
|
+
key={build.id}
|
|
548
|
+
role="listitem"
|
|
549
|
+
>
|
|
550
|
+
<BuildCard
|
|
551
|
+
build={build}
|
|
552
|
+
newer={newer[build.id]}
|
|
553
|
+
older
|
|
554
|
+
onChannel={onChannel}
|
|
555
|
+
/>
|
|
556
|
+
</div>
|
|
557
|
+
))}
|
|
558
|
+
{status}
|
|
559
|
+
</DataCardFold>
|
|
560
|
+
) : (
|
|
561
|
+
<DataTableFold {...props} columns={COLUMNS}>
|
|
562
|
+
{rows.map((build) => (
|
|
563
|
+
<BuildRow
|
|
564
|
+
build={build}
|
|
565
|
+
key={build.id}
|
|
566
|
+
newer={newer[build.id]}
|
|
567
|
+
older
|
|
568
|
+
onChannel={onChannel}
|
|
569
|
+
/>
|
|
570
|
+
))}
|
|
571
|
+
{status}
|
|
572
|
+
</DataTableFold>
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
|
|
434
576
|
/**
|
|
435
577
|
* The registered native builds, newest first, one page at a time, as a
|
|
436
578
|
* column table like Bundles' on wide screens and cards on narrow ones. A
|
|
437
579
|
* row opens the build's page; its channel filters the list by that channel.
|
|
580
|
+
* A page counts the newest build of each distribution path and the store
|
|
581
|
+
* build; the builds a newer one passes over fold where they sit, each run
|
|
582
|
+
* one fold that opens on its own.
|
|
438
583
|
*/
|
|
439
584
|
export function NativeBuildsTable({
|
|
440
585
|
builds,
|
|
@@ -443,7 +588,7 @@ export function NativeBuildsTable({
|
|
|
443
588
|
onChannel,
|
|
444
589
|
}: {
|
|
445
590
|
readonly builds: {
|
|
446
|
-
readonly data:
|
|
591
|
+
readonly data: NativeBuildFoldedPage | undefined;
|
|
447
592
|
readonly isError: boolean;
|
|
448
593
|
readonly isLoading: boolean;
|
|
449
594
|
readonly isPlaceholderData: boolean;
|
|
@@ -456,8 +601,10 @@ export function NativeBuildsTable({
|
|
|
456
601
|
readonly onChannel: (channel: string | undefined) => void;
|
|
457
602
|
}) {
|
|
458
603
|
const isMobile = useIsMobile();
|
|
459
|
-
const
|
|
604
|
+
const folds = useOpenFolds();
|
|
605
|
+
const entries = builds.data?.entries;
|
|
460
606
|
const { next, previous } = builds.data ?? {};
|
|
607
|
+
const count = entries?.filter(({ kind }) => kind === "row").length ?? 0;
|
|
461
608
|
|
|
462
609
|
if (builds.isError) {
|
|
463
610
|
return (
|
|
@@ -484,10 +631,22 @@ export function NativeBuildsTable({
|
|
|
484
631
|
const empty = (
|
|
485
632
|
<EmptyState
|
|
486
633
|
channel={channel}
|
|
634
|
+
folded={(entries?.length ?? 0) > 0}
|
|
487
635
|
onClearChannel={() => onChannel(undefined)}
|
|
488
636
|
paged={paged}
|
|
489
637
|
/>
|
|
490
638
|
);
|
|
639
|
+
const fold = (entry: Fold) => (
|
|
640
|
+
<OlderBuildsFold
|
|
641
|
+
channel={channel}
|
|
642
|
+
fold={entry}
|
|
643
|
+
isMobile={isMobile}
|
|
644
|
+
key={`fold-${entry.to}`}
|
|
645
|
+
onChannel={onChannel}
|
|
646
|
+
onOpenChange={(open) => folds.set(foldKey(entry), open)}
|
|
647
|
+
open={folds.isOpen(foldKey(entry))}
|
|
648
|
+
/>
|
|
649
|
+
);
|
|
491
650
|
|
|
492
651
|
return (
|
|
493
652
|
<>
|
|
@@ -501,18 +660,23 @@ export function NativeBuildsTable({
|
|
|
501
660
|
>
|
|
502
661
|
{builds.isLoading ? (
|
|
503
662
|
<DataCardSkeletons label="Loading native builds" />
|
|
504
|
-
) : rows?.length === 0 ? (
|
|
505
|
-
<DataCardsEmpty>{empty}</DataCardsEmpty>
|
|
506
663
|
) : (
|
|
507
|
-
|
|
508
|
-
<
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
664
|
+
<>
|
|
665
|
+
{count === 0 ? <DataCardsEmpty>{empty}</DataCardsEmpty> : null}
|
|
666
|
+
{entries?.map((entry) =>
|
|
667
|
+
entry.kind === "fold" ? (
|
|
668
|
+
fold(entry)
|
|
669
|
+
) : (
|
|
670
|
+
<div
|
|
671
|
+
className="border-b last:border-b-0"
|
|
672
|
+
key={entry.row.id}
|
|
673
|
+
role="listitem"
|
|
674
|
+
>
|
|
675
|
+
<BuildCard build={entry.row} onChannel={onChannel} />
|
|
676
|
+
</div>
|
|
677
|
+
),
|
|
678
|
+
)}
|
|
679
|
+
</>
|
|
516
680
|
)}
|
|
517
681
|
</div>
|
|
518
682
|
) : (
|
|
@@ -537,26 +701,50 @@ export function NativeBuildsTable({
|
|
|
537
701
|
</TableHead>
|
|
538
702
|
</>
|
|
539
703
|
}
|
|
704
|
+
rowGroups
|
|
540
705
|
>
|
|
541
706
|
{builds.isLoading ? (
|
|
542
|
-
<
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
707
|
+
<DataTableBody>
|
|
708
|
+
<DataTableSkeletonRows
|
|
709
|
+
columns={COLUMNS}
|
|
710
|
+
label="Loading native builds"
|
|
711
|
+
/>
|
|
712
|
+
</DataTableBody>
|
|
548
713
|
) : (
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
714
|
+
<>
|
|
715
|
+
{count === 0 ? (
|
|
716
|
+
<DataTableBody>
|
|
717
|
+
<DataTableFullRow columns={COLUMNS}>
|
|
718
|
+
{empty}
|
|
719
|
+
</DataTableFullRow>
|
|
720
|
+
</DataTableBody>
|
|
721
|
+
) : null}
|
|
722
|
+
{groupsOf(entries ?? []).map((group) =>
|
|
723
|
+
group.kind === "fold" ? (
|
|
724
|
+
fold(group.fold)
|
|
725
|
+
) : (
|
|
726
|
+
<DataTableBody key={`rows-${group.rows[0]!.id}`}>
|
|
727
|
+
{group.rows.map((build) => (
|
|
728
|
+
<BuildRow
|
|
729
|
+
build={build}
|
|
730
|
+
key={build.id}
|
|
731
|
+
onChannel={onChannel}
|
|
732
|
+
/>
|
|
733
|
+
))}
|
|
734
|
+
</DataTableBody>
|
|
735
|
+
),
|
|
736
|
+
)}
|
|
737
|
+
</>
|
|
552
738
|
)}
|
|
553
739
|
</DataTable>
|
|
554
740
|
)}
|
|
555
741
|
</DataTableFrame>
|
|
556
|
-
{builds.isLoading ||
|
|
742
|
+
{builds.isLoading || entries === undefined ? null : (
|
|
557
743
|
<DataTablePagination
|
|
558
|
-
count={
|
|
744
|
+
count={count}
|
|
745
|
+
folded={{ ...foldedTotal(entries), label: "older" }}
|
|
559
746
|
label="Native build pages"
|
|
747
|
+
noun={["build", "builds"]}
|
|
560
748
|
pending={builds.isPlaceholderData}
|
|
561
749
|
newest={
|
|
562
750
|
paged
|
|
@@ -575,7 +763,7 @@ export function NativeBuildsTable({
|
|
|
575
763
|
previous === undefined
|
|
576
764
|
? undefined
|
|
577
765
|
: {
|
|
578
|
-
search: { ...channelSearch(channel),
|
|
766
|
+
search: { ...channelSearch(channel), ...previous },
|
|
579
767
|
to: "/native-builds",
|
|
580
768
|
}
|
|
581
769
|
}
|
|
@@ -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
|
+
}
|
|
@@ -7,11 +7,14 @@ import { toast } from "sonner";
|
|
|
7
7
|
export function ShortHash({
|
|
8
8
|
value,
|
|
9
9
|
length,
|
|
10
|
+
shown = value.slice(0, length),
|
|
10
11
|
label,
|
|
11
12
|
}: {
|
|
12
13
|
readonly value: string;
|
|
13
14
|
/** How many leading characters show, such as 7 for a commit. */
|
|
14
|
-
readonly length
|
|
15
|
+
readonly length?: number;
|
|
16
|
+
/** What shows in place of the prefix, such as a masked UDID. */
|
|
17
|
+
readonly shown?: string;
|
|
15
18
|
/** What the value is, for the copy button, such as "commit". */
|
|
16
19
|
readonly label: string;
|
|
17
20
|
}) {
|
|
@@ -35,7 +38,7 @@ export function ShortHash({
|
|
|
35
38
|
translate="no"
|
|
36
39
|
type="button"
|
|
37
40
|
>
|
|
38
|
-
{
|
|
41
|
+
{shown}
|
|
39
42
|
</button>
|
|
40
43
|
);
|
|
41
44
|
}
|
|
@@ -311,7 +311,10 @@ export function PublishDialog({
|
|
|
311
311
|
type="submit"
|
|
312
312
|
>
|
|
313
313
|
{publish.isPending ? (
|
|
314
|
-
<Loader2
|
|
314
|
+
<Loader2
|
|
315
|
+
className="animate-spin motion-reduce:animate-none"
|
|
316
|
+
data-icon="inline-start"
|
|
317
|
+
/>
|
|
315
318
|
) : (
|
|
316
319
|
<Upload data-icon="inline-start" />
|
|
317
320
|
)}
|
|
@@ -323,7 +323,7 @@ export function VersionsCard({
|
|
|
323
323
|
>
|
|
324
324
|
{versions.isFetchingNextPage ? (
|
|
325
325
|
<Loader2
|
|
326
|
-
className="animate-spin"
|
|
326
|
+
className="animate-spin motion-reduce:animate-none"
|
|
327
327
|
data-icon="inline-start"
|
|
328
328
|
/>
|
|
329
329
|
) : null}
|
|
@@ -370,7 +370,10 @@ export function VersionsCard({
|
|
|
370
370
|
}
|
|
371
371
|
>
|
|
372
372
|
{rollback.isPending ? (
|
|
373
|
-
<Loader2
|
|
373
|
+
<Loader2
|
|
374
|
+
className="animate-spin motion-reduce:animate-none"
|
|
375
|
+
data-icon="inline-start"
|
|
376
|
+
/>
|
|
374
377
|
) : (
|
|
375
378
|
<RotateCcw data-icon="inline-start" />
|
|
376
379
|
)}
|
|
@@ -22,7 +22,9 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
22
22
|
info: <InfoIcon className="size-4" />,
|
|
23
23
|
warning: <TriangleAlertIcon className="size-4" />,
|
|
24
24
|
error: <OctagonXIcon className="size-4" />,
|
|
25
|
-
loading:
|
|
25
|
+
loading: (
|
|
26
|
+
<Loader2Icon className="size-4 animate-spin motion-reduce:animate-none" />
|
|
27
|
+
),
|
|
26
28
|
}}
|
|
27
29
|
style={
|
|
28
30
|
{
|
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
|
|