@hot-updater/console 1.2.0-rc.2 → 1.2.0-rc.21
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-C-TGpFAm.js → -native-builds-search-OlRj4Jz0.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-DUqlpHCp.js} +1 -1
- package/.output/public/assets/EventDetails-Dcpdu7re.js +1 -0
- package/.output/public/assets/HashValueDisplay-MoZMmTeP.js +1 -0
- package/.output/public/assets/{InsightsPageHeader-DHhqY3DT.js → InsightsPageHeader-CSas9gM0.js} +1 -1
- package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-CJ69KopR.js} +1 -1
- package/.output/public/assets/RelativeTime-CiZ7yXNJ.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-D-tZKnX7.js +1 -0
- package/.output/public/assets/StoreSubmission-F00RL5rI.js +1 -0
- package/.output/public/assets/TargetDisplay-CoYY8Fs4.js +1 -0
- package/.output/public/assets/api-LQJH44FU.js +1 -0
- package/.output/public/assets/api-keys-3IL4dIHe.js +1 -0
- package/.output/public/assets/api-keys-4w2-ofii.js +1 -0
- package/.output/public/assets/badge-laIuYW1U.js +1 -0
- package/.output/public/assets/card-ulgg5xHn.js +1 -0
- package/.output/public/assets/{index-CqP5HPV6.js → index-Cde2QQJq.js} +3 -3
- package/.output/public/assets/insights-0TUItqwh.js +1 -0
- package/.output/public/assets/insights-DDRfERph.js +2 -0
- package/.output/public/assets/insights-_6iMn8GR.js +42 -0
- package/.output/public/assets/{insights-search-DghCbEnk.js → insights-search-CYPrQVUC.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-CKQH0pUS.js → insights-usage-rpc-BbFllvi_.js} +1 -1
- package/.output/public/assets/insights_.distribution-AZcfvK7x.js +1 -0
- package/.output/public/assets/insights_.distribution-BGAqgPi0.js +1 -0
- package/.output/public/assets/insights_.distribution-CjYkDRA4.js +2 -0
- package/.output/public/assets/installations-Ap2G2tDs.js +1 -0
- package/.output/public/assets/{installations-B674P5Z5.js → installations-CSZfo1rG.js} +2 -2
- package/.output/public/assets/installations-CwQYwQ6K.js +1 -0
- package/.output/public/assets/native-builds-cT9Ha-jZ.js +1 -0
- package/.output/public/assets/native-builds-v5wez34c.js +2 -0
- package/.output/public/assets/native-builds_._buildId-BBwE8Pcc.js +2 -0
- package/.output/public/assets/native-builds_._buildId-DZPcR_up.js +1 -0
- package/.output/public/assets/package-ytYrywZH.js +1 -0
- package/.output/public/assets/remote-config-CIAEArwq.js +1 -0
- package/.output/public/assets/{remote-config-WjpozBG5.js → remote-config-Dwdc-sij.js} +1 -1
- package/.output/public/assets/remote-config-ZJ_IRSKE.js +6 -0
- package/.output/public/assets/routes-BUWLcUqW.js +1 -0
- package/.output/public/assets/routes-Rtz-KcQO.js +2 -0
- package/.output/public/assets/styles-bNNic0NS.css +2 -0
- package/.output/public/assets/valueToPercent-B6X9rUJM.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-BcDgi7Q7.mjs → __23tanstack-start-server-fn-resolver-C-9gAWtP.mjs} +58 -46
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +2 -0
- package/.output/server/_libs/lucide-react.mjs +1 -27
- package/.output/server/_ssr/{-native-builds-search-CwNcoXf4.mjs → -native-builds-search-Cl8EZ0Ud.mjs} +2 -2
- package/.output/server/_ssr/{BundleIdDisplay-ys5eRBiX.mjs → BundleIdDisplay-gVoZLoqU.mjs} +2 -2
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-DFrogDwc.mjs → ConsoleFeatureUnavailable-Dcibk9QQ.mjs} +7 -7
- package/.output/server/_ssr/{EventDetails-BOJR7vO-.mjs → EventDetails-CCZ9mS_F.mjs} +8 -8
- package/.output/server/_ssr/{HashValueDisplay-d4OxpYG1.mjs → HashValueDisplay-BxHC8iAG.mjs} +6 -6
- package/.output/server/_ssr/{InsightsPageHeader-D_ON_oXO.mjs → InsightsPageHeader-CqJqdi-m.mjs} +8 -8
- package/.output/server/_ssr/{NotFoundPage-BJKqYxfO.mjs → NotFoundPage-BLIrdxfa.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-Cuhy0CIO.mjs} +12 -2
- package/.output/server/_ssr/RelativeTime-B1Sy1q_O.mjs +209 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-BmWPR_Tb.mjs} +19 -3
- package/.output/server/_ssr/StoreSubmission-DIsoEgf-.mjs +65 -0
- package/.output/server/_ssr/TargetDisplay-C2ROSppY.mjs +100 -0
- package/.output/server/_ssr/{alert-dialog-BU7QeAL9.mjs → alert-dialog-C1y2G90R.mjs} +1 -1
- package/.output/server/_ssr/{api-Dn2NwWiq.mjs → api-D8gN7V0h.mjs} +99 -22
- package/.output/server/_ssr/{api-keys-D5rW-eAH.mjs → api-keys-DybL9aTC.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-Ckoc4av7.mjs → api-keys-W6eabF-V.mjs} +10 -9
- package/.output/server/_ssr/{api-keys-rpc-Bf2x7mQb.mjs → api-keys-rpc-CEaSDqVK.mjs} +4 -4
- package/.output/server/_ssr/{api-rpc-Bg7CTu5A.mjs → api-rpc-DloD35JY.mjs} +43 -18
- package/.output/server/_ssr/{auth-rpc-C41fl9Q5.mjs → auth-rpc-DOGHWAlV.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-Dfa8DroN.mjs → auth.server-BO8fBOxh.mjs} +165 -149
- package/.output/server/_ssr/{badge-B-YGm4ng.mjs → badge-DFQ0dCIK.mjs} +2 -44
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-BGVvqWx7.mjs} +1 -1
- package/.output/server/_ssr/card-Ec0pJUEs.mjs +49 -0
- package/.output/server/_ssr/{config.server-DBX318ww.mjs → config.server-AfVsZPlA.mjs} +4 -4
- package/.output/server/_ssr/{console-access-CwSkUsOn.mjs → console-access-fb0N6Nkh.mjs} +2 -2
- package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-CgdQJQlX.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-BbojT91g.mjs → console-features-api-VIcoTdNC.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-3bq2wS5U.mjs → console-features-rpc-BNjlCLLR.mjs} +4 -4
- package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
- package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-XAvDetmn.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BtRVBD0C.mjs} +3 -3
- package/.output/server/_ssr/{dialog-RPz_4IaA.mjs → dialog-CqqX-d24.mjs} +1 -1
- package/.output/server/_ssr/{dist-TEpM_UAD.mjs → dist-B6-irDRA.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-BX8ODCZT.mjs} +1 -1
- package/.output/server/_ssr/{empty-BE1Gn6IB.mjs → empty-o55VPF-m.mjs} +2 -2
- package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
- package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-C_CmBF4x.mjs} +3 -3
- package/.output/server/_ssr/{field-DUwSBic5.mjs → field-yKSsJRQo.mjs} +2 -2
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-BJTufthT.mjs} +2 -2
- package/.output/server/_ssr/{input-group-BHI0ziHT.mjs → input-group-DlSVwRKN.mjs} +1 -1
- package/.output/server/_ssr/{insights-DVvFyEOH.mjs → insights-D1hSSSnf.mjs} +5 -5
- package/.output/server/_ssr/{insights-BGzKbtLf.mjs → insights-DmskI16o.mjs} +28 -27
- package/.output/server/_ssr/{insights-api-Bw_ZEDUY.mjs → insights-api-BedUQeHn.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-Bz3sWNZm.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DNQ9qVVf.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-BuRU2I5g.mjs → insights-failures-rpc-pyvkJiMW.mjs} +11 -11
- package/.output/server/_ssr/{insights-DF0SkYDy.mjs → insights-oydyzlp4.mjs} +2 -2
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-DOkpqnQ8.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-CsWe72mW.mjs → insights-recovery-rpc-C8oSWMSL.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-CD5VaLy2.mjs → insights-rpc-Bt3dM8UW.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-C3R6mzW-.mjs → insights-search-CH_Q2pPQ.mjs} +4 -4
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-4KDIN3Kg.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-Bbg14JFS.mjs → insights-usage-rpc-CTZ63vhq.mjs} +7 -7
- package/.output/server/_ssr/{insights-usage-rpc-Duqu3q-H.mjs → insights-usage-rpc-CTt1yIIY.mjs} +4 -4
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-DmQdJZqT.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-HZrwJteU.mjs → insights_.distribution-CxB6jrKu.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-DH_9B5XU.mjs → insights_.distribution-DG4pvrB8.mjs} +16 -15
- package/.output/server/_ssr/{insights_.distribution-DIA0Gi7f.mjs → insights_.distribution-DS8Dc6_5.mjs} +2 -2
- package/.output/server/_ssr/{installations-SuuoQ-xH.mjs → installations-BgVrlTdW.mjs} +12 -12
- package/.output/server/_ssr/{installations-Ct7njvit.mjs → installations-ChOjrcPZ.mjs} +4 -4
- package/.output/server/_ssr/{installations-D-O92-Nr.mjs → installations-_PSpNZM6.mjs} +2 -2
- package/.output/server/_ssr/{listReleases-D_GY00SQ.mjs → listReleases-CQEceg8j.mjs} +1 -1
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/native-artifact-H1MDP0Jz.mjs +593 -0
- package/.output/server/_ssr/native-builds-CHOxmjmm.mjs +548 -0
- package/.output/server/_ssr/{native-builds-DhXL5zf_.mjs → native-builds-CWA9Y__P.mjs} +58 -20
- package/.output/server/_ssr/{native-builds-DhVG-4du.mjs → native-builds-DqJ41IA-.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-dDLkfNFZ.mjs → native-builds_._buildId-Bb-mVQnh.mjs} +3 -3
- package/.output/server/_ssr/native-builds_._buildId-C1lMUjaj.mjs +1294 -0
- package/.output/server/_ssr/nativeBuildDevice-Dn16gNmZ.mjs +230 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-wyUj7Oyi.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-i5f-2-qd.mjs +203 -0
- package/.output/server/_ssr/nativeBuildQr-P9qKcI7l.mjs +115 -0
- package/.output/server/_ssr/{nativeBuilds-B_7BPjt_.mjs → nativeBuilds-ByQdDnHG.mjs} +61 -29
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-CX7wutet.mjs} +6 -6
- package/.output/server/_ssr/publicConsoleBase-3IHSHvqd.mjs +27 -0
- package/.output/server/_ssr/{qr-code-C7kNRIDX.mjs → qr-code-pENFuyy9.mjs} +1 -1
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-C7sUFDwa.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-Cc2AJ-yS.mjs → release-adoption-rpc-BUPLEJYw.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-LLYlRnUB.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-D9dAMI17.mjs} +3 -3
- package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-EPhok_Py.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-DaZ7ifUF.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-BYyQFBG8.mjs → remote-config-BMdoiYuB.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-CTZ_zxNg.mjs → remote-config-DvM_KKl6.mjs} +20 -19
- package/.output/server/_ssr/{remote-config-DvMHWxja.mjs → remote-config-XmtJFUKn.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-DibiGuw7.mjs → remote-config-rpc-DFRsn7f8.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-Da0sMVN2.mjs → router-KM_t8okm.mjs} +103 -52
- package/.output/server/_ssr/{routes-CHl0_VK3.mjs → routes-Beckr53C.mjs} +260 -383
- package/.output/server/_ssr/{routes-FE2SJgBr.mjs → routes-MrSajWvI.mjs} +14 -18
- package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BsTTLV-B.mjs} +4 -4
- package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-3oDJJFWa.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-Bh7oEZEG.mjs → schema-migration-rpc-BqNKpOrg.mjs} +4 -4
- package/.output/server/_ssr/{select-BhPCNdHx.mjs → select-CUCLbsEW.mjs} +2 -2
- package/.output/server/_ssr/{server-BjkQXKZR.mjs → server-DpE_idiZ.mjs} +6 -6
- package/.output/server/_ssr/{sidebar-B7OTpt-8.mjs → sidebar-xs2XmYh9.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-C0XSSCq4.mjs} +2 -2
- package/.output/server/_ssr/{switch-CIkMfFrN.mjs → switch-CWp_RWCq.mjs} +2 -2
- package/.output/server/_ssr/{table-BIzH49v-.mjs → table-DtPvFx_v.mjs} +1 -1
- package/.output/server/_ssr/{tabs-WDYlrXEm.mjs → tabs-D0Jdy8v4.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-DPYzv9bE.mjs} +3 -3
- package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-CmHbryZT.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-NmbU0MD2.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-AYP07Vaf.mjs +194 -0
- package/.output/server/index.mjs +318 -297
- package/package.json +7 -7
- package/src/components/ChannelBadge.tsx +9 -9
- package/src/components/DataTable.tsx +303 -0
- package/src/components/HashValueDisplay.tsx +6 -3
- package/src/components/PlatformIcon.tsx +10 -0
- package/src/components/RelativeTime.tsx +31 -0
- package/src/components/TargetDisplay.tsx +69 -0
- package/src/components/features/channels/ChannelManagementDialog.tsx +3 -8
- package/src/components/features/insights/ReleaseActivity.tsx +1 -1
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +108 -58
- package/src/components/features/native-builds/CommitLink.tsx +1 -1
- package/src/components/features/native-builds/ImportBuild.tsx +1 -1
- package/src/components/features/native-builds/InstallCard.tsx +246 -46
- package/src/components/features/native-builds/IosInstall.tsx +300 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +4 -1
- package/src/components/features/native-builds/NativeBuildsPage.tsx +63 -76
- package/src/components/features/native-builds/NativeBuildsTable.tsx +436 -315
- package/src/components/features/native-builds/PatchesCard.tsx +3 -2
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +4 -4
- package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
- package/src/components/features/native-builds/ShortHash.tsx +1 -1
- package/src/components/features/native-builds/StoreSubmission.tsx +12 -3
- package/src/lib/api-rpc.ts +55 -6
- package/src/lib/api.ts +85 -12
- package/src/lib/native-builds.ts +95 -17
- package/src/lib/server/local-console.ts +1 -1
- package/src/lib/server/nativeBuildDevice.ts +274 -0
- package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
- package/src/lib/server/nativeBuildInstall.ts +355 -0
- package/src/lib/server/nativeBuildQr.ts +114 -24
- package/src/lib/server/nativeBuilds.ts +87 -33
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/routeTree.gen.ts +114 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/device-response.ts +17 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/device.ts +17 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/device[.]mobileconfig.ts +17 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
- package/src/routes/[_]hot-updater/native-builds/preview-qr.ts +14 -0
- package/src/routes/api/native-builds/$buildId/download.ts +22 -1
- package/src/routes/index.tsx +290 -429
- package/src/styles.css +16 -0
- package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
- package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
- package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
- package/.output/public/assets/api-P2g8dCNg.js +0 -1
- package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
- package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
- package/.output/public/assets/badge-DWFcDWho.js +0 -1
- package/.output/public/assets/download-Cf24LBde.js +0 -1
- package/.output/public/assets/insights-B-0odqpt.js +0 -42
- package/.output/public/assets/insights-BSVGfxSL.js +0 -1
- package/.output/public/assets/insights-NK5B6ReS.js +0 -2
- package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
- package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
- package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
- package/.output/public/assets/installations-BWxczZ2t.js +0 -1
- package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
- package/.output/public/assets/native-builds-BOC71grI.js +0 -1
- package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
- package/.output/public/assets/native-builds-DAy2678K.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
- package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
- package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
- package/.output/public/assets/routes-BDdBIxYS.js +0 -1
- package/.output/public/assets/routes-CCD33Azv.js +0 -2
- package/.output/public/assets/styles-uK-0vUMk.css +0 -2
- package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
- package/.output/server/_ssr/RolloutPercentageBadge-BpI_iTsm.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-CXMFpHyp.mjs +0 -139
- package/.output/server/_ssr/native-builds-bTSKsvYp.mjs +0 -510
- package/.output/server/_ssr/native-builds_._buildId-D20tGR3l.mjs +0 -813
- package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
- package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
- /package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-Ckb5GMhh.js} +0 -0
- /package/.output/public/assets/{alert-dialog-BqYScr9y.js → alert-dialog-DiRLrFVe.js} +0 -0
- /package/.output/public/assets/{dialog-CNUPxNxH.js → dialog-CLIaC82_.js} +0 -0
- /package/.output/public/assets/{dist-CPlO6ko9.js → dist-Bf1BPKMs.js} +0 -0
- /package/.output/public/assets/{empty-B3Uwdd6k.js → empty-Bhlj8PEo.js} +0 -0
- /package/.output/public/assets/{field-D-2-mnNh.js → field-q4sTYzNU.js} +0 -0
- /package/.output/public/assets/{history-DqHlgSuV.js → history-DakJoeSM.js} +0 -0
- /package/.output/public/assets/{input-group-D3OUBk4n.js → input-group-D_NfhUbX.js} +0 -0
- /package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-DzBe6DHr.js} +0 -0
- /package/.output/public/assets/{list--NIee1FZ.js → list-B6GeoQ_b.js} +0 -0
- /package/.output/public/assets/{plus-BReVKct-.js → plus-BVhOauU3.js} +0 -0
- /package/.output/public/assets/{refresh-cw-B9HHjLej.js → refresh-cw-C-tvoCcE.js} +0 -0
- /package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-DvyxGIsm.js} +0 -0
- /package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-Clk5xTeE.js} +0 -0
- /package/.output/public/assets/{search-BCel4Oy6.js → search-nnvSOTEB.js} +0 -0
- /package/.output/public/assets/{smartphone-CMaSy_ir.js → smartphone-r0rRdPas.js} +0 -0
- /package/.output/public/assets/{switch-BpdiHL_t.js → switch-CP6GsHmN.js} +0 -0
- /package/.output/public/assets/{table-Bpy3SvSo.js → table-TUtVz-2l.js} +0 -0
- /package/.output/public/assets/{tabs-Xmt7tZeG.js → tabs-CP3CSmtI.js} +0 -0
- /package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-Bt0YXG26.js} +0 -0
- /package/.output/public/assets/{uuidv7-zXMtwR9Q.js → uuidv7-cI6C63Fm.js} +0 -0
package/src/routes/index.tsx
CHANGED
|
@@ -3,29 +3,42 @@ import { createFileRoute, Link } from "@tanstack/react-router";
|
|
|
3
3
|
import {
|
|
4
4
|
AlertTriangle,
|
|
5
5
|
ChevronDown,
|
|
6
|
-
ChevronLeft,
|
|
7
6
|
ChevronRight,
|
|
8
7
|
CircleOff,
|
|
9
|
-
Fingerprint,
|
|
10
8
|
Filter,
|
|
11
9
|
Package,
|
|
12
10
|
RotateCcw,
|
|
13
11
|
Tags,
|
|
14
12
|
X,
|
|
15
13
|
} from "lucide-react";
|
|
16
|
-
import { Fragment,
|
|
14
|
+
import { Fragment, useEffect, useState } from "react";
|
|
17
15
|
|
|
18
16
|
import { BundleIdDisplay } from "@/components/BundleIdDisplay";
|
|
19
17
|
import { ChannelBadge } from "@/components/ChannelBadge";
|
|
18
|
+
import {
|
|
19
|
+
DataCard,
|
|
20
|
+
DataCardSkeletons,
|
|
21
|
+
DataCardsEmpty,
|
|
22
|
+
DataTable,
|
|
23
|
+
DataTableFrame,
|
|
24
|
+
DataTableEmpty,
|
|
25
|
+
DataTableFullRow,
|
|
26
|
+
DataTablePagination,
|
|
27
|
+
DataTableRow,
|
|
28
|
+
openOutsideControls,
|
|
29
|
+
DataTableSkeletonRows,
|
|
30
|
+
} from "@/components/DataTable";
|
|
20
31
|
import { EnabledStatusIcon } from "@/components/EnabledStatusIcon";
|
|
21
32
|
import { BundleChildrenPanel } from "@/components/features/bundles/BundleChildrenPanel";
|
|
22
33
|
import { ChannelManagementDialog } from "@/components/features/channels/ChannelManagementDialog";
|
|
23
34
|
import { useReleaseColumns } from "@/components/features/FeatureSlots";
|
|
35
|
+
import { CopyableText } from "@/components/features/native-builds/CopyableText";
|
|
24
36
|
import { ReleaseEditorSheet } from "@/components/features/releases/ReleaseEditorSheet";
|
|
25
37
|
import { ReleaseStateBadge } from "@/components/features/releases/ReleaseStateBadge";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
38
|
+
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
39
|
+
import { RelativeTime } from "@/components/RelativeTime";
|
|
28
40
|
import { RolloutPercentageBadge } from "@/components/RolloutPercentageBadge";
|
|
41
|
+
import { TargetDisplay } from "@/components/TargetDisplay";
|
|
29
42
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
30
43
|
import { Badge } from "@/components/ui/badge";
|
|
31
44
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
@@ -39,14 +52,7 @@ import {
|
|
|
39
52
|
} from "@/components/ui/select";
|
|
40
53
|
import { SidebarTrigger } from "@/components/ui/sidebar";
|
|
41
54
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
42
|
-
import {
|
|
43
|
-
Table,
|
|
44
|
-
TableBody,
|
|
45
|
-
TableCell,
|
|
46
|
-
TableHead,
|
|
47
|
-
TableHeader,
|
|
48
|
-
TableRow,
|
|
49
|
-
} from "@/components/ui/table";
|
|
55
|
+
import { TableCell, TableHead, TableRow } from "@/components/ui/table";
|
|
50
56
|
import { useIsMobile } from "@/hooks/use-mobile";
|
|
51
57
|
import {
|
|
52
58
|
useBundleChildCountsQuery,
|
|
@@ -76,29 +82,6 @@ const statusFilterItems = [
|
|
|
76
82
|
{ label: "Enabled", value: "enabled" },
|
|
77
83
|
{ label: "Disabled", value: "disabled" },
|
|
78
84
|
];
|
|
79
|
-
const dateFormatter = new Intl.DateTimeFormat(undefined, {
|
|
80
|
-
dateStyle: "medium",
|
|
81
|
-
timeStyle: "short",
|
|
82
|
-
});
|
|
83
|
-
const tableDateFormatter = new Intl.DateTimeFormat(undefined, {
|
|
84
|
-
dateStyle: "medium",
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Opens a bundle from a click anywhere on its row or card, except on a
|
|
89
|
-
* control inside it, which keeps its own action.
|
|
90
|
-
*/
|
|
91
|
-
const openOutsideControls =
|
|
92
|
-
(open: () => void) => (event: MouseEvent<HTMLElement>) => {
|
|
93
|
-
if (
|
|
94
|
-
event.target instanceof Element &&
|
|
95
|
-
event.target.closest("button, a, input, select, textarea")
|
|
96
|
-
) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
open();
|
|
100
|
-
};
|
|
101
|
-
|
|
102
85
|
export const Route = createFileRoute("/")({
|
|
103
86
|
component: BundlesPage,
|
|
104
87
|
validateSearch: validateReleaseSearch,
|
|
@@ -130,7 +113,7 @@ function BundleFilterToolbar({
|
|
|
130
113
|
|
|
131
114
|
return (
|
|
132
115
|
<header className="sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-2 border-b bg-background px-3 py-3 sm:h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:py-0 sm:backdrop-blur-sm">
|
|
133
|
-
<SidebarTrigger className="-ml-1" />
|
|
116
|
+
<SidebarTrigger className="-ml-1 size-11 lg:size-7" />
|
|
134
117
|
<h1 className="sr-only">Bundles</h1>
|
|
135
118
|
<div className="ml-1 flex items-center gap-1.5 text-muted-foreground sm:ml-2">
|
|
136
119
|
<Filter className="size-3.5" />
|
|
@@ -147,7 +130,7 @@ function BundleFilterToolbar({
|
|
|
147
130
|
>
|
|
148
131
|
<SelectTrigger
|
|
149
132
|
aria-label="Channel"
|
|
150
|
-
className="
|
|
133
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 sm:w-[140px] sm:data-[size=default]:h-8"
|
|
151
134
|
>
|
|
152
135
|
<SelectValue />
|
|
153
136
|
</SelectTrigger>
|
|
@@ -172,7 +155,7 @@ function BundleFilterToolbar({
|
|
|
172
155
|
>
|
|
173
156
|
<SelectTrigger
|
|
174
157
|
aria-label="Platform"
|
|
175
|
-
className="
|
|
158
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8"
|
|
176
159
|
title={channelSelected ? undefined : "Choose a channel first"}
|
|
177
160
|
>
|
|
178
161
|
<SelectValue />
|
|
@@ -207,7 +190,7 @@ function BundleFilterToolbar({
|
|
|
207
190
|
>
|
|
208
191
|
<SelectTrigger
|
|
209
192
|
aria-label="Status"
|
|
210
|
-
className="
|
|
193
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8"
|
|
211
194
|
>
|
|
212
195
|
<SelectValue />
|
|
213
196
|
</SelectTrigger>
|
|
@@ -221,6 +204,7 @@ function BundleFilterToolbar({
|
|
|
221
204
|
</Select>
|
|
222
205
|
<Button
|
|
223
206
|
aria-label="Manage channels"
|
|
207
|
+
className="size-11 max-sm:order-1 sm:size-7"
|
|
224
208
|
onClick={onManageChannels}
|
|
225
209
|
size="icon-sm"
|
|
226
210
|
title="Manage channels"
|
|
@@ -229,11 +213,11 @@ function BundleFilterToolbar({
|
|
|
229
213
|
<Tags />
|
|
230
214
|
</Button>
|
|
231
215
|
{search.bundleId ? (
|
|
232
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
216
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
233
217
|
Artifact filter
|
|
234
218
|
<button
|
|
235
219
|
aria-label="Clear artifact filter"
|
|
236
|
-
className="rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
220
|
+
className="relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden"
|
|
237
221
|
onClick={() => onChange({ bundleId: undefined })}
|
|
238
222
|
type="button"
|
|
239
223
|
>
|
|
@@ -242,11 +226,11 @@ function BundleFilterToolbar({
|
|
|
242
226
|
</Badge>
|
|
243
227
|
) : null}
|
|
244
228
|
{search.scopeKey ? (
|
|
245
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
229
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
246
230
|
Target filter
|
|
247
231
|
<button
|
|
248
232
|
aria-label="Clear target filter"
|
|
249
|
-
className="rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
233
|
+
className="relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden"
|
|
250
234
|
onClick={() => onChange({ scopeKey: undefined })}
|
|
251
235
|
type="button"
|
|
252
236
|
>
|
|
@@ -256,7 +240,7 @@ function BundleFilterToolbar({
|
|
|
256
240
|
) : null}
|
|
257
241
|
{hasFilters ? (
|
|
258
242
|
<Button
|
|
259
|
-
className="h-
|
|
243
|
+
className="h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8"
|
|
260
244
|
onClick={onClear}
|
|
261
245
|
size="sm"
|
|
262
246
|
variant="ghost"
|
|
@@ -299,7 +283,7 @@ function BundleEntry({
|
|
|
299
283
|
: "Show advanced artifact diagnostics"
|
|
300
284
|
}
|
|
301
285
|
title="Advanced artifact diagnostics"
|
|
302
|
-
className="size-
|
|
286
|
+
className="size-11 shrink-0 touch-manipulation sm:size-8"
|
|
303
287
|
onClick={onToggleExpand}
|
|
304
288
|
size="icon"
|
|
305
289
|
type="button"
|
|
@@ -308,7 +292,7 @@ function BundleEntry({
|
|
|
308
292
|
{expanded ? <ChevronDown /> : <ChevronRight />}
|
|
309
293
|
</Button>
|
|
310
294
|
) : (
|
|
311
|
-
<span aria-hidden="true" className="size-
|
|
295
|
+
<span aria-hidden="true" className="size-11 shrink-0 sm:size-8" />
|
|
312
296
|
)}
|
|
313
297
|
<button
|
|
314
298
|
aria-label={`Open details for ID ${release.id}`}
|
|
@@ -502,6 +486,51 @@ function BundlesPage() {
|
|
|
502
486
|
releaseId: undefined,
|
|
503
487
|
};
|
|
504
488
|
|
|
489
|
+
const empty = (
|
|
490
|
+
<DataTableEmpty
|
|
491
|
+
icon={Package}
|
|
492
|
+
title={
|
|
493
|
+
onLaterPage
|
|
494
|
+
? "No more bundles"
|
|
495
|
+
: hasReleaseFilters(search)
|
|
496
|
+
? "No bundles match these filters"
|
|
497
|
+
: "No bundles yet"
|
|
498
|
+
}
|
|
499
|
+
>
|
|
500
|
+
{onLaterPage ? (
|
|
501
|
+
<Link
|
|
502
|
+
className={buttonVariants({
|
|
503
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
504
|
+
variant: "outline",
|
|
505
|
+
})}
|
|
506
|
+
search={newestSearch}
|
|
507
|
+
to="/"
|
|
508
|
+
>
|
|
509
|
+
Show the newest bundles
|
|
510
|
+
</Link>
|
|
511
|
+
) : hasReleaseFilters(search) ? (
|
|
512
|
+
<Button
|
|
513
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
514
|
+
onClick={() => go({})}
|
|
515
|
+
variant="outline"
|
|
516
|
+
>
|
|
517
|
+
Clear filters
|
|
518
|
+
</Button>
|
|
519
|
+
) : (
|
|
520
|
+
<>
|
|
521
|
+
<p>Deploy one from your app's project:</p>
|
|
522
|
+
<div className="w-full text-left">
|
|
523
|
+
<CopyableText
|
|
524
|
+
label="the deploy command"
|
|
525
|
+
value="npx hot-updater deploy"
|
|
526
|
+
wrap
|
|
527
|
+
/>
|
|
528
|
+
</div>
|
|
529
|
+
</>
|
|
530
|
+
)}
|
|
531
|
+
</DataTableEmpty>
|
|
532
|
+
);
|
|
533
|
+
|
|
505
534
|
return (
|
|
506
535
|
<div className="flex h-svh min-h-0 min-w-0 flex-col">
|
|
507
536
|
<BundleFilterToolbar
|
|
@@ -520,15 +549,11 @@ function BundlesPage() {
|
|
|
520
549
|
<AlertDescription>{releasesQuery.error.message}</AlertDescription>
|
|
521
550
|
</Alert>
|
|
522
551
|
) : (
|
|
523
|
-
<
|
|
552
|
+
<DataTableFrame>
|
|
524
553
|
{isMobile ? (
|
|
525
554
|
<div className="h-full overflow-y-auto">
|
|
526
555
|
{releasesQuery.isPending ? (
|
|
527
|
-
<
|
|
528
|
-
{Array.from({ length: 5 }, (_, index) => (
|
|
529
|
-
<Skeleton className="h-44 w-full" key={index} />
|
|
530
|
-
))}
|
|
531
|
-
</div>
|
|
556
|
+
<DataCardSkeletons />
|
|
532
557
|
) : releases.length ? (
|
|
533
558
|
releases.map((release) => {
|
|
534
559
|
const channelName =
|
|
@@ -544,10 +569,10 @@ function BundlesPage() {
|
|
|
544
569
|
<Fragment key={release.id}>
|
|
545
570
|
{/* The ID button opens it for keyboards and screen
|
|
546
571
|
readers; a tap anywhere else on the card does too. */}
|
|
547
|
-
<
|
|
572
|
+
<DataCard
|
|
548
573
|
aria-label={`Bundle ${release.id}`}
|
|
549
574
|
className={cn(
|
|
550
|
-
"
|
|
575
|
+
"gap-3",
|
|
551
576
|
release.currentlyUnreachable &&
|
|
552
577
|
"bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100",
|
|
553
578
|
isExpanded && "border-b-0 bg-primary/5",
|
|
@@ -579,89 +604,60 @@ function BundlesPage() {
|
|
|
579
604
|
className="shrink-0"
|
|
580
605
|
/>
|
|
581
606
|
</div>
|
|
582
|
-
<
|
|
583
|
-
<
|
|
584
|
-
<
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
<dd className="mt-1 tabular-nums">
|
|
598
|
-
{dateFormatter.format(release.created_at_ms)}
|
|
599
|
-
</dd>
|
|
600
|
-
</div>
|
|
601
|
-
<div className="rounded-md bg-muted/40 p-3">
|
|
602
|
-
<dt className="text-muted-foreground">Rollout</dt>
|
|
603
|
-
<dd className="mt-1">
|
|
604
|
-
<RolloutPercentageBadge
|
|
605
|
-
percentage={release.rollout_cohort_count / 10}
|
|
606
|
-
/>
|
|
607
|
-
</dd>
|
|
608
|
-
</div>
|
|
609
|
-
<div className="rounded-md bg-muted/40 p-3">
|
|
610
|
-
<dt className="text-muted-foreground">Patches</dt>
|
|
611
|
-
<dd className="mt-1">
|
|
612
|
-
{patchCount === undefined
|
|
613
|
-
? "Checking"
|
|
614
|
-
: patchCount > 0
|
|
615
|
-
? `${patchCount} ${
|
|
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} ${
|
|
616
622
|
patchCount === 1 ? "patch" : "patches"
|
|
617
|
-
}`
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
</dt>
|
|
648
|
-
<dd className="min-w-0 truncate text-right font-mono">
|
|
649
|
-
{release.target_app_version ??
|
|
650
|
-
release.fingerprint_hash ??
|
|
651
|
-
"—"}
|
|
652
|
-
</dd>
|
|
653
|
-
</div>
|
|
654
|
-
<div className="flex items-start justify-between gap-3">
|
|
655
|
-
<dt className="text-muted-foreground">
|
|
656
|
-
Message
|
|
657
|
-
</dt>
|
|
658
|
-
<dd className="min-w-0 text-right text-foreground">
|
|
659
|
-
{release.message || "—"}
|
|
660
|
-
</dd>
|
|
661
|
-
</div>
|
|
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
|
+
/>
|
|
662
653
|
</div>
|
|
663
|
-
|
|
664
|
-
|
|
654
|
+
))}
|
|
655
|
+
{release.message ? (
|
|
656
|
+
<p className="line-clamp-2 text-xs text-muted-foreground">
|
|
657
|
+
{release.message}
|
|
658
|
+
</p>
|
|
659
|
+
) : null}
|
|
660
|
+
</DataCard>
|
|
665
661
|
{isExpanded && release.bundle_id ? (
|
|
666
662
|
<ReleaseBundleChildrenPanel
|
|
667
663
|
onDetailClick={openChildBundle}
|
|
@@ -673,19 +669,13 @@ function BundlesPage() {
|
|
|
673
669
|
);
|
|
674
670
|
})
|
|
675
671
|
) : (
|
|
676
|
-
<
|
|
677
|
-
{onLaterPage
|
|
678
|
-
? "No more bundles on this side."
|
|
679
|
-
: hasReleaseFilters(search)
|
|
680
|
-
? "No bundles match these filters."
|
|
681
|
-
: "No bundles yet. Deploy an update to see it here."}
|
|
682
|
-
</p>
|
|
672
|
+
<DataCardsEmpty>{empty}</DataCardsEmpty>
|
|
683
673
|
)}
|
|
684
674
|
</div>
|
|
685
675
|
) : (
|
|
686
|
-
<
|
|
687
|
-
|
|
688
|
-
|
|
676
|
+
<DataTable
|
|
677
|
+
header={
|
|
678
|
+
<>
|
|
689
679
|
<TableHead>ID</TableHead>
|
|
690
680
|
<TableHead>Channel</TableHead>
|
|
691
681
|
<TableHead>Platform</TableHead>
|
|
@@ -699,296 +689,167 @@ function BundlesPage() {
|
|
|
699
689
|
))}
|
|
700
690
|
<TableHead>Message</TableHead>
|
|
701
691
|
<TableHead>Created</TableHead>
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
</TableRow>
|
|
712
|
-
))
|
|
713
|
-
: releases.map((release) => {
|
|
714
|
-
const isExpanded = expandedReleaseId === release.id;
|
|
715
|
-
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
692
|
+
</>
|
|
693
|
+
}
|
|
694
|
+
>
|
|
695
|
+
{releasesQuery.isPending ? (
|
|
696
|
+
<DataTableSkeletonRows columns={columnCount} />
|
|
697
|
+
) : (
|
|
698
|
+
releases.map((release) => {
|
|
699
|
+
const isExpanded = expandedReleaseId === release.id;
|
|
700
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
716
701
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
702
|
+
return (
|
|
703
|
+
<Fragment key={release.id}>
|
|
704
|
+
<DataTableRow
|
|
705
|
+
aria-label={`Open bundle ${release.id}`}
|
|
706
|
+
className={cn(
|
|
707
|
+
release.currentlyUnreachable &&
|
|
708
|
+
"bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100",
|
|
709
|
+
isExpanded && "bg-primary/5",
|
|
710
|
+
)}
|
|
711
|
+
data-state={
|
|
712
|
+
search.releaseId === release.id
|
|
713
|
+
? "selected"
|
|
714
|
+
: undefined
|
|
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
|
+
)
|
|
731
730
|
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
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}
|
|
746
819
|
>
|
|
747
|
-
<
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
<ChannelBadge
|
|
766
|
-
channel={
|
|
767
|
-
channelNames.get(release.channel_id) ??
|
|
768
|
-
release.channel_id
|
|
769
|
-
}
|
|
770
|
-
/>
|
|
771
|
-
</TableCell>
|
|
772
|
-
<TableCell className="whitespace-nowrap">
|
|
773
|
-
<span className="flex items-center gap-2">
|
|
774
|
-
<PlatformIcon
|
|
775
|
-
className="size-4"
|
|
776
|
-
platform={release.platform}
|
|
777
|
-
/>
|
|
778
|
-
{release.platform === "ios"
|
|
779
|
-
? "iOS"
|
|
780
|
-
: "Android"}
|
|
781
|
-
</span>
|
|
782
|
-
</TableCell>
|
|
783
|
-
<TableCell>
|
|
784
|
-
{release.bundle_id &&
|
|
785
|
-
patchCountsByBundleId[release.bundle_id] ===
|
|
786
|
-
undefined ? (
|
|
787
|
-
<span className="text-sm text-muted-foreground">
|
|
788
|
-
Checking
|
|
789
|
-
</span>
|
|
790
|
-
) : release.bundle_id &&
|
|
791
|
-
patchCountsByBundleId[release.bundle_id]! >
|
|
792
|
-
0 ? (
|
|
793
|
-
<Badge variant="secondary">
|
|
794
|
-
{patchCountsByBundleId[release.bundle_id]}{" "}
|
|
795
|
-
{patchCountsByBundleId[
|
|
796
|
-
release.bundle_id
|
|
797
|
-
] === 1
|
|
798
|
-
? "patch"
|
|
799
|
-
: "patches"}
|
|
800
|
-
</Badge>
|
|
801
|
-
) : (
|
|
802
|
-
<span className="text-muted-foreground">
|
|
803
|
-
-
|
|
804
|
-
</span>
|
|
805
|
-
)}
|
|
806
|
-
</TableCell>
|
|
807
|
-
<TableCell>
|
|
808
|
-
{release.target_app_version ? (
|
|
809
|
-
<span className="flex items-center gap-2">
|
|
810
|
-
<Package className="size-4 shrink-0 text-muted-foreground" />
|
|
811
|
-
<span className="font-medium">
|
|
812
|
-
{release.target_app_version}
|
|
813
|
-
</span>
|
|
814
|
-
</span>
|
|
815
|
-
) : release.fingerprint_hash ? (
|
|
816
|
-
<span className="flex min-w-[160px] items-center gap-2">
|
|
817
|
-
<Fingerprint className="size-4 shrink-0 text-muted-foreground" />
|
|
818
|
-
<HashValueDisplay
|
|
819
|
-
maxLength={12}
|
|
820
|
-
value={release.fingerprint_hash}
|
|
821
|
-
/>
|
|
822
|
-
</span>
|
|
823
|
-
) : (
|
|
824
|
-
<span className="text-muted-foreground">
|
|
825
|
-
-
|
|
826
|
-
</span>
|
|
827
|
-
)}
|
|
828
|
-
</TableCell>
|
|
829
|
-
<TableCell>
|
|
830
|
-
<span className="flex items-center">
|
|
831
|
-
<EnabledStatusIcon
|
|
832
|
-
enabled={release.enabled}
|
|
833
|
-
/>
|
|
834
|
-
<span className="sr-only">
|
|
835
|
-
{release.enabled ? "Enabled" : "Disabled"}
|
|
836
|
-
</span>
|
|
837
|
-
</span>
|
|
838
|
-
</TableCell>
|
|
839
|
-
<TableCell>
|
|
840
|
-
<span className="flex items-center">
|
|
841
|
-
<EnabledStatusIcon
|
|
842
|
-
enabled={release.should_force_update}
|
|
843
|
-
falseIcon="minus"
|
|
844
|
-
/>
|
|
845
|
-
<span className="sr-only">
|
|
846
|
-
{release.should_force_update
|
|
847
|
-
? "Required"
|
|
848
|
-
: "Optional"}
|
|
849
|
-
</span>
|
|
850
|
-
</span>
|
|
851
|
-
</TableCell>
|
|
852
|
-
<TableCell>
|
|
853
|
-
<RolloutPercentageBadge
|
|
854
|
-
percentage={release.rollout_cohort_count / 10}
|
|
855
|
-
/>
|
|
856
|
-
</TableCell>
|
|
857
|
-
{featureColumns.map(({ Cell, feature }) => (
|
|
858
|
-
<TableCell key={feature}>
|
|
859
|
-
<Cell
|
|
860
|
-
releaseId={release.id}
|
|
861
|
-
releases={slotReleases}
|
|
862
|
-
/>
|
|
863
|
-
</TableCell>
|
|
864
|
-
))}
|
|
865
|
-
<TableCell
|
|
866
|
-
className="text-sm text-muted-foreground"
|
|
867
|
-
title={release.message ?? undefined}
|
|
868
|
-
>
|
|
869
|
-
{release.message || "-"}
|
|
870
|
-
</TableCell>
|
|
871
|
-
<TableCell
|
|
872
|
-
className="whitespace-nowrap text-xs text-muted-foreground"
|
|
873
|
-
title={dateFormatter.format(
|
|
874
|
-
release.created_at_ms,
|
|
875
|
-
)}
|
|
876
|
-
>
|
|
877
|
-
{tableDateFormatter.format(
|
|
878
|
-
release.created_at_ms,
|
|
879
|
-
)}
|
|
880
|
-
</TableCell>
|
|
881
|
-
</TableRow>
|
|
882
|
-
{isExpanded && release.bundle_id ? (
|
|
883
|
-
<TableRow className="hover:bg-transparent">
|
|
884
|
-
<TableCell
|
|
885
|
-
className="border-t-0 p-0"
|
|
886
|
-
colSpan={columnCount}
|
|
887
|
-
>
|
|
888
|
-
<ReleaseBundleChildrenPanel
|
|
889
|
-
onDetailClick={openChildBundle}
|
|
890
|
-
panelId={panelId}
|
|
891
|
-
release={release}
|
|
892
|
-
/>
|
|
893
|
-
</TableCell>
|
|
894
|
-
</TableRow>
|
|
895
|
-
) : null}
|
|
896
|
-
</Fragment>
|
|
897
|
-
);
|
|
898
|
-
})}
|
|
899
|
-
{!releasesQuery.isPending && releases.length === 0 ? (
|
|
900
|
-
<TableRow>
|
|
901
|
-
<TableCell
|
|
902
|
-
className="h-40 text-center text-muted-foreground"
|
|
903
|
-
colSpan={columnCount}
|
|
904
|
-
>
|
|
905
|
-
{onLaterPage
|
|
906
|
-
? "No more bundles on this side."
|
|
907
|
-
: hasReleaseFilters(search)
|
|
908
|
-
? "No bundles match these filters."
|
|
909
|
-
: "No bundles yet. Deploy an update to see it here."}
|
|
910
|
-
</TableCell>
|
|
911
|
-
</TableRow>
|
|
912
|
-
) : null}
|
|
913
|
-
</TableBody>
|
|
914
|
-
</Table>
|
|
820
|
+
<ReleaseBundleChildrenPanel
|
|
821
|
+
onDetailClick={openChildBundle}
|
|
822
|
+
panelId={panelId}
|
|
823
|
+
release={release}
|
|
824
|
+
/>
|
|
825
|
+
</TableCell>
|
|
826
|
+
</TableRow>
|
|
827
|
+
) : null}
|
|
828
|
+
</Fragment>
|
|
829
|
+
);
|
|
830
|
+
})
|
|
831
|
+
)}
|
|
832
|
+
{!releasesQuery.isPending && releases.length === 0 ? (
|
|
833
|
+
<DataTableFullRow columns={columnCount}>
|
|
834
|
+
{empty}
|
|
835
|
+
</DataTableFullRow>
|
|
836
|
+
) : null}
|
|
837
|
+
</DataTable>
|
|
915
838
|
)}
|
|
916
|
-
</
|
|
839
|
+
</DataTableFrame>
|
|
917
840
|
)}
|
|
918
841
|
|
|
919
842
|
{!releasesQuery.isError && !releasesQuery.isPending ? (
|
|
920
|
-
<
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
<Link
|
|
931
|
-
className={buttonVariants({
|
|
932
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
933
|
-
size: "sm",
|
|
934
|
-
variant: "ghost",
|
|
935
|
-
})}
|
|
936
|
-
search={newestSearch}
|
|
937
|
-
to="/"
|
|
938
|
-
>
|
|
939
|
-
Newest
|
|
940
|
-
</Link>
|
|
941
|
-
) : null}
|
|
942
|
-
{previousSearch ? (
|
|
943
|
-
<Link
|
|
944
|
-
className={buttonVariants({
|
|
945
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
946
|
-
size: "sm",
|
|
947
|
-
variant: "outline",
|
|
948
|
-
})}
|
|
949
|
-
search={previousSearch}
|
|
950
|
-
to="/"
|
|
951
|
-
>
|
|
952
|
-
<ChevronLeft data-icon="inline-start" />
|
|
953
|
-
Previous
|
|
954
|
-
</Link>
|
|
955
|
-
) : (
|
|
956
|
-
<Button
|
|
957
|
-
className="h-8 flex-1 px-3 text-xs sm:flex-none"
|
|
958
|
-
disabled
|
|
959
|
-
size="sm"
|
|
960
|
-
variant="outline"
|
|
961
|
-
>
|
|
962
|
-
<ChevronLeft data-icon="inline-start" />
|
|
963
|
-
Previous
|
|
964
|
-
</Button>
|
|
965
|
-
)}
|
|
966
|
-
{nextSearch ? (
|
|
967
|
-
<Link
|
|
968
|
-
className={buttonVariants({
|
|
969
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
970
|
-
size: "sm",
|
|
971
|
-
variant: "outline",
|
|
972
|
-
})}
|
|
973
|
-
search={nextSearch}
|
|
974
|
-
to="/"
|
|
975
|
-
>
|
|
976
|
-
Next
|
|
977
|
-
<ChevronRight data-icon="inline-end" />
|
|
978
|
-
</Link>
|
|
979
|
-
) : (
|
|
980
|
-
<Button
|
|
981
|
-
className="h-8 flex-1 px-3 text-xs sm:flex-none"
|
|
982
|
-
disabled
|
|
983
|
-
size="sm"
|
|
984
|
-
variant="outline"
|
|
985
|
-
>
|
|
986
|
-
Next
|
|
987
|
-
<ChevronRight data-icon="inline-end" />
|
|
988
|
-
</Button>
|
|
989
|
-
)}
|
|
990
|
-
</div>
|
|
991
|
-
</nav>
|
|
843
|
+
<DataTablePagination
|
|
844
|
+
count={releases.length}
|
|
845
|
+
label="Bundle pagination"
|
|
846
|
+
pending={releasesQuery.isPlaceholderData}
|
|
847
|
+
newest={onLaterPage ? { search: newestSearch, to: "/" } : undefined}
|
|
848
|
+
next={nextSearch ? { search: nextSearch, to: "/" } : undefined}
|
|
849
|
+
previous={
|
|
850
|
+
previousSearch ? { search: previousSearch, to: "/" } : undefined
|
|
851
|
+
}
|
|
852
|
+
/>
|
|
992
853
|
) : null}
|
|
993
854
|
</div>
|
|
994
855
|
|