@debugkit/dashboard 0.9.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-BJkvWYRY.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-DiDJMnQu.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-B0NxM46y.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-BRuVQ2bU.js → team-xlrjhEGp.js} +1 -1
- package/dist/client/assets/{timeline-BIGo9MCA.js → timeline-WXE49N62.js} +1 -1
- package/dist/client/assets/ui-DRjjeSWy.js +1 -0
- package/dist/client/assets/{version-banner-VFvyqbPh.js → version-banner-BYe4PVzv.js} +1 -1
- 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-827fC5I3.js → customers-CD84Bz4P.js} +11 -6
- package/dist/server/assets/{demo-DDNiXCgj.js → demo-D-o8m75S.js} +222 -6
- package/dist/server/assets/{dynamodb-Cd4blXkh.js → dynamodb-CcH0cp7R.js} +2 -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-_T0NSOyA.js → endpoints-C0Cxc_-x.js} +38 -36
- package/dist/server/assets/{events._eventId-Dcsu4oVO.js → events._eventId-BOHkNO5W.js} +90 -351
- package/dist/server/assets/exchange-view-DzoSBt_R.js +112 -0
- package/dist/server/assets/{firestore-c8Sz2Q4O.js → firestore-DyvYMiz3.js} +2 -2
- package/dist/server/assets/{fns-BiUOnY1_.js → fns-BcVGbSID.js} +20 -7
- package/dist/server/assets/fns-DE03YExD.js +831 -0
- package/dist/server/assets/{invite._token-7DjEeeaD.js → invite._token-DhlACkIe.js} +3 -3
- package/dist/server/assets/{issues._fingerprint-vc9r3jgg.js → issues._fingerprint-BBd-_Nn5.js} +400 -28
- package/dist/server/assets/{login-CwKAx9Bj.js → login-CbfdHJvg.js} +3 -3
- package/dist/server/assets/{memory-Bv4C8uyK.js → memory-CZBUh1Zc.js} +75 -3
- package/dist/server/assets/{errors-Po4Tt5zd.js → queries-wha4cZbw.js} +1394 -128
- package/dist/server/assets/request-panel-DpCSwl2q.js +162 -0
- package/dist/server/assets/{router-Dk3XHn7B.js → router-BXkzR89j.js} +195 -91
- package/dist/server/assets/services._service-DWjFFGON.js +309 -0
- package/dist/server/assets/{sessions._sessionId-BvXxK9qF.js → sessions._sessionId-DDspiPTe.js} +2 -2
- package/dist/server/assets/{settings-B9NLQjl1.js → settings-DCLIaZ_p.js} +146 -25
- package/dist/server/assets/{src-oWPSAvXv.js → src-B2GKPQyN.js} +1 -1
- package/dist/server/assets/{team-Bsm2wFG0.js → team-jd_TmWP4.js} +3 -3
- package/dist/server/assets/ui-C3pl0edn.js +302 -0
- package/dist/server/assets/{version-banner-nf-yZurq.js → version-banner-BX34ijG5.js} +1 -1
- package/dist/server/assets/{versions-BOlL8jam.js → versions-YI_zK1ql.js} +3 -3
- package/dist/server/assets/warm-C3GbXP1_.js +16 -0
- package/dist/server/server.js +37 -29
- package/package.json +4 -4
- package/dist/client/assets/_authed-C29P68T-.js +0 -1
- package/dist/client/assets/_authed-D-dYbHoP.js +0 -7
- package/dist/client/assets/charts--S1o8iId.js +0 -55
- package/dist/client/assets/customers-Cwx5qEO1.js +0 -1
- package/dist/client/assets/endpoints-zz1TotR2.js +0 -1
- package/dist/client/assets/events._eventId-Bx6TfUjv.js +0 -3
- package/dist/client/assets/index-COHr_cc3.js +0 -10
- package/dist/client/assets/issues._fingerprint-Cv522h2j.js +0 -1
- package/dist/client/assets/login-CKkpc0t5.js +0 -1
- package/dist/client/assets/settings-CIlF10MI.js +0 -1
- package/dist/client/assets/src-BKSiJUs3.js +0 -3
- package/dist/client/assets/styles-GAsMUS4-.css +0 -2
- package/dist/client/assets/ui-CaEZB1j2.js +0 -1
- package/dist/server/assets/_authed-BJWDiF9i.js +0 -92
- package/dist/server/assets/_authed-X9u_5JUy.js +0 -902
- package/dist/server/assets/_tanstack-start-manifest_v-C6vaeBdY.js +0 -90
- package/dist/server/assets/charts-DzTVqJ8z.js +0 -238
- package/dist/server/assets/fns-CVbk8Gf9.js +0 -1310
- package/dist/server/assets/ui-SAkSlP7f.js +0 -193
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
|
|
2
|
-
import { a as
|
|
3
|
-
import { E as OWNER_INFO, S as CATEGORY_INFO, w as IMPACT_INFO } from "./memory-Bv4C8uyK.js";
|
|
2
|
+
import { a as getEventDetail, c as getIssueDetail, d as getSessionUser, f as getSettings, i as getEndpoints, l as getLoginInfo, n as findCustomer, o as getHealth, p as getTeam, r as getAppCode, s as getInvite, u as getSessionDetail } from "./fns-BcVGbSID.js";
|
|
4
3
|
import { r as rangeSearch } from "./range-picker-0zbSGr3Z.js";
|
|
5
|
-
import {
|
|
4
|
+
import { A as parseIngestKeys, O as CORS_HEADERS, P as HEALTH_ORDER, at as getLocalWriteStore, g as authorizeApi, k as ingest, n as buildIssueDetail, ot as getStore, p as isIndexError, r as buildSummary, t as SUMMARY_FIELDS } from "./queries-wha4cZbw.js";
|
|
5
|
+
import { B as OWNER_INFO, I as CATEGORY_INFO, R as IMPACT_INFO } from "./memory-CZBUh1Zc.js";
|
|
6
|
+
import { t as config } from "./config-Bp8m0B8q.js";
|
|
6
7
|
import { HeadContent, Outlet, Scripts, createFileRoute, createRootRoute, createRouter, lazyRouteComponent, notFound, redirect } from "@tanstack/react-router";
|
|
7
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
9
|
// src/styles.css?url
|
|
9
|
-
var styles_default = "/assets/styles-
|
|
10
|
+
var styles_default = "/assets/styles-Tcq0pvWj.css";
|
|
10
11
|
// src/routes/__root.tsx
|
|
11
|
-
var Route$
|
|
12
|
+
var Route$17 = createRootRoute({
|
|
12
13
|
head: () => ({
|
|
13
14
|
meta: [
|
|
14
15
|
{ charSet: "utf-8" },
|
|
@@ -43,29 +44,60 @@ function RootDocument({ children }) {
|
|
|
43
44
|
});
|
|
44
45
|
}
|
|
45
46
|
// src/routes/_authed.tsx
|
|
46
|
-
var $$splitComponentImporter$
|
|
47
|
-
var Route$
|
|
47
|
+
var $$splitComponentImporter$12 = () => import("./_authed-Bn-IktVS.js");
|
|
48
|
+
var Route$16 = createFileRoute("/_authed")({
|
|
48
49
|
beforeLoad: async () => {
|
|
49
50
|
const user = await getSessionUser();
|
|
50
51
|
if (!user) throw redirect({ to: "/login" });
|
|
51
52
|
return { user };
|
|
52
53
|
},
|
|
53
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
54
|
+
component: lazyRouteComponent($$splitComponentImporter$12, "component")
|
|
54
55
|
});
|
|
56
|
+
/** The pages under Health (drilled down from a box), so the menu keeps Health lit on them. */
|
|
57
|
+
/**
|
|
58
|
+
* A main-menu link. The page you're on is filled in and underlined, so it's clear where you are;
|
|
59
|
+
* Health stays lit on the pages drilled down from it. Keeps the app and period.
|
|
60
|
+
*/
|
|
55
61
|
// src/routes/login.tsx
|
|
56
|
-
var $$splitComponentImporter$
|
|
57
|
-
var Route$
|
|
62
|
+
var $$splitComponentImporter$11 = () => import("./login-CbfdHJvg.js");
|
|
63
|
+
var Route$15 = createFileRoute("/login")({
|
|
58
64
|
beforeLoad: async () => {
|
|
59
65
|
if (await getSessionUser()) throw redirect({ to: "/" });
|
|
60
66
|
},
|
|
61
67
|
loader: () => getLoginInfo(),
|
|
62
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
68
|
+
component: lazyRouteComponent($$splitComponentImporter$11, "component")
|
|
63
69
|
});
|
|
64
|
-
// src/
|
|
70
|
+
// src/routes/_authed/index.tsx
|
|
71
|
+
var $$splitComponentImporter$10 = () => import("./_authed-RXh7GpoE.js");
|
|
72
|
+
var isLevel = (v) => typeof v === "string" && v in HEALTH_ORDER;
|
|
73
|
+
var Route$14 = createFileRoute("/_authed/")({
|
|
74
|
+
validateSearch: (s) => ({
|
|
75
|
+
app: typeof s.app === "string" ? s.app : void 0,
|
|
76
|
+
level: isLevel(s.level) ? s.level : void 0,
|
|
77
|
+
...rangeSearch(s)
|
|
78
|
+
}),
|
|
79
|
+
loaderDeps: ({ search }) => ({
|
|
80
|
+
app: search.app,
|
|
81
|
+
range: search.range,
|
|
82
|
+
from: search.from,
|
|
83
|
+
to: search.to
|
|
84
|
+
}),
|
|
85
|
+
loader: ({ deps }) => getHealth({ data: deps }),
|
|
86
|
+
component: lazyRouteComponent($$splitComponentImporter$10, "component")
|
|
87
|
+
});
|
|
88
|
+
/**
|
|
89
|
+
* The home page: every backend service and the app's own code as a box, in its level's colour,
|
|
90
|
+
* worst first. Red means a big problem, orange a smaller one, yellow minor, grey one-offs, green
|
|
91
|
+
* healthy. Each box opens where the problem is, how often, and what's causing it.
|
|
92
|
+
*/
|
|
93
|
+
/** A box on the wall, linked one level down. */
|
|
94
|
+
/** A level and how many boxes are at it. Click to show only that level, again to show all. None at that level: not clickable. */
|
|
65
95
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
96
|
+
* What's kept off the wall on purpose, each linking to where it's listed and why: phones going
|
|
97
|
+
* offline (ABA-132) and test errors (ABA-133). Nothing when there's nothing.
|
|
68
98
|
*/
|
|
99
|
+
// src/lib/issue-filter.ts
|
|
100
|
+
/** Narrowing GET /api/summary's issue list: by status, flow and the labels from docs/taxonomy.md. */
|
|
69
101
|
var STATUS_FILTERS = [
|
|
70
102
|
"open",
|
|
71
103
|
"resolved",
|
|
@@ -88,8 +120,6 @@ var LABEL_FILTERS = {
|
|
|
88
120
|
}
|
|
89
121
|
};
|
|
90
122
|
var LABEL_FILTER_KEYS = Object.keys(LABEL_FILTERS);
|
|
91
|
-
/** Every label filter unset, to spread into search params. */
|
|
92
|
-
var NO_LABEL_FILTERS = Object.fromEntries(LABEL_FILTER_KEYS.map((k) => [k, void 0]));
|
|
93
123
|
/** Read the label filters from search params or a query string. Unknown ids are dropped. */
|
|
94
124
|
function labelFilterOf(get) {
|
|
95
125
|
const out = {};
|
|
@@ -99,6 +129,8 @@ function labelFilterOf(get) {
|
|
|
99
129
|
}
|
|
100
130
|
return out;
|
|
101
131
|
}
|
|
132
|
+
/** "List test errors too" from a URL: tests=1 or tests=true, whether parsed as text, number or boolean. */
|
|
133
|
+
var testsFlag = (v) => v === true || v === 1 || v === "1" || v === "true";
|
|
102
134
|
var isStatusFilter = (v) => typeof v === "string" && STATUS_FILTERS.includes(v);
|
|
103
135
|
/**
|
|
104
136
|
* The filters in a /api/summary query string, or what's wrong with them. Unlike the page, the API
|
|
@@ -111,9 +143,11 @@ function issueFilterFromQuery(q) {
|
|
|
111
143
|
const v = q.get(k);
|
|
112
144
|
if (v !== null && !Object.hasOwn(LABEL_FILTERS[k].info, v)) return `Unknown ${k} "${v}": use one of ${Object.keys(LABEL_FILTERS[k].info).join(", ")}`;
|
|
113
145
|
}
|
|
146
|
+
const tests = testsFlag(q.get("tests"));
|
|
114
147
|
return {
|
|
115
148
|
status,
|
|
116
149
|
flow: q.get("flow") ?? void 0,
|
|
150
|
+
...tests ? { tests } : {},
|
|
117
151
|
...labelFilterOf((k) => q.get(k))
|
|
118
152
|
};
|
|
119
153
|
}
|
|
@@ -124,32 +158,14 @@ function matchesStatus(i, status = "open") {
|
|
|
124
158
|
}
|
|
125
159
|
/** Issues matching every filter that's set. An issue without labels never matches a label filter. */
|
|
126
160
|
function filterIssues(issues, f) {
|
|
127
|
-
return issues.filter((i) => matchesStatus(i, f.status) && (!f.flow || (i.flow ?? "untagged") === f.flow) && LABEL_FILTER_KEYS.every((k) => !f[k] || i.labels?.[k] === f[k]));
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* How many issues each label value would leave, given the other filters: the counts next to each
|
|
131
|
-
* option, and "whose is it" for the filtered list. Values with no issues are left out.
|
|
132
|
-
*/
|
|
133
|
-
function labelCounts(issues, f, key) {
|
|
134
|
-
const rest = filterIssues(issues, {
|
|
135
|
-
...f,
|
|
136
|
-
[key]: void 0
|
|
137
|
-
});
|
|
138
|
-
const out = /* @__PURE__ */ new Map();
|
|
139
|
-
for (const i of rest) {
|
|
140
|
-
const v = i.labels?.[key];
|
|
141
|
-
if (v) out.set(v, (out.get(v) ?? 0) + 1);
|
|
142
|
-
}
|
|
143
|
-
return out;
|
|
161
|
+
return issues.filter((i) => (f.tests || !i.test) && (!i.offline || f.category === "network.offline") && matchesStatus(i, f.status) && (!f.flow || (i.flow ?? "untagged") === f.flow) && LABEL_FILTER_KEYS.every((k) => !f[k] || i.labels?.[k] === f[k]));
|
|
144
162
|
}
|
|
145
|
-
// src/routes/_authed/
|
|
146
|
-
var $$splitComponentImporter$
|
|
147
|
-
var Route$
|
|
163
|
+
// src/routes/_authed/app-code.tsx
|
|
164
|
+
var $$splitComponentImporter$9 = () => import("./app-code-BQL_FcSx.js");
|
|
165
|
+
var Route$13 = createFileRoute("/_authed/app-code")({
|
|
148
166
|
validateSearch: (s) => ({
|
|
149
167
|
app: typeof s.app === "string" ? s.app : void 0,
|
|
150
|
-
|
|
151
|
-
status: isStatusFilter(s.status) ? s.status : void 0,
|
|
152
|
-
...labelFilterOf((k) => s[k]),
|
|
168
|
+
tests: testsFlag(s.tests) || void 0,
|
|
153
169
|
...rangeSearch(s)
|
|
154
170
|
}),
|
|
155
171
|
loaderDeps: ({ search }) => ({
|
|
@@ -158,12 +174,19 @@ var Route$11 = createFileRoute("/_authed/")({
|
|
|
158
174
|
from: search.from,
|
|
159
175
|
to: search.to
|
|
160
176
|
}),
|
|
161
|
-
loader: ({ deps }) =>
|
|
162
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
177
|
+
loader: ({ deps }) => getAppCode({ data: deps }),
|
|
178
|
+
component: lazyRouteComponent($$splitComponentImporter$9, "component")
|
|
163
179
|
});
|
|
180
|
+
/**
|
|
181
|
+
* The App code box, one level down: the app's own crashes and code errors (not failed calls,
|
|
182
|
+
* which belong to their service), worst first, each one click from its cause and fix. Resolved
|
|
183
|
+
* and ignored ones sit apart at the bottom.
|
|
184
|
+
*/
|
|
185
|
+
/** One crash or code error: what, where in the code, how often, and the way to its cause and fix. */
|
|
186
|
+
/** Errors the app made on purpose to test deBug: shown only when asked for, never counted. */
|
|
164
187
|
// src/routes/_authed/customers.tsx
|
|
165
|
-
var $$splitComponentImporter$
|
|
166
|
-
var Route$
|
|
188
|
+
var $$splitComponentImporter$8 = () => import("./customers-CD84Bz4P.js");
|
|
189
|
+
var Route$12 = createFileRoute("/_authed/customers")({
|
|
167
190
|
validateSearch: (s) => ({
|
|
168
191
|
app: typeof s.app === "string" ? s.app : void 0,
|
|
169
192
|
q: typeof s.q === "string" && s.q.trim() ? s.q : void 0
|
|
@@ -176,12 +199,12 @@ var Route$10 = createFileRoute("/_authed/customers")({
|
|
|
176
199
|
app: deps.app,
|
|
177
200
|
q: deps.q ?? ""
|
|
178
201
|
} }),
|
|
179
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
202
|
+
component: lazyRouteComponent($$splitComponentImporter$8, "component")
|
|
180
203
|
});
|
|
181
204
|
/** "No errors", "3 errors, all caught", "3 errors, 1 caught". */
|
|
182
205
|
// src/routes/_authed/endpoints.tsx
|
|
183
|
-
var $$splitComponentImporter$
|
|
184
|
-
var Route$
|
|
206
|
+
var $$splitComponentImporter$7 = () => import("./endpoints-C0Cxc_-x.js");
|
|
207
|
+
var Route$11 = createFileRoute("/_authed/endpoints")({
|
|
185
208
|
validateSearch: (s) => ({
|
|
186
209
|
app: typeof s.app === "string" ? s.app : void 0,
|
|
187
210
|
endpoint: typeof s.endpoint === "string" ? s.endpoint : void 0,
|
|
@@ -196,26 +219,26 @@ var Route$9 = createFileRoute("/_authed/endpoints")({
|
|
|
196
219
|
to: search.to
|
|
197
220
|
}),
|
|
198
221
|
loader: ({ deps }) => getEndpoints({ data: deps }),
|
|
199
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
222
|
+
component: lazyRouteComponent($$splitComponentImporter$7, "component")
|
|
200
223
|
});
|
|
201
|
-
/**
|
|
224
|
+
/** Each backend service as a box in its level's colour, worst first; a box opens that service. */
|
|
202
225
|
/** The endpoints in the order picked: most failures (as the server sends them), slowest p95, or most calls. */
|
|
203
226
|
// src/routes/_authed/settings.tsx
|
|
204
|
-
var $$splitComponentImporter$
|
|
205
|
-
var Route$
|
|
227
|
+
var $$splitComponentImporter$6 = () => import("./settings-DCLIaZ_p.js");
|
|
228
|
+
var Route$10 = createFileRoute("/_authed/settings")({
|
|
206
229
|
validateSearch: (s) => ({ app: typeof s.app === "string" ? s.app : void 0 }),
|
|
207
230
|
loaderDeps: ({ search }) => ({ app: search.app }),
|
|
208
231
|
loader: ({ deps }) => getSettings({ data: deps }),
|
|
209
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
232
|
+
component: lazyRouteComponent($$splitComponentImporter$6, "component")
|
|
210
233
|
});
|
|
211
234
|
/** Owners a host can be given; leaving it unset lets the classifier decide. */
|
|
212
235
|
/** Only ingest or the dashboard a patch behind: nothing is missing yet. */
|
|
213
236
|
/** The project's deBug versions, and what to run when one is behind. */
|
|
214
237
|
// src/routes/_authed/team.tsx
|
|
215
|
-
var $$splitComponentImporter$
|
|
216
|
-
var Route$
|
|
238
|
+
var $$splitComponentImporter$5 = () => import("./team-jd_TmWP4.js");
|
|
239
|
+
var Route$9 = createFileRoute("/_authed/team")({
|
|
217
240
|
loader: () => getTeam(),
|
|
218
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
241
|
+
component: lazyRouteComponent($$splitComponentImporter$5, "component")
|
|
219
242
|
});
|
|
220
243
|
// src/routes/api/ingest.ts
|
|
221
244
|
/**
|
|
@@ -223,7 +246,7 @@ var Route$7 = createFileRoute("/_authed/team")({
|
|
|
223
246
|
* Point the SDK at http://localhost:4400/api/ingest with ingestKey "pk_local".
|
|
224
247
|
* In production, events go to the ingest function in your own cloud instead.
|
|
225
248
|
*/
|
|
226
|
-
var Route$
|
|
249
|
+
var Route$8 = createFileRoute("/api/ingest")({ server: { handlers: {
|
|
227
250
|
OPTIONS: async () => new Response(null, {
|
|
228
251
|
status: 204,
|
|
229
252
|
headers: CORS_HEADERS
|
|
@@ -250,9 +273,10 @@ var Route$6 = createFileRoute("/api/ingest")({ server: { handlers: {
|
|
|
250
273
|
// src/routes/api/summary.ts
|
|
251
274
|
/**
|
|
252
275
|
* GET /api/summary?app=<id> — the overview as JSON, for agents and scripts.
|
|
253
|
-
* Optional issue filters: status (open, resolved, ignored, all), flow, category, owner, impact
|
|
276
|
+
* Optional issue filters: status (open, resolved, ignored, all), flow, category, owner, impact,
|
|
277
|
+
* and tests=1 to list test errors too (hidden by default).
|
|
254
278
|
*/
|
|
255
|
-
var Route$
|
|
279
|
+
var Route$7 = createFileRoute("/api/summary")({ server: { handlers: { GET: async ({ request }) => {
|
|
256
280
|
if (!await authorizeApi(request)) return Response.json({ error: "unauthorized" }, { status: 401 });
|
|
257
281
|
const q = new URL(request.url).searchParams;
|
|
258
282
|
const app = q.get("app") ?? void 0;
|
|
@@ -278,14 +302,14 @@ var Route$5 = createFileRoute("/api/summary")({ server: { handlers: { GET: async
|
|
|
278
302
|
});
|
|
279
303
|
} } } });
|
|
280
304
|
// src/routes/invite.$token.tsx
|
|
281
|
-
var $$splitComponentImporter$
|
|
282
|
-
var Route$
|
|
305
|
+
var $$splitComponentImporter$4 = () => import("./invite._token-DhlACkIe.js");
|
|
306
|
+
var Route$6 = createFileRoute("/invite/$token")({
|
|
283
307
|
loader: ({ params }) => getInvite({ data: { token: params.token } }),
|
|
284
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
308
|
+
component: lazyRouteComponent($$splitComponentImporter$4, "component")
|
|
285
309
|
});
|
|
286
310
|
// src/routes/_authed/events.$eventId.tsx
|
|
287
|
-
var $$splitComponentImporter$
|
|
288
|
-
var Route$
|
|
311
|
+
var $$splitComponentImporter$3 = () => import("./events._eventId-BOHkNO5W.js");
|
|
312
|
+
var Route$5 = createFileRoute("/_authed/events/$eventId")({
|
|
289
313
|
validateSearch: (s) => ({
|
|
290
314
|
app: typeof s.app === "string" ? s.app : "",
|
|
291
315
|
issue: typeof s.issue === "string" ? s.issue : "",
|
|
@@ -305,14 +329,33 @@ var Route$3 = createFileRoute("/_authed/events/$eventId")({
|
|
|
305
329
|
if (!d) throw notFound();
|
|
306
330
|
return d;
|
|
307
331
|
},
|
|
308
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
332
|
+
component: lazyRouteComponent($$splitComponentImporter$3, "component")
|
|
333
|
+
});
|
|
334
|
+
/** The support summary, the Support / Developer switch, and "Copy for ticket". */
|
|
335
|
+
/** The steps support follows: screens, taps, what the app showed, and calls that failed. */
|
|
336
|
+
/** Who it happened to, and the ids that lead to their session and their other sessions. */
|
|
337
|
+
/** The trail up to the error, and with `after`, what came after it. */
|
|
338
|
+
// src/routes/_authed/issues.index.tsx
|
|
339
|
+
/**
|
|
340
|
+
* There's no issue list: issues are reached by drilling down from Health (a box, then its
|
|
341
|
+
* service or App code page, then the issue). Old links to /issues land on Health with the same
|
|
342
|
+
* app and period.
|
|
343
|
+
*/
|
|
344
|
+
var Route$4 = createFileRoute("/_authed/issues/")({
|
|
345
|
+
beforeLoad: ({ search }) => {
|
|
346
|
+
throw redirect({
|
|
347
|
+
to: "/",
|
|
348
|
+
search
|
|
349
|
+
});
|
|
350
|
+
},
|
|
351
|
+
validateSearch: (s) => ({
|
|
352
|
+
app: typeof s.app === "string" ? s.app : void 0,
|
|
353
|
+
...rangeSearch(s)
|
|
354
|
+
})
|
|
309
355
|
});
|
|
310
|
-
/** The failed call; with what the SDK captured, its request and response in tabs of their own. */
|
|
311
|
-
/** Headers and body of one side of the call. */
|
|
312
|
-
/** Label/value rows; empty values are left out. */
|
|
313
356
|
// src/routes/_authed/issues.$fingerprint.tsx
|
|
314
|
-
var $$splitComponentImporter$
|
|
315
|
-
var Route$
|
|
357
|
+
var $$splitComponentImporter$2 = () => import("./issues._fingerprint-BBd-_Nn5.js");
|
|
358
|
+
var Route$3 = createFileRoute("/_authed/issues/$fingerprint")({
|
|
316
359
|
validateSearch: (s) => ({
|
|
317
360
|
app: typeof s.app === "string" ? s.app : "",
|
|
318
361
|
...rangeSearch(s)
|
|
@@ -331,12 +374,38 @@ var Route$2 = createFileRoute("/_authed/issues/$fingerprint")({
|
|
|
331
374
|
if (!d) throw notFound();
|
|
332
375
|
return d;
|
|
333
376
|
},
|
|
334
|
-
component: lazyRouteComponent($$splitComponentImporter$
|
|
377
|
+
component: lazyRouteComponent($$splitComponentImporter$2, "component")
|
|
335
378
|
});
|
|
336
379
|
/** Resolve (with the fixed version), ignore or reopen, and open a prefilled ticket. */
|
|
337
380
|
/** Explanations mark code with backticks for Markdown; on the page they read as plain text. */
|
|
381
|
+
/** "18 Nov, 14:05 UTC": the same on the server and in the browser. */
|
|
382
|
+
/**
|
|
383
|
+
* The call that failed, up front: the newest occurrence's request and response. When that one got
|
|
384
|
+
* no answer (an outage), the last answer the server gave comes next, so both are on the page.
|
|
385
|
+
*/
|
|
386
|
+
// src/routes/_authed/services.$service.tsx
|
|
387
|
+
var $$splitComponentImporter$1 = () => import("./services._service-DWjFFGON.js");
|
|
388
|
+
var Route$2 = createFileRoute("/_authed/services/$service")({
|
|
389
|
+
validateSearch: (s) => ({
|
|
390
|
+
app: typeof s.app === "string" ? s.app : void 0,
|
|
391
|
+
...rangeSearch(s)
|
|
392
|
+
}),
|
|
393
|
+
loaderDeps: ({ search }) => ({
|
|
394
|
+
app: search.app,
|
|
395
|
+
range: search.range,
|
|
396
|
+
from: search.from,
|
|
397
|
+
to: search.to
|
|
398
|
+
}),
|
|
399
|
+
loader: ({ deps }) => getEndpoints({ data: deps }),
|
|
400
|
+
component: lazyRouteComponent($$splitComponentImporter$1, "component")
|
|
401
|
+
});
|
|
402
|
+
/**
|
|
403
|
+
* One service, one level down from the health wall: its endpoints worst first, each with what
|
|
404
|
+
* the server said, how often, and the issues behind it (one click from the cause and the fix).
|
|
405
|
+
*/
|
|
406
|
+
/** One failing endpoint: what the server said, how often, and the issues behind it. */
|
|
338
407
|
// src/routes/_authed/sessions.$sessionId.tsx
|
|
339
|
-
var $$splitComponentImporter = () => import("./sessions._sessionId-
|
|
408
|
+
var $$splitComponentImporter = () => import("./sessions._sessionId-DDspiPTe.js");
|
|
340
409
|
var Route$1 = createFileRoute("/_authed/sessions/$sessionId")({
|
|
341
410
|
validateSearch: (s) => ({ app: typeof s.app === "string" ? s.app : "" }),
|
|
342
411
|
loaderDeps: ({ search }) => ({ app: search.app }),
|
|
@@ -373,65 +442,80 @@ var Route = createFileRoute("/api/issues/$fingerprint")({ server: { handlers: {
|
|
|
373
442
|
return Response.json(detail);
|
|
374
443
|
} } } });
|
|
375
444
|
// src/routeTree.gen.ts
|
|
376
|
-
var AuthedRoute = Route$
|
|
445
|
+
var AuthedRoute = Route$16.update({
|
|
377
446
|
id: "/_authed",
|
|
378
|
-
getParentRoute: () => Route$
|
|
447
|
+
getParentRoute: () => Route$17
|
|
379
448
|
});
|
|
380
|
-
var LoginRoute = Route$
|
|
449
|
+
var LoginRoute = Route$15.update({
|
|
381
450
|
id: "/login",
|
|
382
451
|
path: "/login",
|
|
383
|
-
getParentRoute: () => Route$
|
|
452
|
+
getParentRoute: () => Route$17
|
|
384
453
|
});
|
|
385
|
-
var AuthedIndexRoute = Route$
|
|
454
|
+
var AuthedIndexRoute = Route$14.update({
|
|
386
455
|
id: "/",
|
|
387
456
|
path: "/",
|
|
388
457
|
getParentRoute: () => AuthedRoute
|
|
389
458
|
});
|
|
390
|
-
var
|
|
459
|
+
var AuthedAppCodeRoute = Route$13.update({
|
|
460
|
+
id: "/app-code",
|
|
461
|
+
path: "/app-code",
|
|
462
|
+
getParentRoute: () => AuthedRoute
|
|
463
|
+
});
|
|
464
|
+
var AuthedCustomersRoute = Route$12.update({
|
|
391
465
|
id: "/customers",
|
|
392
466
|
path: "/customers",
|
|
393
467
|
getParentRoute: () => AuthedRoute
|
|
394
468
|
});
|
|
395
|
-
var AuthedEndpointsRoute = Route$
|
|
469
|
+
var AuthedEndpointsRoute = Route$11.update({
|
|
396
470
|
id: "/endpoints",
|
|
397
471
|
path: "/endpoints",
|
|
398
472
|
getParentRoute: () => AuthedRoute
|
|
399
473
|
});
|
|
400
|
-
var AuthedSettingsRoute = Route$
|
|
474
|
+
var AuthedSettingsRoute = Route$10.update({
|
|
401
475
|
id: "/settings",
|
|
402
476
|
path: "/settings",
|
|
403
477
|
getParentRoute: () => AuthedRoute
|
|
404
478
|
});
|
|
405
|
-
var AuthedTeamRoute = Route$
|
|
479
|
+
var AuthedTeamRoute = Route$9.update({
|
|
406
480
|
id: "/team",
|
|
407
481
|
path: "/team",
|
|
408
482
|
getParentRoute: () => AuthedRoute
|
|
409
483
|
});
|
|
410
|
-
var ApiIngestRoute = Route$
|
|
484
|
+
var ApiIngestRoute = Route$8.update({
|
|
411
485
|
id: "/api/ingest",
|
|
412
486
|
path: "/api/ingest",
|
|
413
|
-
getParentRoute: () => Route$
|
|
487
|
+
getParentRoute: () => Route$17
|
|
414
488
|
});
|
|
415
|
-
var ApiSummaryRoute = Route$
|
|
489
|
+
var ApiSummaryRoute = Route$7.update({
|
|
416
490
|
id: "/api/summary",
|
|
417
491
|
path: "/api/summary",
|
|
418
|
-
getParentRoute: () => Route$
|
|
492
|
+
getParentRoute: () => Route$17
|
|
419
493
|
});
|
|
420
|
-
var InviteTokenRoute = Route$
|
|
494
|
+
var InviteTokenRoute = Route$6.update({
|
|
421
495
|
id: "/invite/$token",
|
|
422
496
|
path: "/invite/$token",
|
|
423
|
-
getParentRoute: () => Route$
|
|
497
|
+
getParentRoute: () => Route$17
|
|
424
498
|
});
|
|
425
|
-
var AuthedEventsEventIdRoute = Route$
|
|
499
|
+
var AuthedEventsEventIdRoute = Route$5.update({
|
|
426
500
|
id: "/events/$eventId",
|
|
427
501
|
path: "/events/$eventId",
|
|
428
502
|
getParentRoute: () => AuthedRoute
|
|
429
503
|
});
|
|
430
|
-
var
|
|
504
|
+
var AuthedIssuesIndexRoute = Route$4.update({
|
|
505
|
+
id: "/issues/",
|
|
506
|
+
path: "/issues/",
|
|
507
|
+
getParentRoute: () => AuthedRoute
|
|
508
|
+
});
|
|
509
|
+
var AuthedIssuesFingerprintRoute = Route$3.update({
|
|
431
510
|
id: "/issues/$fingerprint",
|
|
432
511
|
path: "/issues/$fingerprint",
|
|
433
512
|
getParentRoute: () => AuthedRoute
|
|
434
513
|
});
|
|
514
|
+
var AuthedServicesServiceRoute = Route$2.update({
|
|
515
|
+
id: "/services/$service",
|
|
516
|
+
path: "/services/$service",
|
|
517
|
+
getParentRoute: () => AuthedRoute
|
|
518
|
+
});
|
|
435
519
|
var AuthedSessionsSessionIdRoute = Route$1.update({
|
|
436
520
|
id: "/sessions/$sessionId",
|
|
437
521
|
path: "/sessions/$sessionId",
|
|
@@ -440,9 +524,10 @@ var AuthedSessionsSessionIdRoute = Route$1.update({
|
|
|
440
524
|
var ApiIssuesFingerprintRoute = Route.update({
|
|
441
525
|
id: "/api/issues/$fingerprint",
|
|
442
526
|
path: "/api/issues/$fingerprint",
|
|
443
|
-
getParentRoute: () => Route$
|
|
527
|
+
getParentRoute: () => Route$17
|
|
444
528
|
});
|
|
445
529
|
var AuthedRouteChildren = {
|
|
530
|
+
AuthedAppCodeRoute,
|
|
446
531
|
AuthedCustomersRoute,
|
|
447
532
|
AuthedEndpointsRoute,
|
|
448
533
|
AuthedSettingsRoute,
|
|
@@ -450,7 +535,9 @@ var AuthedRouteChildren = {
|
|
|
450
535
|
AuthedIndexRoute,
|
|
451
536
|
AuthedEventsEventIdRoute,
|
|
452
537
|
AuthedIssuesFingerprintRoute,
|
|
453
|
-
|
|
538
|
+
AuthedServicesServiceRoute,
|
|
539
|
+
AuthedSessionsSessionIdRoute,
|
|
540
|
+
AuthedIssuesIndexRoute
|
|
454
541
|
};
|
|
455
542
|
var rootRouteChildren = {
|
|
456
543
|
AuthedRoute: AuthedRoute._addFileChildren(AuthedRouteChildren),
|
|
@@ -460,11 +547,27 @@ var rootRouteChildren = {
|
|
|
460
547
|
InviteTokenRoute,
|
|
461
548
|
ApiIssuesFingerprintRoute
|
|
462
549
|
};
|
|
463
|
-
var routeTree = Route$
|
|
550
|
+
var routeTree = Route$17._addFileChildren(rootRouteChildren)._addFileTypes();
|
|
464
551
|
// src/router.tsx
|
|
465
552
|
var router_exports = /* @__PURE__ */ __exportAll({ getRouter: () => getRouter });
|
|
553
|
+
/** A new version was deployed while the page was open: its old code files are gone. */
|
|
554
|
+
var STALE_CODE = /Failed to fetch dynamically imported module|Importing a module script failed|error loading dynamically imported module/i;
|
|
466
555
|
function ErrorPage({ error }) {
|
|
467
556
|
const message = error instanceof Error ? error.message : String(error);
|
|
557
|
+
if (typeof window !== "undefined" && STALE_CODE.test(message)) {
|
|
558
|
+
let reloaded = false;
|
|
559
|
+
try {
|
|
560
|
+
reloaded = sessionStorage.getItem("debug-reloaded") === location.href;
|
|
561
|
+
sessionStorage.setItem("debug-reloaded", location.href);
|
|
562
|
+
} catch {}
|
|
563
|
+
if (!reloaded) {
|
|
564
|
+
window.location.reload();
|
|
565
|
+
return /* @__PURE__ */ jsx("div", {
|
|
566
|
+
className: "p-8 text-muted",
|
|
567
|
+
children: "A new version of the dashboard is out. Loading it…"
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
}
|
|
468
571
|
if (isIndexError(message)) {
|
|
469
572
|
const building = /currently building/i.test(message);
|
|
470
573
|
return /* @__PURE__ */ jsxs("div", {
|
|
@@ -502,6 +605,7 @@ function getRouter() {
|
|
|
502
605
|
routeTree,
|
|
503
606
|
scrollRestoration: true,
|
|
504
607
|
defaultPreload: "intent",
|
|
608
|
+
defaultStaleTime: 3e4,
|
|
505
609
|
defaultErrorComponent: ErrorPage,
|
|
506
610
|
defaultNotFoundComponent: () => /* @__PURE__ */ jsx("div", {
|
|
507
611
|
className: "p-8 text-muted",
|
|
@@ -509,4 +613,4 @@ function getRouter() {
|
|
|
509
613
|
})
|
|
510
614
|
});
|
|
511
615
|
}
|
|
512
|
-
export { Route$
|
|
616
|
+
export { Route$5 as a, Route$10 as c, Route$13 as d, Route$14 as f, getRouter, Route$3 as i, Route$11 as l, Route$16 as m, Route$1 as n, Route$6 as o, Route$15 as p, Route$2 as r, Route$9 as s, router_exports as t, Route$12 as u };
|