@hot-updater/console 1.0.0-rc.2 → 1.0.0-rc.4
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/InsightsPageHeader-C-Xc2MB9.js +1 -0
- package/.output/public/assets/api-keys-C1sgC6ko.js +1 -0
- package/.output/public/assets/{api-keys-api-BHcODB7q.js → api-keys-api-LchP65vQ.js} +1 -1
- package/.output/public/assets/badge-BuMDU0Rf.js +1 -0
- package/.output/public/assets/card-BEvx_QKh.js +1 -0
- package/.output/public/assets/{chart-no-axes-combined-Dy4WJv2U.js → chart-no-axes-combined-C0G0fQ3J.js} +1 -1
- package/.output/public/assets/{composite-Bp98A0Ld.js → composite-CHTH1Xhh.js} +1 -1
- package/.output/public/assets/createServerFn-DHc2erub.js +3 -0
- package/.output/public/assets/dialog-dyZ1SphZ.js +1 -0
- package/.output/public/assets/{dist-C_NydL0e.js → dist-Bh1gaDfB.js} +1 -1
- package/.output/public/assets/field-79SVH26s.js +1 -0
- package/.output/public/assets/index-BNkxg4jz.js +10 -0
- package/.output/public/assets/input-group-BbHfaBzQ.js +1 -0
- package/.output/public/assets/insights-D_7uSKfc.js +1 -0
- package/.output/public/assets/installations-BzoHWuXw.js +1 -0
- package/.output/public/assets/{installations-CE33wgbY.js → installations-DvjbUqd1.js} +2 -2
- package/.output/public/assets/{lazyRouteComponent-Ccp3bwBY.js → lazyRouteComponent-BN0MS05o.js} +1 -1
- package/.output/public/assets/{link-CI8idAUi.js → link-BG06whwB.js} +1 -1
- package/.output/public/assets/{loader-circle-BoxLrsOu.js → loader-circle-Bbp8LGVC.js} +1 -1
- package/.output/public/assets/{refresh-cw-Bqc72UZG.js → refresh-cw-DZgiAOMk.js} +1 -1
- package/.output/public/assets/routes-BFE-oRIT.js +1 -0
- package/.output/public/assets/{routes-DGVXdzpw.js → routes-DaPMY31P.js} +2 -2
- package/.output/public/assets/{shield-check-uK3MHWJZ.js → shield-check-DoIiaaXU.js} +1 -1
- package/.output/public/assets/signing-BTRhaF5D.js +1 -0
- package/.output/public/assets/styles-C7U0oVke.css +2 -0
- package/.output/public/assets/table-BBEzJ7Xl.js +1 -0
- package/.output/public/assets/useCompositeListItem-BkPDaqyj.js +42 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-B7ioJhtE.mjs → __23tanstack-start-server-fn-resolver-Dr2ixDgQ.mjs} +40 -32
- package/.output/server/_libs/@base-ui/react+[...].mjs +1 -1
- package/.output/server/_libs/@reduxjs/toolkit+[...].mjs +1554 -0
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/d3-array.mjs +231 -0
- package/.output/server/_libs/d3-color.mjs +330 -0
- package/.output/server/_libs/d3-format.mjs +252 -0
- package/.output/server/_libs/d3-interpolate.mjs +207 -0
- package/.output/server/_libs/d3-path.mjs +77 -0
- package/.output/server/_libs/d3-scale+[...].mjs +1907 -0
- package/.output/server/_libs/d3-shape.mjs +818 -0
- package/.output/server/_libs/decimal.js-light.mjs +884 -0
- package/.output/server/_libs/es-toolkit.mjs +1159 -0
- package/.output/server/_libs/eventemitter3.mjs +236 -0
- package/.output/server/_libs/immer.mjs +532 -0
- package/.output/server/_libs/lucide-react.mjs +9 -2
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +205 -0
- package/.output/server/_libs/recharts+[...].mjs +15054 -0
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__react-query.mjs +1 -1
- package/.output/server/_runtime.mjs +10 -1
- package/.output/server/_ssr/InsightsPageHeader-C5Has8Ry.mjs +60 -0
- package/.output/server/_ssr/{api-keys-CZeTPQys.mjs → api-keys-DJml_XoK.mjs} +10 -8
- package/.output/server/_ssr/{api-keys-api-BUPQVSpk.mjs → api-keys-api-CrCZyvnl.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-Cs7tS5_j.mjs → api-keys-rpc-CFaNf-q0.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-tAupfGQm.mjs → api-rpc-B61KL3Eo.mjs} +25 -25
- package/.output/server/_ssr/{auth-rpc-DUaeOWKK.mjs → auth-rpc-D_hv52-J.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-DW71WzsD.mjs → auth.server-DF_shCeq.mjs} +1 -1
- package/.output/server/_ssr/badge-BgsCP9Dp.mjs +28 -0
- package/.output/server/_ssr/{bundle-signing-rpc-BhnBw0-d.mjs → bundle-signing-rpc-BBipZnFs.mjs} +2 -2
- package/.output/server/_ssr/{bundle-signing.server-C4NW5mWx.mjs → bundle-signing.server-Co_zHdJx.mjs} +1 -1
- package/.output/server/_ssr/bundleActivity-D3_fIda2.mjs +27 -0
- package/.output/server/_ssr/{card-BRiPmi0C.mjs → card-DrbxCPtG.mjs} +3 -25
- package/.output/server/_ssr/chart-qxa-_30a.mjs +162 -0
- package/.output/server/_ssr/{config.server-afDuAwaG.mjs → config.server-CBr6PDj5.mjs} +5 -5
- package/.output/server/_ssr/{createSsrRpc-DjWNJ0uc.mjs → createSsrRpc-NHF2PxuK.mjs} +4 -4
- package/.output/server/_ssr/{deleteBundle-BTGwBgzx.mjs → deleteBundle-BAq3JuGr.mjs} +1 -1
- package/.output/server/_ssr/{dialog-DS-nw-pA.mjs → dialog-DUaIgpgd.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-CNnYxYO2.mjs → downloadBundle-B3ert-pY.mjs} +1 -1
- package/.output/server/_ssr/{table-CnZmon_Z.mjs → field-CqNUlqUq.mjs} +4 -50
- package/.output/server/_ssr/{getBundleChildren-C0vh4ZvE.mjs → getBundleChildren-COMt16m_.mjs} +1 -1
- package/.output/server/_ssr/{input-group-BpsnmvZw.mjs → input-group-Bb8ueylQ.mjs} +51 -2
- package/.output/server/_ssr/insights-B-DUbksX.mjs +502 -0
- package/.output/server/_ssr/insights-recovery-DSFM-YTL.mjs +21 -0
- package/.output/server/_ssr/insights-recovery-rpc-P71FH66n.mjs +37 -0
- package/.output/server/_ssr/{insights-rpc-38DujK0G.mjs → insights-rpc-DrIQCjpD.mjs} +2 -2
- package/.output/server/_ssr/insightsRecovery-CqcosG7B.mjs +149 -0
- package/.output/server/_ssr/{installations-CtA59MQG.mjs → installations-BQrppti7.mjs} +2 -2
- package/.output/server/_ssr/{installations-DiVKEF5T.mjs → installations-YumqpNpa.mjs} +426 -11
- package/.output/server/_ssr/{router-B9wG_9f8.mjs → router-iP95Vqi2.mjs} +14 -14
- package/.output/server/_ssr/{routes-CKrrS2q2.mjs → routes-BDabsmc7.mjs} +2 -2
- package/.output/server/_ssr/{routes-D7Yh_jfj.mjs → routes-ivsV2TDu.mjs} +224 -13
- package/.output/server/_ssr/{runtime.server-DacU1TBV.mjs → runtime.server-jmZOKIQM.mjs} +1 -1
- package/.output/server/_ssr/{server-D_C2rMzf.mjs → server-p7yrVBfD.mjs} +3 -3
- package/.output/server/_ssr/{signing-Dz1WkZOf.mjs → signing-CxCbnFCt.mjs} +5 -4
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/table-D1mL8fJu.mjs +53 -0
- package/.output/server/_tanstack-start-manifest_v-Cwpu0C9Q.mjs +100 -0
- package/.output/server/index.mjs +154 -154
- package/package.json +3 -3
- package/src/components/features/bundles/BundleActivityChart.tsx +95 -0
- package/src/components/features/bundles/BundleInsightsSummary.tsx +121 -0
- package/src/components/features/insights/InsightsControls.tsx +1 -15
- package/src/components/features/insights/InsightsOverview.tsx +368 -179
- package/src/components/features/releases/ReleaseEditorSheet.tsx +10 -0
- package/src/components/ui/empty.tsx +101 -0
- package/src/lib/bundle-activity.ts +21 -0
- package/src/lib/insights-recovery-rpc.ts +38 -0
- package/src/lib/insights-recovery.ts +59 -0
- package/src/lib/server/bundleActivity.ts +37 -0
- package/src/lib/server/insightsHistory.ts +52 -0
- package/src/lib/server/insightsRecovery.ts +186 -0
- package/src/routes/index.tsx +33 -3
- package/src/routes/insights.tsx +1 -42
- package/.output/public/assets/HashValueDisplay-CB0Eskit.js +0 -1
- package/.output/public/assets/InsightsPageHeader-Car5LNiZ.js +0 -1
- package/.output/public/assets/api-keys-BzKocqRy.js +0 -1
- package/.output/public/assets/card-Dhr_eFYj.js +0 -1
- package/.output/public/assets/createServerFn-CA8fs7QD.js +0 -3
- package/.output/public/assets/dialog-CUTrcPlB.js +0 -1
- package/.output/public/assets/index-DdAz-CXv.js +0 -10
- package/.output/public/assets/input-group-cSOG4wh_.js +0 -1
- package/.output/public/assets/insights-C0PBSZ-n.js +0 -1
- package/.output/public/assets/installations-CStZja8x.js +0 -1
- package/.output/public/assets/routes-DTlwOr8I.js +0 -1
- package/.output/public/assets/signing-CMf4aqDO.js +0 -1
- package/.output/public/assets/styles-BCvbtKsm.css +0 -2
- package/.output/public/assets/table-2vcV89QB.js +0 -1
- package/.output/public/assets/useCompositeListItem-CHLITE_4.js +0 -1
- package/.output/public/assets/x-DCd0j8c6.js +0 -1
- package/.output/server/_ssr/HashValueDisplay-DwpGLfrl.mjs +0 -55
- package/.output/server/_ssr/InsightsPageHeader-Df4Brj8u.mjs +0 -484
- package/.output/server/_ssr/insights-BdS364Xu.mjs +0 -460
- package/.output/server/_tanstack-start-manifest_v-2MjTyxil.mjs +0 -97
- package/src/components/features/insights/InsightsBundleReports.tsx +0 -51
- /package/.output/public/assets/{preload-helper-CQ36nxok.js → preload-helper-uTix4PVD.js} +0 -0
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
import { r as __toESM } from "../_runtime.mjs";
|
|
2
|
-
import { C as Toggle, J as require_react, S as ToggleGroup, q as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
|
-
import { I as ArrowUpRight } from "../_libs/lucide-react.mjs";
|
|
4
|
-
import { t as cva } from "../_libs/class-variance-authority+clsx.mjs";
|
|
5
|
-
import { C as cn, S as buttonVariants, _ as Skeleton, n as Input, t as Button$1 } from "./createSsrRpc-DjWNJ0uc.mjs";
|
|
6
|
-
import { m as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
7
|
-
import { c as CardDescription, d as CardTitle, l as CardFooter, o as Card, s as CardContent, u as CardHeader } from "./card-BRiPmi0C.mjs";
|
|
8
|
-
import { a as FieldLabel, i as FieldGroup, t as Field } from "./table-CnZmon_Z.mjs";
|
|
9
|
-
import { i as EventTimestamp, l as useInsightsEventsQuery, m as useReportingInstallationsQuery, n as EventHistoryCard, o as InsightsErrorAlert, p as useInsightsTimeFormat, s as InsightsPageHeader } from "./InsightsPageHeader-Df4Brj8u.mjs";
|
|
10
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/insights-BdS364Xu.js
|
|
11
|
-
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
12
|
-
var import_jsx_runtime = require_jsx_runtime();
|
|
13
|
-
var outcomeLabels = {
|
|
14
|
-
applied: "Applied reports",
|
|
15
|
-
recovered: "Recovered-from reports",
|
|
16
|
-
adopted: "Adopted reports"
|
|
17
|
-
};
|
|
18
|
-
function InsightsBundleReports({ selection }) {
|
|
19
|
-
const [cursors, setCursors] = (0, import_react.useState)([void 0]);
|
|
20
|
-
const events = useInsightsEventsQuery({
|
|
21
|
-
...selection,
|
|
22
|
-
cursor: cursors.at(-1),
|
|
23
|
-
limit: 50
|
|
24
|
-
}, true);
|
|
25
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EventHistoryCard, {
|
|
26
|
-
title: outcomeLabels[selection.bundle.outcome],
|
|
27
|
-
error: events.error,
|
|
28
|
-
eventsLocation: { eventsBefore: selection.beforeReceivedAtMs },
|
|
29
|
-
history: events.data,
|
|
30
|
-
isFetching: events.isFetching,
|
|
31
|
-
isLoading: events.isLoading,
|
|
32
|
-
onNext: () => {
|
|
33
|
-
const cursor = events.data?.nextCursor;
|
|
34
|
-
if (cursor) setCursors((previous) => [...previous, cursor]);
|
|
35
|
-
},
|
|
36
|
-
onPrevious: () => setCursors((previous) => previous.slice(0, -1)),
|
|
37
|
-
onRefresh: () => {
|
|
38
|
-
events.refetch();
|
|
39
|
-
},
|
|
40
|
-
pageNumber: cursors.length,
|
|
41
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
42
|
-
className: "text-sm text-muted-foreground",
|
|
43
|
-
children: "Reports for the selected bundle and the measured period. New reports appear after refreshing the overview."
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
var toggleVariants = cva("group/toggle inline-flex items-center justify-center gap-1 rounded-md text-xs font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
48
|
-
variants: {
|
|
49
|
-
variant: {
|
|
50
|
-
default: "bg-transparent",
|
|
51
|
-
outline: "border border-input bg-transparent hover:bg-muted"
|
|
52
|
-
},
|
|
53
|
-
size: {
|
|
54
|
-
default: "h-7 min-w-7 px-2 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
55
|
-
sm: "h-6 min-w-6 rounded-[min(var(--radius-md),8px)] px-2 text-[0.625rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
56
|
-
lg: "h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
defaultVariants: {
|
|
60
|
-
variant: "default",
|
|
61
|
-
size: "default"
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
var ToggleGroupContext = import_react.createContext({
|
|
65
|
-
size: "default",
|
|
66
|
-
variant: "default",
|
|
67
|
-
spacing: 2,
|
|
68
|
-
orientation: "horizontal"
|
|
69
|
-
});
|
|
70
|
-
function ToggleGroup$1({ className, variant, size, spacing = 2, orientation = "horizontal", children, ...props }) {
|
|
71
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroup, {
|
|
72
|
-
"data-slot": "toggle-group",
|
|
73
|
-
"data-variant": variant,
|
|
74
|
-
"data-size": size,
|
|
75
|
-
"data-spacing": spacing,
|
|
76
|
-
"data-orientation": orientation,
|
|
77
|
-
style: { "--gap": spacing },
|
|
78
|
-
className: cn("group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-md data-[size=sm]:rounded-[min(var(--radius-md),8px)] data-vertical:flex-col data-vertical:items-stretch", className),
|
|
79
|
-
...props,
|
|
80
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupContext.Provider, {
|
|
81
|
-
value: {
|
|
82
|
-
variant,
|
|
83
|
-
size,
|
|
84
|
-
spacing,
|
|
85
|
-
orientation
|
|
86
|
-
},
|
|
87
|
-
children
|
|
88
|
-
})
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
function ToggleGroupItem({ className, children, variant = "default", size = "default", ...props }) {
|
|
92
|
-
const context = import_react.useContext(ToggleGroupContext);
|
|
93
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Toggle, {
|
|
94
|
-
"data-slot": "toggle-group-item",
|
|
95
|
-
"data-variant": context.variant || variant,
|
|
96
|
-
"data-size": context.size || size,
|
|
97
|
-
"data-spacing": context.spacing,
|
|
98
|
-
className: cn("shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-md group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-md group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-md group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-md group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t", toggleVariants({
|
|
99
|
-
variant: context.variant || variant,
|
|
100
|
-
size: context.size || size
|
|
101
|
-
}), className),
|
|
102
|
-
...props,
|
|
103
|
-
children
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
var windows = [
|
|
107
|
-
{
|
|
108
|
-
value: "24h",
|
|
109
|
-
label: "24 hours",
|
|
110
|
-
shortLabel: "24h"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
value: "7d",
|
|
114
|
-
label: "7 days",
|
|
115
|
-
shortLabel: "7d"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
value: "30d",
|
|
119
|
-
label: "30 days",
|
|
120
|
-
shortLabel: "30d"
|
|
121
|
-
}
|
|
122
|
-
];
|
|
123
|
-
function InsightsControls({ onWindowChange, onScopeChange, scope, window }) {
|
|
124
|
-
const [platform, setPlatform] = (0, import_react.useState)(scope.platform);
|
|
125
|
-
const [channel, setChannel] = (0, import_react.useState)(scope.channel);
|
|
126
|
-
const [bundleId, setBundleId] = (0, import_react.useState)(scope.bundleId ?? "");
|
|
127
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
|
|
128
|
-
"aria-label": "Insights controls",
|
|
129
|
-
className: "flex flex-col gap-4",
|
|
130
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("form", {
|
|
131
|
-
onSubmit: (event) => {
|
|
132
|
-
event.preventDefault();
|
|
133
|
-
onScopeChange({
|
|
134
|
-
platform,
|
|
135
|
-
channel,
|
|
136
|
-
bundleId: bundleId || void 0
|
|
137
|
-
});
|
|
138
|
-
},
|
|
139
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(FieldGroup, {
|
|
140
|
-
className: "items-end sm:flex-row",
|
|
141
|
-
children: [
|
|
142
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, {
|
|
143
|
-
className: "w-full sm:w-auto",
|
|
144
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, { children: "Platform" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ToggleGroup$1, {
|
|
145
|
-
"aria-label": "Platform",
|
|
146
|
-
value: [platform],
|
|
147
|
-
onValueChange: (value) => {
|
|
148
|
-
if (value[0] === "ios" || value[0] === "android") setPlatform(value[0]);
|
|
149
|
-
},
|
|
150
|
-
spacing: 0,
|
|
151
|
-
variant: "outline",
|
|
152
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupItem, {
|
|
153
|
-
className: "h-11 lg:h-8",
|
|
154
|
-
value: "ios",
|
|
155
|
-
children: "iOS"
|
|
156
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupItem, {
|
|
157
|
-
className: "h-11 lg:h-8",
|
|
158
|
-
value: "android",
|
|
159
|
-
children: "Android"
|
|
160
|
-
})]
|
|
161
|
-
})]
|
|
162
|
-
}),
|
|
163
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
|
|
164
|
-
htmlFor: "insights-channel",
|
|
165
|
-
children: "Channel"
|
|
166
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
|
|
167
|
-
className: "h-11 lg:h-8",
|
|
168
|
-
id: "insights-channel",
|
|
169
|
-
value: channel,
|
|
170
|
-
onChange: (event) => setChannel(event.target.value),
|
|
171
|
-
required: true,
|
|
172
|
-
maxLength: 1024
|
|
173
|
-
})] }),
|
|
174
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
|
|
175
|
-
htmlFor: "insights-bundle",
|
|
176
|
-
children: "Bundle ID (optional)"
|
|
177
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
|
|
178
|
-
className: "h-11 lg:h-8",
|
|
179
|
-
id: "insights-bundle",
|
|
180
|
-
placeholder: "Select a bundle by ID",
|
|
181
|
-
value: bundleId,
|
|
182
|
-
onChange: (event) => setBundleId(event.target.value),
|
|
183
|
-
maxLength: 1024
|
|
184
|
-
})] }),
|
|
185
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
186
|
-
className: "h-11 w-full sm:w-auto lg:h-8",
|
|
187
|
-
type: "submit",
|
|
188
|
-
variant: "outline",
|
|
189
|
-
children: "Apply filters"
|
|
190
|
-
})
|
|
191
|
-
]
|
|
192
|
-
})
|
|
193
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, {
|
|
194
|
-
orientation: "horizontal",
|
|
195
|
-
className: "w-full",
|
|
196
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
|
|
197
|
-
className: "sr-only",
|
|
198
|
-
children: "Reporting period"
|
|
199
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroup$1, {
|
|
200
|
-
"aria-label": "Reporting period",
|
|
201
|
-
className: "w-full sm:w-fit",
|
|
202
|
-
onValueChange: (value) => {
|
|
203
|
-
if (value[0]) onWindowChange(value[0]);
|
|
204
|
-
},
|
|
205
|
-
spacing: 0,
|
|
206
|
-
size: "lg",
|
|
207
|
-
value: [window],
|
|
208
|
-
variant: "outline",
|
|
209
|
-
children: windows.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupItem, {
|
|
210
|
-
"aria-label": item.label,
|
|
211
|
-
className: "h-11 flex-1 px-4 sm:flex-none lg:h-8 lg:px-2.5",
|
|
212
|
-
value: item.value,
|
|
213
|
-
children: item.shortLabel
|
|
214
|
-
}, item.value))
|
|
215
|
-
})]
|
|
216
|
-
})]
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
var windowCopy = {
|
|
220
|
-
"24h": "the last 24 hours",
|
|
221
|
-
"7d": "the last 7 days",
|
|
222
|
-
"30d": "the last 30 days"
|
|
223
|
-
};
|
|
224
|
-
function InsightsOverview(props) {
|
|
225
|
-
const dateTimeFormat = useInsightsTimeFormat();
|
|
226
|
-
if (props.status === "loading") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
|
|
227
|
-
"aria-label": "Loading reporting installations",
|
|
228
|
-
className: "shadow-sm",
|
|
229
|
-
children: [
|
|
230
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardHeader, {
|
|
231
|
-
className: "px-4 pt-4 pb-2 sm:px-6 sm:pt-6",
|
|
232
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-4 w-40" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3 w-full max-w-md" })]
|
|
233
|
-
}),
|
|
234
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
|
|
235
|
-
className: "px-4 pb-6 sm:px-6",
|
|
236
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-12 w-28" })
|
|
237
|
-
}),
|
|
238
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardFooter, {
|
|
239
|
-
className: "border-t px-4 py-3 sm:px-6",
|
|
240
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-8 w-full max-w-sm" })
|
|
241
|
-
})
|
|
242
|
-
]
|
|
243
|
-
});
|
|
244
|
-
if (props.status === "error") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InsightsErrorAlert, {
|
|
245
|
-
error: props.error,
|
|
246
|
-
fallbackTitle: "Reporting installations unavailable"
|
|
247
|
-
});
|
|
248
|
-
const { active } = props;
|
|
249
|
-
const bundle = active.bundle;
|
|
250
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
|
|
251
|
-
"aria-labelledby": "reporting-installations-heading",
|
|
252
|
-
className: "flex flex-col gap-4",
|
|
253
|
-
children: [
|
|
254
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
|
|
255
|
-
className: "min-w-0 overflow-hidden shadow-sm",
|
|
256
|
-
children: [
|
|
257
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardHeader, {
|
|
258
|
-
className: "gap-2 px-4 pt-4 pb-2 sm:px-6 sm:pt-6",
|
|
259
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
|
|
260
|
-
className: "text-sm font-medium",
|
|
261
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", {
|
|
262
|
-
id: "reporting-installations-heading",
|
|
263
|
-
children: "Reporting installations"
|
|
264
|
-
})
|
|
265
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardDescription, { children: [
|
|
266
|
-
active.platform === "ios" ? "iOS" : "Android",
|
|
267
|
-
" · ",
|
|
268
|
-
active.channel,
|
|
269
|
-
" ·",
|
|
270
|
-
" ",
|
|
271
|
-
windowCopy[active.window],
|
|
272
|
-
". Installations are counted by their last report received."
|
|
273
|
-
] })]
|
|
274
|
-
}),
|
|
275
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
|
|
276
|
-
className: "px-4 pt-2 pb-5 sm:px-6 sm:pb-6",
|
|
277
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
278
|
-
className: "text-4xl font-semibold tracking-tight tabular-nums sm:text-5xl",
|
|
279
|
-
children: active.reportingInstallations.count.toLocaleString()
|
|
280
|
-
})
|
|
281
|
-
}),
|
|
282
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardFooter, {
|
|
283
|
-
className: "flex flex-wrap items-center justify-between gap-3 border-t bg-muted/15 px-4 py-3 sm:px-6",
|
|
284
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
|
|
285
|
-
className: "min-w-0 text-xs",
|
|
286
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
287
|
-
className: "text-muted-foreground",
|
|
288
|
-
children: "Measured at"
|
|
289
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
290
|
-
className: "font-medium tabular-nums",
|
|
291
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EventTimestamp, {
|
|
292
|
-
formatter: dateTimeFormat,
|
|
293
|
-
touch: true,
|
|
294
|
-
value: active.reportingInstallations.measuredAtMs
|
|
295
|
-
})
|
|
296
|
-
})]
|
|
297
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
|
|
298
|
-
className: buttonVariants({
|
|
299
|
-
className: "h-11 px-3 lg:h-8",
|
|
300
|
-
variant: "outline"
|
|
301
|
-
}),
|
|
302
|
-
to: "/installations",
|
|
303
|
-
children: ["View events", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, {
|
|
304
|
-
"aria-hidden": "true",
|
|
305
|
-
"data-icon": "inline-end"
|
|
306
|
-
})]
|
|
307
|
-
})]
|
|
308
|
-
})
|
|
309
|
-
]
|
|
310
|
-
}),
|
|
311
|
-
bundle ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
|
|
312
|
-
className: "min-w-0 overflow-hidden shadow-sm",
|
|
313
|
-
children: [
|
|
314
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(CardHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, { children: "Selected bundle" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardDescription, {
|
|
315
|
-
className: "break-all",
|
|
316
|
-
children: bundle.bundleId
|
|
317
|
-
})] }),
|
|
318
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
|
|
319
|
-
className: "flex flex-col gap-5",
|
|
320
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
321
|
-
className: "flex flex-wrap items-center justify-between gap-3",
|
|
322
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
323
|
-
className: "text-sm",
|
|
324
|
-
children: "Selected bundle installations"
|
|
325
|
-
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
326
|
-
className: "mt-1 text-2xl font-semibold tabular-nums",
|
|
327
|
-
children: bundle.reportingInstallations.count.toLocaleString()
|
|
328
|
-
})] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
329
|
-
className: "text-xs text-muted-foreground",
|
|
330
|
-
children: [
|
|
331
|
-
"Measured at",
|
|
332
|
-
" ",
|
|
333
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EventTimestamp, {
|
|
334
|
-
formatter: dateTimeFormat,
|
|
335
|
-
touch: true,
|
|
336
|
-
value: bundle.reportingInstallations.measuredAtMs
|
|
337
|
-
})
|
|
338
|
-
]
|
|
339
|
-
})]
|
|
340
|
-
}), [
|
|
341
|
-
["applied", bundle.appliedReports],
|
|
342
|
-
["recovered", bundle.recoveredReports],
|
|
343
|
-
["adopted", bundle.adoptedReports]
|
|
344
|
-
].map(([outcome, measurement]) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
345
|
-
className: "flex flex-wrap items-center justify-between gap-3",
|
|
346
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
347
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
348
|
-
className: "text-sm",
|
|
349
|
-
children: outcomeLabels[outcome]
|
|
350
|
-
}),
|
|
351
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
352
|
-
className: "mt-1 text-2xl font-semibold tabular-nums",
|
|
353
|
-
children: measurement.count.toLocaleString()
|
|
354
|
-
}),
|
|
355
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
356
|
-
className: "mt-1 text-xs text-muted-foreground",
|
|
357
|
-
children: [
|
|
358
|
-
"Measured at",
|
|
359
|
-
" ",
|
|
360
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(EventTimestamp, {
|
|
361
|
-
formatter: dateTimeFormat,
|
|
362
|
-
touch: true,
|
|
363
|
-
value: measurement.measuredAtMs
|
|
364
|
-
})
|
|
365
|
-
]
|
|
366
|
-
})
|
|
367
|
-
] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
368
|
-
className: "h-11 lg:h-8",
|
|
369
|
-
variant: "outline",
|
|
370
|
-
onClick: () => props.onOutcomeSelect({
|
|
371
|
-
bundle: {
|
|
372
|
-
platform: active.platform,
|
|
373
|
-
channel: active.channel,
|
|
374
|
-
bundleId: bundle.bundleId,
|
|
375
|
-
outcome
|
|
376
|
-
},
|
|
377
|
-
sinceMs: active.sinceMs,
|
|
378
|
-
beforeReceivedAtMs: active.beforeReceivedAtMs
|
|
379
|
-
}),
|
|
380
|
-
children: [
|
|
381
|
-
"View ",
|
|
382
|
-
outcome,
|
|
383
|
-
" reports",
|
|
384
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, {
|
|
385
|
-
"aria-hidden": "true",
|
|
386
|
-
"data-icon": "inline-end"
|
|
387
|
-
})
|
|
388
|
-
]
|
|
389
|
-
})]
|
|
390
|
-
}, outcome))]
|
|
391
|
-
}) }),
|
|
392
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
393
|
-
className: "text-xs text-muted-foreground",
|
|
394
|
-
children: "Installation counts are independent live measurements. Outcome counts are accepted reports, not unique devices or update attempts. Recovery reports identify the bundle recovered from."
|
|
395
|
-
}) })
|
|
396
|
-
]
|
|
397
|
-
}) : null,
|
|
398
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
399
|
-
className: "text-xs text-muted-foreground",
|
|
400
|
-
children: "Offline installations, opt-outs, and reports that did not reach the server are absent."
|
|
401
|
-
})
|
|
402
|
-
]
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
function InsightsPage() {
|
|
406
|
-
const [window, setWindow] = (0, import_react.useState)("30d");
|
|
407
|
-
const [scope, setScope] = (0, import_react.useState)({
|
|
408
|
-
platform: "ios",
|
|
409
|
-
channel: "production"
|
|
410
|
-
});
|
|
411
|
-
const [selection, setSelection] = (0, import_react.useState)(null);
|
|
412
|
-
const active = useReportingInstallationsQuery({
|
|
413
|
-
...scope,
|
|
414
|
-
window
|
|
415
|
-
});
|
|
416
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
417
|
-
className: "flex h-svh min-h-0 flex-col",
|
|
418
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InsightsPageHeader, { view: "overview" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
419
|
-
className: "min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6",
|
|
420
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
421
|
-
className: "mx-auto flex w-full max-w-4xl flex-col gap-4 sm:gap-6",
|
|
422
|
-
children: [
|
|
423
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InsightsControls, {
|
|
424
|
-
scope,
|
|
425
|
-
onScopeChange: (next) => {
|
|
426
|
-
setScope(next);
|
|
427
|
-
setSelection(null);
|
|
428
|
-
},
|
|
429
|
-
onWindowChange: (next) => {
|
|
430
|
-
setWindow(next);
|
|
431
|
-
setSelection(null);
|
|
432
|
-
},
|
|
433
|
-
window
|
|
434
|
-
}),
|
|
435
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
436
|
-
className: "h-11 self-end lg:h-8",
|
|
437
|
-
variant: "outline",
|
|
438
|
-
disabled: active.isFetching,
|
|
439
|
-
onClick: () => {
|
|
440
|
-
setSelection(null);
|
|
441
|
-
active.refetch();
|
|
442
|
-
},
|
|
443
|
-
children: "Refresh overview"
|
|
444
|
-
}),
|
|
445
|
-
active.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InsightsOverview, { status: "loading" }) : active.error ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InsightsOverview, {
|
|
446
|
-
status: "error",
|
|
447
|
-
error: active.error
|
|
448
|
-
}) : active.data ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InsightsOverview, {
|
|
449
|
-
status: "success",
|
|
450
|
-
active: active.data,
|
|
451
|
-
onOutcomeSelect: setSelection
|
|
452
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InsightsOverview, { status: "loading" }),
|
|
453
|
-
selection ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InsightsBundleReports, { selection }, JSON.stringify(selection)) : null
|
|
454
|
-
]
|
|
455
|
-
})
|
|
456
|
-
})]
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
//#endregion
|
|
460
|
-
export { InsightsPage as component };
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-2MjTyxil.js
|
|
2
|
-
var tsrStartManifest = () => ({ routes: {
|
|
3
|
-
__root__: {
|
|
4
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/__root.tsx",
|
|
5
|
-
children: [
|
|
6
|
-
"/",
|
|
7
|
-
"/api-keys",
|
|
8
|
-
"/insights",
|
|
9
|
-
"/installations",
|
|
10
|
-
"/signing",
|
|
11
|
-
"/api/auth/$",
|
|
12
|
-
"/api/bundles/$bundleId/download"
|
|
13
|
-
],
|
|
14
|
-
preloads: [
|
|
15
|
-
"/assets/index-DdAz-CXv.js",
|
|
16
|
-
"/assets/createServerFn-CA8fs7QD.js",
|
|
17
|
-
"/assets/preload-helper-CQ36nxok.js",
|
|
18
|
-
"/assets/installations-CE33wgbY.js",
|
|
19
|
-
"/assets/loader-circle-BoxLrsOu.js",
|
|
20
|
-
"/assets/link-CI8idAUi.js",
|
|
21
|
-
"/assets/lazyRouteComponent-Ccp3bwBY.js",
|
|
22
|
-
"/assets/chart-no-axes-combined-Dy4WJv2U.js",
|
|
23
|
-
"/assets/shield-check-uK3MHWJZ.js",
|
|
24
|
-
"/assets/api-keys-api-BHcODB7q.js",
|
|
25
|
-
"/assets/routes-DGVXdzpw.js",
|
|
26
|
-
"/assets/dist-C_NydL0e.js"
|
|
27
|
-
],
|
|
28
|
-
scripts: [{ attrs: {
|
|
29
|
-
type: "module",
|
|
30
|
-
async: !0,
|
|
31
|
-
src: "/assets/index-DdAz-CXv.js"
|
|
32
|
-
} }]
|
|
33
|
-
},
|
|
34
|
-
"/": {
|
|
35
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/index.tsx",
|
|
36
|
-
children: void 0,
|
|
37
|
-
preloads: [
|
|
38
|
-
"/assets/routes-DTlwOr8I.js",
|
|
39
|
-
"/assets/dialog-CUTrcPlB.js",
|
|
40
|
-
"/assets/composite-Bp98A0Ld.js",
|
|
41
|
-
"/assets/useCompositeListItem-CHLITE_4.js",
|
|
42
|
-
"/assets/table-2vcV89QB.js",
|
|
43
|
-
"/assets/HashValueDisplay-CB0Eskit.js",
|
|
44
|
-
"/assets/x-DCd0j8c6.js",
|
|
45
|
-
"/assets/card-Dhr_eFYj.js",
|
|
46
|
-
"/assets/input-group-cSOG4wh_.js"
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"/api-keys": {
|
|
50
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/api-keys.tsx",
|
|
51
|
-
children: void 0,
|
|
52
|
-
preloads: [
|
|
53
|
-
"/assets/api-keys-BzKocqRy.js",
|
|
54
|
-
"/assets/dialog-CUTrcPlB.js",
|
|
55
|
-
"/assets/table-2vcV89QB.js",
|
|
56
|
-
"/assets/refresh-cw-Bqc72UZG.js",
|
|
57
|
-
"/assets/card-Dhr_eFYj.js"
|
|
58
|
-
]
|
|
59
|
-
},
|
|
60
|
-
"/insights": {
|
|
61
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/insights.tsx",
|
|
62
|
-
children: void 0,
|
|
63
|
-
preloads: [
|
|
64
|
-
"/assets/insights-C0PBSZ-n.js",
|
|
65
|
-
"/assets/composite-Bp98A0Ld.js",
|
|
66
|
-
"/assets/useCompositeListItem-CHLITE_4.js",
|
|
67
|
-
"/assets/InsightsPageHeader-Car5LNiZ.js",
|
|
68
|
-
"/assets/table-2vcV89QB.js",
|
|
69
|
-
"/assets/card-Dhr_eFYj.js"
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
|
-
"/installations": {
|
|
73
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/installations.tsx",
|
|
74
|
-
children: void 0,
|
|
75
|
-
preloads: [
|
|
76
|
-
"/assets/installations-CStZja8x.js",
|
|
77
|
-
"/assets/InsightsPageHeader-Car5LNiZ.js",
|
|
78
|
-
"/assets/table-2vcV89QB.js",
|
|
79
|
-
"/assets/HashValueDisplay-CB0Eskit.js",
|
|
80
|
-
"/assets/refresh-cw-Bqc72UZG.js",
|
|
81
|
-
"/assets/x-DCd0j8c6.js",
|
|
82
|
-
"/assets/card-Dhr_eFYj.js",
|
|
83
|
-
"/assets/input-group-cSOG4wh_.js"
|
|
84
|
-
]
|
|
85
|
-
},
|
|
86
|
-
"/signing": {
|
|
87
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/signing.tsx",
|
|
88
|
-
children: void 0,
|
|
89
|
-
preloads: [
|
|
90
|
-
"/assets/signing-CMf4aqDO.js",
|
|
91
|
-
"/assets/refresh-cw-Bqc72UZG.js",
|
|
92
|
-
"/assets/card-Dhr_eFYj.js"
|
|
93
|
-
]
|
|
94
|
-
}
|
|
95
|
-
} });
|
|
96
|
-
//#endregion
|
|
97
|
-
export { tsrStartManifest };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { InsightsBundleSelection } from "@hot-updater/server";
|
|
2
|
-
import { useState } from "react";
|
|
3
|
-
|
|
4
|
-
import { useInsightsEventsQuery } from "@/lib/insights-api";
|
|
5
|
-
import { outcomeLabels } from "@/lib/insights-view";
|
|
6
|
-
|
|
7
|
-
import { EventHistoryCard } from "./EventHistoryCard";
|
|
8
|
-
|
|
9
|
-
export type InsightsReportSelection = {
|
|
10
|
-
readonly bundle: InsightsBundleSelection;
|
|
11
|
-
readonly sinceMs: number;
|
|
12
|
-
readonly beforeReceivedAtMs: number;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export function InsightsBundleReports({
|
|
16
|
-
selection,
|
|
17
|
-
}: {
|
|
18
|
-
readonly selection: InsightsReportSelection;
|
|
19
|
-
}) {
|
|
20
|
-
const [cursors, setCursors] = useState<readonly (string | undefined)[]>([
|
|
21
|
-
undefined,
|
|
22
|
-
]);
|
|
23
|
-
const events = useInsightsEventsQuery(
|
|
24
|
-
{ ...selection, cursor: cursors.at(-1), limit: 50 },
|
|
25
|
-
true,
|
|
26
|
-
);
|
|
27
|
-
return (
|
|
28
|
-
<EventHistoryCard
|
|
29
|
-
title={outcomeLabels[selection.bundle.outcome]}
|
|
30
|
-
error={events.error}
|
|
31
|
-
eventsLocation={{ eventsBefore: selection.beforeReceivedAtMs }}
|
|
32
|
-
history={events.data}
|
|
33
|
-
isFetching={events.isFetching}
|
|
34
|
-
isLoading={events.isLoading}
|
|
35
|
-
onNext={() => {
|
|
36
|
-
const cursor = events.data?.nextCursor;
|
|
37
|
-
if (cursor) setCursors((previous) => [...previous, cursor]);
|
|
38
|
-
}}
|
|
39
|
-
onPrevious={() => setCursors((previous) => previous.slice(0, -1))}
|
|
40
|
-
onRefresh={() => {
|
|
41
|
-
void events.refetch();
|
|
42
|
-
}}
|
|
43
|
-
pageNumber={cursors.length}
|
|
44
|
-
>
|
|
45
|
-
<p className="text-sm text-muted-foreground">
|
|
46
|
-
Reports for the selected bundle and the measured period. New reports
|
|
47
|
-
appear after refreshing the overview.
|
|
48
|
-
</p>
|
|
49
|
-
</EventHistoryCard>
|
|
50
|
-
);
|
|
51
|
-
}
|
|
File without changes
|