@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
package/src/routes/index.tsx
CHANGED
|
@@ -3,29 +3,42 @@ import { createFileRoute, Link } from "@tanstack/react-router";
|
|
|
3
3
|
import {
|
|
4
4
|
AlertTriangle,
|
|
5
5
|
ChevronDown,
|
|
6
|
-
ChevronLeft,
|
|
7
6
|
ChevronRight,
|
|
8
7
|
CircleOff,
|
|
9
|
-
Fingerprint,
|
|
10
8
|
Filter,
|
|
11
9
|
Package,
|
|
12
10
|
RotateCcw,
|
|
13
11
|
Tags,
|
|
14
12
|
X,
|
|
15
13
|
} from "lucide-react";
|
|
16
|
-
import { Fragment,
|
|
14
|
+
import { Fragment, useEffect, useState } from "react";
|
|
17
15
|
|
|
18
16
|
import { BundleIdDisplay } from "@/components/BundleIdDisplay";
|
|
19
17
|
import { ChannelBadge } from "@/components/ChannelBadge";
|
|
18
|
+
import {
|
|
19
|
+
DataCard,
|
|
20
|
+
DataCardSkeletons,
|
|
21
|
+
DataCardsEmpty,
|
|
22
|
+
DataTable,
|
|
23
|
+
DataTableFrame,
|
|
24
|
+
DataTableEmpty,
|
|
25
|
+
DataTableFullRow,
|
|
26
|
+
DataTablePagination,
|
|
27
|
+
DataTableRow,
|
|
28
|
+
openOutsideControls,
|
|
29
|
+
DataTableSkeletonRows,
|
|
30
|
+
} from "@/components/DataTable";
|
|
20
31
|
import { EnabledStatusIcon } from "@/components/EnabledStatusIcon";
|
|
21
32
|
import { BundleChildrenPanel } from "@/components/features/bundles/BundleChildrenPanel";
|
|
22
33
|
import { ChannelManagementDialog } from "@/components/features/channels/ChannelManagementDialog";
|
|
23
34
|
import { useReleaseColumns } from "@/components/features/FeatureSlots";
|
|
35
|
+
import { CopyableText } from "@/components/features/native-builds/CopyableText";
|
|
24
36
|
import { ReleaseEditorSheet } from "@/components/features/releases/ReleaseEditorSheet";
|
|
25
37
|
import { ReleaseStateBadge } from "@/components/features/releases/ReleaseStateBadge";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
38
|
+
import { PlatformIcon, PlatformLabel } from "@/components/PlatformIcon";
|
|
39
|
+
import { RelativeTime } from "@/components/RelativeTime";
|
|
28
40
|
import { RolloutPercentageBadge } from "@/components/RolloutPercentageBadge";
|
|
41
|
+
import { TargetDisplay } from "@/components/TargetDisplay";
|
|
29
42
|
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
|
|
30
43
|
import { Badge } from "@/components/ui/badge";
|
|
31
44
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
@@ -39,14 +52,7 @@ import {
|
|
|
39
52
|
} from "@/components/ui/select";
|
|
40
53
|
import { SidebarTrigger } from "@/components/ui/sidebar";
|
|
41
54
|
import { Skeleton } from "@/components/ui/skeleton";
|
|
42
|
-
import {
|
|
43
|
-
Table,
|
|
44
|
-
TableBody,
|
|
45
|
-
TableCell,
|
|
46
|
-
TableHead,
|
|
47
|
-
TableHeader,
|
|
48
|
-
TableRow,
|
|
49
|
-
} from "@/components/ui/table";
|
|
55
|
+
import { TableCell, TableHead, TableRow } from "@/components/ui/table";
|
|
50
56
|
import { useIsMobile } from "@/hooks/use-mobile";
|
|
51
57
|
import {
|
|
52
58
|
useBundleChildCountsQuery,
|
|
@@ -76,29 +82,6 @@ const statusFilterItems = [
|
|
|
76
82
|
{ label: "Enabled", value: "enabled" },
|
|
77
83
|
{ label: "Disabled", value: "disabled" },
|
|
78
84
|
];
|
|
79
|
-
const dateFormatter = new Intl.DateTimeFormat(undefined, {
|
|
80
|
-
dateStyle: "medium",
|
|
81
|
-
timeStyle: "short",
|
|
82
|
-
});
|
|
83
|
-
const tableDateFormatter = new Intl.DateTimeFormat(undefined, {
|
|
84
|
-
dateStyle: "medium",
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Opens a bundle from a click anywhere on its row or card, except on a
|
|
89
|
-
* control inside it, which keeps its own action.
|
|
90
|
-
*/
|
|
91
|
-
const openOutsideControls =
|
|
92
|
-
(open: () => void) => (event: MouseEvent<HTMLElement>) => {
|
|
93
|
-
if (
|
|
94
|
-
event.target instanceof Element &&
|
|
95
|
-
event.target.closest("button, a, input, select, textarea")
|
|
96
|
-
) {
|
|
97
|
-
return;
|
|
98
|
-
}
|
|
99
|
-
open();
|
|
100
|
-
};
|
|
101
|
-
|
|
102
85
|
export const Route = createFileRoute("/")({
|
|
103
86
|
component: BundlesPage,
|
|
104
87
|
validateSearch: validateReleaseSearch,
|
|
@@ -130,7 +113,7 @@ function BundleFilterToolbar({
|
|
|
130
113
|
|
|
131
114
|
return (
|
|
132
115
|
<header className="sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-2 border-b bg-background px-3 py-3 sm:h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:py-0 sm:backdrop-blur-sm">
|
|
133
|
-
<SidebarTrigger className="-ml-1" />
|
|
116
|
+
<SidebarTrigger className="-ml-1 size-11 lg:size-7" />
|
|
134
117
|
<h1 className="sr-only">Bundles</h1>
|
|
135
118
|
<div className="ml-1 flex items-center gap-1.5 text-muted-foreground sm:ml-2">
|
|
136
119
|
<Filter className="size-3.5" />
|
|
@@ -147,7 +130,7 @@ function BundleFilterToolbar({
|
|
|
147
130
|
>
|
|
148
131
|
<SelectTrigger
|
|
149
132
|
aria-label="Channel"
|
|
150
|
-
className="
|
|
133
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 sm:w-[140px] sm:data-[size=default]:h-8"
|
|
151
134
|
>
|
|
152
135
|
<SelectValue />
|
|
153
136
|
</SelectTrigger>
|
|
@@ -172,7 +155,7 @@ function BundleFilterToolbar({
|
|
|
172
155
|
>
|
|
173
156
|
<SelectTrigger
|
|
174
157
|
aria-label="Platform"
|
|
175
|
-
className="
|
|
158
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8"
|
|
176
159
|
title={channelSelected ? undefined : "Choose a channel first"}
|
|
177
160
|
>
|
|
178
161
|
<SelectValue />
|
|
@@ -207,7 +190,7 @@ function BundleFilterToolbar({
|
|
|
207
190
|
>
|
|
208
191
|
<SelectTrigger
|
|
209
192
|
aria-label="Status"
|
|
210
|
-
className="
|
|
193
|
+
className="w-[calc(50%-0.25rem)] min-w-[132px] text-xs data-[size=default]:h-11 max-sm:order-2 sm:w-[140px] sm:data-[size=default]:h-8"
|
|
211
194
|
>
|
|
212
195
|
<SelectValue />
|
|
213
196
|
</SelectTrigger>
|
|
@@ -221,6 +204,7 @@ function BundleFilterToolbar({
|
|
|
221
204
|
</Select>
|
|
222
205
|
<Button
|
|
223
206
|
aria-label="Manage channels"
|
|
207
|
+
className="size-11 max-sm:order-1 sm:size-7"
|
|
224
208
|
onClick={onManageChannels}
|
|
225
209
|
size="icon-sm"
|
|
226
210
|
title="Manage channels"
|
|
@@ -229,11 +213,11 @@ function BundleFilterToolbar({
|
|
|
229
213
|
<Tags />
|
|
230
214
|
</Button>
|
|
231
215
|
{search.bundleId ? (
|
|
232
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
216
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
233
217
|
Artifact filter
|
|
234
218
|
<button
|
|
235
219
|
aria-label="Clear artifact filter"
|
|
236
|
-
className="rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
220
|
+
className="relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden"
|
|
237
221
|
onClick={() => onChange({ bundleId: undefined })}
|
|
238
222
|
type="button"
|
|
239
223
|
>
|
|
@@ -242,11 +226,11 @@ function BundleFilterToolbar({
|
|
|
242
226
|
</Badge>
|
|
243
227
|
) : null}
|
|
244
228
|
{search.scopeKey ? (
|
|
245
|
-
<Badge className="max-w-48 gap-1" variant="secondary">
|
|
229
|
+
<Badge className="max-w-48 gap-1 max-sm:order-3" variant="secondary">
|
|
246
230
|
Target filter
|
|
247
231
|
<button
|
|
248
232
|
aria-label="Clear target filter"
|
|
249
|
-
className="rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
233
|
+
className="relative rounded-sm after:absolute after:-inset-4 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:after:hidden"
|
|
250
234
|
onClick={() => onChange({ scopeKey: undefined })}
|
|
251
235
|
type="button"
|
|
252
236
|
>
|
|
@@ -256,7 +240,7 @@ function BundleFilterToolbar({
|
|
|
256
240
|
) : null}
|
|
257
241
|
{hasFilters ? (
|
|
258
242
|
<Button
|
|
259
|
-
className="h-
|
|
243
|
+
className="h-11 px-2 text-xs text-muted-foreground hover:text-foreground max-sm:order-3 sm:ml-auto sm:h-8"
|
|
260
244
|
onClick={onClear}
|
|
261
245
|
size="sm"
|
|
262
246
|
variant="ghost"
|
|
@@ -299,7 +283,7 @@ function BundleEntry({
|
|
|
299
283
|
: "Show advanced artifact diagnostics"
|
|
300
284
|
}
|
|
301
285
|
title="Advanced artifact diagnostics"
|
|
302
|
-
className="size-
|
|
286
|
+
className="size-11 shrink-0 touch-manipulation sm:size-8"
|
|
303
287
|
onClick={onToggleExpand}
|
|
304
288
|
size="icon"
|
|
305
289
|
type="button"
|
|
@@ -308,7 +292,7 @@ function BundleEntry({
|
|
|
308
292
|
{expanded ? <ChevronDown /> : <ChevronRight />}
|
|
309
293
|
</Button>
|
|
310
294
|
) : (
|
|
311
|
-
<span aria-hidden="true" className="size-
|
|
295
|
+
<span aria-hidden="true" className="size-11 shrink-0 sm:size-8" />
|
|
312
296
|
)}
|
|
313
297
|
<button
|
|
314
298
|
aria-label={`Open details for ID ${release.id}`}
|
|
@@ -502,6 +486,51 @@ function BundlesPage() {
|
|
|
502
486
|
releaseId: undefined,
|
|
503
487
|
};
|
|
504
488
|
|
|
489
|
+
const empty = (
|
|
490
|
+
<DataTableEmpty
|
|
491
|
+
icon={Package}
|
|
492
|
+
title={
|
|
493
|
+
onLaterPage
|
|
494
|
+
? "No more bundles"
|
|
495
|
+
: hasReleaseFilters(search)
|
|
496
|
+
? "No bundles match these filters"
|
|
497
|
+
: "No bundles yet"
|
|
498
|
+
}
|
|
499
|
+
>
|
|
500
|
+
{onLaterPage ? (
|
|
501
|
+
<Link
|
|
502
|
+
className={buttonVariants({
|
|
503
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
504
|
+
variant: "outline",
|
|
505
|
+
})}
|
|
506
|
+
search={newestSearch}
|
|
507
|
+
to="/"
|
|
508
|
+
>
|
|
509
|
+
Show the newest bundles
|
|
510
|
+
</Link>
|
|
511
|
+
) : hasReleaseFilters(search) ? (
|
|
512
|
+
<Button
|
|
513
|
+
className="mt-1 min-h-11 sm:min-h-8"
|
|
514
|
+
onClick={() => go({})}
|
|
515
|
+
variant="outline"
|
|
516
|
+
>
|
|
517
|
+
Clear filters
|
|
518
|
+
</Button>
|
|
519
|
+
) : (
|
|
520
|
+
<>
|
|
521
|
+
<p>Deploy one from your app's project:</p>
|
|
522
|
+
<div className="w-full text-left">
|
|
523
|
+
<CopyableText
|
|
524
|
+
label="the deploy command"
|
|
525
|
+
value="npx hot-updater deploy"
|
|
526
|
+
wrap
|
|
527
|
+
/>
|
|
528
|
+
</div>
|
|
529
|
+
</>
|
|
530
|
+
)}
|
|
531
|
+
</DataTableEmpty>
|
|
532
|
+
);
|
|
533
|
+
|
|
505
534
|
return (
|
|
506
535
|
<div className="flex h-svh min-h-0 min-w-0 flex-col">
|
|
507
536
|
<BundleFilterToolbar
|
|
@@ -520,15 +549,11 @@ function BundlesPage() {
|
|
|
520
549
|
<AlertDescription>{releasesQuery.error.message}</AlertDescription>
|
|
521
550
|
</Alert>
|
|
522
551
|
) : (
|
|
523
|
-
<
|
|
552
|
+
<DataTableFrame>
|
|
524
553
|
{isMobile ? (
|
|
525
554
|
<div className="h-full overflow-y-auto">
|
|
526
555
|
{releasesQuery.isPending ? (
|
|
527
|
-
<
|
|
528
|
-
{Array.from({ length: 5 }, (_, index) => (
|
|
529
|
-
<Skeleton className="h-44 w-full" key={index} />
|
|
530
|
-
))}
|
|
531
|
-
</div>
|
|
556
|
+
<DataCardSkeletons />
|
|
532
557
|
) : releases.length ? (
|
|
533
558
|
releases.map((release) => {
|
|
534
559
|
const channelName =
|
|
@@ -544,10 +569,10 @@ function BundlesPage() {
|
|
|
544
569
|
<Fragment key={release.id}>
|
|
545
570
|
{/* The ID button opens it for keyboards and screen
|
|
546
571
|
readers; a tap anywhere else on the card does too. */}
|
|
547
|
-
<
|
|
572
|
+
<DataCard
|
|
548
573
|
aria-label={`Bundle ${release.id}`}
|
|
549
574
|
className={cn(
|
|
550
|
-
"
|
|
575
|
+
"gap-3",
|
|
551
576
|
release.currentlyUnreachable &&
|
|
552
577
|
"bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100",
|
|
553
578
|
isExpanded && "border-b-0 bg-primary/5",
|
|
@@ -579,89 +604,60 @@ function BundlesPage() {
|
|
|
579
604
|
className="shrink-0"
|
|
580
605
|
/>
|
|
581
606
|
</div>
|
|
582
|
-
<
|
|
583
|
-
<
|
|
584
|
-
<
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
<dd className="mt-1 tabular-nums">
|
|
598
|
-
{dateFormatter.format(release.created_at_ms)}
|
|
599
|
-
</dd>
|
|
600
|
-
</div>
|
|
601
|
-
<div className="rounded-md bg-muted/40 p-3">
|
|
602
|
-
<dt className="text-muted-foreground">Rollout</dt>
|
|
603
|
-
<dd className="mt-1">
|
|
604
|
-
<RolloutPercentageBadge
|
|
605
|
-
percentage={release.rollout_cohort_count / 10}
|
|
606
|
-
/>
|
|
607
|
-
</dd>
|
|
608
|
-
</div>
|
|
609
|
-
<div className="rounded-md bg-muted/40 p-3">
|
|
610
|
-
<dt className="text-muted-foreground">Patches</dt>
|
|
611
|
-
<dd className="mt-1">
|
|
612
|
-
{patchCount === undefined
|
|
613
|
-
? "Checking"
|
|
614
|
-
: patchCount > 0
|
|
615
|
-
? `${patchCount} ${
|
|
607
|
+
<p className="flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground">
|
|
608
|
+
<span className="flex items-center gap-1.5 text-foreground">
|
|
609
|
+
<PlatformIcon
|
|
610
|
+
className="size-4"
|
|
611
|
+
platform={release.platform}
|
|
612
|
+
/>
|
|
613
|
+
{release.platform === "ios" ? "iOS" : "Android"}
|
|
614
|
+
</span>
|
|
615
|
+
{patchCount === undefined || patchCount > 0 ? (
|
|
616
|
+
<>
|
|
617
|
+
<span aria-hidden="true">·</span>
|
|
618
|
+
<span>
|
|
619
|
+
{patchCount === undefined
|
|
620
|
+
? "Checking patches"
|
|
621
|
+
: `${patchCount} ${
|
|
616
622
|
patchCount === 1 ? "patch" : "patches"
|
|
617
|
-
}`
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
</dt>
|
|
648
|
-
<dd className="min-w-0 truncate text-right font-mono">
|
|
649
|
-
{release.target_app_version ??
|
|
650
|
-
release.fingerprint_hash ??
|
|
651
|
-
"—"}
|
|
652
|
-
</dd>
|
|
653
|
-
</div>
|
|
654
|
-
<div className="flex items-start justify-between gap-3">
|
|
655
|
-
<dt className="text-muted-foreground">
|
|
656
|
-
Message
|
|
657
|
-
</dt>
|
|
658
|
-
<dd className="min-w-0 text-right text-foreground">
|
|
659
|
-
{release.message || "—"}
|
|
660
|
-
</dd>
|
|
661
|
-
</div>
|
|
623
|
+
}`}
|
|
624
|
+
</span>
|
|
625
|
+
</>
|
|
626
|
+
) : null}
|
|
627
|
+
<span aria-hidden="true">·</span>
|
|
628
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
629
|
+
</p>
|
|
630
|
+
<div className="flex flex-wrap items-center gap-x-3 gap-y-2 text-xs">
|
|
631
|
+
<RolloutPercentageBadge
|
|
632
|
+
percentage={release.rollout_cohort_count / 10}
|
|
633
|
+
/>
|
|
634
|
+
<ReleaseStateBadge release={release} />
|
|
635
|
+
{release.should_force_update ? (
|
|
636
|
+
<Badge variant="secondary">Force update</Badge>
|
|
637
|
+
) : null}
|
|
638
|
+
<span className="flex items-center">
|
|
639
|
+
<span className="sr-only">Target </span>
|
|
640
|
+
<TargetDisplay
|
|
641
|
+
appVersion={release.target_app_version}
|
|
642
|
+
fingerprintHash={release.fingerprint_hash}
|
|
643
|
+
/>
|
|
644
|
+
</span>
|
|
645
|
+
</div>
|
|
646
|
+
{featureColumns.map(({ Cell, feature, label }) => (
|
|
647
|
+
<div className="mt-3 text-xs" key={feature}>
|
|
648
|
+
<span className="sr-only">{label}</span>
|
|
649
|
+
<Cell
|
|
650
|
+
releaseId={release.id}
|
|
651
|
+
releases={slotReleases}
|
|
652
|
+
/>
|
|
662
653
|
</div>
|
|
663
|
-
|
|
664
|
-
|
|
654
|
+
))}
|
|
655
|
+
{release.message ? (
|
|
656
|
+
<p className="line-clamp-2 text-xs text-muted-foreground">
|
|
657
|
+
{release.message}
|
|
658
|
+
</p>
|
|
659
|
+
) : null}
|
|
660
|
+
</DataCard>
|
|
665
661
|
{isExpanded && release.bundle_id ? (
|
|
666
662
|
<ReleaseBundleChildrenPanel
|
|
667
663
|
onDetailClick={openChildBundle}
|
|
@@ -673,19 +669,13 @@ function BundlesPage() {
|
|
|
673
669
|
);
|
|
674
670
|
})
|
|
675
671
|
) : (
|
|
676
|
-
<
|
|
677
|
-
{onLaterPage
|
|
678
|
-
? "No more bundles on this side."
|
|
679
|
-
: hasReleaseFilters(search)
|
|
680
|
-
? "No bundles match these filters."
|
|
681
|
-
: "No bundles yet. Deploy an update to see it here."}
|
|
682
|
-
</p>
|
|
672
|
+
<DataCardsEmpty>{empty}</DataCardsEmpty>
|
|
683
673
|
)}
|
|
684
674
|
</div>
|
|
685
675
|
) : (
|
|
686
|
-
<
|
|
687
|
-
|
|
688
|
-
|
|
676
|
+
<DataTable
|
|
677
|
+
header={
|
|
678
|
+
<>
|
|
689
679
|
<TableHead>ID</TableHead>
|
|
690
680
|
<TableHead>Channel</TableHead>
|
|
691
681
|
<TableHead>Platform</TableHead>
|
|
@@ -699,296 +689,167 @@ function BundlesPage() {
|
|
|
699
689
|
))}
|
|
700
690
|
<TableHead>Message</TableHead>
|
|
701
691
|
<TableHead>Created</TableHead>
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
</TableRow>
|
|
712
|
-
))
|
|
713
|
-
: releases.map((release) => {
|
|
714
|
-
const isExpanded = expandedReleaseId === release.id;
|
|
715
|
-
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
692
|
+
</>
|
|
693
|
+
}
|
|
694
|
+
>
|
|
695
|
+
{releasesQuery.isPending ? (
|
|
696
|
+
<DataTableSkeletonRows columns={columnCount} />
|
|
697
|
+
) : (
|
|
698
|
+
releases.map((release) => {
|
|
699
|
+
const isExpanded = expandedReleaseId === release.id;
|
|
700
|
+
const panelId = `bundle-lineage-panel-${release.id}`;
|
|
716
701
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
702
|
+
return (
|
|
703
|
+
<Fragment key={release.id}>
|
|
704
|
+
<DataTableRow
|
|
705
|
+
aria-label={`Open bundle ${release.id}`}
|
|
706
|
+
className={cn(
|
|
707
|
+
release.currentlyUnreachable &&
|
|
708
|
+
"bg-muted/35 saturate-50 hover:bg-muted/50 hover:saturate-100 focus-within:saturate-100",
|
|
709
|
+
isExpanded && "bg-primary/5",
|
|
710
|
+
)}
|
|
711
|
+
data-state={
|
|
712
|
+
search.releaseId === release.id
|
|
713
|
+
? "selected"
|
|
714
|
+
: undefined
|
|
715
|
+
}
|
|
716
|
+
onOpen={() =>
|
|
717
|
+
go({ ...search, releaseId: release.id }, false)
|
|
718
|
+
}
|
|
719
|
+
>
|
|
720
|
+
<TableCell>
|
|
721
|
+
<BundleEntry
|
|
722
|
+
expanded={isExpanded}
|
|
723
|
+
onOpen={() =>
|
|
724
|
+
go({ ...search, releaseId: release.id }, false)
|
|
725
|
+
}
|
|
726
|
+
onToggleExpand={() =>
|
|
727
|
+
setExpandedReleaseId(
|
|
728
|
+
isExpanded ? undefined : release.id,
|
|
729
|
+
)
|
|
731
730
|
}
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
731
|
+
release={release}
|
|
732
|
+
/>
|
|
733
|
+
</TableCell>
|
|
734
|
+
<TableCell>
|
|
735
|
+
<ChannelBadge
|
|
736
|
+
channel={
|
|
737
|
+
channelNames.get(release.channel_id) ??
|
|
738
|
+
release.channel_id
|
|
739
|
+
}
|
|
740
|
+
/>
|
|
741
|
+
</TableCell>
|
|
742
|
+
<TableCell className="whitespace-nowrap">
|
|
743
|
+
<PlatformLabel platform={release.platform} />
|
|
744
|
+
</TableCell>
|
|
745
|
+
<TableCell>
|
|
746
|
+
{release.bundle_id &&
|
|
747
|
+
patchCountsByBundleId[release.bundle_id] ===
|
|
748
|
+
undefined ? (
|
|
749
|
+
<span className="text-sm text-muted-foreground">
|
|
750
|
+
Checking
|
|
751
|
+
</span>
|
|
752
|
+
) : release.bundle_id &&
|
|
753
|
+
patchCountsByBundleId[release.bundle_id]! > 0 ? (
|
|
754
|
+
<Badge variant="secondary">
|
|
755
|
+
{patchCountsByBundleId[release.bundle_id]}{" "}
|
|
756
|
+
{patchCountsByBundleId[release.bundle_id] === 1
|
|
757
|
+
? "patch"
|
|
758
|
+
: "patches"}
|
|
759
|
+
</Badge>
|
|
760
|
+
) : (
|
|
761
|
+
<span className="text-muted-foreground">-</span>
|
|
762
|
+
)}
|
|
763
|
+
</TableCell>
|
|
764
|
+
<TableCell>
|
|
765
|
+
<TargetDisplay
|
|
766
|
+
appVersion={release.target_app_version}
|
|
767
|
+
fingerprintHash={release.fingerprint_hash}
|
|
768
|
+
/>
|
|
769
|
+
</TableCell>
|
|
770
|
+
<TableCell>
|
|
771
|
+
<span className="flex items-center">
|
|
772
|
+
<EnabledStatusIcon enabled={release.enabled} />
|
|
773
|
+
<span className="sr-only">
|
|
774
|
+
{release.enabled ? "Enabled" : "Disabled"}
|
|
775
|
+
</span>
|
|
776
|
+
</span>
|
|
777
|
+
</TableCell>
|
|
778
|
+
<TableCell>
|
|
779
|
+
<span className="flex items-center">
|
|
780
|
+
<EnabledStatusIcon
|
|
781
|
+
enabled={release.should_force_update}
|
|
782
|
+
falseIcon="minus"
|
|
783
|
+
/>
|
|
784
|
+
<span className="sr-only">
|
|
785
|
+
{release.should_force_update
|
|
786
|
+
? "Required"
|
|
787
|
+
: "Optional"}
|
|
788
|
+
</span>
|
|
789
|
+
</span>
|
|
790
|
+
</TableCell>
|
|
791
|
+
<TableCell>
|
|
792
|
+
<RolloutPercentageBadge
|
|
793
|
+
percentage={release.rollout_cohort_count / 10}
|
|
794
|
+
/>
|
|
795
|
+
</TableCell>
|
|
796
|
+
{featureColumns.map(({ Cell, feature }) => (
|
|
797
|
+
<TableCell key={feature}>
|
|
798
|
+
<Cell
|
|
799
|
+
releaseId={release.id}
|
|
800
|
+
releases={slotReleases}
|
|
801
|
+
/>
|
|
802
|
+
</TableCell>
|
|
803
|
+
))}
|
|
804
|
+
<TableCell
|
|
805
|
+
className="text-sm text-muted-foreground"
|
|
806
|
+
title={release.message ?? undefined}
|
|
807
|
+
>
|
|
808
|
+
{release.message || "-"}
|
|
809
|
+
</TableCell>
|
|
810
|
+
<TableCell className="text-xs text-muted-foreground">
|
|
811
|
+
<RelativeTime ms={release.created_at_ms} />
|
|
812
|
+
</TableCell>
|
|
813
|
+
</DataTableRow>
|
|
814
|
+
{isExpanded && release.bundle_id ? (
|
|
815
|
+
<TableRow className="hover:bg-transparent">
|
|
816
|
+
<TableCell
|
|
817
|
+
className="border-t-0 p-0"
|
|
818
|
+
colSpan={columnCount}
|
|
746
819
|
>
|
|
747
|
-
<
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
<ChannelBadge
|
|
766
|
-
channel={
|
|
767
|
-
channelNames.get(release.channel_id) ??
|
|
768
|
-
release.channel_id
|
|
769
|
-
}
|
|
770
|
-
/>
|
|
771
|
-
</TableCell>
|
|
772
|
-
<TableCell className="whitespace-nowrap">
|
|
773
|
-
<span className="flex items-center gap-2">
|
|
774
|
-
<PlatformIcon
|
|
775
|
-
className="size-4"
|
|
776
|
-
platform={release.platform}
|
|
777
|
-
/>
|
|
778
|
-
{release.platform === "ios"
|
|
779
|
-
? "iOS"
|
|
780
|
-
: "Android"}
|
|
781
|
-
</span>
|
|
782
|
-
</TableCell>
|
|
783
|
-
<TableCell>
|
|
784
|
-
{release.bundle_id &&
|
|
785
|
-
patchCountsByBundleId[release.bundle_id] ===
|
|
786
|
-
undefined ? (
|
|
787
|
-
<span className="text-sm text-muted-foreground">
|
|
788
|
-
Checking
|
|
789
|
-
</span>
|
|
790
|
-
) : release.bundle_id &&
|
|
791
|
-
patchCountsByBundleId[release.bundle_id]! >
|
|
792
|
-
0 ? (
|
|
793
|
-
<Badge variant="secondary">
|
|
794
|
-
{patchCountsByBundleId[release.bundle_id]}{" "}
|
|
795
|
-
{patchCountsByBundleId[
|
|
796
|
-
release.bundle_id
|
|
797
|
-
] === 1
|
|
798
|
-
? "patch"
|
|
799
|
-
: "patches"}
|
|
800
|
-
</Badge>
|
|
801
|
-
) : (
|
|
802
|
-
<span className="text-muted-foreground">
|
|
803
|
-
-
|
|
804
|
-
</span>
|
|
805
|
-
)}
|
|
806
|
-
</TableCell>
|
|
807
|
-
<TableCell>
|
|
808
|
-
{release.target_app_version ? (
|
|
809
|
-
<span className="flex items-center gap-2">
|
|
810
|
-
<Package className="size-4 shrink-0 text-muted-foreground" />
|
|
811
|
-
<span className="font-medium">
|
|
812
|
-
{release.target_app_version}
|
|
813
|
-
</span>
|
|
814
|
-
</span>
|
|
815
|
-
) : release.fingerprint_hash ? (
|
|
816
|
-
<span className="flex min-w-[160px] items-center gap-2">
|
|
817
|
-
<Fingerprint className="size-4 shrink-0 text-muted-foreground" />
|
|
818
|
-
<HashValueDisplay
|
|
819
|
-
maxLength={12}
|
|
820
|
-
value={release.fingerprint_hash}
|
|
821
|
-
/>
|
|
822
|
-
</span>
|
|
823
|
-
) : (
|
|
824
|
-
<span className="text-muted-foreground">
|
|
825
|
-
-
|
|
826
|
-
</span>
|
|
827
|
-
)}
|
|
828
|
-
</TableCell>
|
|
829
|
-
<TableCell>
|
|
830
|
-
<span className="flex items-center">
|
|
831
|
-
<EnabledStatusIcon
|
|
832
|
-
enabled={release.enabled}
|
|
833
|
-
/>
|
|
834
|
-
<span className="sr-only">
|
|
835
|
-
{release.enabled ? "Enabled" : "Disabled"}
|
|
836
|
-
</span>
|
|
837
|
-
</span>
|
|
838
|
-
</TableCell>
|
|
839
|
-
<TableCell>
|
|
840
|
-
<span className="flex items-center">
|
|
841
|
-
<EnabledStatusIcon
|
|
842
|
-
enabled={release.should_force_update}
|
|
843
|
-
falseIcon="minus"
|
|
844
|
-
/>
|
|
845
|
-
<span className="sr-only">
|
|
846
|
-
{release.should_force_update
|
|
847
|
-
? "Required"
|
|
848
|
-
: "Optional"}
|
|
849
|
-
</span>
|
|
850
|
-
</span>
|
|
851
|
-
</TableCell>
|
|
852
|
-
<TableCell>
|
|
853
|
-
<RolloutPercentageBadge
|
|
854
|
-
percentage={release.rollout_cohort_count / 10}
|
|
855
|
-
/>
|
|
856
|
-
</TableCell>
|
|
857
|
-
{featureColumns.map(({ Cell, feature }) => (
|
|
858
|
-
<TableCell key={feature}>
|
|
859
|
-
<Cell
|
|
860
|
-
releaseId={release.id}
|
|
861
|
-
releases={slotReleases}
|
|
862
|
-
/>
|
|
863
|
-
</TableCell>
|
|
864
|
-
))}
|
|
865
|
-
<TableCell
|
|
866
|
-
className="text-sm text-muted-foreground"
|
|
867
|
-
title={release.message ?? undefined}
|
|
868
|
-
>
|
|
869
|
-
{release.message || "-"}
|
|
870
|
-
</TableCell>
|
|
871
|
-
<TableCell
|
|
872
|
-
className="whitespace-nowrap text-xs text-muted-foreground"
|
|
873
|
-
title={dateFormatter.format(
|
|
874
|
-
release.created_at_ms,
|
|
875
|
-
)}
|
|
876
|
-
>
|
|
877
|
-
{tableDateFormatter.format(
|
|
878
|
-
release.created_at_ms,
|
|
879
|
-
)}
|
|
880
|
-
</TableCell>
|
|
881
|
-
</TableRow>
|
|
882
|
-
{isExpanded && release.bundle_id ? (
|
|
883
|
-
<TableRow className="hover:bg-transparent">
|
|
884
|
-
<TableCell
|
|
885
|
-
className="border-t-0 p-0"
|
|
886
|
-
colSpan={columnCount}
|
|
887
|
-
>
|
|
888
|
-
<ReleaseBundleChildrenPanel
|
|
889
|
-
onDetailClick={openChildBundle}
|
|
890
|
-
panelId={panelId}
|
|
891
|
-
release={release}
|
|
892
|
-
/>
|
|
893
|
-
</TableCell>
|
|
894
|
-
</TableRow>
|
|
895
|
-
) : null}
|
|
896
|
-
</Fragment>
|
|
897
|
-
);
|
|
898
|
-
})}
|
|
899
|
-
{!releasesQuery.isPending && releases.length === 0 ? (
|
|
900
|
-
<TableRow>
|
|
901
|
-
<TableCell
|
|
902
|
-
className="h-40 text-center text-muted-foreground"
|
|
903
|
-
colSpan={columnCount}
|
|
904
|
-
>
|
|
905
|
-
{onLaterPage
|
|
906
|
-
? "No more bundles on this side."
|
|
907
|
-
: hasReleaseFilters(search)
|
|
908
|
-
? "No bundles match these filters."
|
|
909
|
-
: "No bundles yet. Deploy an update to see it here."}
|
|
910
|
-
</TableCell>
|
|
911
|
-
</TableRow>
|
|
912
|
-
) : null}
|
|
913
|
-
</TableBody>
|
|
914
|
-
</Table>
|
|
820
|
+
<ReleaseBundleChildrenPanel
|
|
821
|
+
onDetailClick={openChildBundle}
|
|
822
|
+
panelId={panelId}
|
|
823
|
+
release={release}
|
|
824
|
+
/>
|
|
825
|
+
</TableCell>
|
|
826
|
+
</TableRow>
|
|
827
|
+
) : null}
|
|
828
|
+
</Fragment>
|
|
829
|
+
);
|
|
830
|
+
})
|
|
831
|
+
)}
|
|
832
|
+
{!releasesQuery.isPending && releases.length === 0 ? (
|
|
833
|
+
<DataTableFullRow columns={columnCount}>
|
|
834
|
+
{empty}
|
|
835
|
+
</DataTableFullRow>
|
|
836
|
+
) : null}
|
|
837
|
+
</DataTable>
|
|
915
838
|
)}
|
|
916
|
-
</
|
|
839
|
+
</DataTableFrame>
|
|
917
840
|
)}
|
|
918
841
|
|
|
919
842
|
{!releasesQuery.isError && !releasesQuery.isPending ? (
|
|
920
|
-
<
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
<Link
|
|
931
|
-
className={buttonVariants({
|
|
932
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
933
|
-
size: "sm",
|
|
934
|
-
variant: "ghost",
|
|
935
|
-
})}
|
|
936
|
-
search={newestSearch}
|
|
937
|
-
to="/"
|
|
938
|
-
>
|
|
939
|
-
Newest
|
|
940
|
-
</Link>
|
|
941
|
-
) : null}
|
|
942
|
-
{previousSearch ? (
|
|
943
|
-
<Link
|
|
944
|
-
className={buttonVariants({
|
|
945
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
946
|
-
size: "sm",
|
|
947
|
-
variant: "outline",
|
|
948
|
-
})}
|
|
949
|
-
search={previousSearch}
|
|
950
|
-
to="/"
|
|
951
|
-
>
|
|
952
|
-
<ChevronLeft data-icon="inline-start" />
|
|
953
|
-
Previous
|
|
954
|
-
</Link>
|
|
955
|
-
) : (
|
|
956
|
-
<Button
|
|
957
|
-
className="h-8 flex-1 px-3 text-xs sm:flex-none"
|
|
958
|
-
disabled
|
|
959
|
-
size="sm"
|
|
960
|
-
variant="outline"
|
|
961
|
-
>
|
|
962
|
-
<ChevronLeft data-icon="inline-start" />
|
|
963
|
-
Previous
|
|
964
|
-
</Button>
|
|
965
|
-
)}
|
|
966
|
-
{nextSearch ? (
|
|
967
|
-
<Link
|
|
968
|
-
className={buttonVariants({
|
|
969
|
-
className: "h-8 flex-1 px-3 text-xs sm:flex-none",
|
|
970
|
-
size: "sm",
|
|
971
|
-
variant: "outline",
|
|
972
|
-
})}
|
|
973
|
-
search={nextSearch}
|
|
974
|
-
to="/"
|
|
975
|
-
>
|
|
976
|
-
Next
|
|
977
|
-
<ChevronRight data-icon="inline-end" />
|
|
978
|
-
</Link>
|
|
979
|
-
) : (
|
|
980
|
-
<Button
|
|
981
|
-
className="h-8 flex-1 px-3 text-xs sm:flex-none"
|
|
982
|
-
disabled
|
|
983
|
-
size="sm"
|
|
984
|
-
variant="outline"
|
|
985
|
-
>
|
|
986
|
-
Next
|
|
987
|
-
<ChevronRight data-icon="inline-end" />
|
|
988
|
-
</Button>
|
|
989
|
-
)}
|
|
990
|
-
</div>
|
|
991
|
-
</nav>
|
|
843
|
+
<DataTablePagination
|
|
844
|
+
count={releases.length}
|
|
845
|
+
label="Bundle pagination"
|
|
846
|
+
pending={releasesQuery.isPlaceholderData}
|
|
847
|
+
newest={onLaterPage ? { search: newestSearch, to: "/" } : undefined}
|
|
848
|
+
next={nextSearch ? { search: nextSearch, to: "/" } : undefined}
|
|
849
|
+
previous={
|
|
850
|
+
previousSearch ? { search: previousSearch, to: "/" } : undefined
|
|
851
|
+
}
|
|
852
|
+
/>
|
|
992
853
|
) : null}
|
|
993
854
|
</div>
|
|
994
855
|
|