@hot-updater/console 1.2.0-rc.13 → 1.2.0-rc.14
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-DC2PutLU.js → -native-builds-search-OlRj4Jz0.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-oMmbaqF6.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-q2FgL8xS.js → InsightsPageHeader-CSas9gM0.js} +1 -1
- package/.output/public/assets/{PlatformIcon-DCTtCP5t.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-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-t0CToN0S.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-B5cZsP6C.js → insights-search-CYPrQVUC.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-zut_JaSS.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-BRS-vuRJ.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-DQguWTMa.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-DI0OnlQe.mjs → __23tanstack-start-server-fn-resolver-BD3yIgQW.mjs} +49 -49
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_libs/lucide-react.mjs +1 -27
- package/.output/server/_ssr/{BundleIdDisplay-SAvC-NlE.mjs → BundleIdDisplay-Di0dxxxD.mjs} +2 -2
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BgHEoZ36.mjs → ConsoleFeatureUnavailable-BJM23Zg6.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-VaS25yjE.mjs → EventDetails-BatEDlOf.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-BGc-x_l8.mjs → HashValueDisplay-DoVLNSRc.mjs} +6 -6
- package/.output/server/_ssr/{InsightsPageHeader-gMuNJt-f.mjs → InsightsPageHeader--Lsgjvy7.mjs} +6 -6
- package/.output/server/_ssr/{NotFoundPage-DsRI-J4h.mjs → NotFoundPage-DsX6EelI.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-BsU0d0jN.mjs → PlatformIcon-Cuhy0CIO.mjs} +12 -2
- package/.output/server/_ssr/RelativeTime-BVQMmkQi.mjs +209 -0
- package/.output/server/_ssr/{git-WSg7LY17.mjs → RolloutPercentageBadge-B5_ASwiR.mjs} +18 -2
- package/.output/server/_ssr/StoreSubmission-B-oliflh.mjs +65 -0
- package/.output/server/_ssr/TargetDisplay-Zy7Xom4-.mjs +100 -0
- package/.output/server/_ssr/{alert-dialog-lury59vV.mjs → alert-dialog-C4wLRSPA.mjs} +1 -1
- package/.output/server/_ssr/{api-BQ8ztUgU.mjs → api-B9fz7k5l.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-CHATVpa9.mjs → api-keys-CWRy6qIm.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-DVChzF3r.mjs → api-keys-DSBFZRhe.mjs} +10 -9
- package/.output/server/_ssr/{api-keys-rpc-DXPJTfdr.mjs → api-keys-rpc-CWXJDGcR.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-BexxmTM9.mjs → api-rpc-DFAKchn0.mjs} +10 -10
- package/.output/server/_ssr/{auth-rpc-BgNCvy2L.mjs → auth-rpc-CCrZswwU.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-43UW34Rd.mjs → auth.server-B_NFqTVL.mjs} +2 -2
- package/.output/server/_ssr/{badge-BYB825vl.mjs → badge-CrneyinM.mjs} +2 -44
- package/.output/server/_ssr/card-uJiVh8Ex.mjs +49 -0
- package/.output/server/_ssr/{config.server-QRTmD4Hf.mjs → config.server-DegewTDN.mjs} +3 -3
- package/.output/server/_ssr/{console-access-E91fYTIB.mjs → console-access-Dn2nyMoy.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-CLRjxvy2.mjs → console-features-api-XvLDCadj.mjs} +3 -3
- package/.output/server/_ssr/{console-features-rpc-C2rJ0u6i.mjs → console-features-rpc-BGj3a9MK.mjs} +3 -3
- package/.output/server/_ssr/{dialog-CcF1pxfR.mjs → dialog-Bd8rq2D6.mjs} +1 -1
- package/.output/server/_ssr/{empty-DkiJ7nWt.mjs → empty-CxQ3tY82.mjs} +2 -2
- package/.output/server/_ssr/{field-CHlDI06h.mjs → field-BO99RT90.mjs} +2 -2
- package/.output/server/_ssr/{input-group-BPZ4UtB5.mjs → input-group-DTHYcd9a.mjs} +1 -1
- package/.output/server/_ssr/{insights-B3YetvBK.mjs → insights-2DKWoVb_.mjs} +5 -5
- package/.output/server/_ssr/{insights-Dn32lJ18.mjs → insights-B7__SQut.mjs} +2 -2
- package/.output/server/_ssr/{insights-CEABWFk4.mjs → insights-BxElDwIK.mjs} +21 -20
- package/.output/server/_ssr/{insights-api-CYPf5853.mjs → insights-api-BJcM3WZe.mjs} +3 -3
- package/.output/server/_ssr/{insights-failures-rpc-CxPpBR1K.mjs → insights-failures-rpc-Waj0XZKw.mjs} +4 -4
- package/.output/server/_ssr/{insights-recovery-rpc-CwnQMTE3.mjs → insights-recovery-rpc-DrPel0ob.mjs} +3 -3
- package/.output/server/_ssr/{insights-rpc-CKd5ATFI.mjs → insights-rpc-ETBGnpx2.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-B_92_iEj.mjs → insights-search-Dm005qPB.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-rpc-RIMNhPtj.mjs → insights-usage-rpc-DLReOGQK.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-rpc-D90uHpJJ.mjs → insights-usage-rpc-SqWTs_Dy.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-D4QWsHNo.mjs → insights_.distribution-BEUt7pIk.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-D42mHSe0.mjs → insights_.distribution-B_FxGnXR.mjs} +15 -14
- package/.output/server/_ssr/{insights_.distribution-DwjIdjQi.mjs → insights_.distribution-CCxFQ1g_.mjs} +2 -2
- package/.output/server/_ssr/{installations-BIu66J6Q.mjs → installations-Bphhuxoy.mjs} +2 -2
- package/.output/server/_ssr/{installations-DyzKzWuv.mjs → installations-C9cYjLEo.mjs} +12 -12
- package/.output/server/_ssr/{installations-CfmO_V_R.mjs → installations-ChnSJFAp.mjs} +4 -4
- package/.output/server/_ssr/{native-builds-BCp8ICrn.mjs → native-builds-CCLcEAUo.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-qj346atQ.mjs → native-builds-CWA9Y__P.mjs} +11 -10
- package/.output/server/_ssr/native-builds-vEUV8Jcd.mjs +548 -0
- package/.output/server/_ssr/{native-builds_._buildId-C8gsW-Rh.mjs → native-builds_._buildId-C-AS0ccm.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_._buildId-BAxkkEFo.mjs → native-builds_._buildId-CDnSyuLI.mjs} +107 -58
- package/.output/server/_ssr/{nativeBuildDevice-nU480p5A.mjs → nativeBuildDevice-Dn16gNmZ.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildDownloadLink-c3tcq3G5.mjs → nativeBuildDownloadLink-XqrSsk2n.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-B-_lHDsS.mjs → nativeBuildInstall-DqyrDtdY.mjs} +4 -4
- package/.output/server/_ssr/{nativeBuildQr-C5AFtpmE.mjs → nativeBuildQr-P9qKcI7l.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuilds-CbxOJDhO.mjs → nativeBuilds-ByQdDnHG.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-BBwJO2hu.mjs → release-adoption-rpc-DUnqLbyh.mjs} +5 -5
- package/.output/server/_ssr/{remote-config-B1g7vrQD.mjs → remote-config-DC9HsCJa.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-BDijmvj1.mjs → remote-config-Db3pXNkQ.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DjeXVIcr.mjs → remote-config-jOKasCsC.mjs} +19 -18
- package/.output/server/_ssr/{remote-config-rpc-B7bzKw4N.mjs → remote-config-rpc-D4rLBAC7.mjs} +3 -3
- package/.output/server/_ssr/{router-DhxgFNWn.mjs → router-B3iMYd1N.mjs} +28 -28
- package/.output/server/_ssr/{routes-BC-rBuu_.mjs → routes-BHhqwGpi.mjs} +254 -377
- package/.output/server/_ssr/{routes-BDriEBtF.mjs → routes-Bpb4VcCf.mjs} +10 -14
- package/.output/server/_ssr/{schema-migration-rpc-CNMqY0RE.mjs → schema-migration-rpc-BY84M6ZD.mjs} +3 -3
- package/.output/server/_ssr/{select-hFD2e3Bh.mjs → select-C_ARCTCI.mjs} +2 -2
- package/.output/server/_ssr/{server-D_hG9iIq.mjs → server-yFcuyI0b.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-Dmq4j1qr.mjs → sidebar-CFRWCQFu.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-RjhaPVFE.mjs → start-C0XSSCq4.mjs} +1 -1
- package/.output/server/_ssr/{switch-CkNsEp9k.mjs → switch-DS2sIZvU.mjs} +2 -2
- package/.output/server/_ssr/{table-CTtXogFJ.mjs → table-C4kXCYKR.mjs} +1 -1
- package/.output/server/_ssr/{tabs-BTKDM4AJ.mjs → tabs-DxOJdu7O.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-AYP07Vaf.mjs +194 -0
- package/.output/server/index.mjs +305 -284
- 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 +29 -28
- 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/NativeBuildDetailPage.tsx +4 -1
- package/src/components/features/native-builds/NativeBuildsPage.tsx +63 -76
- package/src/components/features/native-builds/NativeBuildsTable.tsx +435 -317
- package/src/components/features/native-builds/ShortHash.tsx +1 -1
- package/src/components/features/native-builds/StoreSubmission.tsx +11 -2
- package/src/lib/native-builds.ts +22 -6
- package/src/routes/index.tsx +290 -429
- package/src/styles.css +16 -0
- package/.output/public/assets/EventDetails-ly7ygfdH.js +0 -1
- package/.output/public/assets/HashValueDisplay-BNoXZADg.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-frllRncE.js +0 -1
- package/.output/public/assets/StoreSubmission-D8BGGGgn.js +0 -1
- package/.output/public/assets/api-keys-B0N3SixL.js +0 -1
- package/.output/public/assets/api-keys-DFAOfU4U.js +0 -1
- package/.output/public/assets/badge-UNnTz4Dl.js +0 -1
- package/.output/public/assets/download-Cf24LBde.js +0 -1
- package/.output/public/assets/insights-B0_8xNxr.js +0 -1
- package/.output/public/assets/insights-BbIzm_QG.js +0 -42
- package/.output/public/assets/insights-BtmYg4vg.js +0 -2
- package/.output/public/assets/insights_.distribution-DLxq-IKU.js +0 -1
- package/.output/public/assets/insights_.distribution-izFBYfJL.js +0 -2
- package/.output/public/assets/insights_.distribution-rdeyNhH2.js +0 -1
- package/.output/public/assets/installations-CWx7vYY5.js +0 -1
- package/.output/public/assets/installations-Ce_dTa35.js +0 -1
- package/.output/public/assets/native-builds-Br0onFRc.js +0 -2
- package/.output/public/assets/native-builds-CDYL3y0I.js +0 -1
- package/.output/public/assets/native-builds-DEWHul-_.js +0 -1
- package/.output/public/assets/native-builds_._buildId-D1XEPQ-V.js +0 -1
- package/.output/public/assets/native-builds_._buildId-x-uu1Vbr.js +0 -2
- package/.output/public/assets/remote-config-Bw6sErCV.js +0 -6
- package/.output/public/assets/remote-config-S3xj8r3x.js +0 -1
- package/.output/public/assets/routes-Dw8zgqXz.js +0 -2
- package/.output/public/assets/routes-nKCEKnhh.js +0 -1
- package/.output/public/assets/styles-uK-0vUMk.css +0 -2
- package/.output/public/assets/valueToPercent-DRLgSP0P.js +0 -1
- package/.output/server/_ssr/RolloutPercentageBadge-axz7VuIZ.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-BqXKtpqW.mjs +0 -139
- package/.output/server/_ssr/native-builds-CqFeXByK.mjs +0 -514
- package/.output/server/_tanstack-start-manifest_v-BuGAtKIu.mjs +0 -189
- /package/.output/public/assets/{NotFoundPage-fiaucvsO.js → NotFoundPage-Ckb5GMhh.js} +0 -0
- /package/.output/public/assets/{alert-dialog-Z_RNBrFc.js → alert-dialog-DiRLrFVe.js} +0 -0
- /package/.output/public/assets/{api-BEEYDSCX.js → api-LQJH44FU.js} +0 -0
- /package/.output/public/assets/{dialog-C2U9bINi.js → dialog-CLIaC82_.js} +0 -0
- /package/.output/public/assets/{dist-UQUhRoJi.js → dist-Bf1BPKMs.js} +0 -0
- /package/.output/public/assets/{empty-PAp07lsC.js → empty-Bhlj8PEo.js} +0 -0
- /package/.output/public/assets/{field-DhKRWFG5.js → field-q4sTYzNU.js} +0 -0
- /package/.output/public/assets/{input-group-BJfBVqeI.js → input-group-D_NfhUbX.js} +0 -0
- /package/.output/public/assets/{refresh-cw-C6svDMfM.js → refresh-cw-C-tvoCcE.js} +0 -0
- /package/.output/public/assets/{relativeTime-BscR0TsX.js → relativeTime-DvyxGIsm.js} +0 -0
- /package/.output/public/assets/{rotate-cw-CxFW64IG.js → rotate-cw-Clk5xTeE.js} +0 -0
- /package/.output/public/assets/{search-bIYGuFCt.js → search-nnvSOTEB.js} +0 -0
- /package/.output/public/assets/{smartphone-Bn5FtEwt.js → smartphone-r0rRdPas.js} +0 -0
- /package/.output/public/assets/{switch-DtUu1RCw.js → switch-CP6GsHmN.js} +0 -0
- /package/.output/public/assets/{table-B22H8-RL.js → table-TUtVz-2l.js} +0 -0
- /package/.output/public/assets/{tabs-Fgz3sA51.js → tabs-CP3CSmtI.js} +0 -0
- /package/.output/public/assets/{undo-2-7gOxArtb.js → undo-2-Bt0YXG26.js} +0 -0
- /package/.output/public/assets/{uuidv7-BLyD3pAM.js → uuidv7-cI6C63Fm.js} +0 -0
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { i as __toESM } from "../_runtime.mjs";
|
|
2
|
-
import { yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
|
-
import { V as Copy, p as Send } from "../_libs/lucide-react.mjs";
|
|
4
|
-
import { t as Button$1 } from "./sidebar-Dmq4j1qr.mjs";
|
|
5
|
-
import { a as Badge } from "./badge-BYB825vl.mjs";
|
|
6
|
-
import { n as toast } from "../_libs/sonner.mjs";
|
|
7
|
-
import { a as useConfigQuery } from "./api-BQ8ztUgU.mjs";
|
|
8
|
-
import { n as require_dayjs_min, t as require_relativeTime } from "../_libs/dayjs.mjs";
|
|
9
|
-
import { n as getCommitUrl } from "./git-WSg7LY17.mjs";
|
|
10
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/StoreSubmission-BqXKtpqW.js
|
|
11
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
12
|
-
var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
|
|
13
|
-
var import_relativeTime = /* @__PURE__ */ __toESM(require_relativeTime());
|
|
14
|
-
/** A command or link on one line, with a button that copies it. */
|
|
15
|
-
function CopyableText({ label, value, wrap = false }) {
|
|
16
|
-
const copy = async () => {
|
|
17
|
-
try {
|
|
18
|
-
await navigator.clipboard.writeText(value);
|
|
19
|
-
toast.success("Copied to clipboard");
|
|
20
|
-
} catch {
|
|
21
|
-
toast.error(`Could not copy ${label}`);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
25
|
-
className: "flex w-full min-w-0 items-center gap-2 rounded-md border bg-muted/40 py-1 pr-1 pl-3",
|
|
26
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
27
|
-
className: wrap ? "min-w-0 flex-1 text-left font-mono text-xs whitespace-normal sm:whitespace-nowrap" : "min-w-0 flex-1 overflow-x-auto text-left font-mono text-xs whitespace-nowrap",
|
|
28
|
-
children: value
|
|
29
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
30
|
-
"aria-label": `Copy ${label}`,
|
|
31
|
-
className: "size-11 sm:size-7",
|
|
32
|
-
onClick: () => void copy(),
|
|
33
|
-
size: "icon-sm",
|
|
34
|
-
variant: "ghost",
|
|
35
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Copy, { "aria-hidden": "true" })
|
|
36
|
-
})]
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* A hash shortened to its prefix, as git shows a commit: never cut in the
|
|
41
|
-
* middle, the full value on hover, and copied on click.
|
|
42
|
-
*/
|
|
43
|
-
function ShortHash({ value, length, label }) {
|
|
44
|
-
const copy = async () => {
|
|
45
|
-
try {
|
|
46
|
-
await navigator.clipboard.writeText(value);
|
|
47
|
-
toast.success("Copied to clipboard", { description: value });
|
|
48
|
-
} catch {
|
|
49
|
-
toast.error(`Could not copy the ${label}`);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
53
|
-
"aria-label": `Copy the ${label} ${value}`,
|
|
54
|
-
className: "cursor-copy rounded-sm font-mono text-xs whitespace-nowrap tabular-nums underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
|
|
55
|
-
onClick: (event) => {
|
|
56
|
-
event.stopPropagation();
|
|
57
|
-
copy();
|
|
58
|
-
},
|
|
59
|
-
title: value,
|
|
60
|
-
translate: "no",
|
|
61
|
-
type: "button",
|
|
62
|
-
children: value.slice(0, length)
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* A build's commit as git shows it, its first 7 characters: a link to the
|
|
67
|
-
* commit when `console.gitUrl` is set, else a button that copies the full
|
|
68
|
-
* SHA. The full SHA shows on hover either way.
|
|
69
|
-
*/
|
|
70
|
-
function CommitLink({ hash }) {
|
|
71
|
-
const config = useConfigQuery();
|
|
72
|
-
if (hash === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
73
|
-
className: "text-muted-foreground",
|
|
74
|
-
children: "—"
|
|
75
|
-
});
|
|
76
|
-
const url = getCommitUrl(config.data?.console.gitUrl, hash);
|
|
77
|
-
return url === null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShortHash, {
|
|
78
|
-
label: "commit",
|
|
79
|
-
length: 7,
|
|
80
|
-
value: hash
|
|
81
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
82
|
-
className: "font-mono text-xs whitespace-nowrap underline-offset-4 hover:underline",
|
|
83
|
-
href: url,
|
|
84
|
-
onClick: (event) => event.stopPropagation(),
|
|
85
|
-
rel: "noreferrer",
|
|
86
|
-
target: "_blank",
|
|
87
|
-
title: hash,
|
|
88
|
-
translate: "no",
|
|
89
|
-
children: hash.slice(0, 7)
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
import_dayjs_min.default.extend(import_relativeTime.default);
|
|
93
|
-
/** Each store track's name as the stores call it. */
|
|
94
|
-
var storeTrackLabels = {
|
|
95
|
-
testflight: "TestFlight",
|
|
96
|
-
"play-internal": "Play internal"
|
|
97
|
-
};
|
|
98
|
-
/** Whether a store took the build, as its row records. */
|
|
99
|
-
var isSubmitted = (build) => build.submitted_to !== null && build.submitted_to !== void 0;
|
|
100
|
-
/** When the submission was recorded: relative, with the exact time on hover. */
|
|
101
|
-
function SubmittedAt({ ms }) {
|
|
102
|
-
if (ms === null) return null;
|
|
103
|
-
const date = (0, import_dayjs_min.default)(ms);
|
|
104
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("time", {
|
|
105
|
-
className: "text-xs text-muted-foreground",
|
|
106
|
-
dateTime: date.toISOString(),
|
|
107
|
-
title: date.format("YYYY-MM-DD HH:mm:ss"),
|
|
108
|
-
children: date.fromNow()
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* The store track a build went to, with the store's label of it, such as
|
|
113
|
-
* "TestFlight 1.7.0 (66)": none for a build no store took.
|
|
114
|
-
*/
|
|
115
|
-
function StoreSubmissionBadge({ build, withTime = false }) {
|
|
116
|
-
if (!isSubmitted(build)) return null;
|
|
117
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
118
|
-
className: "inline-flex flex-wrap items-center gap-1.5",
|
|
119
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Badge, {
|
|
120
|
-
className: "gap-1",
|
|
121
|
-
title: `Submitted to ${storeTrackLabels[build.submitted_to]}`,
|
|
122
|
-
variant: "secondary",
|
|
123
|
-
children: [
|
|
124
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Send, {
|
|
125
|
-
"aria-hidden": "true",
|
|
126
|
-
className: "size-3"
|
|
127
|
-
}),
|
|
128
|
-
storeTrackLabels[build.submitted_to],
|
|
129
|
-
build.submitted_version ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
130
|
-
className: "font-mono tabular-nums",
|
|
131
|
-
translate: "no",
|
|
132
|
-
children: build.submitted_version
|
|
133
|
-
}) : null
|
|
134
|
-
]
|
|
135
|
-
}), withTime ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubmittedAt, { ms: build.submitted_at_ms }) : null]
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
//#endregion
|
|
139
|
-
export { isSubmitted as a, StoreSubmissionBadge as i, CopyableText as n, ShortHash as r, CommitLink as t };
|
|
@@ -1,514 +0,0 @@
|
|
|
1
|
-
import { yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
2
|
-
import { B as Download, J as ChevronLeft, L as FileUp, M as HardDrive, N as HardDriveDownload, _ as RefreshCw, i as TriangleAlert, q as ChevronRight, tt as ArrowUpRight } from "../_libs/lucide-react.mjs";
|
|
3
|
-
import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, t as Button$1 } from "./sidebar-Dmq4j1qr.mjs";
|
|
4
|
-
import { g as useNavigate, h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
5
|
-
import { a as Badge, i as AlertTitle, n as AlertAction, o as Card, r as AlertDescription, s as CardContent, t as Alert } from "./badge-BYB825vl.mjs";
|
|
6
|
-
import { a as DialogHeader, n as DialogContent, o as DialogTitle, r as DialogDescription, s as DialogTrigger, t as Dialog$1 } from "./dialog-CcF1pxfR.mjs";
|
|
7
|
-
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-CTtXogFJ.mjs";
|
|
8
|
-
import { b as nativeBuildTarget, l as nativeBuildChannel, m as nativeBuildFileName, o as formatByteSize, p as nativeBuildDownloadPath, s as nativeBuildArtifacts, x as platformLabel } from "./native-builds-qj346atQ.mjs";
|
|
9
|
-
import { t as PlatformIcon } from "./PlatformIcon-BsU0d0jN.mjs";
|
|
10
|
-
import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-hFD2e3Bh.mjs";
|
|
11
|
-
import { h as useNativeBuildsQuery, i as useChannelsQuery } from "./api-BQ8ztUgU.mjs";
|
|
12
|
-
import { t as Route } from "./native-builds-BCp8ICrn.mjs";
|
|
13
|
-
import { t as TimestampDisplay } from "./git-WSg7LY17.mjs";
|
|
14
|
-
import { i as StoreSubmissionBadge, n as CopyableText, r as ShortHash, t as CommitLink } from "./StoreSubmission-BqXKtpqW.mjs";
|
|
15
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/native-builds-CqFeXByK.js
|
|
16
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
17
|
-
/** The command that tracks a build made elsewhere. */
|
|
18
|
-
var IMPORT_COMMAND = "npx hot-updater native-build import <file>";
|
|
19
|
-
/** `native-build import`'s section of the native build guide. */
|
|
20
|
-
var IMPORT_GUIDE_URL = "https://hot-updater.dev/docs/guides/native-build#import-a-build-made-elsewhere";
|
|
21
|
-
/**
|
|
22
|
-
* The toolbar's "Import a build" button and the command it shows: the CLI
|
|
23
|
-
* reads the artifact on the machine that has it, so the Console uploads
|
|
24
|
-
* nothing, since a host may cap a request's body far below an `.ipa`. The
|
|
25
|
-
* guide has the rest, such as `--channel`.
|
|
26
|
-
*/
|
|
27
|
-
function ImportBuildDialog() {
|
|
28
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Dialog$1, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogTrigger, {
|
|
29
|
-
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
30
|
-
"aria-label": "Import a build",
|
|
31
|
-
className: "min-h-11 sm:min-h-7",
|
|
32
|
-
size: "sm",
|
|
33
|
-
variant: "outline"
|
|
34
|
-
}),
|
|
35
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FileUp, { "data-icon": "inline-start" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
36
|
-
className: "hidden sm:inline",
|
|
37
|
-
children: "Import a build"
|
|
38
|
-
})]
|
|
39
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogContent, {
|
|
40
|
-
className: "sm:max-w-lg",
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogTitle, { children: "Import a build" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogDescription, { children: "Track an .ipa, .aab, .apk or .app built elsewhere as a patch base." })] }),
|
|
43
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
44
|
-
label: "the import command",
|
|
45
|
-
value: IMPORT_COMMAND,
|
|
46
|
-
wrap: true
|
|
47
|
-
}),
|
|
48
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
49
|
-
className: buttonVariants({
|
|
50
|
-
className: "min-h-11 w-full sm:min-h-8 sm:w-fit",
|
|
51
|
-
variant: "outline"
|
|
52
|
-
}),
|
|
53
|
-
href: IMPORT_GUIDE_URL,
|
|
54
|
-
rel: "noreferrer",
|
|
55
|
-
target: "_blank",
|
|
56
|
-
children: ["Import guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
|
|
57
|
-
})
|
|
58
|
-
]
|
|
59
|
-
})] });
|
|
60
|
-
}
|
|
61
|
-
var NATIVE_BUILD_GUIDE_URL = "https://hot-updater.dev/docs/guides/native-build#how-a-build-is-tracked";
|
|
62
|
-
var COLUMNS = 6;
|
|
63
|
-
function EmptyRow({ channel, paged, onClearChannel, onNewest }) {
|
|
64
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
65
|
-
className: "h-44 text-center text-muted-foreground",
|
|
66
|
-
colSpan: COLUMNS,
|
|
67
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
68
|
-
className: "mx-auto flex max-w-sm flex-col items-center gap-2 whitespace-normal",
|
|
69
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDriveDownload, {
|
|
70
|
-
"aria-hidden": "true",
|
|
71
|
-
className: "size-5"
|
|
72
|
-
}), paged ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
73
|
-
className: "font-medium text-foreground",
|
|
74
|
-
children: "No more native builds"
|
|
75
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
76
|
-
className: "mt-1 min-h-11 sm:min-h-8",
|
|
77
|
-
onClick: onNewest,
|
|
78
|
-
variant: "outline",
|
|
79
|
-
children: "Show the newest builds"
|
|
80
|
-
})] }) : channel !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
81
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
82
|
-
className: "font-medium text-foreground",
|
|
83
|
-
children: ["No native build embeds ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
84
|
-
translate: "no",
|
|
85
|
-
children: channel
|
|
86
|
-
})]
|
|
87
|
-
}),
|
|
88
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "A build embeds the channel it was built on. Build one on this channel, or list every channel's builds." }),
|
|
89
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
90
|
-
className: "mt-1 min-h-11 sm:min-h-8",
|
|
91
|
-
onClick: onClearChannel,
|
|
92
|
-
variant: "outline",
|
|
93
|
-
children: "Show all channels"
|
|
94
|
-
})
|
|
95
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
96
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
97
|
-
className: "font-medium text-foreground",
|
|
98
|
-
children: "No native builds"
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
101
|
-
"Build one with",
|
|
102
|
-
" ",
|
|
103
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
104
|
-
className: "font-mono text-xs",
|
|
105
|
-
children: "native-build android"
|
|
106
|
-
}),
|
|
107
|
-
" ",
|
|
108
|
-
"or ",
|
|
109
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
110
|
-
className: "font-mono text-xs",
|
|
111
|
-
children: "native-build ios"
|
|
112
|
-
}),
|
|
113
|
-
", or import one built elsewhere:"
|
|
114
|
-
] }),
|
|
115
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
116
|
-
className: "w-full text-left",
|
|
117
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
118
|
-
label: "the import command",
|
|
119
|
-
value: IMPORT_COMMAND,
|
|
120
|
-
wrap: true
|
|
121
|
-
})
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
124
|
-
className: buttonVariants({
|
|
125
|
-
className: "mt-1 min-h-11 sm:min-h-8",
|
|
126
|
-
variant: "outline"
|
|
127
|
-
}),
|
|
128
|
-
href: NATIVE_BUILD_GUIDE_URL,
|
|
129
|
-
rel: "noreferrer",
|
|
130
|
-
target: "_blank",
|
|
131
|
-
children: ["Native build guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
|
|
132
|
-
}),
|
|
133
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
134
|
-
className: buttonVariants({
|
|
135
|
-
className: "min-h-11 sm:min-h-8",
|
|
136
|
-
variant: "outline"
|
|
137
|
-
}),
|
|
138
|
-
href: IMPORT_GUIDE_URL,
|
|
139
|
-
rel: "noreferrer",
|
|
140
|
-
target: "_blank",
|
|
141
|
-
children: ["Import guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
|
|
142
|
-
})
|
|
143
|
-
] })]
|
|
144
|
-
})
|
|
145
|
-
}) });
|
|
146
|
-
}
|
|
147
|
-
function LoadingRows() {
|
|
148
|
-
return Array.from({ length: 3 }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
|
|
149
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableCell, {
|
|
150
|
-
className: "space-y-2 py-3",
|
|
151
|
-
children: [
|
|
152
|
-
index === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
153
|
-
className: "sr-only",
|
|
154
|
-
children: "Loading native builds"
|
|
155
|
-
}) : null,
|
|
156
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3.5 w-40" }),
|
|
157
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3 w-24" })
|
|
158
|
-
]
|
|
159
|
-
}),
|
|
160
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
161
|
-
className: "hidden md:table-cell",
|
|
162
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-5 w-20" })
|
|
163
|
-
}),
|
|
164
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
165
|
-
className: "hidden xl:table-cell",
|
|
166
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3.5 w-28" })
|
|
167
|
-
}),
|
|
168
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
169
|
-
className: "hidden xl:table-cell",
|
|
170
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3.5 w-14" })
|
|
171
|
-
}),
|
|
172
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
173
|
-
className: "hidden sm:table-cell",
|
|
174
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3.5 w-20" })
|
|
175
|
-
}),
|
|
176
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "ml-auto h-6 w-16" }) })
|
|
177
|
-
] }, index));
|
|
178
|
-
}
|
|
179
|
-
function BuildRow({ build, onChannel }) {
|
|
180
|
-
const navigate = useNavigate();
|
|
181
|
-
const target = nativeBuildTarget(build);
|
|
182
|
-
const channel = nativeBuildChannel(build);
|
|
183
|
-
const title = `${platformLabel(build.platform)} ${nativeBuildArtifacts[build.artifact_kind].label}`;
|
|
184
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
185
|
-
className: "cursor-pointer",
|
|
186
|
-
onClick: () => void navigate({
|
|
187
|
-
to: "/native-builds/$buildId",
|
|
188
|
-
params: { buildId: build.id }
|
|
189
|
-
}),
|
|
190
|
-
children: [
|
|
191
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
192
|
-
className: "py-3 whitespace-normal",
|
|
193
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
194
|
-
className: "flex min-w-0 flex-col gap-1",
|
|
195
|
-
children: [
|
|
196
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
197
|
-
className: "flex flex-wrap items-center gap-1.5",
|
|
198
|
-
children: [
|
|
199
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
|
|
200
|
-
className: "size-3.5 shrink-0 text-muted-foreground",
|
|
201
|
-
platform: build.platform
|
|
202
|
-
}),
|
|
203
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
204
|
-
className: "font-medium underline-offset-4 hover:underline",
|
|
205
|
-
onClick: (event) => event.stopPropagation(),
|
|
206
|
-
params: { buildId: build.id },
|
|
207
|
-
to: "/native-builds/$buildId",
|
|
208
|
-
children: title
|
|
209
|
-
}),
|
|
210
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
211
|
-
className: "text-xs text-muted-foreground tabular-nums",
|
|
212
|
-
children: formatByteSize(build.byte_size)
|
|
213
|
-
}),
|
|
214
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreSubmissionBadge, {
|
|
215
|
-
build,
|
|
216
|
-
withTime: true
|
|
217
|
-
}),
|
|
218
|
-
build.store_build === true ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
219
|
-
variant: "secondary",
|
|
220
|
-
children: "Store build"
|
|
221
|
-
}) : null
|
|
222
|
-
]
|
|
223
|
-
}),
|
|
224
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
225
|
-
className: "flex min-w-0 flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",
|
|
226
|
-
children: [
|
|
227
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: target.label }),
|
|
228
|
-
build.fingerprint_hash === null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
229
|
-
className: "font-mono text-foreground",
|
|
230
|
-
translate: "no",
|
|
231
|
-
children: target.value
|
|
232
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShortHash, {
|
|
233
|
-
label: "fingerprint",
|
|
234
|
-
length: 12,
|
|
235
|
-
value: build.fingerprint_hash
|
|
236
|
-
}),
|
|
237
|
-
!build.build_number ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
238
|
-
className: "tabular-nums",
|
|
239
|
-
translate: "no",
|
|
240
|
-
children: ["· build ", build.build_number]
|
|
241
|
-
}),
|
|
242
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
243
|
-
className: "md:hidden",
|
|
244
|
-
translate: "no",
|
|
245
|
-
children: ["· ", channel]
|
|
246
|
-
}),
|
|
247
|
-
build.git_commit_hash === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
248
|
-
className: "inline-flex items-center gap-1 xl:hidden",
|
|
249
|
-
children: ["· commit ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommitLink, { hash: build.git_commit_hash })]
|
|
250
|
-
})
|
|
251
|
-
]
|
|
252
|
-
}),
|
|
253
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
254
|
-
className: "text-xs text-muted-foreground xl:hidden",
|
|
255
|
-
children: [
|
|
256
|
-
"Built-in bundle",
|
|
257
|
-
" ",
|
|
258
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
259
|
-
className: "font-mono [overflow-wrap:anywhere] text-foreground",
|
|
260
|
-
translate: "no",
|
|
261
|
-
children: build.min_bundle_id
|
|
262
|
-
})
|
|
263
|
-
]
|
|
264
|
-
})
|
|
265
|
-
]
|
|
266
|
-
})
|
|
267
|
-
}),
|
|
268
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
269
|
-
className: "hidden md:table-cell",
|
|
270
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
271
|
-
"aria-label": `Show the builds that embed ${channel}`,
|
|
272
|
-
className: "rounded-md text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
|
|
273
|
-
onClick: (event) => {
|
|
274
|
-
event.stopPropagation();
|
|
275
|
-
onChannel(channel);
|
|
276
|
-
},
|
|
277
|
-
type: "button",
|
|
278
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
279
|
-
className: "whitespace-nowrap",
|
|
280
|
-
translate: "no",
|
|
281
|
-
variant: "outline",
|
|
282
|
-
children: channel
|
|
283
|
-
})
|
|
284
|
-
})
|
|
285
|
-
}),
|
|
286
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
287
|
-
className: "hidden xl:table-cell",
|
|
288
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
289
|
-
className: "font-mono text-xs text-muted-foreground",
|
|
290
|
-
translate: "no",
|
|
291
|
-
children: build.min_bundle_id
|
|
292
|
-
})
|
|
293
|
-
}),
|
|
294
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
295
|
-
className: "hidden xl:table-cell",
|
|
296
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommitLink, { hash: build.git_commit_hash })
|
|
297
|
-
}),
|
|
298
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
299
|
-
className: "hidden sm:table-cell",
|
|
300
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: build.id })
|
|
301
|
-
}),
|
|
302
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
303
|
-
className: "text-right",
|
|
304
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
305
|
-
"aria-label": `Download ${nativeBuildFileName(build)}`,
|
|
306
|
-
className: buttonVariants({
|
|
307
|
-
className: "min-h-11 sm:min-h-7",
|
|
308
|
-
size: "sm",
|
|
309
|
-
variant: "outline"
|
|
310
|
-
}),
|
|
311
|
-
download: true,
|
|
312
|
-
href: nativeBuildDownloadPath(build.id),
|
|
313
|
-
onClick: (event) => event.stopPropagation(),
|
|
314
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Download, { "data-icon": "inline-start" }), "Download"]
|
|
315
|
-
})
|
|
316
|
-
})
|
|
317
|
-
]
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* The registered native builds, newest first, one page at a time. A row
|
|
322
|
-
* opens the build's page; its channel filters the list by that channel.
|
|
323
|
-
*/
|
|
324
|
-
function NativeBuildsTable({ builds, channel, paged, onChannel, onPage }) {
|
|
325
|
-
const rows = builds.data?.data;
|
|
326
|
-
const { next, previous } = builds.data ?? {};
|
|
327
|
-
if (builds.isError) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
328
|
-
className: "p-4",
|
|
329
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
|
|
330
|
-
variant: "destructive",
|
|
331
|
-
children: [
|
|
332
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
|
|
333
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Native builds couldn't be loaded" }),
|
|
334
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "Check your connection and try again." }),
|
|
335
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
336
|
-
onClick: () => void builds.refetch(),
|
|
337
|
-
size: "xs",
|
|
338
|
-
variant: "outline",
|
|
339
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
|
|
340
|
-
}) })
|
|
341
|
-
]
|
|
342
|
-
})
|
|
343
|
-
});
|
|
344
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
|
|
345
|
-
"aria-busy": builds.isPlaceholderData,
|
|
346
|
-
"aria-label": "Native builds",
|
|
347
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
|
|
348
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Build" }),
|
|
349
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
350
|
-
className: "hidden md:table-cell",
|
|
351
|
-
children: "Channel"
|
|
352
|
-
}),
|
|
353
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
354
|
-
className: "hidden xl:table-cell",
|
|
355
|
-
children: "Built-in bundle"
|
|
356
|
-
}),
|
|
357
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
358
|
-
className: "hidden xl:table-cell",
|
|
359
|
-
children: "Commit"
|
|
360
|
-
}),
|
|
361
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
362
|
-
className: "hidden sm:table-cell",
|
|
363
|
-
children: "Created"
|
|
364
|
-
}),
|
|
365
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
366
|
-
className: "text-right",
|
|
367
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
368
|
-
className: "sr-only",
|
|
369
|
-
children: "Actions"
|
|
370
|
-
})
|
|
371
|
-
})
|
|
372
|
-
] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, { children: builds.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoadingRows, {}) : rows?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyRow, {
|
|
373
|
-
channel,
|
|
374
|
-
onClearChannel: () => onChannel(void 0),
|
|
375
|
-
onNewest: () => onPage({}),
|
|
376
|
-
paged
|
|
377
|
-
}) : rows?.map((build) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildRow, {
|
|
378
|
-
build,
|
|
379
|
-
onChannel
|
|
380
|
-
}, build.id)) })]
|
|
381
|
-
}), next !== void 0 || previous !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("nav", {
|
|
382
|
-
"aria-label": "Native build pages",
|
|
383
|
-
className: "flex items-center justify-end gap-2 border-t px-4 py-2",
|
|
384
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
385
|
-
className: "min-h-11 sm:min-h-7",
|
|
386
|
-
disabled: previous === void 0 || builds.isPlaceholderData,
|
|
387
|
-
onClick: () => onPage({ after: previous }),
|
|
388
|
-
size: "sm",
|
|
389
|
-
variant: "ghost",
|
|
390
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Newer"]
|
|
391
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
392
|
-
className: "min-h-11 sm:min-h-7",
|
|
393
|
-
disabled: next === void 0 || builds.isPlaceholderData,
|
|
394
|
-
onClick: () => onPage({ before: next }),
|
|
395
|
-
size: "sm",
|
|
396
|
-
variant: "ghost",
|
|
397
|
-
children: ["Older", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, { "data-icon": "inline-end" })]
|
|
398
|
-
})]
|
|
399
|
-
}) : null] });
|
|
400
|
-
}
|
|
401
|
-
/**
|
|
402
|
-
* The filter's values: a channel's is its name behind a prefix, so no channel
|
|
403
|
-
* name, `all` included, can be taken for "All channels".
|
|
404
|
-
*/
|
|
405
|
-
var ALL_CHANNELS = "all";
|
|
406
|
-
var CHANNEL_VALUE_PREFIX = "channel:";
|
|
407
|
-
var channelValue = (name) => `${CHANNEL_VALUE_PREFIX}${name}`;
|
|
408
|
-
/**
|
|
409
|
-
* The native builds Hot Updater tracks: one page at a time, newest first,
|
|
410
|
-
* optionally only those that embed one channel. The page and the channel
|
|
411
|
-
* are in the URL, so a pull request links to its channel's builds.
|
|
412
|
-
*/
|
|
413
|
-
function NativeBuildsPage({ search, onSearchChange }) {
|
|
414
|
-
const { channel, before, after } = search;
|
|
415
|
-
const builds = useNativeBuildsQuery(search);
|
|
416
|
-
const channels = useChannelsQuery();
|
|
417
|
-
const channelNames = channels.data?.map(({ name }) => name) ?? [];
|
|
418
|
-
const choices = channel === void 0 || channelNames.includes(channel) ? channelNames : [channel, ...channelNames];
|
|
419
|
-
const filterBy = (next) => onSearchChange(next === void 0 ? {} : { channel: next });
|
|
420
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
421
|
-
className: "flex h-svh min-h-0 flex-col",
|
|
422
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
423
|
-
className: "sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm",
|
|
424
|
-
children: [
|
|
425
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
|
|
426
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
427
|
-
className: "flex items-center gap-1.5",
|
|
428
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDrive, {
|
|
429
|
-
"aria-hidden": "true",
|
|
430
|
-
className: "size-3.5 text-muted-foreground"
|
|
431
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
432
|
-
className: "text-sm font-medium",
|
|
433
|
-
children: "Native builds"
|
|
434
|
-
})]
|
|
435
|
-
}),
|
|
436
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
437
|
-
className: "basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0",
|
|
438
|
-
children: "Store and test builds, each the built-in bundle its OTAs patch from."
|
|
439
|
-
})
|
|
440
|
-
]
|
|
441
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
442
|
-
className: "min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6",
|
|
443
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
|
|
444
|
-
className: "mx-auto w-full max-w-6xl overflow-hidden shadow-sm",
|
|
445
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
446
|
-
className: "flex items-center gap-2 border-b px-4 py-3",
|
|
447
|
-
children: [
|
|
448
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Select$1, {
|
|
449
|
-
items: [{
|
|
450
|
-
label: "All channels",
|
|
451
|
-
value: ALL_CHANNELS
|
|
452
|
-
}, ...choices.map((name) => ({
|
|
453
|
-
label: name,
|
|
454
|
-
value: channelValue(name)
|
|
455
|
-
}))],
|
|
456
|
-
onOpenChange: (open) => {
|
|
457
|
-
if (open) channels.refetch();
|
|
458
|
-
},
|
|
459
|
-
onValueChange: (value) => filterBy(value?.startsWith(CHANNEL_VALUE_PREFIX) ? value.slice(8) : void 0),
|
|
460
|
-
value: channel === void 0 ? ALL_CHANNELS : channelValue(channel),
|
|
461
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
462
|
-
"aria-label": "Channel",
|
|
463
|
-
className: "h-11 min-w-0 flex-1 text-xs sm:h-8 sm:w-48 sm:flex-none",
|
|
464
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
465
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
466
|
-
value: ALL_CHANNELS,
|
|
467
|
-
children: "All channels"
|
|
468
|
-
}), choices.map((name) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
469
|
-
translate: "no",
|
|
470
|
-
value: channelValue(name),
|
|
471
|
-
children: name
|
|
472
|
-
}, name))] }) })]
|
|
473
|
-
}),
|
|
474
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
475
|
-
className: "ml-auto",
|
|
476
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ImportBuildDialog, {})
|
|
477
|
-
}),
|
|
478
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
479
|
-
"aria-label": "Refresh native builds",
|
|
480
|
-
className: "size-11 sm:size-7",
|
|
481
|
-
disabled: builds.isLoading,
|
|
482
|
-
onClick: () => void builds.refetch(),
|
|
483
|
-
size: "icon-sm",
|
|
484
|
-
variant: "ghost",
|
|
485
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "aria-hidden": "true" })
|
|
486
|
-
})
|
|
487
|
-
]
|
|
488
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
|
|
489
|
-
className: "p-0",
|
|
490
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsTable, {
|
|
491
|
-
builds,
|
|
492
|
-
channel,
|
|
493
|
-
onChannel: filterBy,
|
|
494
|
-
onPage: (page) => onSearchChange({
|
|
495
|
-
...channel === void 0 ? {} : { channel },
|
|
496
|
-
...page
|
|
497
|
-
}),
|
|
498
|
-
paged: before !== void 0 || after !== void 0
|
|
499
|
-
})
|
|
500
|
-
})]
|
|
501
|
-
})
|
|
502
|
-
})]
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
function NativeBuildsRoute() {
|
|
506
|
-
const search = Route.useSearch();
|
|
507
|
-
const navigate = Route.useNavigate();
|
|
508
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsPage, {
|
|
509
|
-
onSearchChange: (next) => void navigate({ search: next }),
|
|
510
|
-
search
|
|
511
|
-
});
|
|
512
|
-
}
|
|
513
|
-
//#endregion
|
|
514
|
-
export { NativeBuildsRoute as component };
|