@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.
Files changed (79) hide show
  1. package/dist/client/assets/_authed-3se5Egqg.js +1 -0
  2. package/dist/client/assets/_authed-BfFWbTOO.js +1 -0
  3. package/dist/client/assets/app-code-BKWbvUMR.js +1 -0
  4. package/dist/client/assets/closed-issues-Cl-8l4oR.js +1 -0
  5. package/dist/client/assets/{copy-button-ORgLIh59.js → copy-button-BwRd5q7l.js} +1 -1
  6. package/dist/client/assets/customers-Cf-R8BOg.js +1 -0
  7. package/dist/client/assets/empty-state-njgr1sWu.js +7 -0
  8. package/dist/client/assets/endpoints-BMqAUNyE.js +1 -0
  9. package/dist/client/assets/events._eventId-CVRZJ-bU.js +2 -0
  10. package/dist/client/assets/exchange-view-DVwSLcXF.js +2 -0
  11. package/dist/client/assets/index-DEnCDILF.js +10 -0
  12. package/dist/client/assets/{invite._token-CxXek2SP.js → invite._token-CKAfd5iB.js} +1 -1
  13. package/dist/client/assets/issues._fingerprint-Cm72LNM_.js +55 -0
  14. package/dist/client/assets/login-BTxOhEbN.js +1 -0
  15. package/dist/client/assets/request-panel-DmtFRF8Z.js +1 -0
  16. package/dist/client/assets/services._service-CU1a45f3.js +1 -0
  17. package/dist/client/assets/{sessions._sessionId-3wNImMqM.js → sessions._sessionId-LRo3QNQP.js} +1 -1
  18. package/dist/client/assets/settings-Ctzvl2LL.js +1 -0
  19. package/dist/client/assets/src-BiKxgjA_.js +3 -0
  20. package/dist/client/assets/styles-Tcq0pvWj.css +2 -0
  21. package/dist/client/assets/{team-Bud2-07A.js → team-xlrjhEGp.js} +1 -1
  22. package/dist/client/assets/{timeline-BSDhQPpY.js → timeline-WXE49N62.js} +1 -1
  23. package/dist/client/assets/ui-DRjjeSWy.js +1 -0
  24. package/dist/client/assets/version-banner-BYe4PVzv.js +1 -0
  25. package/dist/server/assets/_authed-Bn-IktVS.js +120 -0
  26. package/dist/server/assets/_authed-RXh7GpoE.js +252 -0
  27. package/dist/server/assets/_tanstack-start-manifest_v-C4dQ3MxD.js +122 -0
  28. package/dist/server/assets/app-code-BQL_FcSx.js +212 -0
  29. package/dist/server/assets/app-name-BcbY1BZN.js +11 -0
  30. package/dist/server/assets/closed-issues-o9U80FXv.js +45 -0
  31. package/dist/server/assets/config-Bp8m0B8q.js +57 -0
  32. package/dist/server/assets/{customers-CvSLt_xV.js → customers-CD84Bz4P.js} +11 -6
  33. package/dist/server/assets/{demo-BRTkdmQJ.js → demo-D-o8m75S.js} +225 -8
  34. package/dist/server/assets/{dynamodb-B0V3ZO20.js → dynamodb-CcH0cp7R.js} +55 -2
  35. package/dist/server/assets/empty-state-wz34oAi8.js +163 -0
  36. package/dist/server/assets/endpoints-8N389Poe.js +248 -0
  37. package/dist/server/assets/{endpoints-mPQXpH8C.js → endpoints-C0Cxc_-x.js} +38 -36
  38. package/dist/server/assets/{events._eventId-pkQBQ9sL.js → events._eventId-BOHkNO5W.js} +90 -351
  39. package/dist/server/assets/exchange-view-DzoSBt_R.js +112 -0
  40. package/dist/server/assets/{firestore-Jd-LeWZI.js → firestore-DyvYMiz3.js} +13 -2
  41. package/dist/server/assets/{fns-Di0vMpkQ.js → fns-BcVGbSID.js} +22 -7
  42. package/dist/server/assets/fns-DE03YExD.js +831 -0
  43. package/dist/server/assets/{invite._token-LwWF5YxP.js → invite._token-DhlACkIe.js} +3 -3
  44. package/dist/server/assets/{issues._fingerprint-DAA0QCuA.js → issues._fingerprint-BBd-_Nn5.js} +400 -28
  45. package/dist/server/assets/{login-DqjCU4DJ.js → login-CbfdHJvg.js} +3 -3
  46. package/dist/server/assets/{memory-aqsrtEUn.js → memory-CZBUh1Zc.js} +129 -5
  47. package/dist/server/assets/{errors-C2KEDL7l.js → queries-wha4cZbw.js} +1442 -129
  48. package/dist/server/assets/request-panel-DpCSwl2q.js +162 -0
  49. package/dist/server/assets/{router-C0Dauj2C.js → router-BXkzR89j.js} +197 -91
  50. package/dist/server/assets/services._service-DWjFFGON.js +309 -0
  51. package/dist/server/assets/{sessions._sessionId-D7JPV0M4.js → sessions._sessionId-DDspiPTe.js} +2 -2
  52. package/dist/server/assets/{settings-Drjd64d7.js → settings-DCLIaZ_p.js} +201 -24
  53. package/dist/server/assets/{src-C4fNgijW.js → src-B2GKPQyN.js} +1 -1
  54. package/dist/server/assets/{team-D7iXYnSE.js → team-jd_TmWP4.js} +3 -3
  55. package/dist/server/assets/ui-C3pl0edn.js +302 -0
  56. package/dist/server/assets/version-banner-BX34ijG5.js +106 -0
  57. package/dist/server/assets/versions-YI_zK1ql.js +58 -0
  58. package/dist/server/assets/warm-C3GbXP1_.js +16 -0
  59. package/dist/server/server.js +40 -28
  60. package/package.json +4 -4
  61. package/dist/client/assets/_authed-CNObwuZh.js +0 -7
  62. package/dist/client/assets/_authed-CuP-He8G.js +0 -1
  63. package/dist/client/assets/charts-CUvev8lV.js +0 -55
  64. package/dist/client/assets/customers-DTMEprFQ.js +0 -1
  65. package/dist/client/assets/endpoints-lMSO2CdM.js +0 -1
  66. package/dist/client/assets/events._eventId-bWag-i8J.js +0 -3
  67. package/dist/client/assets/index-BNpacHyi.js +0 -10
  68. package/dist/client/assets/issues._fingerprint-BQr85TVY.js +0 -1
  69. package/dist/client/assets/login-Dlk3GyyC.js +0 -1
  70. package/dist/client/assets/settings-CzbEYB7k.js +0 -1
  71. package/dist/client/assets/src-Dq5mIUf0.js +0 -3
  72. package/dist/client/assets/styles-DPsgRH7g.css +0 -2
  73. package/dist/client/assets/ui-CEv2y56s.js +0 -1
  74. package/dist/server/assets/_authed-DkkRwdZl.js +0 -87
  75. package/dist/server/assets/_authed-DsB8kjZB.js +0 -902
  76. package/dist/server/assets/_tanstack-start-manifest_v-D1_ErrJK.js +0 -97
  77. package/dist/server/assets/charts-DzTVqJ8z.js +0 -238
  78. package/dist/server/assets/fns-B3PHbFwV.js +0 -1295
  79. package/dist/server/assets/ui-B_XHlLUQ.js +0 -193
