@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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/console",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.0-rc.
|
|
4
|
+
"version": "1.2.0-rc.21",
|
|
5
5
|
"files": [
|
|
6
6
|
".output",
|
|
7
7
|
"lib",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"tw-animate-css": "^1.4.0",
|
|
60
60
|
"uqr": "^0.1.3",
|
|
61
61
|
"verkit": "0.4.0",
|
|
62
|
-
"@hot-updater/
|
|
63
|
-
"@hot-updater/
|
|
64
|
-
"@hot-updater/protocol": "1.2.0-rc.
|
|
65
|
-
"@hot-updater/server": "1.2.0-rc.
|
|
62
|
+
"@hot-updater/bsdiff": "1.2.0-rc.21",
|
|
63
|
+
"@hot-updater/plugin-core": "1.2.0-rc.21",
|
|
64
|
+
"@hot-updater/protocol": "1.2.0-rc.21",
|
|
65
|
+
"@hot-updater/server": "1.2.0-rc.21"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@tanstack/devtools-vite": "^0.6.0",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"vite-tsconfig-paths": "^6.1.1",
|
|
88
88
|
"vitest": "4.1.4",
|
|
89
89
|
"web-vitals": "^5.1.0",
|
|
90
|
-
"@hot-updater/cli-tools": "1.2.0-rc.
|
|
91
|
-
"@hot-updater/mock": "1.2.0-rc.
|
|
90
|
+
"@hot-updater/cli-tools": "1.2.0-rc.21",
|
|
91
|
+
"@hot-updater/mock": "1.2.0-rc.21"
|
|
92
92
|
},
|
|
93
93
|
"description": "React Native OTA solution for self-hosted",
|
|
94
94
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -7,21 +7,21 @@ interface ChannelBadgeProps {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20",
|
|
13
|
-
dev: "bg-blue-500/10 text-blue-700 dark:text-blue-400 border-blue-500/20",
|
|
14
|
-
staging:
|
|
15
|
-
"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20",
|
|
16
|
-
};
|
|
10
|
+
/** The channels with their own color; any other channel is neutral. */
|
|
11
|
+
const COLORED_CHANNELS = new Set(["production", "staging", "dev"]);
|
|
17
12
|
|
|
18
13
|
export function ChannelBadge({ channel, className }: ChannelBadgeProps) {
|
|
14
|
+
const name = channel.toLowerCase();
|
|
19
15
|
return (
|
|
20
16
|
<Badge
|
|
21
17
|
variant="outline"
|
|
18
|
+
translate="no"
|
|
19
|
+
data-channel={COLORED_CHANNELS.has(name) ? name : undefined}
|
|
22
20
|
className={cn(
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
"border-channel-other/20 bg-channel-other/10 text-channel-other",
|
|
22
|
+
"data-[channel=production]:border-channel-production/20 data-[channel=production]:bg-channel-production/10 data-[channel=production]:text-channel-production",
|
|
23
|
+
"data-[channel=staging]:border-channel-staging/20 data-[channel=staging]:bg-channel-staging/10 data-[channel=staging]:text-channel-staging",
|
|
24
|
+
"data-[channel=dev]:border-channel-dev/20 data-[channel=dev]:bg-channel-dev/10 data-[channel=dev]:text-channel-dev",
|
|
25
25
|
className,
|
|
26
26
|
)}
|
|
27
27
|
>
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { Link, type LinkProps } from "@tanstack/react-router";
|
|
2
|
+
import { ChevronLeft, ChevronRight, type LucideIcon } from "lucide-react";
|
|
3
|
+
import type { ComponentProps, MouseEvent, ReactNode } from "react";
|
|
4
|
+
|
|
5
|
+
import { Button, buttonVariants } from "@/components/ui/button";
|
|
6
|
+
import { Skeleton } from "@/components/ui/skeleton";
|
|
7
|
+
import {
|
|
8
|
+
Table,
|
|
9
|
+
TableBody,
|
|
10
|
+
TableCell,
|
|
11
|
+
TableHeader,
|
|
12
|
+
TableRow,
|
|
13
|
+
} from "@/components/ui/table";
|
|
14
|
+
import { cn } from "@/lib/utils";
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
* The shell the Bundles and Native builds lists share: a bordered frame that
|
|
18
|
+
* scrolls a column table on wide screens, or a list of cards on narrow ones,
|
|
19
|
+
* with a pagination bar under it. Each page keeps its own columns and cells.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/** The bordered frame; the table or card list inside it scrolls. */
|
|
23
|
+
export function DataTableFrame({ children }: { readonly children: ReactNode }) {
|
|
24
|
+
return (
|
|
25
|
+
<div className="min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-auto">
|
|
26
|
+
{children}
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** A table as wide as its columns, with an uppercase header row. */
|
|
32
|
+
export function DataTable({
|
|
33
|
+
header,
|
|
34
|
+
children,
|
|
35
|
+
className,
|
|
36
|
+
...props
|
|
37
|
+
}: Omit<ComponentProps<typeof Table>, "children"> & {
|
|
38
|
+
/** The header row's cells. */
|
|
39
|
+
readonly header: ReactNode;
|
|
40
|
+
readonly children: ReactNode;
|
|
41
|
+
}) {
|
|
42
|
+
return (
|
|
43
|
+
<Table className={cn("min-w-max", className)} {...props}>
|
|
44
|
+
<TableHeader className="bg-muted/40">
|
|
45
|
+
<TableRow className="border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground">
|
|
46
|
+
{header}
|
|
47
|
+
</TableRow>
|
|
48
|
+
</TableHeader>
|
|
49
|
+
<TableBody>{children}</TableBody>
|
|
50
|
+
</Table>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Opens an item from a click anywhere on its row or card, except on a
|
|
56
|
+
* control inside it, which keeps its own action.
|
|
57
|
+
*/
|
|
58
|
+
export const openOutsideControls =
|
|
59
|
+
(open: () => void) => (event: MouseEvent<HTMLElement>) => {
|
|
60
|
+
if (
|
|
61
|
+
event.target instanceof Element &&
|
|
62
|
+
event.target.closest("button, a, input, select, textarea")
|
|
63
|
+
) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
open();
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* A row that opens its item: a click outside its controls, or Enter or Space
|
|
71
|
+
* on the focused row, with hover, focus, and selection as one style.
|
|
72
|
+
*/
|
|
73
|
+
export function DataTableRow({
|
|
74
|
+
className,
|
|
75
|
+
onOpen,
|
|
76
|
+
...props
|
|
77
|
+
}: ComponentProps<typeof TableRow> & {
|
|
78
|
+
/** Opens the row's item. */
|
|
79
|
+
readonly onOpen: () => void;
|
|
80
|
+
}) {
|
|
81
|
+
return (
|
|
82
|
+
<TableRow
|
|
83
|
+
onClick={openOutsideControls(onOpen)}
|
|
84
|
+
onKeyDown={(event) => {
|
|
85
|
+
if (
|
|
86
|
+
event.target !== event.currentTarget ||
|
|
87
|
+
(event.key !== "Enter" && event.key !== " ")
|
|
88
|
+
) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
event.preventDefault();
|
|
92
|
+
onOpen();
|
|
93
|
+
}}
|
|
94
|
+
tabIndex={0}
|
|
95
|
+
className={cn(
|
|
96
|
+
"cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3",
|
|
97
|
+
className,
|
|
98
|
+
)}
|
|
99
|
+
{...props}
|
|
100
|
+
/>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** Placeholder rows while the first page loads. */
|
|
105
|
+
export function DataTableSkeletonRows({
|
|
106
|
+
columns,
|
|
107
|
+
label,
|
|
108
|
+
}: {
|
|
109
|
+
readonly columns: number;
|
|
110
|
+
/** What loads, for screen readers, such as "Loading native builds". */
|
|
111
|
+
readonly label?: string;
|
|
112
|
+
}) {
|
|
113
|
+
return Array.from({ length: 7 }, (_, index) => (
|
|
114
|
+
<TableRow key={index}>
|
|
115
|
+
<TableCell colSpan={columns}>
|
|
116
|
+
{index === 0 && label ? <span className="sr-only">{label}</span> : null}
|
|
117
|
+
<Skeleton className="h-8 w-full" />
|
|
118
|
+
</TableCell>
|
|
119
|
+
</TableRow>
|
|
120
|
+
));
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** A row across every column, for an empty list or an inline message. */
|
|
124
|
+
export function DataTableFullRow({
|
|
125
|
+
columns,
|
|
126
|
+
className,
|
|
127
|
+
children,
|
|
128
|
+
}: {
|
|
129
|
+
readonly columns: number;
|
|
130
|
+
readonly className?: string;
|
|
131
|
+
readonly children: ReactNode;
|
|
132
|
+
}) {
|
|
133
|
+
return (
|
|
134
|
+
<TableRow>
|
|
135
|
+
<TableCell
|
|
136
|
+
className={cn("h-44 text-center text-muted-foreground", className)}
|
|
137
|
+
colSpan={columns}
|
|
138
|
+
>
|
|
139
|
+
{children}
|
|
140
|
+
</TableCell>
|
|
141
|
+
</TableRow>
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* What an empty list says: the page's icon, what is missing, and what to do
|
|
147
|
+
* about it, in a table row or a card list.
|
|
148
|
+
*/
|
|
149
|
+
export function DataTableEmpty({
|
|
150
|
+
icon: Icon,
|
|
151
|
+
title,
|
|
152
|
+
children,
|
|
153
|
+
}: {
|
|
154
|
+
readonly icon: LucideIcon;
|
|
155
|
+
readonly title: ReactNode;
|
|
156
|
+
/** A sentence and the actions that fill the list. */
|
|
157
|
+
readonly children?: ReactNode;
|
|
158
|
+
}) {
|
|
159
|
+
return (
|
|
160
|
+
<div className="mx-auto flex max-w-sm flex-col items-center gap-2 whitespace-normal text-center text-sm text-muted-foreground">
|
|
161
|
+
<Icon aria-hidden="true" className="size-5" />
|
|
162
|
+
<p className="font-medium text-foreground">{title}</p>
|
|
163
|
+
{children}
|
|
164
|
+
</div>
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** The empty card list on a narrow screen. */
|
|
169
|
+
export function DataCardsEmpty({ children }: { readonly children: ReactNode }) {
|
|
170
|
+
return <div className="p-8">{children}</div>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** Placeholder cards while the first page loads on a narrow screen. */
|
|
174
|
+
export function DataCardSkeletons({ label }: { readonly label?: string }) {
|
|
175
|
+
return (
|
|
176
|
+
<div className="flex flex-col gap-3 p-4">
|
|
177
|
+
{label ? <span className="sr-only">{label}</span> : null}
|
|
178
|
+
{Array.from({ length: 5 }, (_, index) => (
|
|
179
|
+
<Skeleton className="h-44 w-full" key={index} />
|
|
180
|
+
))}
|
|
181
|
+
</div>
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** One item's card on a narrow screen; a tap opens it. */
|
|
186
|
+
export function DataCard({ className, ...props }: ComponentProps<"article">) {
|
|
187
|
+
return (
|
|
188
|
+
<article
|
|
189
|
+
className={cn(
|
|
190
|
+
"flex cursor-pointer touch-manipulation flex-col gap-4 border-b p-4 transition-[background-color,filter] last:border-b-0 hover:bg-muted/10 active:bg-muted/20 motion-reduce:transition-none data-[state=selected]:bg-muted/15",
|
|
191
|
+
className,
|
|
192
|
+
)}
|
|
193
|
+
{...props}
|
|
194
|
+
/>
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/** A page of a list: the route and the search that shows it. */
|
|
199
|
+
export type PageLink = Pick<LinkProps, "to" | "search">;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* The bar under a list: how many entries show, and Previous and Next, links
|
|
203
|
+
* to the newer and older pages, or disabled at either end. Newest shows on any
|
|
204
|
+
* page but the first.
|
|
205
|
+
*/
|
|
206
|
+
export function DataTablePagination({
|
|
207
|
+
count,
|
|
208
|
+
label,
|
|
209
|
+
pending = false,
|
|
210
|
+
newest,
|
|
211
|
+
previous,
|
|
212
|
+
next,
|
|
213
|
+
}: {
|
|
214
|
+
readonly count: number;
|
|
215
|
+
/** The navigation's name, such as "Bundle pagination". */
|
|
216
|
+
readonly label: string;
|
|
217
|
+
/**
|
|
218
|
+
* Whether the list shows the previous query's page while the next loads:
|
|
219
|
+
* its cursors belong to that query, so the controls wait.
|
|
220
|
+
*/
|
|
221
|
+
readonly pending?: boolean;
|
|
222
|
+
/** The first page, when the list shows another. */
|
|
223
|
+
readonly newest?: PageLink;
|
|
224
|
+
/** The newer page, if any. */
|
|
225
|
+
readonly previous?: PageLink;
|
|
226
|
+
/** The older page, if any. */
|
|
227
|
+
readonly next?: PageLink;
|
|
228
|
+
}) {
|
|
229
|
+
return (
|
|
230
|
+
<nav
|
|
231
|
+
aria-label={label}
|
|
232
|
+
className="flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between"
|
|
233
|
+
>
|
|
234
|
+
<p className="text-xs font-medium text-muted-foreground">
|
|
235
|
+
<span className="text-foreground">{count}</span>{" "}
|
|
236
|
+
{count === 1 ? "entry" : "entries"}, newest first
|
|
237
|
+
</p>
|
|
238
|
+
<div className="flex flex-wrap items-center gap-3 sm:justify-end">
|
|
239
|
+
{newest && !pending ? (
|
|
240
|
+
<Link
|
|
241
|
+
className={buttonVariants({
|
|
242
|
+
className: "h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none",
|
|
243
|
+
size: "sm",
|
|
244
|
+
variant: "ghost",
|
|
245
|
+
})}
|
|
246
|
+
search={newest.search}
|
|
247
|
+
to={newest.to}
|
|
248
|
+
>
|
|
249
|
+
Newest
|
|
250
|
+
</Link>
|
|
251
|
+
) : null}
|
|
252
|
+
{previous && !pending ? (
|
|
253
|
+
<Link
|
|
254
|
+
className={buttonVariants({
|
|
255
|
+
className: "h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none",
|
|
256
|
+
size: "sm",
|
|
257
|
+
variant: "outline",
|
|
258
|
+
})}
|
|
259
|
+
search={previous.search}
|
|
260
|
+
to={previous.to}
|
|
261
|
+
>
|
|
262
|
+
<ChevronLeft data-icon="inline-start" />
|
|
263
|
+
Previous
|
|
264
|
+
</Link>
|
|
265
|
+
) : (
|
|
266
|
+
<Button
|
|
267
|
+
className="h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none"
|
|
268
|
+
disabled
|
|
269
|
+
size="sm"
|
|
270
|
+
variant="outline"
|
|
271
|
+
>
|
|
272
|
+
<ChevronLeft data-icon="inline-start" />
|
|
273
|
+
Previous
|
|
274
|
+
</Button>
|
|
275
|
+
)}
|
|
276
|
+
{next && !pending ? (
|
|
277
|
+
<Link
|
|
278
|
+
className={buttonVariants({
|
|
279
|
+
className: "h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none",
|
|
280
|
+
size: "sm",
|
|
281
|
+
variant: "outline",
|
|
282
|
+
})}
|
|
283
|
+
search={next.search}
|
|
284
|
+
to={next.to}
|
|
285
|
+
>
|
|
286
|
+
Next
|
|
287
|
+
<ChevronRight data-icon="inline-end" />
|
|
288
|
+
</Link>
|
|
289
|
+
) : (
|
|
290
|
+
<Button
|
|
291
|
+
className="h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none"
|
|
292
|
+
disabled
|
|
293
|
+
size="sm"
|
|
294
|
+
variant="outline"
|
|
295
|
+
>
|
|
296
|
+
Next
|
|
297
|
+
<ChevronRight data-icon="inline-end" />
|
|
298
|
+
</Button>
|
|
299
|
+
)}
|
|
300
|
+
</div>
|
|
301
|
+
</nav>
|
|
302
|
+
);
|
|
303
|
+
}
|
|
@@ -6,6 +6,8 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip";
|
|
|
6
6
|
|
|
7
7
|
interface HashValueDisplayProps {
|
|
8
8
|
value: string;
|
|
9
|
+
/** What the pill shows, shortened, when it isn't `value`; `value` is copied. */
|
|
10
|
+
display?: string;
|
|
9
11
|
maxLength?: number;
|
|
10
12
|
className?: string;
|
|
11
13
|
buttonClassName?: string;
|
|
@@ -18,12 +20,13 @@ export const shortenIdentifier = (value: string, maxLength = 12) =>
|
|
|
18
20
|
|
|
19
21
|
export function HashValueDisplay({
|
|
20
22
|
value,
|
|
23
|
+
display = value,
|
|
21
24
|
maxLength = 12,
|
|
22
25
|
className,
|
|
23
26
|
buttonClassName,
|
|
24
27
|
}: HashValueDisplayProps) {
|
|
25
|
-
const isTruncated = value.length > maxLength;
|
|
26
|
-
const truncated = shortenIdentifier(
|
|
28
|
+
const isTruncated = display !== value || display.length > maxLength;
|
|
29
|
+
const truncated = shortenIdentifier(display, maxLength);
|
|
27
30
|
|
|
28
31
|
const copyValue = async () => {
|
|
29
32
|
try {
|
|
@@ -71,7 +74,7 @@ export function HashValueDisplay({
|
|
|
71
74
|
aria-label={`Copy full value: ${value}`}
|
|
72
75
|
translate="no"
|
|
73
76
|
className={cn(
|
|
74
|
-
"ring-ring/30 bg-muted/40 border-border/70 inline-flex min-w-0 max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]",
|
|
77
|
+
"ring-ring/30 bg-muted/40 border-border/70 relative inline-flex min-w-0 after:absolute after:inset-x-0 after:-inset-y-3 sm:after:hidden max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]",
|
|
75
78
|
"hover:bg-muted/70 active:scale-[0.98] active:bg-muted/85 focus-visible:ring-[2px]",
|
|
76
79
|
"touch-manipulation select-none motion-reduce:transition-none motion-reduce:active:scale-100",
|
|
77
80
|
!isTruncated && "cursor-copy",
|
|
@@ -37,3 +37,13 @@ export function PlatformIcon({ platform, className }: PlatformIconProps) {
|
|
|
37
37
|
}
|
|
38
38
|
return <AndroidIcon className={className} />;
|
|
39
39
|
}
|
|
40
|
+
|
|
41
|
+
/** A platform's icon and name, as a table's Platform column shows it. */
|
|
42
|
+
export function PlatformLabel({ platform }: { platform: "ios" | "android" }) {
|
|
43
|
+
return (
|
|
44
|
+
<span className="flex items-center gap-2">
|
|
45
|
+
<PlatformIcon className="size-4" platform={platform} />
|
|
46
|
+
{platform === "ios" ? "iOS" : "Android"}
|
|
47
|
+
</span>
|
|
48
|
+
);
|
|
49
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
import relativeTime from "dayjs/plugin/relativeTime";
|
|
3
|
+
|
|
4
|
+
dayjs.extend(relativeTime);
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* When something was created, as the Bundles and Native builds lists show
|
|
8
|
+
* it: relative, such as "4 hours ago", with the exact time on hover. A card
|
|
9
|
+
* has no hover, so `withDate` puts the exact time under it.
|
|
10
|
+
*/
|
|
11
|
+
export function RelativeTime({
|
|
12
|
+
ms,
|
|
13
|
+
withDate = false,
|
|
14
|
+
}: {
|
|
15
|
+
/** Epoch milliseconds. */
|
|
16
|
+
readonly ms: number;
|
|
17
|
+
readonly withDate?: boolean;
|
|
18
|
+
}) {
|
|
19
|
+
const date = dayjs(ms);
|
|
20
|
+
const exact = date.format("YYYY-MM-DD HH:mm:ss");
|
|
21
|
+
return (
|
|
22
|
+
<time
|
|
23
|
+
className="flex flex-col whitespace-nowrap tabular-nums"
|
|
24
|
+
dateTime={date.toISOString()}
|
|
25
|
+
title={exact}
|
|
26
|
+
>
|
|
27
|
+
<span>{date.fromNow()}</span>
|
|
28
|
+
{withDate ? <span className="text-muted-foreground">{exact}</span> : null}
|
|
29
|
+
</time>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Fingerprint, KeyRound, type LucideIcon, Package } from "lucide-react";
|
|
2
|
+
|
|
3
|
+
import { HashValueDisplay } from "./HashValueDisplay";
|
|
4
|
+
|
|
5
|
+
/** A hash behind its icon, shortened to `xxxxxxxx…xxxx` and copied on click. */
|
|
6
|
+
function IconHash({
|
|
7
|
+
icon: Icon,
|
|
8
|
+
value,
|
|
9
|
+
display,
|
|
10
|
+
}: {
|
|
11
|
+
readonly icon: LucideIcon;
|
|
12
|
+
readonly value: string;
|
|
13
|
+
readonly display?: string;
|
|
14
|
+
}) {
|
|
15
|
+
return (
|
|
16
|
+
<span className="flex items-center gap-2">
|
|
17
|
+
<Icon className="size-4 shrink-0 text-muted-foreground" />
|
|
18
|
+
<HashValueDisplay display={display} maxLength={12} value={value} />
|
|
19
|
+
</span>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** The cell of a missing value, such as an imported build's build key. */
|
|
24
|
+
export function NoValue() {
|
|
25
|
+
return <span className="text-muted-foreground">-</span>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* What OTAs target: an app version, or a fingerprint. The Bundles table's
|
|
30
|
+
* Target column and a native build's show one release's target the same way,
|
|
31
|
+
* so the two compare at a glance.
|
|
32
|
+
*/
|
|
33
|
+
export function TargetDisplay({
|
|
34
|
+
appVersion,
|
|
35
|
+
fingerprintHash,
|
|
36
|
+
}: {
|
|
37
|
+
readonly appVersion: string | null;
|
|
38
|
+
readonly fingerprintHash: string | null;
|
|
39
|
+
}) {
|
|
40
|
+
if (appVersion) {
|
|
41
|
+
return (
|
|
42
|
+
<span className="flex items-center gap-2">
|
|
43
|
+
<Package className="size-4 shrink-0 text-muted-foreground" />
|
|
44
|
+
<span className="font-medium">{appVersion}</span>
|
|
45
|
+
</span>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
if (fingerprintHash) {
|
|
49
|
+
return <IconHash icon={Fingerprint} value={fingerprintHash} />;
|
|
50
|
+
}
|
|
51
|
+
return <NoValue />;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* A native build's build key, `nbk1:` and a SHA-256 of the build's inputs,
|
|
56
|
+
* shown past its prefix as a fingerprint is, and copied whole; none for an
|
|
57
|
+
* imported build.
|
|
58
|
+
*/
|
|
59
|
+
export function BuildKeyDisplay({ value }: { readonly value: string | null }) {
|
|
60
|
+
return value ? (
|
|
61
|
+
<IconHash
|
|
62
|
+
display={value.replace(/^nbk1:/, "")}
|
|
63
|
+
icon={KeyRound}
|
|
64
|
+
value={value}
|
|
65
|
+
/>
|
|
66
|
+
) : (
|
|
67
|
+
<NoValue />
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -161,14 +161,9 @@ export function ChannelManagementDialog({
|
|
|
161
161
|
key={channel.id}
|
|
162
162
|
className="flex min-h-12 items-center gap-3 px-3 py-2"
|
|
163
163
|
>
|
|
164
|
-
<
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
</p>
|
|
168
|
-
<p className="truncate font-mono text-[10px] text-muted-foreground">
|
|
169
|
-
{channel.id}
|
|
170
|
-
</p>
|
|
171
|
-
</div>
|
|
164
|
+
<p className="min-w-0 flex-1 truncate text-xs font-medium">
|
|
165
|
+
{channel.name}
|
|
166
|
+
</p>
|
|
172
167
|
<Button
|
|
173
168
|
type="button"
|
|
174
169
|
variant="ghost"
|
|
@@ -137,7 +137,7 @@ export function BundleMovementSummary({
|
|
|
137
137
|
>
|
|
138
138
|
{input ? (
|
|
139
139
|
<Link
|
|
140
|
-
className="min-w-0 rounded-sm hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
140
|
+
className="relative min-w-0 rounded-sm after:absolute after:inset-x-0 after:-inset-y-3 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden"
|
|
141
141
|
to="/insights"
|
|
142
142
|
search={{
|
|
143
143
|
platform: input.platform,
|