@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
|
@@ -1,17 +1,37 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
extractTimestampFromUUIDv7,
|
|
3
|
+
type NativeBuildRow,
|
|
4
|
+
} from "@hot-updater/plugin-core";
|
|
2
5
|
import { Link, useNavigate } from "@tanstack/react-router";
|
|
3
6
|
import {
|
|
4
7
|
AlertTriangle,
|
|
5
8
|
ArrowUpRight,
|
|
6
|
-
ChevronLeft,
|
|
7
|
-
ChevronRight,
|
|
8
9
|
Download,
|
|
9
|
-
|
|
10
|
+
HardDrive,
|
|
10
11
|
RefreshCw,
|
|
11
12
|
} from "lucide-react";
|
|
12
13
|
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
14
|
+
import { ChannelBadge } from "@/components/ChannelBadge";
|
|
15
|
+
import {
|
|
16
|
+
DataCard,
|
|
17
|
+
DataCardSkeletons,
|
|
18
|
+
DataCardsEmpty,
|
|
19
|
+
DataTable,
|
|
20
|
+
DataTableEmpty,
|
|
21
|
+
DataTableFrame,
|
|
22
|
+
DataTableFullRow,
|
|
23
|
+
DataTablePagination,
|
|
24
|
+
DataTableRow,
|
|
25
|
+
DataTableSkeletonRows,
|
|
26
|
+
openOutsideControls,
|
|
27
|
+
} from "@/components/DataTable";
|
|
28
|
+
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
29
|
+
import { RelativeTime } from "@/components/RelativeTime";
|
|
30
|
+
import {
|
|
31
|
+
BuildKeyDisplay,
|
|
32
|
+
NoValue,
|
|
33
|
+
TargetDisplay,
|
|
34
|
+
} from "@/components/TargetDisplay";
|
|
15
35
|
import {
|
|
16
36
|
Alert,
|
|
17
37
|
AlertAction,
|
|
@@ -20,163 +40,221 @@ import {
|
|
|
20
40
|
} from "@/components/ui/alert";
|
|
21
41
|
import { Badge } from "@/components/ui/badge";
|
|
22
42
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
Table,
|
|
26
|
-
TableBody,
|
|
27
|
-
TableCell,
|
|
28
|
-
TableHead,
|
|
29
|
-
TableHeader,
|
|
30
|
-
TableRow,
|
|
31
|
-
} from "@/components/ui/table";
|
|
43
|
+
import { TableCell, TableHead } from "@/components/ui/table";
|
|
44
|
+
import { useIsMobile } from "@/hooks/use-mobile";
|
|
32
45
|
import {
|
|
33
46
|
formatByteSize,
|
|
34
47
|
nativeBuildArtifacts,
|
|
35
48
|
nativeBuildChannel,
|
|
36
49
|
nativeBuildDownloadPath,
|
|
37
50
|
nativeBuildFileName,
|
|
38
|
-
nativeBuildTarget,
|
|
39
51
|
platformLabel,
|
|
40
52
|
} from "@/lib/native-builds";
|
|
41
53
|
import type { NativeBuildListResult } from "@/lib/server/nativeBuilds";
|
|
42
54
|
|
|
43
|
-
import { CommitLink } from "./CommitLink";
|
|
44
55
|
import { CopyableText } from "./CopyableText";
|
|
45
56
|
import { IMPORT_COMMAND, IMPORT_GUIDE_URL } from "./ImportBuild";
|
|
46
|
-
import {
|
|
47
|
-
import { StoreSubmissionBadge } from "./StoreSubmission";
|
|
57
|
+
import { isSubmitted, StoreSubmissionBadge } from "./StoreSubmission";
|
|
48
58
|
|
|
49
59
|
export const NATIVE_BUILD_GUIDE_URL =
|
|
50
|
-
"https://hot-updater.dev/docs/guides/native-build#
|
|
60
|
+
"https://hot-updater.dev/docs/guides/native-build#how-a-build-is-tracked";
|
|
61
|
+
|
|
62
|
+
const COLUMNS = 10;
|
|
51
63
|
|
|
52
|
-
|
|
64
|
+
/** The page of the list that shows `channel`'s builds, or every build. */
|
|
65
|
+
const channelSearch = (channel: string | undefined) =>
|
|
66
|
+
channel === undefined ? {} : { channel };
|
|
53
67
|
|
|
54
|
-
function
|
|
68
|
+
function EmptyState({
|
|
55
69
|
channel,
|
|
56
70
|
paged,
|
|
57
71
|
onClearChannel,
|
|
58
|
-
onNewest,
|
|
59
72
|
}: {
|
|
60
73
|
readonly channel: string | undefined;
|
|
61
74
|
readonly paged: boolean;
|
|
62
75
|
readonly onClearChannel: () => void;
|
|
63
|
-
readonly onNewest: () => void;
|
|
64
76
|
}) {
|
|
77
|
+
if (paged) {
|
|
78
|
+
return (
|
|
79
|
+
<DataTableEmpty icon={HardDrive} title="No more native builds">
|
|
80
|
+
<Link
|
|
81
|
+
className={buttonVariants({
|
|
82
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
83
|
+
variant: "outline",
|
|
84
|
+
})}
|
|
85
|
+
search={channelSearch(channel)}
|
|
86
|
+
to="/native-builds"
|
|
87
|
+
>
|
|
88
|
+
Show the newest builds
|
|
89
|
+
</Link>
|
|
90
|
+
</DataTableEmpty>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
if (channel !== undefined) {
|
|
94
|
+
return (
|
|
95
|
+
<DataTableEmpty
|
|
96
|
+
icon={HardDrive}
|
|
97
|
+
title={
|
|
98
|
+
<>
|
|
99
|
+
No native build embeds <span translate="no">{channel}</span>
|
|
100
|
+
</>
|
|
101
|
+
}
|
|
102
|
+
>
|
|
103
|
+
<p>
|
|
104
|
+
A build embeds the channel it was built on. Build one on this channel,
|
|
105
|
+
or list every channel's builds.
|
|
106
|
+
</p>
|
|
107
|
+
<Button
|
|
108
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
109
|
+
onClick={onClearChannel}
|
|
110
|
+
variant="outline"
|
|
111
|
+
>
|
|
112
|
+
Show all channels
|
|
113
|
+
</Button>
|
|
114
|
+
</DataTableEmpty>
|
|
115
|
+
);
|
|
116
|
+
}
|
|
65
117
|
return (
|
|
66
|
-
<
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
118
|
+
<DataTableEmpty icon={HardDrive} title="No native builds">
|
|
119
|
+
<p>
|
|
120
|
+
Build one with{" "}
|
|
121
|
+
<code className="font-mono text-xs">native-build android</code> or{" "}
|
|
122
|
+
<code className="font-mono text-xs">native-build ios</code>, or import
|
|
123
|
+
one built elsewhere:
|
|
124
|
+
</p>
|
|
125
|
+
<div className="w-full text-left">
|
|
126
|
+
<CopyableText label="the import command" value={IMPORT_COMMAND} wrap />
|
|
127
|
+
</div>
|
|
128
|
+
<a
|
|
129
|
+
className={buttonVariants({
|
|
130
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
131
|
+
variant: "outline",
|
|
132
|
+
})}
|
|
133
|
+
href={NATIVE_BUILD_GUIDE_URL}
|
|
134
|
+
rel="noreferrer"
|
|
135
|
+
target="_blank"
|
|
70
136
|
>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<>
|
|
88
|
-
<p className="font-medium text-foreground">
|
|
89
|
-
No native build embeds <span translate="no">{channel}</span>
|
|
90
|
-
</p>
|
|
91
|
-
<p>
|
|
92
|
-
A build embeds the channel it was built on. Build one on this
|
|
93
|
-
channel, or list every channel's builds.
|
|
94
|
-
</p>
|
|
95
|
-
<Button
|
|
96
|
-
className="mt-1 min-h-11 sm:min-h-8"
|
|
97
|
-
onClick={onClearChannel}
|
|
98
|
-
variant="outline"
|
|
99
|
-
>
|
|
100
|
-
Show all channels
|
|
101
|
-
</Button>
|
|
102
|
-
</>
|
|
103
|
-
) : (
|
|
104
|
-
<>
|
|
105
|
-
<p className="font-medium text-foreground">No native builds</p>
|
|
106
|
-
<p>
|
|
107
|
-
Build one with{" "}
|
|
108
|
-
<code className="font-mono text-xs">native-build android</code>{" "}
|
|
109
|
-
or <code className="font-mono text-xs">native-build ios</code>,
|
|
110
|
-
or import one built elsewhere:
|
|
111
|
-
</p>
|
|
112
|
-
<div className="w-full text-left">
|
|
113
|
-
<CopyableText
|
|
114
|
-
label="the import command"
|
|
115
|
-
value={IMPORT_COMMAND}
|
|
116
|
-
wrap
|
|
117
|
-
/>
|
|
118
|
-
</div>
|
|
119
|
-
<a
|
|
120
|
-
className={buttonVariants({
|
|
121
|
-
className: "mt-1 min-h-11 sm:min-h-8",
|
|
122
|
-
variant: "outline",
|
|
123
|
-
})}
|
|
124
|
-
href={NATIVE_BUILD_GUIDE_URL}
|
|
125
|
-
rel="noreferrer"
|
|
126
|
-
target="_blank"
|
|
127
|
-
>
|
|
128
|
-
Native build guide
|
|
129
|
-
<ArrowUpRight data-icon="inline-end" />
|
|
130
|
-
</a>
|
|
131
|
-
<a
|
|
132
|
-
className={buttonVariants({
|
|
133
|
-
className: "min-h-11 sm:min-h-8",
|
|
134
|
-
variant: "outline",
|
|
135
|
-
})}
|
|
136
|
-
href={IMPORT_GUIDE_URL}
|
|
137
|
-
rel="noreferrer"
|
|
138
|
-
target="_blank"
|
|
139
|
-
>
|
|
140
|
-
Import guide
|
|
141
|
-
<ArrowUpRight data-icon="inline-end" />
|
|
142
|
-
</a>
|
|
143
|
-
</>
|
|
144
|
-
)}
|
|
145
|
-
</div>
|
|
146
|
-
</TableCell>
|
|
147
|
-
</TableRow>
|
|
137
|
+
Native build guide
|
|
138
|
+
<ArrowUpRight data-icon="inline-end" />
|
|
139
|
+
</a>
|
|
140
|
+
<a
|
|
141
|
+
className={buttonVariants({
|
|
142
|
+
className: "min-h-11 sm:min-h-8",
|
|
143
|
+
variant: "outline",
|
|
144
|
+
})}
|
|
145
|
+
href={IMPORT_GUIDE_URL}
|
|
146
|
+
rel="noreferrer"
|
|
147
|
+
target="_blank"
|
|
148
|
+
>
|
|
149
|
+
Import guide
|
|
150
|
+
<ArrowUpRight data-icon="inline-end" />
|
|
151
|
+
</a>
|
|
152
|
+
</DataTableEmpty>
|
|
148
153
|
);
|
|
149
154
|
}
|
|
150
155
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
156
|
+
/** What a build is: its platform's name and artifact kind, such as "Android APK". */
|
|
157
|
+
const buildTitle = (build: NativeBuildRow) =>
|
|
158
|
+
`${platformLabel(build.platform)} ${nativeBuildArtifacts[build.artifact_kind].label}`;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The build's artifact kind, such as "IPA", linking to its page. The Platform
|
|
162
|
+
* beside it names the platform; the link's name is the whole build.
|
|
163
|
+
*/
|
|
164
|
+
function BuildLink({ build }: { readonly build: NativeBuildRow }) {
|
|
165
|
+
return (
|
|
166
|
+
<Link
|
|
167
|
+
aria-label={buildTitle(build)}
|
|
168
|
+
className="relative rounded-sm font-medium whitespace-nowrap text-foreground transition-colors underline-offset-4 after:absolute after:-inset-x-[10px] after:-inset-y-[10px] hover:text-primary hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden"
|
|
169
|
+
params={{ buildId: build.id }}
|
|
170
|
+
to="/native-builds/$buildId"
|
|
171
|
+
>
|
|
172
|
+
{nativeBuildArtifacts[build.artifact_kind].label}
|
|
173
|
+
</Link>
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/** The channel the build embeds; a click lists that channel's builds. */
|
|
178
|
+
function ChannelFilterButton({
|
|
179
|
+
channel,
|
|
180
|
+
onChannel,
|
|
181
|
+
}: {
|
|
182
|
+
readonly channel: string;
|
|
183
|
+
readonly onChannel: (channel: string) => void;
|
|
184
|
+
}) {
|
|
185
|
+
return (
|
|
186
|
+
<button
|
|
187
|
+
aria-label={`Show the builds that embed ${channel}`}
|
|
188
|
+
className="relative rounded-md text-left after:absolute after:inset-x-0 after:-inset-y-[11px] focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none sm:after:hidden"
|
|
189
|
+
onClick={() => onChannel(channel)}
|
|
190
|
+
type="button"
|
|
191
|
+
>
|
|
192
|
+
<ChannelBadge channel={channel} className="whitespace-nowrap" />
|
|
193
|
+
</button>
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The store track a build went to, and under it the store build mark, so a
|
|
199
|
+
* build with both stays one badge wide.
|
|
200
|
+
*/
|
|
201
|
+
function StoreCell({ build }: { readonly build: NativeBuildRow }) {
|
|
202
|
+
if (!isSubmitted(build) && build.store_build !== true) return <NoValue />;
|
|
203
|
+
return (
|
|
204
|
+
<StoreBadges build={build} className="flex flex-col items-start gap-1" />
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/** The store badges, laid out by the caller. */
|
|
209
|
+
function StoreBadges({
|
|
210
|
+
build,
|
|
211
|
+
className,
|
|
212
|
+
}: {
|
|
213
|
+
readonly build: NativeBuildRow;
|
|
214
|
+
readonly className: string;
|
|
215
|
+
}) {
|
|
216
|
+
return (
|
|
217
|
+
<span className={className}>
|
|
218
|
+
<StoreSubmissionBadge build={build} />
|
|
219
|
+
{build.store_build === true ? (
|
|
220
|
+
<Badge variant="secondary">Store build</Badge>
|
|
221
|
+
) : null}
|
|
222
|
+
</span>
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
function DownloadButton({ build }: { readonly build: NativeBuildRow }) {
|
|
227
|
+
return (
|
|
228
|
+
<a
|
|
229
|
+
aria-label={`Download ${nativeBuildFileName(build)}`}
|
|
230
|
+
className={buttonVariants({
|
|
231
|
+
className: "min-h-11 sm:min-h-8",
|
|
232
|
+
size: "sm",
|
|
233
|
+
variant: "outline",
|
|
234
|
+
})}
|
|
235
|
+
download
|
|
236
|
+
href={nativeBuildDownloadPath(build.id)}
|
|
237
|
+
>
|
|
238
|
+
<Download data-icon="inline-start" />
|
|
239
|
+
Download
|
|
240
|
+
</a>
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
function BuildNumber({ build }: { readonly build: NativeBuildRow }) {
|
|
245
|
+
return build.build_number ? (
|
|
246
|
+
<span className="font-mono tabular-nums" translate="no">
|
|
247
|
+
{build.build_number}
|
|
248
|
+
</span>
|
|
249
|
+
) : (
|
|
250
|
+
<NoValue />
|
|
251
|
+
);
|
|
178
252
|
}
|
|
179
253
|
|
|
254
|
+
/** When the build was registered, from its ID. */
|
|
255
|
+
const createdAt = (build: NativeBuildRow) =>
|
|
256
|
+
extractTimestampFromUUIDv7(build.id);
|
|
257
|
+
|
|
180
258
|
function BuildRow({
|
|
181
259
|
build,
|
|
182
260
|
onChannel,
|
|
@@ -185,137 +263,144 @@ function BuildRow({
|
|
|
185
263
|
readonly onChannel: (channel: string) => void;
|
|
186
264
|
}) {
|
|
187
265
|
const navigate = useNavigate();
|
|
188
|
-
const target = nativeBuildTarget(build);
|
|
189
266
|
const channel = nativeBuildChannel(build);
|
|
190
|
-
const title = `${platformLabel(build.platform)} ${nativeBuildArtifacts[build.artifact_kind].label}`;
|
|
191
267
|
return (
|
|
192
|
-
<
|
|
193
|
-
|
|
194
|
-
|
|
268
|
+
<DataTableRow
|
|
269
|
+
aria-label={`Open native build ${build.id}`}
|
|
270
|
+
onOpen={() =>
|
|
195
271
|
void navigate({
|
|
196
272
|
to: "/native-builds/$buildId",
|
|
197
273
|
params: { buildId: build.id },
|
|
198
274
|
})
|
|
199
275
|
}
|
|
200
276
|
>
|
|
201
|
-
<TableCell
|
|
202
|
-
<
|
|
203
|
-
<div className="flex flex-wrap items-center gap-1.5">
|
|
204
|
-
<PlatformIcon
|
|
205
|
-
className="size-3.5 shrink-0 text-muted-foreground"
|
|
206
|
-
platform={build.platform}
|
|
207
|
-
/>
|
|
208
|
-
<Link
|
|
209
|
-
className="font-medium underline-offset-4 hover:underline"
|
|
210
|
-
onClick={(event) => event.stopPropagation()}
|
|
211
|
-
params={{ buildId: build.id }}
|
|
212
|
-
to="/native-builds/$buildId"
|
|
213
|
-
>
|
|
214
|
-
{title}
|
|
215
|
-
</Link>
|
|
216
|
-
<span className="text-xs text-muted-foreground tabular-nums">
|
|
217
|
-
{formatByteSize(build.byte_size)}
|
|
218
|
-
</span>
|
|
219
|
-
<StoreSubmissionBadge build={build} withTime />
|
|
220
|
-
</div>
|
|
221
|
-
<div className="flex min-w-0 flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
222
|
-
<span>{target.label}</span>
|
|
223
|
-
{build.fingerprint_hash === null ? (
|
|
224
|
-
<span className="font-mono text-foreground" translate="no">
|
|
225
|
-
{target.value}
|
|
226
|
-
</span>
|
|
227
|
-
) : (
|
|
228
|
-
<ShortHash
|
|
229
|
-
label="fingerprint"
|
|
230
|
-
length={12}
|
|
231
|
-
value={build.fingerprint_hash}
|
|
232
|
-
/>
|
|
233
|
-
)}
|
|
234
|
-
{!build.build_number ? null : (
|
|
235
|
-
<span className="tabular-nums" translate="no">
|
|
236
|
-
· build {build.build_number}
|
|
237
|
-
</span>
|
|
238
|
-
)}
|
|
239
|
-
<span className="md:hidden" translate="no">
|
|
240
|
-
· {channel}
|
|
241
|
-
</span>
|
|
242
|
-
{build.git_commit_hash === null ? null : (
|
|
243
|
-
<span className="inline-flex items-center gap-1 xl:hidden">
|
|
244
|
-
· commit <CommitLink hash={build.git_commit_hash} />
|
|
245
|
-
</span>
|
|
246
|
-
)}
|
|
247
|
-
</div>
|
|
248
|
-
{/* Below xl the column hides, so the whole ID shows here. */}
|
|
249
|
-
<div className="text-xs text-muted-foreground xl:hidden">
|
|
250
|
-
Built-in bundle{" "}
|
|
251
|
-
<span
|
|
252
|
-
className="font-mono [overflow-wrap:anywhere] text-foreground"
|
|
253
|
-
translate="no"
|
|
254
|
-
>
|
|
255
|
-
{build.min_bundle_id}
|
|
256
|
-
</span>
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
277
|
+
<TableCell>
|
|
278
|
+
<BuildLink build={build} />
|
|
259
279
|
</TableCell>
|
|
260
|
-
<TableCell
|
|
261
|
-
<
|
|
262
|
-
aria-label={`Show the builds that embed ${channel}`}
|
|
263
|
-
className="rounded-md text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none"
|
|
264
|
-
onClick={(event) => {
|
|
265
|
-
event.stopPropagation();
|
|
266
|
-
onChannel(channel);
|
|
267
|
-
}}
|
|
268
|
-
type="button"
|
|
269
|
-
>
|
|
270
|
-
<Badge className="whitespace-nowrap" translate="no" variant="outline">
|
|
271
|
-
{channel}
|
|
272
|
-
</Badge>
|
|
273
|
-
</button>
|
|
280
|
+
<TableCell>
|
|
281
|
+
<ChannelFilterButton channel={channel} onChannel={onChannel} />
|
|
274
282
|
</TableCell>
|
|
275
|
-
<TableCell className="
|
|
276
|
-
<
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
{build.min_bundle_id}
|
|
281
|
-
</span>
|
|
283
|
+
<TableCell className="whitespace-nowrap">
|
|
284
|
+
<PlatformLabel platform={build.platform} />
|
|
285
|
+
</TableCell>
|
|
286
|
+
<TableCell>
|
|
287
|
+
<BuildNumber build={build} />
|
|
282
288
|
</TableCell>
|
|
283
|
-
<TableCell
|
|
284
|
-
<
|
|
289
|
+
<TableCell>
|
|
290
|
+
<TargetDisplay
|
|
291
|
+
appVersion={build.app_version}
|
|
292
|
+
fingerprintHash={build.fingerprint_hash}
|
|
293
|
+
/>
|
|
285
294
|
</TableCell>
|
|
286
|
-
<TableCell
|
|
287
|
-
<
|
|
295
|
+
<TableCell>
|
|
296
|
+
<BuildKeyDisplay value={build.build_key} />
|
|
297
|
+
</TableCell>
|
|
298
|
+
<TableCell>
|
|
299
|
+
<StoreCell build={build} />
|
|
300
|
+
</TableCell>
|
|
301
|
+
<TableCell className="whitespace-nowrap text-muted-foreground tabular-nums">
|
|
302
|
+
{formatByteSize(build.byte_size)}
|
|
303
|
+
</TableCell>
|
|
304
|
+
<TableCell className="text-xs text-muted-foreground">
|
|
305
|
+
<RelativeTime ms={createdAt(build)} />
|
|
288
306
|
</TableCell>
|
|
289
307
|
<TableCell className="text-right">
|
|
290
|
-
<
|
|
291
|
-
aria-label={`Download ${nativeBuildFileName(build)}`}
|
|
292
|
-
className={buttonVariants({
|
|
293
|
-
className: "min-h-11 sm:min-h-7",
|
|
294
|
-
size: "sm",
|
|
295
|
-
variant: "outline",
|
|
296
|
-
})}
|
|
297
|
-
download
|
|
298
|
-
href={nativeBuildDownloadPath(build.id)}
|
|
299
|
-
onClick={(event) => event.stopPropagation()}
|
|
300
|
-
>
|
|
301
|
-
<Download data-icon="inline-start" />
|
|
302
|
-
Download
|
|
303
|
-
</a>
|
|
308
|
+
<DownloadButton build={build} />
|
|
304
309
|
</TableCell>
|
|
305
|
-
</
|
|
310
|
+
</DataTableRow>
|
|
306
311
|
);
|
|
307
312
|
}
|
|
308
313
|
|
|
309
314
|
/**
|
|
310
|
-
*
|
|
311
|
-
*
|
|
315
|
+
* A build's card on a narrow screen, scannable a few to a screen: what it is
|
|
316
|
+
* and where, then when, then its target and build key, then its store. Every
|
|
317
|
+
* value of the row is on it, and a tap opens the build's page.
|
|
318
|
+
*/
|
|
319
|
+
function BuildCard({
|
|
320
|
+
build,
|
|
321
|
+
onChannel,
|
|
322
|
+
}: {
|
|
323
|
+
readonly build: NativeBuildRow;
|
|
324
|
+
readonly onChannel: (channel: string) => void;
|
|
325
|
+
}) {
|
|
326
|
+
const navigate = useNavigate();
|
|
327
|
+
const channel = nativeBuildChannel(build);
|
|
328
|
+
const stored = isSubmitted(build) || build.store_build === true;
|
|
329
|
+
return (
|
|
330
|
+
<DataCard
|
|
331
|
+
aria-label={`Native build ${buildTitle(build)} ${build.id}`}
|
|
332
|
+
className="gap-3 border-b-0"
|
|
333
|
+
onClick={openOutsideControls(
|
|
334
|
+
() =>
|
|
335
|
+
void navigate({
|
|
336
|
+
to: "/native-builds/$buildId",
|
|
337
|
+
params: { buildId: build.id },
|
|
338
|
+
}),
|
|
339
|
+
)}
|
|
340
|
+
>
|
|
341
|
+
<div className="flex items-center justify-between gap-3">
|
|
342
|
+
<div className="flex min-w-0 flex-wrap items-center gap-x-2.5 gap-y-1">
|
|
343
|
+
<PlatformIcon
|
|
344
|
+
className="size-4 shrink-0 text-muted-foreground"
|
|
345
|
+
platform={build.platform}
|
|
346
|
+
/>
|
|
347
|
+
<BuildLink build={build} />
|
|
348
|
+
<ChannelFilterButton channel={channel} onChannel={onChannel} />
|
|
349
|
+
</div>
|
|
350
|
+
<DownloadButton build={build} />
|
|
351
|
+
</div>
|
|
352
|
+
<p className="flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
353
|
+
<span className="sr-only">{platformLabel(build.platform)}</span>
|
|
354
|
+
{build.build_number ? (
|
|
355
|
+
<>
|
|
356
|
+
<span translate="no">
|
|
357
|
+
Build{" "}
|
|
358
|
+
<span className="font-mono tabular-nums text-foreground">
|
|
359
|
+
{build.build_number}
|
|
360
|
+
</span>
|
|
361
|
+
</span>
|
|
362
|
+
<span aria-hidden="true">·</span>
|
|
363
|
+
</>
|
|
364
|
+
) : null}
|
|
365
|
+
<span className="tabular-nums">{formatByteSize(build.byte_size)}</span>
|
|
366
|
+
<span aria-hidden="true">·</span>
|
|
367
|
+
<RelativeTime ms={createdAt(build)} />
|
|
368
|
+
</p>
|
|
369
|
+
<div className="flex flex-wrap items-center gap-x-4 gap-y-3 text-xs">
|
|
370
|
+
<span className="flex items-center">
|
|
371
|
+
<span className="sr-only">Target </span>
|
|
372
|
+
<TargetDisplay
|
|
373
|
+
appVersion={build.app_version}
|
|
374
|
+
fingerprintHash={build.fingerprint_hash}
|
|
375
|
+
/>
|
|
376
|
+
</span>
|
|
377
|
+
{build.build_key ? (
|
|
378
|
+
<span className="flex items-center">
|
|
379
|
+
<span className="sr-only">Build key </span>
|
|
380
|
+
<BuildKeyDisplay value={build.build_key} />
|
|
381
|
+
</span>
|
|
382
|
+
) : null}
|
|
383
|
+
</div>
|
|
384
|
+
{stored ? (
|
|
385
|
+
<StoreBadges
|
|
386
|
+
build={build}
|
|
387
|
+
className="flex flex-wrap items-center gap-1.5"
|
|
388
|
+
/>
|
|
389
|
+
) : null}
|
|
390
|
+
</DataCard>
|
|
391
|
+
);
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* The registered native builds, newest first, one page at a time, as a
|
|
396
|
+
* column table like Bundles' on wide screens and cards on narrow ones. A
|
|
397
|
+
* row opens the build's page; its channel filters the list by that channel.
|
|
312
398
|
*/
|
|
313
399
|
export function NativeBuildsTable({
|
|
314
400
|
builds,
|
|
315
401
|
channel,
|
|
316
402
|
paged,
|
|
317
403
|
onChannel,
|
|
318
|
-
onPage,
|
|
319
404
|
}: {
|
|
320
405
|
readonly builds: {
|
|
321
406
|
readonly data: NativeBuildListResult | undefined;
|
|
@@ -329,96 +414,132 @@ export function NativeBuildsTable({
|
|
|
329
414
|
/** Whether the list shows a page other than the newest. */
|
|
330
415
|
readonly paged: boolean;
|
|
331
416
|
readonly onChannel: (channel: string | undefined) => void;
|
|
332
|
-
readonly onPage: (page: { before?: string; after?: string }) => void;
|
|
333
417
|
}) {
|
|
418
|
+
const isMobile = useIsMobile();
|
|
334
419
|
const rows = builds.data?.data;
|
|
335
420
|
const { next, previous } = builds.data ?? {};
|
|
336
421
|
|
|
337
422
|
if (builds.isError) {
|
|
338
423
|
return (
|
|
339
|
-
<
|
|
340
|
-
<
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
<
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
</Alert>
|
|
357
|
-
</div>
|
|
424
|
+
<Alert variant="destructive">
|
|
425
|
+
<AlertTriangle />
|
|
426
|
+
<AlertTitle>Native builds couldn't be loaded</AlertTitle>
|
|
427
|
+
<AlertDescription>
|
|
428
|
+
Check your connection and try again.
|
|
429
|
+
</AlertDescription>
|
|
430
|
+
<AlertAction>
|
|
431
|
+
<Button
|
|
432
|
+
onClick={() => void builds.refetch()}
|
|
433
|
+
size="xs"
|
|
434
|
+
variant="outline"
|
|
435
|
+
>
|
|
436
|
+
<RefreshCw data-icon="inline-start" />
|
|
437
|
+
Retry
|
|
438
|
+
</Button>
|
|
439
|
+
</AlertAction>
|
|
440
|
+
</Alert>
|
|
358
441
|
);
|
|
359
442
|
}
|
|
360
443
|
|
|
444
|
+
const empty = (
|
|
445
|
+
<EmptyState
|
|
446
|
+
channel={channel}
|
|
447
|
+
onClearChannel={() => onChannel(undefined)}
|
|
448
|
+
paged={paged}
|
|
449
|
+
/>
|
|
450
|
+
);
|
|
451
|
+
|
|
361
452
|
return (
|
|
362
453
|
<>
|
|
363
|
-
<
|
|
364
|
-
|
|
365
|
-
<
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
</TableHead>
|
|
371
|
-
<TableHead className="hidden xl:table-cell">Commit</TableHead>
|
|
372
|
-
<TableHead className="hidden sm:table-cell">Created</TableHead>
|
|
373
|
-
<TableHead className="text-right">
|
|
374
|
-
<span className="sr-only">Actions</span>
|
|
375
|
-
</TableHead>
|
|
376
|
-
</TableRow>
|
|
377
|
-
</TableHeader>
|
|
378
|
-
<TableBody>
|
|
379
|
-
{builds.isLoading ? (
|
|
380
|
-
<LoadingRows />
|
|
381
|
-
) : rows?.length === 0 ? (
|
|
382
|
-
<EmptyRow
|
|
383
|
-
channel={channel}
|
|
384
|
-
onClearChannel={() => onChannel(undefined)}
|
|
385
|
-
onNewest={() => onPage({})}
|
|
386
|
-
paged={paged}
|
|
387
|
-
/>
|
|
388
|
-
) : (
|
|
389
|
-
rows?.map((build) => (
|
|
390
|
-
<BuildRow build={build} key={build.id} onChannel={onChannel} />
|
|
391
|
-
))
|
|
392
|
-
)}
|
|
393
|
-
</TableBody>
|
|
394
|
-
</Table>
|
|
395
|
-
{next !== undefined || previous !== undefined ? (
|
|
396
|
-
<nav
|
|
397
|
-
aria-label="Native build pages"
|
|
398
|
-
className="flex items-center justify-end gap-2 border-t px-4 py-2"
|
|
399
|
-
>
|
|
400
|
-
<Button
|
|
401
|
-
className="min-h-11 sm:min-h-7"
|
|
402
|
-
disabled={previous === undefined || builds.isPlaceholderData}
|
|
403
|
-
onClick={() => onPage({ after: previous })}
|
|
404
|
-
size="sm"
|
|
405
|
-
variant="ghost"
|
|
454
|
+
<DataTableFrame>
|
|
455
|
+
{isMobile ? (
|
|
456
|
+
<div
|
|
457
|
+
aria-busy={builds.isPlaceholderData}
|
|
458
|
+
aria-label="Native builds"
|
|
459
|
+
className="h-full overflow-y-auto aria-busy:opacity-60"
|
|
460
|
+
role="list"
|
|
406
461
|
>
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
462
|
+
{builds.isLoading ? (
|
|
463
|
+
<DataCardSkeletons label="Loading native builds" />
|
|
464
|
+
) : rows?.length === 0 ? (
|
|
465
|
+
<DataCardsEmpty>{empty}</DataCardsEmpty>
|
|
466
|
+
) : (
|
|
467
|
+
rows?.map((build) => (
|
|
468
|
+
<div
|
|
469
|
+
className="border-b last:border-b-0"
|
|
470
|
+
key={build.id}
|
|
471
|
+
role="listitem"
|
|
472
|
+
>
|
|
473
|
+
<BuildCard build={build} onChannel={onChannel} />
|
|
474
|
+
</div>
|
|
475
|
+
))
|
|
476
|
+
)}
|
|
477
|
+
</div>
|
|
478
|
+
) : (
|
|
479
|
+
<DataTable
|
|
480
|
+
aria-busy={builds.isPlaceholderData}
|
|
481
|
+
aria-label="Native builds"
|
|
482
|
+
className="aria-busy:opacity-60"
|
|
483
|
+
header={
|
|
484
|
+
<>
|
|
485
|
+
<TableHead>Artifact</TableHead>
|
|
486
|
+
<TableHead>Channel</TableHead>
|
|
487
|
+
<TableHead>Platform</TableHead>
|
|
488
|
+
<TableHead>Build</TableHead>
|
|
489
|
+
<TableHead>Target</TableHead>
|
|
490
|
+
<TableHead>Build key</TableHead>
|
|
491
|
+
<TableHead>Store</TableHead>
|
|
492
|
+
<TableHead>Size</TableHead>
|
|
493
|
+
<TableHead>Created</TableHead>
|
|
494
|
+
<TableHead className="text-right">
|
|
495
|
+
<span className="sr-only">Actions</span>
|
|
496
|
+
</TableHead>
|
|
497
|
+
</>
|
|
498
|
+
}
|
|
416
499
|
>
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
500
|
+
{builds.isLoading ? (
|
|
501
|
+
<DataTableSkeletonRows
|
|
502
|
+
columns={COLUMNS}
|
|
503
|
+
label="Loading native builds"
|
|
504
|
+
/>
|
|
505
|
+
) : rows?.length === 0 ? (
|
|
506
|
+
<DataTableFullRow columns={COLUMNS}>{empty}</DataTableFullRow>
|
|
507
|
+
) : (
|
|
508
|
+
rows?.map((build) => (
|
|
509
|
+
<BuildRow build={build} key={build.id} onChannel={onChannel} />
|
|
510
|
+
))
|
|
511
|
+
)}
|
|
512
|
+
</DataTable>
|
|
513
|
+
)}
|
|
514
|
+
</DataTableFrame>
|
|
515
|
+
{builds.isLoading || rows === undefined ? null : (
|
|
516
|
+
<DataTablePagination
|
|
517
|
+
count={rows.length}
|
|
518
|
+
label="Native build pages"
|
|
519
|
+
pending={builds.isPlaceholderData}
|
|
520
|
+
newest={
|
|
521
|
+
paged
|
|
522
|
+
? { search: channelSearch(channel), to: "/native-builds" }
|
|
523
|
+
: undefined
|
|
524
|
+
}
|
|
525
|
+
next={
|
|
526
|
+
next === undefined
|
|
527
|
+
? undefined
|
|
528
|
+
: {
|
|
529
|
+
search: { ...channelSearch(channel), before: next },
|
|
530
|
+
to: "/native-builds",
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
previous={
|
|
534
|
+
previous === undefined
|
|
535
|
+
? undefined
|
|
536
|
+
: {
|
|
537
|
+
search: { ...channelSearch(channel), after: previous },
|
|
538
|
+
to: "/native-builds",
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
/>
|
|
542
|
+
)}
|
|
422
543
|
</>
|
|
423
544
|
);
|
|
424
545
|
}
|