@@ -1,14 +1,15 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D8jQpDG7.js";
2
- import { a as getInvite, c as getOverview, d as getSettings, f as getTeam, i as getEventDetail, l as getSessionDetail, n as findCustomer, o as getIssueDetail, r as getEndpoints, s as getLoginInfo, u as getSessionUser } from "./fns-Di0vMpkQ.js";
3
- import { S as OWNER_INFO, b as IMPACT_INFO, v as CATEGORY_INFO } from "./memory-aqsrtEUn.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 { C as ingest, L as getLocalWriteStore, R as getStore, S as CORS_HEADERS, a as buildSummary, i as buildIssueDetail, r as SUMMARY_FIELDS, t as isIndexError, u as authorizeApi, w as parseIngestKeys, z as config } from "./errors-C2KEDL7l.js";
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-DPsgRH7g.css";
10
+ var styles_default = "/assets/styles-Tcq0pvWj.css";
10
11
  // src/routes/__root.tsx
11
- var Route$14 = createRootRoute({
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$10 = () => import("./_authed-DkkRwdZl.js");
47
- var Route$13 = createFileRoute("/_authed")({
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$10, "component")
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$9 = () => import("./login-DqjCU4DJ.js");
57
- var Route$12 = createFileRoute("/login")({
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$9, "component")
68
+ component: lazyRouteComponent($$splitComponentImporter$11, "component")
63
69
  });
64
- // src/lib/issue-filter.ts
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
- * Narrowing the overview's issue list: by status, flow and the labels from docs/taxonomy.md.
67
- * Shared by the overview page and GET /api/summary, so both filter the same way.
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/index.tsx
146
- var $$splitComponentImporter$8 = () => import("./_authed-DsB8kjZB.js");
147
- var Route$11 = createFileRoute("/_authed/")({
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
- flow: typeof s.flow === "string" ? s.flow : void 0,
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 }) => getOverview({ data: deps }),
162
- component: lazyRouteComponent($$splitComponentImporter$8, "component")
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$7 = () => import("./customers-CvSLt_xV.js");
166
- var Route$10 = createFileRoute("/_authed/customers")({
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$7, "component")
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$6 = () => import("./endpoints-mPQXpH8C.js");
184
- var Route$9 = createFileRoute("/_authed/endpoints")({
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,24 +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$6, "component")
222
+ component: lazyRouteComponent($$splitComponentImporter$7, "component")
200
223
  });
201
- /** Endpoints added up per backend service: which one is failing or slow, at a glance. */
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$5 = () => import("./settings-Drjd64d7.js");
205
- var Route$8 = createFileRoute("/_authed/settings")({
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$5, "component")
232
+ component: lazyRouteComponent($$splitComponentImporter$6, "component")
210
233
  });
211
234
  /** Owners a host can be given; leaving it unset lets the classifier decide. */
235
+ /** Only ingest or the dashboard a patch behind: nothing is missing yet. */
236
+ /** The project's deBug versions, and what to run when one is behind. */
212
237
  // src/routes/_authed/team.tsx
213
- var $$splitComponentImporter$4 = () => import("./team-D7iXYnSE.js");
214
- var Route$7 = createFileRoute("/_authed/team")({
238
+ var $$splitComponentImporter$5 = () => import("./team-jd_TmWP4.js");
239
+ var Route$9 = createFileRoute("/_authed/team")({
215
240
  loader: () => getTeam(),
216
- component: lazyRouteComponent($$splitComponentImporter$4, "component")
241
+ component: lazyRouteComponent($$splitComponentImporter$5, "component")
217
242
  });
218
243
  // src/routes/api/ingest.ts
219
244
  /**
@@ -221,7 +246,7 @@ var Route$7 = createFileRoute("/_authed/team")({
221
246
  * Point the SDK at http://localhost:4400/api/ingest with ingestKey "pk_local".
222
247
  * In production, events go to the ingest function in your own cloud instead.
223
248
  */
224
- var Route$6 = createFileRoute("/api/ingest")({ server: { handlers: {
249
+ var Route$8 = createFileRoute("/api/ingest")({ server: { handlers: {
225
250
  OPTIONS: async () => new Response(null, {
226
251
  status: 204,
227
252
  headers: CORS_HEADERS
@@ -248,9 +273,10 @@ var Route$6 = createFileRoute("/api/ingest")({ server: { handlers: {
248
273
  // src/routes/api/summary.ts
249
274
  /**
250
275
  * GET /api/summary?app=<id> — the overview as JSON, for agents and scripts.
251
- * 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).
252
278
  */
253
- var Route$5 = createFileRoute("/api/summary")({ server: { handlers: { GET: async ({ request }) => {
279
+ var Route$7 = createFileRoute("/api/summary")({ server: { handlers: { GET: async ({ request }) => {
254
280
  if (!await authorizeApi(request)) return Response.json({ error: "unauthorized" }, { status: 401 });
255
281
  const q = new URL(request.url).searchParams;
256
282
  const app = q.get("app") ?? void 0;
@@ -276,14 +302,14 @@ var Route$5 = createFileRoute("/api/summary")({ server: { handlers: { GET: async
276
302
  });
277
303
  } } } });
278
304
  // src/routes/invite.$token.tsx
279
- var $$splitComponentImporter$3 = () => import("./invite._token-LwWF5YxP.js");
280
- var Route$4 = createFileRoute("/invite/$token")({
305
+ var $$splitComponentImporter$4 = () => import("./invite._token-DhlACkIe.js");
306
+ var Route$6 = createFileRoute("/invite/$token")({
281
307
  loader: ({ params }) => getInvite({ data: { token: params.token } }),
282
- component: lazyRouteComponent($$splitComponentImporter$3, "component")
308
+ component: lazyRouteComponent($$splitComponentImporter$4, "component")
283
309
  });
284
310
  // src/routes/_authed/events.$eventId.tsx
285
- var $$splitComponentImporter$2 = () => import("./events._eventId-pkQBQ9sL.js");
286
- var Route$3 = createFileRoute("/_authed/events/$eventId")({
311
+ var $$splitComponentImporter$3 = () => import("./events._eventId-BOHkNO5W.js");
312
+ var Route$5 = createFileRoute("/_authed/events/$eventId")({
287
313
  validateSearch: (s) => ({
288
314
  app: typeof s.app === "string" ? s.app : "",
289
315
  issue: typeof s.issue === "string" ? s.issue : "",
@@ -303,14 +329,33 @@ var Route$3 = createFileRoute("/_authed/events/$eventId")({
303
329
  if (!d) throw notFound();
304
330
  return d;
305
331
  },
306
- component: lazyRouteComponent($$splitComponentImporter$2, "component")
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
+ })
307
355
  });
308
- /** The failed call; with what the SDK captured, its request and response in tabs of their own. */
309
- /** Headers and body of one side of the call. */
310
- /** Label/value rows; empty values are left out. */
311
356
  // src/routes/_authed/issues.$fingerprint.tsx
312
- var $$splitComponentImporter$1 = () => import("./issues._fingerprint-DAA0QCuA.js");
313
- var Route$2 = createFileRoute("/_authed/issues/$fingerprint")({
357
+ var $$splitComponentImporter$2 = () => import("./issues._fingerprint-BBd-_Nn5.js");
358
+ var Route$3 = createFileRoute("/_authed/issues/$fingerprint")({
314
359
  validateSearch: (s) => ({
315
360
  app: typeof s.app === "string" ? s.app : "",
316
361
  ...rangeSearch(s)
@@ -329,12 +374,38 @@ var Route$2 = createFileRoute("/_authed/issues/$fingerprint")({
329
374
  if (!d) throw notFound();
330
375
  return d;
331
376
  },
332
- component: lazyRouteComponent($$splitComponentImporter$1, "component")
377
+ component: lazyRouteComponent($$splitComponentImporter$2, "component")
333
378
  });
334
379
  /** Resolve (with the fixed version), ignore or reopen, and open a prefilled ticket. */
335
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. */
336
407
  // src/routes/_authed/sessions.$sessionId.tsx
337
- var $$splitComponentImporter = () => import("./sessions._sessionId-D7JPV0M4.js");
408
+ var $$splitComponentImporter = () => import("./sessions._sessionId-DDspiPTe.js");
338
409
  var Route$1 = createFileRoute("/_authed/sessions/$sessionId")({
339
410
  validateSearch: (s) => ({ app: typeof s.app === "string" ? s.app : "" }),
340
411
  loaderDeps: ({ search }) => ({ app: search.app }),
@@ -371,65 +442,80 @@ var Route = createFileRoute("/api/issues/$fingerprint")({ server: { handlers: {
371
442
  return Response.json(detail);
372
443
  } } } });
373
444
  // src/routeTree.gen.ts
374
- var AuthedRoute = Route$13.update({
445
+ var AuthedRoute = Route$16.update({
375
446
  id: "/_authed",
376
- getParentRoute: () => Route$14
447
+ getParentRoute: () => Route$17
377
448
  });
378
- var LoginRoute = Route$12.update({
449
+ var LoginRoute = Route$15.update({
379
450
  id: "/login",
380
451
  path: "/login",
381
- getParentRoute: () => Route$14
452
+ getParentRoute: () => Route$17
382
453
  });
383
- var AuthedIndexRoute = Route$11.update({
454
+ var AuthedIndexRoute = Route$14.update({
384
455
  id: "/",
385
456
  path: "/",
386
457
  getParentRoute: () => AuthedRoute
387
458
  });
388
- var AuthedCustomersRoute = Route$10.update({
459
+ var AuthedAppCodeRoute = Route$13.update({
460
+ id: "/app-code",
461
+ path: "/app-code",
462
+ getParentRoute: () => AuthedRoute
463
+ });
464
+ var AuthedCustomersRoute = Route$12.update({
389
465
  id: "/customers",
390
466
  path: "/customers",
391
467
  getParentRoute: () => AuthedRoute
392
468
  });
393
- var AuthedEndpointsRoute = Route$9.update({
469
+ var AuthedEndpointsRoute = Route$11.update({
394
470
  id: "/endpoints",
395
471
  path: "/endpoints",
396
472
  getParentRoute: () => AuthedRoute
397
473
  });
398
- var AuthedSettingsRoute = Route$8.update({
474
+ var AuthedSettingsRoute = Route$10.update({
399
475
  id: "/settings",
400
476
  path: "/settings",
401
477
  getParentRoute: () => AuthedRoute
402
478
  });
403
- var AuthedTeamRoute = Route$7.update({
479
+ var AuthedTeamRoute = Route$9.update({
404
480
  id: "/team",
405
481
  path: "/team",
406
482
  getParentRoute: () => AuthedRoute
407
483
  });
408
- var ApiIngestRoute = Route$6.update({
484
+ var ApiIngestRoute = Route$8.update({
409
485
  id: "/api/ingest",
410
486
  path: "/api/ingest",
411
- getParentRoute: () => Route$14
487
+ getParentRoute: () => Route$17
412
488
  });
413
- var ApiSummaryRoute = Route$5.update({
489
+ var ApiSummaryRoute = Route$7.update({
414
490
  id: "/api/summary",
415
491
  path: "/api/summary",
416
- getParentRoute: () => Route$14
492
+ getParentRoute: () => Route$17
417
493
  });
418
- var InviteTokenRoute = Route$4.update({
494
+ var InviteTokenRoute = Route$6.update({
419
495
  id: "/invite/$token",
420
496
  path: "/invite/$token",
421
- getParentRoute: () => Route$14
497
+ getParentRoute: () => Route$17
422
498
  });
423
- var AuthedEventsEventIdRoute = Route$3.update({
499
+ var AuthedEventsEventIdRoute = Route$5.update({
424
500
  id: "/events/$eventId",
425
501
  path: "/events/$eventId",
426
502
  getParentRoute: () => AuthedRoute
427
503
  });
428
- var AuthedIssuesFingerprintRoute = Route$2.update({
504
+ var AuthedIssuesIndexRoute = Route$4.update({
505
+ id: "/issues/",
506
+ path: "/issues/",
507
+ getParentRoute: () => AuthedRoute
508
+ });
509
+ var AuthedIssuesFingerprintRoute = Route$3.update({
429
510
  id: "/issues/$fingerprint",
430
511
  path: "/issues/$fingerprint",
431
512
  getParentRoute: () => AuthedRoute
432
513
  });
514
+ var AuthedServicesServiceRoute = Route$2.update({
515
+ id: "/services/$service",
516
+ path: "/services/$service",
517
+ getParentRoute: () => AuthedRoute
518
+ });
433
519
  var AuthedSessionsSessionIdRoute = Route$1.update({
434
520
  id: "/sessions/$sessionId",
435
521
  path: "/sessions/$sessionId",
@@ -438,9 +524,10 @@ var AuthedSessionsSessionIdRoute = Route$1.update({
438
524
  var ApiIssuesFingerprintRoute = Route.update({
439
525
  id: "/api/issues/$fingerprint",
440
526
  path: "/api/issues/$fingerprint",
441
- getParentRoute: () => Route$14
527
+ getParentRoute: () => Route$17
442
528
  });
443
529
  var AuthedRouteChildren = {
530
+ AuthedAppCodeRoute,
444
531
  AuthedCustomersRoute,
445
532
  AuthedEndpointsRoute,
446
533
  AuthedSettingsRoute,
@@ -448,7 +535,9 @@ var AuthedRouteChildren = {
448
535
  AuthedIndexRoute,
449
536
  AuthedEventsEventIdRoute,
450
537
  AuthedIssuesFingerprintRoute,
451
- AuthedSessionsSessionIdRoute
538
+ AuthedServicesServiceRoute,
539
+ AuthedSessionsSessionIdRoute,
540
+ AuthedIssuesIndexRoute
452
541
  };
453
542
  var rootRouteChildren = {
454
543
  AuthedRoute: AuthedRoute._addFileChildren(AuthedRouteChildren),
@@ -458,11 +547,27 @@ var rootRouteChildren = {
458
547
  InviteTokenRoute,
459
548
  ApiIssuesFingerprintRoute
460
549
  };
461
- var routeTree = Route$14._addFileChildren(rootRouteChildren)._addFileTypes();
550
+ var routeTree = Route$17._addFileChildren(rootRouteChildren)._addFileTypes();
462
551
  // src/router.tsx
463
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;
464
555
  function ErrorPage({ error }) {
465
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
+ }
466
571
  if (isIndexError(message)) {
467
572
  const building = /currently building/i.test(message);
468
573
  return /* @__PURE__ */ jsxs("div", {
@@ -500,6 +605,7 @@ function getRouter() {
500
605
  routeTree,
501
606
  scrollRestoration: true,
502
607
  defaultPreload: "intent",
608
+ defaultStaleTime: 3e4,
503
609
  defaultErrorComponent: ErrorPage,
504
610
  defaultNotFoundComponent: () => /* @__PURE__ */ jsx("div", {
505
611
  className: "p-8 text-muted",
@@ -507,4 +613,4 @@ function getRouter() {
507
613
  })
508
614
  });
509
615
  }
510
- export { Route$12 as _, Route$4 as a, Route$9 as c, LABEL_FILTERS as d, LABEL_FILTER_KEYS as f, labelCounts as g, getRouter, filterIssues as h, Route$3 as i, Route$10 as l, STATUS_FILTERS as m, Route$1 as n, Route$7 as o, NO_LABEL_FILTERS as p, Route$2 as r, Route$8 as s, router_exports as t, Route$11 as u, Route$13 as v };
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 };