@debugkit/dashboard 0.7.0 → 0.8.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-CNObwuZh.js +7 -0
- package/dist/client/assets/_authed-CuP-He8G.js +1 -0
- package/dist/client/assets/{charts-XyOWJI9T.js → charts-CUvev8lV.js} +7 -7
- package/dist/client/assets/copy-button-ORgLIh59.js +1 -0
- package/dist/client/assets/customers-DTMEprFQ.js +1 -0
- package/dist/client/assets/endpoints-lMSO2CdM.js +1 -0
- package/dist/client/assets/events._eventId-bWag-i8J.js +3 -0
- package/dist/client/assets/index-BNpacHyi.js +10 -0
- package/dist/client/assets/invite._token-CxXek2SP.js +1 -0
- package/dist/client/assets/issues._fingerprint-BQr85TVY.js +1 -0
- package/dist/client/assets/login-Dlk3GyyC.js +1 -0
- package/dist/client/assets/sessions._sessionId-3wNImMqM.js +1 -0
- package/dist/client/assets/settings-CzbEYB7k.js +1 -0
- package/dist/client/assets/src-Dq5mIUf0.js +3 -0
- package/dist/client/assets/styles-DPsgRH7g.css +2 -0
- package/dist/client/assets/team-Bud2-07A.js +1 -0
- package/dist/client/assets/timeline-BSDhQPpY.js +1 -0
- package/dist/client/assets/ui-CEv2y56s.js +1 -0
- package/dist/server/assets/{_authed-CrjuC0O3.js → _authed-DkkRwdZl.js} +19 -5
- package/dist/server/assets/{_authed-C-sIPXSO.js → _authed-DsB8kjZB.js} +318 -126
- package/dist/server/assets/_tanstack-start-manifest_v-D1_ErrJK.js +97 -0
- package/dist/server/assets/copy-button-D3RddzTw.js +52 -0
- package/dist/server/assets/customers-CvSLt_xV.js +163 -0
- package/dist/server/assets/{demo-BsMMDk_F.js → demo-BRTkdmQJ.js} +25 -4
- package/dist/server/assets/{dynamodb-Zkk1-mgz.js → dynamodb-B0V3ZO20.js} +45 -17
- package/dist/server/assets/endpoints-mPQXpH8C.js +371 -0
- package/dist/server/assets/{queries-BJxX3Kjp.js → errors-C2KEDL7l.js} +842 -62
- package/dist/server/assets/events._eventId-pkQBQ9sL.js +765 -0
- package/dist/server/assets/{firestore-C52q_vwM.js → firestore-Jd-LeWZI.js} +15 -6
- package/dist/server/assets/fns-B3PHbFwV.js +1295 -0
- package/dist/server/assets/{fns-DwGaMi8S.js → fns-Di0vMpkQ.js} +25 -3
- package/dist/server/assets/{invite._token-xnpnkdRv.js → invite._token-LwWF5YxP.js} +3 -3
- package/dist/server/assets/{issues._fingerprint-e7ubdJf0.js → issues._fingerprint-DAA0QCuA.js} +89 -11
- package/dist/server/assets/{login-EopnOJXA.js → login-DqjCU4DJ.js} +3 -3
- package/dist/server/assets/{memory-BssaqdZm.js → memory-aqsrtEUn.js} +377 -26
- package/dist/server/assets/router-C0Dauj2C.js +510 -0
- package/dist/server/assets/sessions._sessionId-D7JPV0M4.js +264 -0
- package/dist/server/assets/{settings-CaJN69N6.js → settings-Drjd64d7.js} +165 -5
- package/dist/server/assets/{src-D83GYTrp.js → src-C4fNgijW.js} +1 -1
- package/dist/server/assets/{team-B1UcM1jA.js → team-D7iXYnSE.js} +3 -3
- package/dist/server/assets/timeline-MDRNDhiA.js +132 -0
- package/dist/server/assets/{ui-BJokJdYa.js → ui-B_XHlLUQ.js} +53 -13
- package/dist/server/server.js +37 -21
- package/package.json +4 -4
- package/dist/client/assets/_authed-BN39b-7H.js +0 -1
- package/dist/client/assets/_authed-CspAf0jN.js +0 -7
- package/dist/client/assets/index-Bfb2UOzB.js +0 -10
- package/dist/client/assets/invite._token-B4HN51-h.js +0 -1
- package/dist/client/assets/issues._fingerprint-BV1QrETY.js +0 -1
- package/dist/client/assets/login-COlvJ5Je.js +0 -1
- package/dist/client/assets/preload-helper-Dscj_TcA.js +0 -3
- package/dist/client/assets/settings-Dl4EWeWC.js +0 -1
- package/dist/client/assets/styles-DztngwT9.css +0 -2
- package/dist/client/assets/team-7Zekz_Er.js +0 -1
- package/dist/client/assets/ui-C0HGOza2.js +0 -1
- package/dist/server/assets/_tanstack-start-manifest_v-CqaE4wze.js +0 -61
- package/dist/server/assets/fns-mbUIXXep.js +0 -529
- package/dist/server/assets/router-G99085_Q.js +0 -315
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as TSS_SERVER_FUNCTION, r as getServerFnById, t as createServerFn } from "../server.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as TEAM_ROLES } from "./src-
|
|
2
|
+
import { N as validRetention } from "./errors-C2KEDL7l.js";
|
|
3
|
+
import { n as TEAM_ROLES } from "./src-C4fNgijW.js";
|
|
4
|
+
import { _ as validHostNames } from "./memory-aqsrtEUn.js";
|
|
4
5
|
// ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.45/node_modules/@tanstack/start-server-core/dist/esm/createSsrRpc.js
|
|
5
6
|
var createSsrRpc = (functionId) => {
|
|
6
7
|
const url = "/_serverFn/" + functionId;
|
|
@@ -35,11 +36,29 @@ var getOverview = createServerFn({ method: "GET" }).validator((d) => ({
|
|
|
35
36
|
app: str(d?.app),
|
|
36
37
|
...rangeOf(d)
|
|
37
38
|
})).handler(createSsrRpc("9354c2231554471ec5cde4e9a07b2e32662a8ce0bf29b09b5b930359d374f862"));
|
|
39
|
+
var getEndpoints = createServerFn({ method: "GET" }).validator((d) => ({
|
|
40
|
+
app: str(d?.app),
|
|
41
|
+
endpoint: str(d?.endpoint)?.slice(0, 400),
|
|
42
|
+
...rangeOf(d)
|
|
43
|
+
})).handler(createSsrRpc("8ade0e7bba4102fdb7cbe0494762fbb0d01a480c84a69f325fc76686a0dc0237"));
|
|
38
44
|
var getIssueDetail = createServerFn({ method: "GET" }).validator((d) => ({
|
|
39
45
|
app: String(d.app),
|
|
40
46
|
fingerprint: String(d.fingerprint),
|
|
41
47
|
...rangeOf(d)
|
|
42
48
|
})).handler(createSsrRpc("86933afdbcaa1be4a0aa07c4f8e690fdd684edbeab02a49ffdb73e85cadf9933"));
|
|
49
|
+
var getEventDetail = createServerFn({ method: "GET" }).validator((d) => ({
|
|
50
|
+
app: String(d.app),
|
|
51
|
+
fingerprint: String(d.fingerprint),
|
|
52
|
+
eventId: String(d.eventId)
|
|
53
|
+
})).handler(createSsrRpc("8fc5d548afdc47f30ea4f9fab6f96cf926fd407c0b80ea68c796b6de7e606a4e"));
|
|
54
|
+
var getSessionDetail = createServerFn({ method: "GET" }).validator((d) => ({
|
|
55
|
+
app: String(d.app),
|
|
56
|
+
sessionId: String(d.sessionId)
|
|
57
|
+
})).handler(createSsrRpc("a4d3bc63ce8ef43aeb81dfb47c631fe47d634d298109d6b5865742aff7363696"));
|
|
58
|
+
var findCustomer = createServerFn({ method: "GET" }).validator((d) => ({
|
|
59
|
+
app: typeof d?.app === "string" ? d.app : void 0,
|
|
60
|
+
q: typeof d?.q === "string" ? d.q.slice(0, 100) : ""
|
|
61
|
+
})).handler(createSsrRpc("54a67fa946c48ef3e3aaa27c8b323c380b12a14879a00a9567f52e31c358a0ed"));
|
|
43
62
|
var updateIssueStatus = createServerFn({ method: "POST" }).validator((d) => {
|
|
44
63
|
const status = d?.status;
|
|
45
64
|
if (status !== "open" && status !== "resolved" && status !== "ignored") throw new Error("status must be open, resolved or ignored");
|
|
@@ -60,9 +79,12 @@ var saveAppSettings = createServerFn({ method: "POST" }).validator((d) => {
|
|
|
60
79
|
const flows = Array.isArray(d?.criticalFlows) ? d.criticalFlows.map((f) => String(f).trim().toLowerCase()).filter(Boolean) : void 0;
|
|
61
80
|
if (flows && (flows.length > 30 || !flows.every((f) => FLOW.test(f) && f.length <= 64))) throw new Error("Flows are dotted lowercase names like checkout.payment (up to 30).");
|
|
62
81
|
const a = d?.alerts;
|
|
82
|
+
const hosts = d?.hosts === void 0 ? void 0 : validHostNames(d.hosts);
|
|
83
|
+
if (typeof hosts === "string") throw new Error(hosts);
|
|
63
84
|
return {
|
|
64
85
|
app: String(d?.app ?? ""),
|
|
65
86
|
criticalFlows: flows,
|
|
87
|
+
hosts,
|
|
66
88
|
alerts: a ? {
|
|
67
89
|
slackWebhookUrl: typeof a.slackWebhookUrl === "string" ? a.slackWebhookUrl.trim().slice(0, 300) : void 0,
|
|
68
90
|
newIssues: a.newIssues !== false,
|
|
@@ -104,4 +126,4 @@ var joinTeam = createServerFn({ method: "POST" }).validator((d) => {
|
|
|
104
126
|
password: d.password
|
|
105
127
|
};
|
|
106
128
|
}).handler(createSsrRpc("2598559c204c178bf26b98a0f3ae20e519cec3b9013f9d9b02ce14b170ada220"));
|
|
107
|
-
export {
|
|
129
|
+
export { updateIssueStatus as C, setMemberRole as S, removeFromTeam as _, getInvite as a, saveRetention as b, getOverview as c, getSettings as d, getTeam as f, logout as g, login as h, getEventDetail as i, getSessionDetail as l, joinTeam as m, findCustomer as n, getIssueDetail as o, inviteToTeam as p, getEndpoints as r, getLoginInfo as s, cancelInvite as t, getSessionUser as u, restampExisting as v, sendTestAlert as x, saveAppSettings as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as Logo } from "./ui-B_XHlLUQ.js";
|
|
2
|
+
import { m as joinTeam } from "./fns-Di0vMpkQ.js";
|
|
3
|
+
import { a as Route } from "./router-C0Dauj2C.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-e7ubdJf0.js → issues._fingerprint-DAA0QCuA.js}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { n as HourlyChart, r as TrendChart } from "./charts-DzTVqJ8z.js";
|
|
2
2
|
import { n as RetentionNote, t as RangePicker } from "./range-picker-0zbSGr3Z.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { c as Stat, l as timeAgo, n as DataTable, o as SeverityBadge, r as IssueLabels, s as ShareBars, t as Card } from "./ui-B_XHlLUQ.js";
|
|
4
|
+
import { t as CopyButton } from "./copy-button-D3RddzTw.js";
|
|
5
|
+
import { C as updateIssueStatus } from "./fns-Di0vMpkQ.js";
|
|
6
|
+
import { r as Route } from "./router-C0Dauj2C.js";
|
|
6
7
|
import { useState } from "react";
|
|
7
8
|
import { Link, useRouter } from "@tanstack/react-router";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -68,7 +69,20 @@ function IssuePage() {
|
|
|
68
69
|
className: "mt-1 font-mono text-sm text-muted",
|
|
69
70
|
children: issue.culprit
|
|
70
71
|
}),
|
|
71
|
-
/* @__PURE__ */ jsx(IssueLabels, { issue })
|
|
72
|
+
/* @__PURE__ */ jsx(IssueLabels, { issue }),
|
|
73
|
+
issue.incidentTitle && /* @__PURE__ */ jsxs("p", {
|
|
74
|
+
className: "mt-2 text-sm text-muted",
|
|
75
|
+
children: [
|
|
76
|
+
"Part of an incident:",
|
|
77
|
+
" ",
|
|
78
|
+
/* @__PURE__ */ jsx(Link, {
|
|
79
|
+
to: "/",
|
|
80
|
+
search: { app: d.app },
|
|
81
|
+
className: "font-medium text-ink hover:text-accent",
|
|
82
|
+
children: issue.incidentTitle
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
})
|
|
72
86
|
] }),
|
|
73
87
|
/* @__PURE__ */ jsx(IssueActions, {
|
|
74
88
|
app: d.app,
|
|
@@ -101,8 +115,52 @@ function IssuePage() {
|
|
|
101
115
|
})
|
|
102
116
|
]
|
|
103
117
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
|
|
118
|
+
issue.explanation && /* @__PURE__ */ jsxs("div", {
|
|
119
|
+
className: "grid gap-5 lg:grid-cols-2",
|
|
120
|
+
children: [/* @__PURE__ */ jsx(Card, {
|
|
121
|
+
title: "What happened",
|
|
122
|
+
subtitle: "In plain words, for support.",
|
|
123
|
+
right: d.ticketMarkdown ? /* @__PURE__ */ jsx(CopyButton, {
|
|
124
|
+
text: d.ticketMarkdown,
|
|
125
|
+
label: "Copy for a ticket"
|
|
126
|
+
}) : void 0,
|
|
127
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
128
|
+
className: "text-sm leading-relaxed",
|
|
129
|
+
children: issue.explanation.summary
|
|
130
|
+
})
|
|
131
|
+
}), /* @__PURE__ */ jsxs(Card, {
|
|
132
|
+
title: "For developers",
|
|
133
|
+
subtitle: plain(issue.explanation.technical.headline),
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ jsx("ul", {
|
|
136
|
+
className: "list-disc space-y-1 pl-5 text-sm",
|
|
137
|
+
children: issue.explanation.technical.evidence.map((line, i) => /* @__PURE__ */ jsx("li", {
|
|
138
|
+
className: "break-words",
|
|
139
|
+
children: plain(line)
|
|
140
|
+
}, i))
|
|
141
|
+
}),
|
|
142
|
+
issue.explanation.technical.where && /* @__PURE__ */ jsxs("p", {
|
|
143
|
+
className: "mt-3 text-sm",
|
|
144
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
145
|
+
className: "font-medium",
|
|
146
|
+
children: "Where: "
|
|
147
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
148
|
+
className: "break-words font-mono text-xs",
|
|
149
|
+
children: plain(issue.explanation.technical.where)
|
|
150
|
+
})]
|
|
151
|
+
}),
|
|
152
|
+
/* @__PURE__ */ jsxs("p", {
|
|
153
|
+
className: "mt-3 text-sm",
|
|
154
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
155
|
+
className: "font-medium",
|
|
156
|
+
children: "Suggested fix: "
|
|
157
|
+
}), plain(issue.explanation.technical.fix)]
|
|
158
|
+
})
|
|
159
|
+
]
|
|
160
|
+
})]
|
|
161
|
+
}),
|
|
162
|
+
d.hints.length > 0 && /* @__PURE__ */ jsx(Card, {
|
|
163
|
+
title: issue.explanation ? "Also worth checking" : "What to look at",
|
|
106
164
|
subtitle: "Generated from the error, its breadcrumbs and where it happens.",
|
|
107
165
|
children: /* @__PURE__ */ jsx("ol", {
|
|
108
166
|
className: "space-y-3",
|
|
@@ -233,6 +291,7 @@ function IssuePage() {
|
|
|
233
291
|
}),
|
|
234
292
|
/* @__PURE__ */ jsx(Card, {
|
|
235
293
|
title: "Recent occurrences",
|
|
294
|
+
subtitle: "Newest first. Open one for its timeline, request, device and stack.",
|
|
236
295
|
children: /* @__PURE__ */ jsx("div", {
|
|
237
296
|
className: "-mx-4 overflow-x-auto sm:mx-0",
|
|
238
297
|
children: /* @__PURE__ */ jsxs("table", {
|
|
@@ -264,12 +323,29 @@ function IssuePage() {
|
|
|
264
323
|
})
|
|
265
324
|
]
|
|
266
325
|
})
|
|
267
|
-
}), /* @__PURE__ */ jsx("tbody", { children: d.recent.map((r
|
|
268
|
-
className: "border-b border-line last:border-0",
|
|
326
|
+
}), /* @__PURE__ */ jsx("tbody", { children: d.recent.map((r) => /* @__PURE__ */ jsxs("tr", {
|
|
327
|
+
className: "border-b border-line last:border-0 hover:bg-panel-2",
|
|
269
328
|
children: [
|
|
270
329
|
/* @__PURE__ */ jsx("td", {
|
|
271
|
-
className: "px-4 py-2 text-xs
|
|
272
|
-
children:
|
|
330
|
+
className: "px-4 py-2 text-xs sm:px-2",
|
|
331
|
+
children: r.type === "error" ? /* @__PURE__ */ jsx(Link, {
|
|
332
|
+
to: "/events/$eventId",
|
|
333
|
+
params: { eventId: r.id },
|
|
334
|
+
search: {
|
|
335
|
+
app: d.app,
|
|
336
|
+
issue: issue.fingerprint,
|
|
337
|
+
range: search.range,
|
|
338
|
+
from: search.from,
|
|
339
|
+
to: search.to
|
|
340
|
+
},
|
|
341
|
+
className: "font-medium text-accent hover:underline",
|
|
342
|
+
title: r.ts,
|
|
343
|
+
children: timeAgo(r.ts)
|
|
344
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
345
|
+
className: "text-muted",
|
|
346
|
+
title: r.ts,
|
|
347
|
+
children: timeAgo(r.ts)
|
|
348
|
+
})
|
|
273
349
|
}),
|
|
274
350
|
/* @__PURE__ */ jsx("td", {
|
|
275
351
|
className: "px-2 py-2",
|
|
@@ -288,7 +364,7 @@ function IssuePage() {
|
|
|
288
364
|
children: r.userId ?? "anonymous"
|
|
289
365
|
})
|
|
290
366
|
]
|
|
291
|
-
},
|
|
367
|
+
}, r.id)) })]
|
|
292
368
|
})
|
|
293
369
|
})
|
|
294
370
|
})
|
|
@@ -394,4 +470,6 @@ function IssueActions({ app, issue, canChange, links }) {
|
|
|
394
470
|
]
|
|
395
471
|
});
|
|
396
472
|
}
|
|
473
|
+
/** Explanations mark code with backticks for Markdown; on the page they read as plain text. */
|
|
474
|
+
var plain = (s) => s.replaceAll("`", "");
|
|
397
475
|
export { IssuePage as component };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { a as Logo } from "./ui-B_XHlLUQ.js";
|
|
2
|
+
import { h as login } from "./fns-Di0vMpkQ.js";
|
|
3
|
+
import { _ as Route } from "./router-C0Dauj2C.js";
|
|
4
4
|
import { useState } from "react";
|
|
5
5
|
import { useRouter } from "@tanstack/react-router";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|