@debugkit/dashboard 0.8.0 → 0.10.0
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/dist/client/assets/_authed-3se5Egqg.js +1 -0
- package/dist/client/assets/_authed-BfFWbTOO.js +1 -0
- package/dist/client/assets/app-code-BKWbvUMR.js +1 -0
- package/dist/client/assets/closed-issues-Cl-8l4oR.js +1 -0
- package/dist/client/assets/{copy-button-ORgLIh59.js → copy-button-BwRd5q7l.js} +1 -1
- package/dist/client/assets/customers-Cf-R8BOg.js +1 -0
- package/dist/client/assets/empty-state-njgr1sWu.js +7 -0
- package/dist/client/assets/endpoints-BMqAUNyE.js +1 -0
- package/dist/client/assets/events._eventId-CVRZJ-bU.js +2 -0
- package/dist/client/assets/exchange-view-DVwSLcXF.js +2 -0
- package/dist/client/assets/index-DEnCDILF.js +10 -0
- package/dist/client/assets/{invite._token-CxXek2SP.js → invite._token-CKAfd5iB.js} +1 -1
- package/dist/client/assets/issues._fingerprint-Cm72LNM_.js +55 -0
- package/dist/client/assets/login-BTxOhEbN.js +1 -0
- package/dist/client/assets/request-panel-DmtFRF8Z.js +1 -0
- package/dist/client/assets/services._service-CU1a45f3.js +1 -0
- package/dist/client/assets/{sessions._sessionId-3wNImMqM.js → sessions._sessionId-LRo3QNQP.js} +1 -1
- package/dist/client/assets/settings-Ctzvl2LL.js +1 -0
- package/dist/client/assets/src-BiKxgjA_.js +3 -0
- package/dist/client/assets/styles-Tcq0pvWj.css +2 -0
- package/dist/client/assets/{team-Bud2-07A.js → team-xlrjhEGp.js} +1 -1
- package/dist/client/assets/{timeline-BSDhQPpY.js → timeline-WXE49N62.js} +1 -1
- package/dist/client/assets/ui-DRjjeSWy.js +1 -0
- package/dist/client/assets/version-banner-BYe4PVzv.js +1 -0
- package/dist/server/assets/_authed-Bn-IktVS.js +120 -0
- package/dist/server/assets/_authed-RXh7GpoE.js +252 -0
- package/dist/server/assets/_tanstack-start-manifest_v-C4dQ3MxD.js +122 -0
- package/dist/server/assets/app-code-BQL_FcSx.js +212 -0
- package/dist/server/assets/app-name-BcbY1BZN.js +11 -0
- package/dist/server/assets/closed-issues-o9U80FXv.js +45 -0
- package/dist/server/assets/config-Bp8m0B8q.js +57 -0
- package/dist/server/assets/{customers-CvSLt_xV.js → customers-CD84Bz4P.js} +11 -6
- package/dist/server/assets/{demo-BRTkdmQJ.js → demo-D-o8m75S.js} +225 -8
- package/dist/server/assets/{dynamodb-B0V3ZO20.js → dynamodb-CcH0cp7R.js} +55 -2
- package/dist/server/assets/empty-state-wz34oAi8.js +163 -0
- package/dist/server/assets/endpoints-8N389Poe.js +248 -0
- package/dist/server/assets/{endpoints-mPQXpH8C.js → endpoints-C0Cxc_-x.js} +38 -36
- package/dist/server/assets/{events._eventId-pkQBQ9sL.js → events._eventId-BOHkNO5W.js} +90 -351
- package/dist/server/assets/exchange-view-DzoSBt_R.js +112 -0
- package/dist/server/assets/{firestore-Jd-LeWZI.js → firestore-DyvYMiz3.js} +13 -2
- package/dist/server/assets/{fns-Di0vMpkQ.js → fns-BcVGbSID.js} +22 -7
- package/dist/server/assets/fns-DE03YExD.js +831 -0
- package/dist/server/assets/{invite._token-LwWF5YxP.js → invite._token-DhlACkIe.js} +3 -3
- package/dist/server/assets/{issues._fingerprint-DAA0QCuA.js → issues._fingerprint-BBd-_Nn5.js} +400 -28
- package/dist/server/assets/{login-DqjCU4DJ.js → login-CbfdHJvg.js} +3 -3
- package/dist/server/assets/{memory-aqsrtEUn.js → memory-CZBUh1Zc.js} +129 -5
- package/dist/server/assets/{errors-C2KEDL7l.js → queries-wha4cZbw.js} +1442 -129
- package/dist/server/assets/request-panel-DpCSwl2q.js +162 -0
- package/dist/server/assets/{router-C0Dauj2C.js → router-BXkzR89j.js} +197 -91
- package/dist/server/assets/services._service-DWjFFGON.js +309 -0
- package/dist/server/assets/{sessions._sessionId-D7JPV0M4.js → sessions._sessionId-DDspiPTe.js} +2 -2
- package/dist/server/assets/{settings-Drjd64d7.js → settings-DCLIaZ_p.js} +201 -24
- package/dist/server/assets/{src-C4fNgijW.js → src-B2GKPQyN.js} +1 -1
- package/dist/server/assets/{team-D7iXYnSE.js → team-jd_TmWP4.js} +3 -3
- package/dist/server/assets/ui-C3pl0edn.js +302 -0
- package/dist/server/assets/version-banner-BX34ijG5.js +106 -0
- package/dist/server/assets/versions-YI_zK1ql.js +58 -0
- package/dist/server/assets/warm-C3GbXP1_.js +16 -0
- package/dist/server/server.js +40 -28
- package/package.json +4 -4
- package/dist/client/assets/_authed-CNObwuZh.js +0 -7
- package/dist/client/assets/_authed-CuP-He8G.js +0 -1
- package/dist/client/assets/charts-CUvev8lV.js +0 -55
- package/dist/client/assets/customers-DTMEprFQ.js +0 -1
- package/dist/client/assets/endpoints-lMSO2CdM.js +0 -1
- package/dist/client/assets/events._eventId-bWag-i8J.js +0 -3
- package/dist/client/assets/index-BNpacHyi.js +0 -10
- package/dist/client/assets/issues._fingerprint-BQr85TVY.js +0 -1
- package/dist/client/assets/login-Dlk3GyyC.js +0 -1
- package/dist/client/assets/settings-CzbEYB7k.js +0 -1
- package/dist/client/assets/src-Dq5mIUf0.js +0 -3
- package/dist/client/assets/styles-DPsgRH7g.css +0 -2
- package/dist/client/assets/ui-CEv2y56s.js +0 -1
- package/dist/server/assets/_authed-DkkRwdZl.js +0 -87
- package/dist/server/assets/_authed-DsB8kjZB.js +0 -902
- package/dist/server/assets/_tanstack-start-manifest_v-D1_ErrJK.js +0 -97
- package/dist/server/assets/charts-DzTVqJ8z.js +0 -238
- package/dist/server/assets/fns-B3PHbFwV.js +0 -1295
- package/dist/server/assets/ui-B_XHlLUQ.js +0 -193
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { l as Logo } from "./ui-C3pl0edn.js";
|
|
2
|
+
import { g as joinTeam } from "./fns-BcVGbSID.js";
|
|
3
|
+
import { o as Route } from "./router-BXkzR89j.js";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { Link, useRouter } from "@tanstack/react-router";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/server/assets/{issues._fingerprint-DAA0QCuA.js → issues._fingerprint-BBd-_Nn5.js}
RENAMED
|
@@ -1,12 +1,180 @@
|
|
|
1
|
-
import { n as HourlyChart, r as TrendChart } from "./charts-DzTVqJ8z.js";
|
|
2
1
|
import { n as RetentionNote, t as RangePicker } from "./range-picker-0zbSGr3Z.js";
|
|
3
|
-
import {
|
|
2
|
+
import { d as Stat, n as Card, o as IssueLabels, p as timeAgo, r as DataTable, s as LevelBadge, u as ShareBars } from "./ui-C3pl0edn.js";
|
|
4
3
|
import { t as CopyButton } from "./copy-button-D3RddzTw.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { t as RequestPanel } from "./request-panel-DpCSwl2q.js";
|
|
5
|
+
import { E as updateIssueStatus } from "./fns-BcVGbSID.js";
|
|
6
|
+
import { i as Route } from "./router-BXkzR89j.js";
|
|
7
|
+
import { useEffect, useState } from "react";
|
|
8
8
|
import { Link, useRouter } from "@tanstack/react-router";
|
|
9
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { Area, AreaChart, Bar, BarChart, CartesianGrid, ReferenceLine, ResponsiveContainer, Tooltip, XAxis, YAxis } from "recharts";
|
|
11
|
+
// src/components/charts.tsx
|
|
12
|
+
var axis = {
|
|
13
|
+
stroke: "var(--muted)",
|
|
14
|
+
fontSize: 11,
|
|
15
|
+
tickLine: false,
|
|
16
|
+
axisLine: false
|
|
17
|
+
};
|
|
18
|
+
var tooltipStyle = {
|
|
19
|
+
contentStyle: {
|
|
20
|
+
background: "var(--panel)",
|
|
21
|
+
border: "1px solid var(--border)",
|
|
22
|
+
borderRadius: 8,
|
|
23
|
+
fontSize: 12,
|
|
24
|
+
color: "var(--text)"
|
|
25
|
+
},
|
|
26
|
+
labelStyle: { color: "var(--muted)" },
|
|
27
|
+
cursor: { fill: "var(--panel-2)" }
|
|
28
|
+
};
|
|
29
|
+
/** Recharts measures the DOM, so render a same-size placeholder during SSR. */
|
|
30
|
+
function ClientOnly({ height, children }) {
|
|
31
|
+
const [ready, setReady] = useState(false);
|
|
32
|
+
useEffect(() => setReady(true), []);
|
|
33
|
+
return /* @__PURE__ */ jsx("div", {
|
|
34
|
+
style: { height },
|
|
35
|
+
children: ready ? children : null
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/** "13 Nov" for a day, "14:00" for an hour bucket ("YYYY-MM-DDTHH"). */
|
|
39
|
+
var shortDay = (d) => d.length === 13 ? `${d.slice(11)}:00` : (/* @__PURE__ */ new Date(`${d}T00:00:00Z`)).toLocaleDateString(void 0, {
|
|
40
|
+
month: "short",
|
|
41
|
+
day: "numeric",
|
|
42
|
+
timeZone: "UTC"
|
|
43
|
+
});
|
|
44
|
+
function TrendChart({ data, markers = [] }) {
|
|
45
|
+
const days = data.map((d) => d.day);
|
|
46
|
+
const snapped = markers.map((m) => ({
|
|
47
|
+
...m,
|
|
48
|
+
x: [...days].reverse().find((d) => d <= m.day)
|
|
49
|
+
})).filter((m) => !!m.x);
|
|
50
|
+
return /* @__PURE__ */ jsx(ClientOnly, {
|
|
51
|
+
height: 220,
|
|
52
|
+
children: /* @__PURE__ */ jsx(ResponsiveContainer, {
|
|
53
|
+
width: "100%",
|
|
54
|
+
height: "100%",
|
|
55
|
+
children: /* @__PURE__ */ jsxs(AreaChart, {
|
|
56
|
+
data,
|
|
57
|
+
margin: {
|
|
58
|
+
top: 8,
|
|
59
|
+
right: 8,
|
|
60
|
+
bottom: 0,
|
|
61
|
+
left: -16
|
|
62
|
+
},
|
|
63
|
+
accessibilityLayer: true,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", {
|
|
66
|
+
id: "errFill",
|
|
67
|
+
x1: "0",
|
|
68
|
+
y1: "0",
|
|
69
|
+
x2: "0",
|
|
70
|
+
y2: "1",
|
|
71
|
+
children: [/* @__PURE__ */ jsx("stop", {
|
|
72
|
+
offset: "0%",
|
|
73
|
+
stopColor: "var(--chart-errors)",
|
|
74
|
+
stopOpacity: .35
|
|
75
|
+
}), /* @__PURE__ */ jsx("stop", {
|
|
76
|
+
offset: "100%",
|
|
77
|
+
stopColor: "var(--chart-errors)",
|
|
78
|
+
stopOpacity: 0
|
|
79
|
+
})]
|
|
80
|
+
}) }),
|
|
81
|
+
/* @__PURE__ */ jsx(CartesianGrid, {
|
|
82
|
+
vertical: false,
|
|
83
|
+
stroke: "var(--chart-grid)"
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ jsx(XAxis, {
|
|
86
|
+
dataKey: "day",
|
|
87
|
+
tickFormatter: shortDay,
|
|
88
|
+
...axis,
|
|
89
|
+
minTickGap: 16
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ jsx(YAxis, {
|
|
92
|
+
allowDecimals: false,
|
|
93
|
+
...axis
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ jsx(Tooltip, {
|
|
96
|
+
...tooltipStyle,
|
|
97
|
+
labelFormatter: (d) => shortDay(String(d))
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ jsx(Area, {
|
|
100
|
+
type: "monotone",
|
|
101
|
+
dataKey: "errors",
|
|
102
|
+
name: "Errors",
|
|
103
|
+
stroke: "var(--chart-errors)",
|
|
104
|
+
strokeWidth: 2,
|
|
105
|
+
fill: "url(#errFill)"
|
|
106
|
+
}),
|
|
107
|
+
snapped.map((m) => /* @__PURE__ */ jsx(ReferenceLine, {
|
|
108
|
+
x: m.x,
|
|
109
|
+
stroke: "var(--chart-events)",
|
|
110
|
+
strokeDasharray: "3 3",
|
|
111
|
+
label: {
|
|
112
|
+
value: m.label,
|
|
113
|
+
position: "insideTopLeft",
|
|
114
|
+
fontSize: 10,
|
|
115
|
+
fill: "var(--chart-events)"
|
|
116
|
+
}
|
|
117
|
+
}, `${m.label}${m.day}`))
|
|
118
|
+
]
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function HourlyChart({ data }) {
|
|
124
|
+
const label = (h) => (/* @__PURE__ */ new Date(`${h}:00:00Z`)).toLocaleString(void 0, {
|
|
125
|
+
hour: "2-digit",
|
|
126
|
+
day: "numeric",
|
|
127
|
+
month: "short"
|
|
128
|
+
});
|
|
129
|
+
return /* @__PURE__ */ jsx(ClientOnly, {
|
|
130
|
+
height: 180,
|
|
131
|
+
children: /* @__PURE__ */ jsx(ResponsiveContainer, {
|
|
132
|
+
width: "100%",
|
|
133
|
+
height: "100%",
|
|
134
|
+
children: /* @__PURE__ */ jsxs(BarChart, {
|
|
135
|
+
data,
|
|
136
|
+
margin: {
|
|
137
|
+
top: 8,
|
|
138
|
+
right: 8,
|
|
139
|
+
bottom: 0,
|
|
140
|
+
left: -16
|
|
141
|
+
},
|
|
142
|
+
accessibilityLayer: true,
|
|
143
|
+
children: [
|
|
144
|
+
/* @__PURE__ */ jsx(CartesianGrid, {
|
|
145
|
+
vertical: false,
|
|
146
|
+
stroke: "var(--chart-grid)"
|
|
147
|
+
}),
|
|
148
|
+
/* @__PURE__ */ jsx(XAxis, {
|
|
149
|
+
dataKey: "hour",
|
|
150
|
+
tickFormatter: (h) => (/* @__PURE__ */ new Date(`${h}:00:00Z`)).toLocaleTimeString(void 0, { hour: "2-digit" }),
|
|
151
|
+
...axis,
|
|
152
|
+
minTickGap: 24
|
|
153
|
+
}),
|
|
154
|
+
/* @__PURE__ */ jsx(YAxis, {
|
|
155
|
+
allowDecimals: false,
|
|
156
|
+
...axis
|
|
157
|
+
}),
|
|
158
|
+
/* @__PURE__ */ jsx(Tooltip, {
|
|
159
|
+
...tooltipStyle,
|
|
160
|
+
labelFormatter: (h) => label(String(h)),
|
|
161
|
+
formatter: (v) => [v, "Occurrences"]
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ jsx(Bar, {
|
|
164
|
+
dataKey: "count",
|
|
165
|
+
fill: "var(--chart-errors)",
|
|
166
|
+
radius: [
|
|
167
|
+
3,
|
|
168
|
+
3,
|
|
169
|
+
0,
|
|
170
|
+
0
|
|
171
|
+
]
|
|
172
|
+
})
|
|
173
|
+
]
|
|
174
|
+
})
|
|
175
|
+
})
|
|
176
|
+
});
|
|
177
|
+
}
|
|
10
178
|
// src/routes/_authed/issues.$fingerprint.tsx?tsr-split=component
|
|
11
179
|
function IssuePage() {
|
|
12
180
|
const d = Route.useLoaderData();
|
|
@@ -16,21 +184,53 @@ function IssuePage() {
|
|
|
16
184
|
const navigate = Route.useNavigate();
|
|
17
185
|
const search = Route.useSearch();
|
|
18
186
|
const { range } = d;
|
|
187
|
+
const keep = {
|
|
188
|
+
app: d.app,
|
|
189
|
+
range: search.range,
|
|
190
|
+
from: search.from,
|
|
191
|
+
to: search.to
|
|
192
|
+
};
|
|
19
193
|
return /* @__PURE__ */ jsxs("main", {
|
|
20
194
|
className: "mx-auto max-w-7xl space-y-5 px-4 py-6 sm:px-6",
|
|
21
195
|
children: [
|
|
22
196
|
/* @__PURE__ */ jsxs("div", {
|
|
23
197
|
className: "flex flex-wrap items-center justify-between gap-3",
|
|
24
|
-
children: [/* @__PURE__ */
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
198
|
+
children: [/* @__PURE__ */ jsxs("nav", {
|
|
199
|
+
"aria-label": "Breadcrumb",
|
|
200
|
+
className: "text-sm text-muted",
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ jsx(Link, {
|
|
203
|
+
to: "/",
|
|
204
|
+
search: keep,
|
|
205
|
+
className: "hover:text-ink hover:underline",
|
|
206
|
+
children: "Health"
|
|
207
|
+
}),
|
|
208
|
+
d.area && /* @__PURE__ */ jsx("span", {
|
|
209
|
+
"aria-hidden": true,
|
|
210
|
+
children: " › "
|
|
211
|
+
}),
|
|
212
|
+
d.area?.kind === "tests" ? /* @__PURE__ */ jsx(Link, {
|
|
213
|
+
to: "/app-code",
|
|
214
|
+
search: {
|
|
215
|
+
...keep,
|
|
216
|
+
tests: true
|
|
217
|
+
},
|
|
218
|
+
hash: "test-errors",
|
|
219
|
+
className: "hover:text-ink hover:underline",
|
|
220
|
+
children: "Test errors"
|
|
221
|
+
}) : d.area?.kind === "app" ? /* @__PURE__ */ jsx(Link, {
|
|
222
|
+
to: "/app-code",
|
|
223
|
+
search: keep,
|
|
224
|
+
className: "hover:text-ink hover:underline",
|
|
225
|
+
children: "App code"
|
|
226
|
+
}) : d.area ? /* @__PURE__ */ jsx(Link, {
|
|
227
|
+
to: "/services/$service",
|
|
228
|
+
params: { service: d.area.name },
|
|
229
|
+
search: keep,
|
|
230
|
+
className: "hover:text-ink hover:underline",
|
|
231
|
+
children: d.area.name
|
|
232
|
+
}) : null
|
|
233
|
+
]
|
|
34
234
|
}), /* @__PURE__ */ jsx(RangePicker, {
|
|
35
235
|
value: range,
|
|
36
236
|
today: (/* @__PURE__ */ new Date()).toISOString().slice(0, 10),
|
|
@@ -48,7 +248,7 @@ function IssuePage() {
|
|
|
48
248
|
/* @__PURE__ */ jsxs("div", {
|
|
49
249
|
className: "flex flex-wrap items-center gap-2 text-xs text-muted",
|
|
50
250
|
children: [
|
|
51
|
-
/* @__PURE__ */ jsx(
|
|
251
|
+
/* @__PURE__ */ jsx(LevelBadge, { level: issue.severity }),
|
|
52
252
|
issue.flow && /* @__PURE__ */ jsx("span", {
|
|
53
253
|
className: "rounded bg-panel-2 px-1.5 py-0.5 font-mono",
|
|
54
254
|
children: issue.flow
|
|
@@ -69,19 +269,57 @@ function IssuePage() {
|
|
|
69
269
|
className: "mt-1 font-mono text-sm text-muted",
|
|
70
270
|
children: issue.culprit
|
|
71
271
|
}),
|
|
272
|
+
d.backend && /* @__PURE__ */ jsxs("p", {
|
|
273
|
+
className: "mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 rounded-lg border border-line bg-panel-2 px-3 py-2 text-sm",
|
|
274
|
+
children: [/* @__PURE__ */ jsxs("span", { children: [
|
|
275
|
+
/* @__PURE__ */ jsxs("span", {
|
|
276
|
+
className: "text-muted",
|
|
277
|
+
children: [
|
|
278
|
+
d.backend.service ? `The ${d.backend.service} service` : "The server",
|
|
279
|
+
" answered",
|
|
280
|
+
d.backend.status ? ` ${d.backend.status}` : "",
|
|
281
|
+
": "
|
|
282
|
+
]
|
|
283
|
+
}),
|
|
284
|
+
d.backend.message && /* @__PURE__ */ jsx("strong", { children: d.backend.message }),
|
|
285
|
+
d.backend.code && /* @__PURE__ */ jsxs("span", {
|
|
286
|
+
className: "font-mono",
|
|
287
|
+
children: [" · code ", d.backend.code]
|
|
288
|
+
}),
|
|
289
|
+
d.backend.codes.length > 1 && /* @__PURE__ */ jsxs("span", {
|
|
290
|
+
className: "text-muted",
|
|
291
|
+
children: [
|
|
292
|
+
" (",
|
|
293
|
+
d.backend.codes.map((c) => `${c.key} × ${c.count}`).join(", "),
|
|
294
|
+
")"
|
|
295
|
+
]
|
|
296
|
+
})
|
|
297
|
+
] }), d.backend.traceId && /* @__PURE__ */ jsxs("span", {
|
|
298
|
+
className: "flex items-center gap-1.5 text-xs",
|
|
299
|
+
children: [
|
|
300
|
+
/* @__PURE__ */ jsx("span", {
|
|
301
|
+
className: "text-muted",
|
|
302
|
+
children: "trace"
|
|
303
|
+
}),
|
|
304
|
+
/* @__PURE__ */ jsx("span", {
|
|
305
|
+
className: "break-all font-mono",
|
|
306
|
+
children: d.backend.traceId
|
|
307
|
+
}),
|
|
308
|
+
/* @__PURE__ */ jsx(CopyButton, {
|
|
309
|
+
text: d.backend.traceId,
|
|
310
|
+
label: "Copy",
|
|
311
|
+
ariaLabel: "Copy trace id"
|
|
312
|
+
})
|
|
313
|
+
]
|
|
314
|
+
})]
|
|
315
|
+
}),
|
|
72
316
|
/* @__PURE__ */ jsx(IssueLabels, { issue }),
|
|
73
317
|
issue.incidentTitle && /* @__PURE__ */ jsxs("p", {
|
|
74
318
|
className: "mt-2 text-sm text-muted",
|
|
75
|
-
children: [
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
to: "/",
|
|
80
|
-
search: { app: d.app },
|
|
81
|
-
className: "font-medium text-ink hover:text-accent",
|
|
82
|
-
children: issue.incidentTitle
|
|
83
|
-
})
|
|
84
|
-
]
|
|
319
|
+
children: ["Part of an incident: ", /* @__PURE__ */ jsx("span", {
|
|
320
|
+
className: "font-medium text-ink",
|
|
321
|
+
children: issue.incidentTitle
|
|
322
|
+
})]
|
|
85
323
|
})
|
|
86
324
|
] }),
|
|
87
325
|
/* @__PURE__ */ jsx(IssueActions, {
|
|
@@ -115,6 +353,87 @@ function IssuePage() {
|
|
|
115
353
|
})
|
|
116
354
|
]
|
|
117
355
|
}),
|
|
356
|
+
d.calls && !d.bursts && /* @__PURE__ */ jsx(CallCard, {
|
|
357
|
+
calls: d.calls,
|
|
358
|
+
app: d.app,
|
|
359
|
+
fingerprint: issue.fingerprint,
|
|
360
|
+
search
|
|
361
|
+
}),
|
|
362
|
+
d.bursts && d.bursts.length > 0 && /* @__PURE__ */ jsx(Card, {
|
|
363
|
+
title: "When phones went offline",
|
|
364
|
+
subtitle: `Requests that never left the phone, grouped per phone. Not counted against any endpoint or owner.${d.burstsCapped ? " From the newest occurrences only." : ""}`,
|
|
365
|
+
children: /* @__PURE__ */ jsx("ol", {
|
|
366
|
+
className: "space-y-3",
|
|
367
|
+
children: d.bursts.map((b) => /* @__PURE__ */ jsxs("li", {
|
|
368
|
+
className: "text-sm",
|
|
369
|
+
children: [
|
|
370
|
+
/* @__PURE__ */ jsxs("p", {
|
|
371
|
+
className: "font-medium",
|
|
372
|
+
children: [
|
|
373
|
+
new Date(b.start).toLocaleString(),
|
|
374
|
+
" · ",
|
|
375
|
+
b.failures,
|
|
376
|
+
" call",
|
|
377
|
+
b.failures === 1 ? "" : "s",
|
|
378
|
+
" never sent",
|
|
379
|
+
b.airplaneMode && /* @__PURE__ */ jsx("span", {
|
|
380
|
+
className: "ml-2 rounded bg-panel-2 px-1.5 py-0.5 text-xs text-muted",
|
|
381
|
+
children: "airplane mode on"
|
|
382
|
+
})
|
|
383
|
+
]
|
|
384
|
+
}),
|
|
385
|
+
/* @__PURE__ */ jsx("p", {
|
|
386
|
+
className: "text-xs text-muted",
|
|
387
|
+
children: [
|
|
388
|
+
b.device,
|
|
389
|
+
b.os,
|
|
390
|
+
b.appVersion && `app ${b.appVersion}`
|
|
391
|
+
].filter(Boolean).join(" · ")
|
|
392
|
+
}),
|
|
393
|
+
/* @__PURE__ */ jsx("ul", {
|
|
394
|
+
className: "mt-1 flex flex-wrap gap-x-3 gap-y-0.5 font-mono text-xs text-muted",
|
|
395
|
+
children: b.calls.map((c) => /* @__PURE__ */ jsxs("li", {
|
|
396
|
+
className: "break-all",
|
|
397
|
+
children: [c.call, c.count > 1 ? ` ×${c.count}` : ""]
|
|
398
|
+
}, c.call))
|
|
399
|
+
})
|
|
400
|
+
]
|
|
401
|
+
}, `${b.phone}${b.start}`))
|
|
402
|
+
})
|
|
403
|
+
}),
|
|
404
|
+
d.findings.length > 0 && /* @__PURE__ */ jsx(Card, {
|
|
405
|
+
title: "What the trail shows",
|
|
406
|
+
subtitle: "Patterns deBug found in what customers did before the error, and what to do about each.",
|
|
407
|
+
children: /* @__PURE__ */ jsx("ol", {
|
|
408
|
+
className: "space-y-3",
|
|
409
|
+
children: d.findings.map((f) => /* @__PURE__ */ jsxs("li", {
|
|
410
|
+
className: "text-sm",
|
|
411
|
+
children: [
|
|
412
|
+
/* @__PURE__ */ jsx("p", {
|
|
413
|
+
className: "font-medium",
|
|
414
|
+
children: f.why
|
|
415
|
+
}),
|
|
416
|
+
/* @__PURE__ */ jsx("p", {
|
|
417
|
+
className: "mt-0.5",
|
|
418
|
+
children: f.fix
|
|
419
|
+
}),
|
|
420
|
+
/* @__PURE__ */ jsxs("details", {
|
|
421
|
+
className: "mt-1 text-xs text-muted",
|
|
422
|
+
children: [/* @__PURE__ */ jsxs("summary", {
|
|
423
|
+
className: "cursor-pointer hover:text-ink",
|
|
424
|
+
children: [f.of > 1 ? f.seen === f.of ? `Every time: all ${f.of} recent occurrences` : `In ${f.seen} of ${f.of} recent occurrences` : "In the latest occurrence", " · show what it read"]
|
|
425
|
+
}), /* @__PURE__ */ jsx("ul", {
|
|
426
|
+
className: "mt-1 space-y-0.5 font-mono",
|
|
427
|
+
children: f.evidence.map((e, i) => /* @__PURE__ */ jsx("li", {
|
|
428
|
+
className: "break-words",
|
|
429
|
+
children: e
|
|
430
|
+
}, i))
|
|
431
|
+
})]
|
|
432
|
+
})
|
|
433
|
+
]
|
|
434
|
+
}, f.id))
|
|
435
|
+
})
|
|
436
|
+
}),
|
|
118
437
|
issue.explanation && /* @__PURE__ */ jsxs("div", {
|
|
119
438
|
className: "grid gap-5 lg:grid-cols-2",
|
|
120
439
|
children: [/* @__PURE__ */ jsx(Card, {
|
|
@@ -153,7 +472,7 @@ function IssuePage() {
|
|
|
153
472
|
className: "mt-3 text-sm",
|
|
154
473
|
children: [/* @__PURE__ */ jsx("span", {
|
|
155
474
|
className: "font-medium",
|
|
156
|
-
children: "
|
|
475
|
+
children: "General advice: "
|
|
157
476
|
}), plain(issue.explanation.technical.fix)]
|
|
158
477
|
})
|
|
159
478
|
]
|
|
@@ -472,4 +791,57 @@ function IssueActions({ app, issue, canChange, links }) {
|
|
|
472
791
|
}
|
|
473
792
|
/** Explanations mark code with backticks for Markdown; on the page they read as plain text. */
|
|
474
793
|
var plain = (s) => s.replaceAll("`", "");
|
|
794
|
+
/** "18 Nov, 14:05 UTC": the same on the server and in the browser. */
|
|
795
|
+
var utc = (iso) => `${new Date(iso).toLocaleString("en-GB", {
|
|
796
|
+
day: "numeric",
|
|
797
|
+
month: "short",
|
|
798
|
+
hour: "2-digit",
|
|
799
|
+
minute: "2-digit",
|
|
800
|
+
timeZone: "UTC"
|
|
801
|
+
})} UTC`;
|
|
802
|
+
/**
|
|
803
|
+
* The call that failed, up front: the newest occurrence's request and response. When that one got
|
|
804
|
+
* no answer (an outage), the last answer the server gave comes next, so both are on the page.
|
|
805
|
+
*/
|
|
806
|
+
function CallCard({ calls, app, fingerprint, search }) {
|
|
807
|
+
const open = (c) => /* @__PURE__ */ jsx(Link, {
|
|
808
|
+
to: "/events/$eventId",
|
|
809
|
+
params: { eventId: c.eventId },
|
|
810
|
+
search: {
|
|
811
|
+
app,
|
|
812
|
+
issue: fingerprint,
|
|
813
|
+
range: search.range,
|
|
814
|
+
from: search.from,
|
|
815
|
+
to: search.to
|
|
816
|
+
},
|
|
817
|
+
className: "whitespace-nowrap text-xs text-accent hover:underline",
|
|
818
|
+
children: "That occurrence →"
|
|
819
|
+
});
|
|
820
|
+
const { latest, lastAnswer } = calls;
|
|
821
|
+
if (!latest) return /* @__PURE__ */ jsx(Card, {
|
|
822
|
+
title: "The call that failed",
|
|
823
|
+
subtitle: "A call failed, but the app recorded nothing about it: no request, and no failed call in the steps before the error.",
|
|
824
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
825
|
+
className: "text-sm text-muted",
|
|
826
|
+
children: "Apps built with the SDK's network capture record every failed call, with its request and response."
|
|
827
|
+
})
|
|
828
|
+
});
|
|
829
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Card, {
|
|
830
|
+
title: "The call that failed",
|
|
831
|
+
subtitle: `What the app sent and what the server answered, newest: ${utc(latest.ts)}.`,
|
|
832
|
+
right: open(latest),
|
|
833
|
+
children: /* @__PURE__ */ jsx(RequestPanel, {
|
|
834
|
+
call: latest.api,
|
|
835
|
+
exchange: latest.exchange
|
|
836
|
+
})
|
|
837
|
+
}), lastAnswer && /* @__PURE__ */ jsx(Card, {
|
|
838
|
+
title: "The last time the server answered",
|
|
839
|
+
subtitle: `${utc(lastAnswer.ts)}. The newest call got no answer; this is what the server said before.`,
|
|
840
|
+
right: open(lastAnswer),
|
|
841
|
+
children: /* @__PURE__ */ jsx(RequestPanel, {
|
|
842
|
+
call: lastAnswer.api,
|
|
843
|
+
exchange: lastAnswer.exchange
|
|
844
|
+
})
|
|
845
|
+
})] });
|
|
846
|
+
}
|
|
475
847
|
export { IssuePage as component };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { l as Logo } from "./ui-C3pl0edn.js";
|
|
2
|
+
import { _ as login } from "./fns-BcVGbSID.js";
|
|
3
|
+
import { p as Route } from "./router-BXkzR89j.js";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { useRouter } from "@tanstack/react-router";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|