@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
package/src/routes/index.tsx
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
Tags,
|
|
12
12
|
X,
|
|
13
13
|
} from "lucide-react";
|
|
14
|
-
import { Fragment, useEffect, useState } from "react";
|
|
14
|
+
import { Fragment, type ReactNode, useEffect, useState } from "react";
|
|
15
15
|
|
|
16
16
|
import { BundleIdDisplay } from "@/components/BundleIdDisplay";
|
|
17
17
|
import { ChannelBadge } from "@/components/ChannelBadge";
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
DataCardSkeletons,
|
|
21
21
|
DataCardsEmpty,
|
|
22
22
|
DataTable,
|
|
23
|
+
DataTableBody,
|
|
23
24
|
DataTableFrame,
|
|
24
25
|
DataTableEmpty,
|
|
25
26
|
DataTableFullRow,
|
|
@@ -35,9 +36,19 @@ import { useReleaseColumns } from "@/components/features/FeatureSlots";
|
|
|
35
36
|
import { CopyableText } from "@/components/features/native-builds/CopyableText";
|
|
36
37
|
import { ReleaseEditorSheet } from "@/components/features/releases/ReleaseEditorSheet";
|
|
37
38
|
import { ReleaseStateBadge } from "@/components/features/releases/ReleaseStateBadge";
|
|
39
|
+
import {
|
|
40
|
+
DataCardFold,
|
|
41
|
+
DataTableFold,
|
|
42
|
+
foldKey,
|
|
43
|
+
foldLabel,
|
|
44
|
+
FoldStatus,
|
|
45
|
+
groupsOf,
|
|
46
|
+
useOpenFolds,
|
|
47
|
+
} from "@/components/FoldedRows";
|
|
38
48
|
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
39
49
|
import { RelativeTime } from "@/components/RelativeTime";
|
|
40
50
|
import { RolloutPercentageBadge } from "@/components/RolloutPercentageBadge";
|
|
51
|
+
import { RowReason } from "@/components/RowReason";
|
|
41
52
|
import { TargetDisplay } from "@/components/TargetDisplay";
|
|
42
53
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
43
54
|
import { Badge } from "@/components/ui/badge";
|
|
@@ -59,8 +70,10 @@ import {
|
|
|
59
70
|
useBundleChildrenQuery,
|
|
60
71
|
useBundleQuery,
|
|
61
72
|
useChannelsQuery,
|
|
73
|
+
useReleaseFoldQuery,
|
|
62
74
|
useReleasesQuery,
|
|
63
75
|
} from "@/lib/api";
|
|
76
|
+
import type { Fold } from "@/lib/server/foldedPage";
|
|
64
77
|
import type { ReleaseListRow } from "@/lib/server/releaseReachability";
|
|
65
78
|
import { cn } from "@/lib/utils";
|
|
66
79
|
|
|
@@ -72,7 +85,11 @@ import {
|
|
|
72
85
|
validateReleaseSearch,
|
|
73
86
|
} from "./-releases-search";
|
|
74
87
|
|
|
75
|
-
|
|
88
|
+
/** A fold of unreachable bundles: "1 unreachable bundle", "2 …". */
|
|
89
|
+
const UNREACHABLE_BUNDLES = {
|
|
90
|
+
one: "unreachable bundle",
|
|
91
|
+
other: "unreachable bundles",
|
|
92
|
+
} as const;
|
|
76
93
|
const platformFilterItems = [
|
|
77
94
|
{ label: "iOS", value: "ios" },
|
|
78
95
|
{ label: "Android", value: "android" },
|
|
@@ -314,14 +331,13 @@ function BundleEntry({
|
|
|
314
331
|
</Badge>
|
|
315
332
|
) : null}
|
|
316
333
|
{release.currentlyUnreachable ? (
|
|
317
|
-
<
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
334
|
+
<RowReason
|
|
335
|
+
icon={CircleOff}
|
|
336
|
+
label="Unreachable: no device gets this bundle with the current delivery settings."
|
|
337
|
+
reason="No device gets this bundle with the current delivery settings."
|
|
321
338
|
>
|
|
322
|
-
<CircleOff className="size-3.5" />
|
|
323
339
|
Unreachable
|
|
324
|
-
</
|
|
340
|
+
</RowReason>
|
|
325
341
|
) : null}
|
|
326
342
|
</div>
|
|
327
343
|
);
|
|
@@ -388,47 +404,155 @@ function ReleaseBundleChildrenPanel({
|
|
|
388
404
|
);
|
|
389
405
|
}
|
|
390
406
|
|
|
407
|
+
/** What a group of release rows renders with: its own patch counts and feature slots. */
|
|
408
|
+
interface RowContext {
|
|
409
|
+
readonly patchCounts: Readonly<Record<string, number | undefined>>;
|
|
410
|
+
readonly slotReleases: readonly {
|
|
411
|
+
readonly releaseId: string;
|
|
412
|
+
readonly platform: "ios" | "android";
|
|
413
|
+
readonly channel: string;
|
|
414
|
+
readonly builtIn: boolean;
|
|
415
|
+
}[];
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* The patch counts and feature slots of a group of releases: the page's
|
|
420
|
+
* reachable ones, or one fold's, so opening a fold reads its own rows'
|
|
421
|
+
* and changes no other query.
|
|
422
|
+
*/
|
|
423
|
+
function useRowContext(
|
|
424
|
+
releases: readonly ReleaseListRow[],
|
|
425
|
+
channels: readonly ChannelRow[],
|
|
426
|
+
): RowContext {
|
|
427
|
+
const bundleIds = Array.from(
|
|
428
|
+
new Set(
|
|
429
|
+
releases.flatMap((release) =>
|
|
430
|
+
release.bundle_id ? [release.bundle_id] : [],
|
|
431
|
+
),
|
|
432
|
+
),
|
|
433
|
+
);
|
|
434
|
+
const patchCountsQuery = useBundleChildCountsQuery(bundleIds);
|
|
435
|
+
return {
|
|
436
|
+
patchCounts: patchCountsQuery.data ?? {},
|
|
437
|
+
slotReleases: releases.flatMap((release) => {
|
|
438
|
+
const channel = channels.find(
|
|
439
|
+
(item) => item.id === release.channel_id,
|
|
440
|
+
)?.name;
|
|
441
|
+
return channel
|
|
442
|
+
? [
|
|
443
|
+
{
|
|
444
|
+
releaseId: release.id,
|
|
445
|
+
platform: release.platform,
|
|
446
|
+
channel,
|
|
447
|
+
builtIn: !release.bundle_id,
|
|
448
|
+
},
|
|
449
|
+
]
|
|
450
|
+
: [];
|
|
451
|
+
}),
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/** Whether a fold of the page holds `releaseId`: IDs order the list. */
|
|
456
|
+
const foldHolds = (fold: Fold, releaseId: string) =>
|
|
457
|
+
releaseId >= fold.to && (fold.from === undefined || releaseId < fold.from);
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* A fold of unreachable bundles, where they sit in the list: closed, the
|
|
461
|
+
* number it holds; open, those bundles in order, subdued, read a chunk at a
|
|
462
|
+
* time once it opens.
|
|
463
|
+
*/
|
|
464
|
+
function UnreachableBundlesFold({
|
|
465
|
+
fold,
|
|
466
|
+
filter,
|
|
467
|
+
channels,
|
|
468
|
+
columns,
|
|
469
|
+
isMobile,
|
|
470
|
+
open,
|
|
471
|
+
onOpenChange,
|
|
472
|
+
render,
|
|
473
|
+
}: {
|
|
474
|
+
readonly fold: Fold;
|
|
475
|
+
readonly filter: ReturnType<typeof releaseFilterOf>;
|
|
476
|
+
readonly channels: readonly ChannelRow[];
|
|
477
|
+
readonly columns: number;
|
|
478
|
+
readonly isMobile: boolean;
|
|
479
|
+
readonly open: boolean;
|
|
480
|
+
readonly onOpenChange: (open: boolean) => void;
|
|
481
|
+
readonly render: (release: ReleaseListRow, ctx: RowContext) => ReactNode;
|
|
482
|
+
}) {
|
|
483
|
+
const query = useReleaseFoldQuery(
|
|
484
|
+
filter,
|
|
485
|
+
{ ...(fold.from === undefined ? {} : { from: fold.from }), to: fold.to },
|
|
486
|
+
open,
|
|
487
|
+
);
|
|
488
|
+
const rows = query.data?.pages.flatMap((page) => page.rows) ?? [];
|
|
489
|
+
const ctx = useRowContext(rows, channels);
|
|
490
|
+
const statusColumns = isMobile ? undefined : columns;
|
|
491
|
+
const status = query.isError ? (
|
|
492
|
+
<FoldStatus
|
|
493
|
+
columns={statusColumns}
|
|
494
|
+
label="Unreachable bundles"
|
|
495
|
+
onRetry={() => void query.refetch()}
|
|
496
|
+
state="error"
|
|
497
|
+
/>
|
|
498
|
+
) : query.isPending || query.isFetchingNextPage ? (
|
|
499
|
+
<FoldStatus
|
|
500
|
+
columns={statusColumns}
|
|
501
|
+
label="Loading unreachable bundles"
|
|
502
|
+
state="loading"
|
|
503
|
+
/>
|
|
504
|
+
) : query.hasNextPage ? (
|
|
505
|
+
<FoldStatus
|
|
506
|
+
columns={statusColumns}
|
|
507
|
+
label="Unreachable bundles"
|
|
508
|
+
onMore={() => void query.fetchNextPage()}
|
|
509
|
+
state="more"
|
|
510
|
+
/>
|
|
511
|
+
) : null;
|
|
512
|
+
const props = {
|
|
513
|
+
label: foldLabel(fold, UNREACHABLE_BUNDLES),
|
|
514
|
+
open,
|
|
515
|
+
onOpenChange,
|
|
516
|
+
panelId: `bundle-fold-${fold.to}`,
|
|
517
|
+
};
|
|
518
|
+
return isMobile ? (
|
|
519
|
+
<DataCardFold {...props}>
|
|
520
|
+
{rows.map((release) => render(release, ctx))}
|
|
521
|
+
{status}
|
|
522
|
+
</DataCardFold>
|
|
523
|
+
) : (
|
|
524
|
+
<DataTableFold {...props} columns={columns}>
|
|
525
|
+
{rows.map((release) => render(release, ctx))}
|
|
526
|
+
{status}
|
|
527
|
+
</DataTableFold>
|
|
528
|
+
);
|
|
529
|
+
}
|
|
530
|
+
|
|
391
531
|
function BundlesPage() {
|
|
392
532
|
const search = Route.useSearch();
|
|
393
533
|
const navigate = Route.useNavigate();
|
|
394
534
|
const isMobile = useIsMobile();
|
|
395
535
|
const [channelsOpen, setChannelsOpen] = useState(false);
|
|
396
536
|
const [expandedReleaseId, setExpandedReleaseId] = useState<string>();
|
|
537
|
+
const folds = useOpenFolds();
|
|
538
|
+
const filter = releaseFilterOf(search);
|
|
397
539
|
const releasesQuery = useReleasesQuery({
|
|
398
540
|
afterReleaseId: search.afterReleaseId,
|
|
399
541
|
beforeReleaseId: search.beforeReleaseId,
|
|
400
|
-
filter
|
|
401
|
-
|
|
542
|
+
filter,
|
|
543
|
+
// The selected release never folds, so a link to it shows its row.
|
|
544
|
+
releaseId: search.releaseId,
|
|
402
545
|
});
|
|
403
546
|
const channelsQuery = useChannelsQuery();
|
|
404
547
|
const channels = channelsQuery.data ?? [];
|
|
405
|
-
const
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
release.bundle_id ? [release.bundle_id] : [],
|
|
410
|
-
),
|
|
411
|
-
),
|
|
548
|
+
const entries = releasesQuery.data?.entries ?? [];
|
|
549
|
+
// The page's reachable releases (and the selected one), outside its folds.
|
|
550
|
+
const releases = entries.flatMap((entry) =>
|
|
551
|
+
entry.kind === "row" ? [entry.row] : [],
|
|
412
552
|
);
|
|
413
|
-
const
|
|
414
|
-
const patchCountsByBundleId = patchCountsQuery.data ?? {};
|
|
553
|
+
const pageContext = useRowContext(releases, channels);
|
|
415
554
|
const nextCursor = releasesQuery.data?.next;
|
|
416
555
|
const previousCursor = releasesQuery.data?.previous;
|
|
417
|
-
const slotReleases = releases.flatMap((release) => {
|
|
418
|
-
const channel = channels.find(
|
|
419
|
-
(item) => item.id === release.channel_id,
|
|
420
|
-
)?.name;
|
|
421
|
-
return channel
|
|
422
|
-
? [
|
|
423
|
-
{
|
|
424
|
-
releaseId: release.id,
|
|
425
|
-
platform: release.platform,
|
|
426
|
-
channel,
|
|
427
|
-
builtIn: !release.bundle_id,
|
|
428
|
-
},
|
|
429
|
-
]
|
|
430
|
-
: [];
|
|
431
|
-
});
|
|
432
556
|
// Features add columns, such as release activity where the console reads it.
|
|
433
557
|
const featureColumns = useReleaseColumns();
|
|
434
558
|
const columnCount = 10 + featureColumns.length;
|
|
@@ -436,19 +560,37 @@ function BundlesPage() {
|
|
|
436
560
|
channels.map((channel) => [channel.id, channel.name]),
|
|
437
561
|
);
|
|
438
562
|
|
|
563
|
+
// A lineage panel shows only with its row: whatever hides the row, a fold
|
|
564
|
+
// closing, a filter, a refetch or Back, closes the panel, and opening the
|
|
565
|
+
// row again opens none.
|
|
566
|
+
const visible = (releaseId: string) =>
|
|
567
|
+
releases.some((release) => release.id === releaseId) ||
|
|
568
|
+
entries.some(
|
|
569
|
+
(entry) =>
|
|
570
|
+
entry.kind === "fold" &&
|
|
571
|
+
folds.isOpen(foldKey(entry)) &&
|
|
572
|
+
foldHolds(entry, releaseId),
|
|
573
|
+
);
|
|
574
|
+
const lineageVisible =
|
|
575
|
+
expandedReleaseId !== undefined && visible(expandedReleaseId);
|
|
439
576
|
useEffect(() => {
|
|
440
|
-
if (
|
|
441
|
-
expandedReleaseId &&
|
|
442
|
-
!releases.some((release) => release.id === expandedReleaseId)
|
|
443
|
-
) {
|
|
577
|
+
if (expandedReleaseId !== undefined && !lineageVisible) {
|
|
444
578
|
setExpandedReleaseId(undefined);
|
|
445
579
|
}
|
|
446
|
-
}, [expandedReleaseId,
|
|
580
|
+
}, [expandedReleaseId, lineageVisible]);
|
|
447
581
|
|
|
448
582
|
const go = (nextSearch: ReleaseSearch, resetScroll = true) =>
|
|
449
583
|
void navigate({ resetScroll, search: nextSearch, to: "/" });
|
|
450
584
|
const changeFilters = (filters: Partial<ReleaseSearch>) =>
|
|
451
585
|
go(updateReleaseFilters(search, filters));
|
|
586
|
+
// Selecting a bundle in an open fold splits the fold around it: the part
|
|
587
|
+
// under it opens too, so no row moves out of sight.
|
|
588
|
+
const select = (release: ReleaseListRow) => {
|
|
589
|
+
if (!releases.some(({ id }) => id === release.id)) {
|
|
590
|
+
folds.set(release.id, true);
|
|
591
|
+
}
|
|
592
|
+
go({ ...search, releaseId: release.id }, false);
|
|
593
|
+
};
|
|
452
594
|
const openChildBundle = (bundle: Bundle) => {
|
|
453
595
|
const childRelease = releases.find(
|
|
454
596
|
(release) => release.bundle_id === bundle.id,
|
|
@@ -466,8 +608,10 @@ function BundlesPage() {
|
|
|
466
608
|
const previousSearch: ReleaseSearch | null = previousCursor
|
|
467
609
|
? {
|
|
468
610
|
...search,
|
|
469
|
-
afterReleaseId:
|
|
470
|
-
|
|
611
|
+
afterReleaseId:
|
|
612
|
+
"after" in previousCursor ? previousCursor.after : undefined,
|
|
613
|
+
beforeReleaseId:
|
|
614
|
+
"before" in previousCursor ? previousCursor.before : undefined,
|
|
471
615
|
releaseId: undefined,
|
|
472
616
|
}
|
|
473
617
|
: null;
|
|
@@ -486,15 +630,236 @@ function BundlesPage() {
|
|
|
486
630
|
releaseId: undefined,
|
|
487
631
|
};
|
|
488
632
|
|
|
633
|
+
const renderCard = (release: ReleaseListRow, ctx: RowContext) => {
|
|
634
|
+
const channelName =
|
|
635
|
+
channelNames.get(release.channel_id) ?? release.channel_id;
|
|
636
|
+
const patchCount = release.bundle_id
|
|
637
|
+
? ctx.patchCounts[release.bundle_id]
|
|
638
|
+
: 0;
|
|
639
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
640
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
641
|
+
|
|
642
|
+
return (
|
|
643
|
+
<Fragment key={release.id}>
|
|
644
|
+
{/* The ID button opens it for keyboards and screen
|
|
645
|
+
readers; a tap anywhere else on the card does too. */}
|
|
646
|
+
<DataCard
|
|
647
|
+
aria-label={`Bundle ${release.id}`}
|
|
648
|
+
className={cn(
|
|
649
|
+
"gap-3",
|
|
650
|
+
release.currentlyUnreachable &&
|
|
651
|
+
"bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100",
|
|
652
|
+
isExpanded && "border-b-0 bg-primary/5",
|
|
653
|
+
)}
|
|
654
|
+
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
655
|
+
onClick={openOutsideControls(() => select(release))}
|
|
656
|
+
>
|
|
657
|
+
<div className="flex items-start justify-between gap-3">
|
|
658
|
+
<BundleEntry
|
|
659
|
+
expanded={isExpanded}
|
|
660
|
+
onOpen={() => select(release)}
|
|
661
|
+
onToggleExpand={() =>
|
|
662
|
+
setExpandedReleaseId(isExpanded ? undefined : release.id)
|
|
663
|
+
}
|
|
664
|
+
release={release}
|
|
665
|
+
/>
|
|
666
|
+
<ChannelBadge channel={channelName} className="shrink-0" />
|
|
667
|
+
</div>
|
|
668
|
+
<p className="flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
669
|
+
<span className="flex items-center gap-1.5 text-foreground">
|
|
670
|
+
<PlatformIcon className="size-4" platform={release.platform} />
|
|
671
|
+
{release.platform === "ios" ? "iOS" : "Android"}
|
|
672
|
+
</span>
|
|
673
|
+
{patchCount === undefined || patchCount > 0 ? (
|
|
674
|
+
<>
|
|
675
|
+
<span aria-hidden="true">·</span>
|
|
676
|
+
<span>
|
|
677
|
+
{patchCount === undefined
|
|
678
|
+
? "Checking patches"
|
|
679
|
+
: `${patchCount} ${patchCount === 1 ? "patch" : "patches"}`}
|
|
680
|
+
</span>
|
|
681
|
+
</>
|
|
682
|
+
) : null}
|
|
683
|
+
<span aria-hidden="true">·</span>
|
|
684
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
685
|
+
</p>
|
|
686
|
+
<div className="flex flex-wrap items-center gap-x-3 gap-y-2 text-xs">
|
|
687
|
+
<RolloutPercentageBadge
|
|
688
|
+
percentage={release.rollout_cohort_count / 10}
|
|
689
|
+
/>
|
|
690
|
+
<ReleaseStateBadge release={release} />
|
|
691
|
+
{release.should_force_update ? (
|
|
692
|
+
<Badge variant="secondary">Force update</Badge>
|
|
693
|
+
) : null}
|
|
694
|
+
<span className="flex items-center">
|
|
695
|
+
<span className="sr-only">Target </span>
|
|
696
|
+
<TargetDisplay
|
|
697
|
+
appVersion={release.target_app_version}
|
|
698
|
+
fingerprintHash={release.fingerprint_hash}
|
|
699
|
+
/>
|
|
700
|
+
</span>
|
|
701
|
+
</div>
|
|
702
|
+
{featureColumns.map(({ Cell, feature, label }) => (
|
|
703
|
+
<div className="mt-3 text-xs" key={feature}>
|
|
704
|
+
<span className="sr-only">{label}</span>
|
|
705
|
+
<Cell releaseId={release.id} releases={ctx.slotReleases} />
|
|
706
|
+
</div>
|
|
707
|
+
))}
|
|
708
|
+
{release.message ? (
|
|
709
|
+
<p className="line-clamp-2 text-xs text-muted-foreground">
|
|
710
|
+
{release.message}
|
|
711
|
+
</p>
|
|
712
|
+
) : null}
|
|
713
|
+
</DataCard>
|
|
714
|
+
{isExpanded && release.bundle_id ? (
|
|
715
|
+
<ReleaseBundleChildrenPanel
|
|
716
|
+
onDetailClick={openChildBundle}
|
|
717
|
+
panelId={panelId}
|
|
718
|
+
release={release}
|
|
719
|
+
/>
|
|
720
|
+
) : null}
|
|
721
|
+
</Fragment>
|
|
722
|
+
);
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
const renderRow = (release: ReleaseListRow, ctx: RowContext) => {
|
|
726
|
+
const isExpanded = lineageVisible && expandedReleaseId === release.id;
|
|
727
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
728
|
+
|
|
729
|
+
return (
|
|
730
|
+
<Fragment key={release.id}>
|
|
731
|
+
<DataTableRow
|
|
732
|
+
aria-label={`Open bundle ${release.id}`}
|
|
733
|
+
className={cn(
|
|
734
|
+
release.currentlyUnreachable &&
|
|
735
|
+
"bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100",
|
|
736
|
+
isExpanded && "bg-primary/5",
|
|
737
|
+
)}
|
|
738
|
+
data-state={search.releaseId === release.id ? "selected" : undefined}
|
|
739
|
+
onOpen={() => select(release)}
|
|
740
|
+
>
|
|
741
|
+
<TableCell>
|
|
742
|
+
<BundleEntry
|
|
743
|
+
expanded={isExpanded}
|
|
744
|
+
onOpen={() => select(release)}
|
|
745
|
+
onToggleExpand={() =>
|
|
746
|
+
setExpandedReleaseId(isExpanded ? undefined : release.id)
|
|
747
|
+
}
|
|
748
|
+
release={release}
|
|
749
|
+
/>
|
|
750
|
+
</TableCell>
|
|
751
|
+
<TableCell>
|
|
752
|
+
<ChannelBadge
|
|
753
|
+
channel={
|
|
754
|
+
channelNames.get(release.channel_id) ?? release.channel_id
|
|
755
|
+
}
|
|
756
|
+
/>
|
|
757
|
+
</TableCell>
|
|
758
|
+
<TableCell className="whitespace-nowrap">
|
|
759
|
+
<PlatformLabel platform={release.platform} />
|
|
760
|
+
</TableCell>
|
|
761
|
+
<TableCell>
|
|
762
|
+
{release.bundle_id &&
|
|
763
|
+
ctx.patchCounts[release.bundle_id] === undefined ? (
|
|
764
|
+
<span className="text-sm text-muted-foreground">Checking</span>
|
|
765
|
+
) : release.bundle_id && ctx.patchCounts[release.bundle_id]! > 0 ? (
|
|
766
|
+
<Badge variant="secondary">
|
|
767
|
+
{ctx.patchCounts[release.bundle_id]}{" "}
|
|
768
|
+
{ctx.patchCounts[release.bundle_id] === 1 ? "patch" : "patches"}
|
|
769
|
+
</Badge>
|
|
770
|
+
) : (
|
|
771
|
+
<span className="text-muted-foreground">-</span>
|
|
772
|
+
)}
|
|
773
|
+
</TableCell>
|
|
774
|
+
<TableCell>
|
|
775
|
+
<TargetDisplay
|
|
776
|
+
appVersion={release.target_app_version}
|
|
777
|
+
fingerprintHash={release.fingerprint_hash}
|
|
778
|
+
/>
|
|
779
|
+
</TableCell>
|
|
780
|
+
<TableCell>
|
|
781
|
+
<span className="flex items-center">
|
|
782
|
+
<EnabledStatusIcon enabled={release.enabled} />
|
|
783
|
+
<span className="sr-only">
|
|
784
|
+
{release.enabled ? "Enabled" : "Disabled"}
|
|
785
|
+
</span>
|
|
786
|
+
</span>
|
|
787
|
+
</TableCell>
|
|
788
|
+
<TableCell>
|
|
789
|
+
<span className="flex items-center">
|
|
790
|
+
<EnabledStatusIcon
|
|
791
|
+
enabled={release.should_force_update}
|
|
792
|
+
falseIcon="minus"
|
|
793
|
+
/>
|
|
794
|
+
<span className="sr-only">
|
|
795
|
+
{release.should_force_update ? "Required" : "Optional"}
|
|
796
|
+
</span>
|
|
797
|
+
</span>
|
|
798
|
+
</TableCell>
|
|
799
|
+
<TableCell>
|
|
800
|
+
<RolloutPercentageBadge
|
|
801
|
+
percentage={release.rollout_cohort_count / 10}
|
|
802
|
+
/>
|
|
803
|
+
</TableCell>
|
|
804
|
+
{featureColumns.map(({ Cell, feature }) => (
|
|
805
|
+
<TableCell key={feature}>
|
|
806
|
+
<Cell releaseId={release.id} releases={ctx.slotReleases} />
|
|
807
|
+
</TableCell>
|
|
808
|
+
))}
|
|
809
|
+
<TableCell
|
|
810
|
+
className="text-sm text-muted-foreground"
|
|
811
|
+
title={release.message ?? undefined}
|
|
812
|
+
>
|
|
813
|
+
{release.message || "-"}
|
|
814
|
+
</TableCell>
|
|
815
|
+
<TableCell className="text-xs text-muted-foreground">
|
|
816
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
817
|
+
</TableCell>
|
|
818
|
+
</DataTableRow>
|
|
819
|
+
{isExpanded && release.bundle_id ? (
|
|
820
|
+
<TableRow className="hover:bg-transparent">
|
|
821
|
+
<TableCell className="border-t-0 p-0" colSpan={columnCount}>
|
|
822
|
+
<ReleaseBundleChildrenPanel
|
|
823
|
+
onDetailClick={openChildBundle}
|
|
824
|
+
panelId={panelId}
|
|
825
|
+
release={release}
|
|
826
|
+
/>
|
|
827
|
+
</TableCell>
|
|
828
|
+
</TableRow>
|
|
829
|
+
) : null}
|
|
830
|
+
</Fragment>
|
|
831
|
+
);
|
|
832
|
+
};
|
|
833
|
+
|
|
834
|
+
const fold = (
|
|
835
|
+
entry: Fold,
|
|
836
|
+
render: (release: ReleaseListRow, ctx: RowContext) => ReactNode,
|
|
837
|
+
) => (
|
|
838
|
+
<UnreachableBundlesFold
|
|
839
|
+
channels={channels}
|
|
840
|
+
columns={columnCount}
|
|
841
|
+
filter={filter}
|
|
842
|
+
fold={entry}
|
|
843
|
+
isMobile={isMobile}
|
|
844
|
+
key={`fold-${entry.to}`}
|
|
845
|
+
onOpenChange={(open) => folds.set(foldKey(entry), open)}
|
|
846
|
+
open={folds.isOpen(foldKey(entry))}
|
|
847
|
+
render={render}
|
|
848
|
+
/>
|
|
849
|
+
);
|
|
850
|
+
// A page of unreachable bundles alone: one fold under the empty state.
|
|
851
|
+
const foldedOnly = releases.length === 0 && entries.length > 0;
|
|
489
852
|
const empty = (
|
|
490
853
|
<DataTableEmpty
|
|
491
854
|
icon={Package}
|
|
492
855
|
title={
|
|
493
|
-
|
|
494
|
-
? "No
|
|
495
|
-
:
|
|
496
|
-
? "No bundles
|
|
497
|
-
:
|
|
856
|
+
foldedOnly
|
|
857
|
+
? "No device gets the bundles here"
|
|
858
|
+
: onLaterPage
|
|
859
|
+
? "No more bundles"
|
|
860
|
+
: hasReleaseFilters(search)
|
|
861
|
+
? "No bundles match these filters"
|
|
862
|
+
: "No bundles yet"
|
|
498
863
|
}
|
|
499
864
|
>
|
|
500
865
|
{onLaterPage ? (
|
|
@@ -554,126 +919,22 @@ function BundlesPage() {
|
|
|
554
919
|
<div className="h-full overflow-y-auto">
|
|
555
920
|
{releasesQuery.isPending ? (
|
|
556
921
|
<DataCardSkeletons />
|
|
557
|
-
) : releases.length ? (
|
|
558
|
-
releases.map((release) => {
|
|
559
|
-
const channelName =
|
|
560
|
-
channelNames.get(release.channel_id) ??
|
|
561
|
-
release.channel_id;
|
|
562
|
-
const patchCount = release.bundle_id
|
|
563
|
-
? patchCountsByBundleId[release.bundle_id]
|
|
564
|
-
: 0;
|
|
565
|
-
const isExpanded = expandedReleaseId === release.id;
|
|
566
|
-
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
567
|
-
|
|
568
|
-
return (
|
|
569
|
-
<Fragment key={release.id}>
|
|
570
|
-
{/* The ID button opens it for keyboards and screen
|
|
571
|
-
readers; a tap anywhere else on the card does too. */}
|
|
572
|
-
<DataCard
|
|
573
|
-
aria-label={`Bundle ${release.id}`}
|
|
574
|
-
className={cn(
|
|
575
|
-
"gap-3",
|
|
576
|
-
release.currentlyUnreachable &&
|
|
577
|
-
"bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100",
|
|
578
|
-
isExpanded && "border-b-0 bg-primary/5",
|
|
579
|
-
)}
|
|
580
|
-
data-state={
|
|
581
|
-
search.releaseId === release.id
|
|
582
|
-
? "selected"
|
|
583
|
-
: undefined
|
|
584
|
-
}
|
|
585
|
-
onClick={openOutsideControls(() =>
|
|
586
|
-
go({ ...search, releaseId: release.id }, false),
|
|
587
|
-
)}
|
|
588
|
-
>
|
|
589
|
-
<div className="flex items-start justify-between gap-3">
|
|
590
|
-
<BundleEntry
|
|
591
|
-
expanded={isExpanded}
|
|
592
|
-
onOpen={() =>
|
|
593
|
-
go({ ...search, releaseId: release.id }, false)
|
|
594
|
-
}
|
|
595
|
-
onToggleExpand={() =>
|
|
596
|
-
setExpandedReleaseId(
|
|
597
|
-
isExpanded ? undefined : release.id,
|
|
598
|
-
)
|
|
599
|
-
}
|
|
600
|
-
release={release}
|
|
601
|
-
/>
|
|
602
|
-
<ChannelBadge
|
|
603
|
-
channel={channelName}
|
|
604
|
-
className="shrink-0"
|
|
605
|
-
/>
|
|
606
|
-
</div>
|
|
607
|
-
<p className="flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
608
|
-
<span className="flex items-center gap-1.5 text-foreground">
|
|
609
|
-
<PlatformIcon
|
|
610
|
-
className="size-4"
|
|
611
|
-
platform={release.platform}
|
|
612
|
-
/>
|
|
613
|
-
{release.platform === "ios" ? "iOS" : "Android"}
|
|
614
|
-
</span>
|
|
615
|
-
{patchCount === undefined || patchCount > 0 ? (
|
|
616
|
-
<>
|
|
617
|
-
<span aria-hidden="true">·</span>
|
|
618
|
-
<span>
|
|
619
|
-
{patchCount === undefined
|
|
620
|
-
? "Checking patches"
|
|
621
|
-
: `${patchCount} ${
|
|
622
|
-
patchCount === 1 ? "patch" : "patches"
|
|
623
|
-
}`}
|
|
624
|
-
</span>
|
|
625
|
-
</>
|
|
626
|
-
) : null}
|
|
627
|
-
<span aria-hidden="true">·</span>
|
|
628
|
-
<RelativeTime ms={release.created_at_ms} />
|
|
629
|
-
</p>
|
|
630
|
-
<div className="flex flex-wrap items-center gap-x-3 gap-y-2 text-xs">
|
|
631
|
-
<RolloutPercentageBadge
|
|
632
|
-
percentage={release.rollout_cohort_count / 10}
|
|
633
|
-
/>
|
|
634
|
-
<ReleaseStateBadge release={release} />
|
|
635
|
-
{release.should_force_update ? (
|
|
636
|
-
<Badge variant="secondary">Force update</Badge>
|
|
637
|
-
) : null}
|
|
638
|
-
<span className="flex items-center">
|
|
639
|
-
<span className="sr-only">Target </span>
|
|
640
|
-
<TargetDisplay
|
|
641
|
-
appVersion={release.target_app_version}
|
|
642
|
-
fingerprintHash={release.fingerprint_hash}
|
|
643
|
-
/>
|
|
644
|
-
</span>
|
|
645
|
-
</div>
|
|
646
|
-
{featureColumns.map(({ Cell, feature, label }) => (
|
|
647
|
-
<div className="mt-3 text-xs" key={feature}>
|
|
648
|
-
<span className="sr-only">{label}</span>
|
|
649
|
-
<Cell
|
|
650
|
-
releaseId={release.id}
|
|
651
|
-
releases={slotReleases}
|
|
652
|
-
/>
|
|
653
|
-
</div>
|
|
654
|
-
))}
|
|
655
|
-
{release.message ? (
|
|
656
|
-
<p className="line-clamp-2 text-xs text-muted-foreground">
|
|
657
|
-
{release.message}
|
|
658
|
-
</p>
|
|
659
|
-
) : null}
|
|
660
|
-
</DataCard>
|
|
661
|
-
{isExpanded && release.bundle_id ? (
|
|
662
|
-
<ReleaseBundleChildrenPanel
|
|
663
|
-
onDetailClick={openChildBundle}
|
|
664
|
-
panelId={panelId}
|
|
665
|
-
release={release}
|
|
666
|
-
/>
|
|
667
|
-
) : null}
|
|
668
|
-
</Fragment>
|
|
669
|
-
);
|
|
670
|
-
})
|
|
671
922
|
) : (
|
|
672
|
-
|
|
923
|
+
<>
|
|
924
|
+
{releases.length === 0 ? (
|
|
925
|
+
<DataCardsEmpty>{empty}</DataCardsEmpty>
|
|
926
|
+
) : null}
|
|
927
|
+
{entries.map((entry) =>
|
|
928
|
+
entry.kind === "row"
|
|
929
|
+
? renderCard(entry.row, pageContext)
|
|
930
|
+
: fold(entry, renderCard),
|
|
931
|
+
)}
|
|
932
|
+
</>
|
|
673
933
|
)}
|
|
674
934
|
</div>
|
|
675
935
|
) : (
|
|
676
936
|
<DataTable
|
|
937
|
+
rowGroups
|
|
677
938
|
header={
|
|
678
939
|
<>
|
|
679
940
|
<TableHead>ID</TableHead>
|
|
@@ -693,147 +954,31 @@ function BundlesPage() {
|
|
|
693
954
|
}
|
|
694
955
|
>
|
|
695
956
|
{releasesQuery.isPending ? (
|
|
696
|
-
<
|
|
957
|
+
<DataTableBody>
|
|
958
|
+
<DataTableSkeletonRows columns={columnCount} />
|
|
959
|
+
</DataTableBody>
|
|
697
960
|
) : (
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
961
|
+
<>
|
|
962
|
+
{releases.length === 0 ? (
|
|
963
|
+
<DataTableBody>
|
|
964
|
+
<DataTableFullRow columns={columnCount}>
|
|
965
|
+
{empty}
|
|
966
|
+
</DataTableFullRow>
|
|
967
|
+
</DataTableBody>
|
|
968
|
+
) : null}
|
|
969
|
+
{groupsOf(entries).map((group) =>
|
|
970
|
+
group.kind === "fold" ? (
|
|
971
|
+
fold(group.fold, renderRow)
|
|
972
|
+
) : (
|
|
973
|
+
<DataTableBody key={`rows-${group.rows[0]!.id}`}>
|
|
974
|
+
{group.rows.map((release) =>
|
|
975
|
+
renderRow(release, pageContext),
|
|
710
976
|
)}
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
716
|
-
onOpen={() =>
|
|
717
|
-
go({ ...search, releaseId: release.id }, false)
|
|
718
|
-
}
|
|
719
|
-
>
|
|
720
|
-
<TableCell>
|
|
721
|
-
<BundleEntry
|
|
722
|
-
expanded={isExpanded}
|
|
723
|
-
onOpen={() =>
|
|
724
|
-
go({ ...search, releaseId: release.id }, false)
|
|
725
|
-
}
|
|
726
|
-
onToggleExpand={() =>
|
|
727
|
-
setExpandedReleaseId(
|
|
728
|
-
isExpanded ? undefined : release.id,
|
|
729
|
-
)
|
|
730
|
-
}
|
|
731
|
-
release={release}
|
|
732
|
-
/>
|
|
733
|
-
</TableCell>
|
|
734
|
-
<TableCell>
|
|
735
|
-
<ChannelBadge
|
|
736
|
-
channel={
|
|
737
|
-
channelNames.get(release.channel_id) ??
|
|
738
|
-
release.channel_id
|
|
739
|
-
}
|
|
740
|
-
/>
|
|
741
|
-
</TableCell>
|
|
742
|
-
<TableCell className="whitespace-nowrap">
|
|
743
|
-
<PlatformLabel platform={release.platform} />
|
|
744
|
-
</TableCell>
|
|
745
|
-
<TableCell>
|
|
746
|
-
{release.bundle_id &&
|
|
747
|
-
patchCountsByBundleId[release.bundle_id] ===
|
|
748
|
-
undefined ? (
|
|
749
|
-
<span className="text-sm text-muted-foreground">
|
|
750
|
-
Checking
|
|
751
|
-
</span>
|
|
752
|
-
) : release.bundle_id &&
|
|
753
|
-
patchCountsByBundleId[release.bundle_id]! > 0 ? (
|
|
754
|
-
<Badge variant="secondary">
|
|
755
|
-
{patchCountsByBundleId[release.bundle_id]}{" "}
|
|
756
|
-
{patchCountsByBundleId[release.bundle_id] === 1
|
|
757
|
-
? "patch"
|
|
758
|
-
: "patches"}
|
|
759
|
-
</Badge>
|
|
760
|
-
) : (
|
|
761
|
-
<span className="text-muted-foreground">-</span>
|
|
762
|
-
)}
|
|
763
|
-
</TableCell>
|
|
764
|
-
<TableCell>
|
|
765
|
-
<TargetDisplay
|
|
766
|
-
appVersion={release.target_app_version}
|
|
767
|
-
fingerprintHash={release.fingerprint_hash}
|
|
768
|
-
/>
|
|
769
|
-
</TableCell>
|
|
770
|
-
<TableCell>
|
|
771
|
-
<span className="flex items-center">
|
|
772
|
-
<EnabledStatusIcon enabled={release.enabled} />
|
|
773
|
-
<span className="sr-only">
|
|
774
|
-
{release.enabled ? "Enabled" : "Disabled"}
|
|
775
|
-
</span>
|
|
776
|
-
</span>
|
|
777
|
-
</TableCell>
|
|
778
|
-
<TableCell>
|
|
779
|
-
<span className="flex items-center">
|
|
780
|
-
<EnabledStatusIcon
|
|
781
|
-
enabled={release.should_force_update}
|
|
782
|
-
falseIcon="minus"
|
|
783
|
-
/>
|
|
784
|
-
<span className="sr-only">
|
|
785
|
-
{release.should_force_update
|
|
786
|
-
? "Required"
|
|
787
|
-
: "Optional"}
|
|
788
|
-
</span>
|
|
789
|
-
</span>
|
|
790
|
-
</TableCell>
|
|
791
|
-
<TableCell>
|
|
792
|
-
<RolloutPercentageBadge
|
|
793
|
-
percentage={release.rollout_cohort_count / 10}
|
|
794
|
-
/>
|
|
795
|
-
</TableCell>
|
|
796
|
-
{featureColumns.map(({ Cell, feature }) => (
|
|
797
|
-
<TableCell key={feature}>
|
|
798
|
-
<Cell
|
|
799
|
-
releaseId={release.id}
|
|
800
|
-
releases={slotReleases}
|
|
801
|
-
/>
|
|
802
|
-
</TableCell>
|
|
803
|
-
))}
|
|
804
|
-
<TableCell
|
|
805
|
-
className="text-sm text-muted-foreground"
|
|
806
|
-
title={release.message ?? undefined}
|
|
807
|
-
>
|
|
808
|
-
{release.message || "-"}
|
|
809
|
-
</TableCell>
|
|
810
|
-
<TableCell className="text-xs text-muted-foreground">
|
|
811
|
-
<RelativeTime ms={release.created_at_ms} />
|
|
812
|
-
</TableCell>
|
|
813
|
-
</DataTableRow>
|
|
814
|
-
{isExpanded && release.bundle_id ? (
|
|
815
|
-
<TableRow className="hover:bg-transparent">
|
|
816
|
-
<TableCell
|
|
817
|
-
className="border-t-0 p-0"
|
|
818
|
-
colSpan={columnCount}
|
|
819
|
-
>
|
|
820
|
-
<ReleaseBundleChildrenPanel
|
|
821
|
-
onDetailClick={openChildBundle}
|
|
822
|
-
panelId={panelId}
|
|
823
|
-
release={release}
|
|
824
|
-
/>
|
|
825
|
-
</TableCell>
|
|
826
|
-
</TableRow>
|
|
827
|
-
) : null}
|
|
828
|
-
</Fragment>
|
|
829
|
-
);
|
|
830
|
-
})
|
|
977
|
+
</DataTableBody>
|
|
978
|
+
),
|
|
979
|
+
)}
|
|
980
|
+
</>
|
|
831
981
|
)}
|
|
832
|
-
{!releasesQuery.isPending && releases.length === 0 ? (
|
|
833
|
-
<DataTableFullRow columns={columnCount}>
|
|
834
|
-
{empty}
|
|
835
|
-
</DataTableFullRow>
|
|
836
|
-
) : null}
|
|
837
982
|
</DataTable>
|
|
838
983
|
)}
|
|
839
984
|
</DataTableFrame>
|