@nivaro/react 0.3.87 → 0.3.89
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/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +18 -0
- package/dist/index.js +518 -516
- package/dist/shared/components/ops-report/CompareTab.js +110 -0
- package/dist/shared/components/ops-report/DigestSections.js +1134 -0
- package/dist/shared/components/ops-report/OpsReportView.js +88 -0
- package/dist/shared/components/ops-report/ReportTab.js +527 -0
- package/dist/shared/components/ops-report/SettingsPanel.js +247 -0
- package/dist/shared/components/ops-report/TrendsTab.js +191 -0
- package/dist/shared/components/ops-report/chip.js +17 -0
- package/dist/shared/components/ops-report/drill.js +328 -0
- package/dist/shared/components/ops-report/format.js +163 -0
- package/dist/shared/components/ops-report/ui.js +208 -0
- package/dist/shared/components/panels/MoveToStatePanel.js +127 -0
- package/dist/shared/components/panels/PipelinePanel.js +1044 -1029
- package/dist/shared/lib/ops-report-types.js +141 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1134 @@
|
|
|
1
|
+
import { jsxs as h, jsx as t, Fragment as pe } from "react/jsx-runtime";
|
|
2
|
+
import { cn as ye } from "../../lib/utils.js";
|
|
3
|
+
import { Drillable as we } from "./drill.js";
|
|
4
|
+
import { arr as s, num as l, dr as a, ms as S, formatKpi as q } from "./format.js";
|
|
5
|
+
import { Section as y, SubTitle as be, Stat as n, MiniTable as r } from "./ui.js";
|
|
6
|
+
const b = "font-mono text-[11.5px]";
|
|
7
|
+
function qe({ report: N }) {
|
|
8
|
+
var j, F, O, z, D, B, E, V, J, L, K, U, G, H, Q, X, Y, Z, ee, le, te, se, ae, ie, re, oe, ne, ue, ce, de, he;
|
|
9
|
+
const i = N.digest ?? {}, _ = i.traffic, o = i.speed, v = i.errors, $ = i.database, x = i.issues, f = i.jobs, u = i.integrations, k = i.mail, m = i.work, w = i.search, d = i.security, p = i.capacity, g = i.watch, R = s(_ == null ? void 0 : _.by_hour), me = Math.max(1, ...R.map((e) => e.requests)), T = s(i.deploys), M = s(i.drains), P = s(i.imports), C = s(i.notifications), W = s(i.config_changes), ge = s(i.sections), I = s(m == null ? void 0 : m.backlog).reduce((e, c) => e + c.waiting, 0), _e = (j = s(k == null ? void 0 : k.by_status).find((e) => e.status === "sent")) == null ? void 0 : j.n, ve = s(k == null ? void 0 : k.by_status).filter((e) => e.status !== "sent").reduce((e, c) => e + c.n, 0);
|
|
10
|
+
return /* @__PURE__ */ h("div", { className: "space-y-1.5", "data-ops-sections": "", children: [
|
|
11
|
+
/* @__PURE__ */ h(
|
|
12
|
+
y,
|
|
13
|
+
{
|
|
14
|
+
id: "traffic",
|
|
15
|
+
title: "Traffic",
|
|
16
|
+
empty: !_,
|
|
17
|
+
gist: `${l(_ == null ? void 0 : _.requests)} requests · ${l(_ == null ? void 0 : _.page_views)} page views${_ != null && _.peak ? ` · peak ${A(_.peak.hour)}` : ""}`,
|
|
18
|
+
children: [
|
|
19
|
+
R.length > 0 && /* @__PURE__ */ h("div", { children: [
|
|
20
|
+
/* @__PURE__ */ t(be, { children: "Requests by hour" }),
|
|
21
|
+
/* @__PURE__ */ t("div", { className: "flex h-20 items-end gap-1", role: "img", "aria-label": "Requests by hour", children: R.map((e) => /* @__PURE__ */ t(
|
|
22
|
+
we,
|
|
23
|
+
{
|
|
24
|
+
target: a("requests_by_hour", e.hour, A(e.hour)),
|
|
25
|
+
tip: `${A(e.hour)} · ${l(e.requests)} requests · ${l(e.people)} people${e.e5 ? ` · ${e.e5} server errors` : ""}`,
|
|
26
|
+
className: "group flex h-full min-w-0 flex-1 flex-col justify-end",
|
|
27
|
+
children: /* @__PURE__ */ t(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
className: ye(
|
|
31
|
+
"w-full rounded-t-sm",
|
|
32
|
+
e.e5 > 0 ? "bg-red-500" : "bg-nvr-cyan/70 group-hover:bg-nvr-cyan"
|
|
33
|
+
),
|
|
34
|
+
style: { height: `${Math.max(3, e.requests / me * 100)}%` }
|
|
35
|
+
}
|
|
36
|
+
)
|
|
37
|
+
},
|
|
38
|
+
e.hour
|
|
39
|
+
)) }),
|
|
40
|
+
/* @__PURE__ */ t("div", { className: "mt-1 flex gap-1 text-[10px] text-slate-500 dark:text-muted-foreground", children: R.map((e) => /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 text-center tabular-nums", children: $e(e.hour) }, e.hour)) })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
43
|
+
/* @__PURE__ */ t(n, { label: "Requests", value: l(_ == null ? void 0 : _.requests), drill: a("requests") }),
|
|
44
|
+
/* @__PURE__ */ t(n, { label: "Page views", value: l(_ == null ? void 0 : _.page_views), drill: a("page_views") }),
|
|
45
|
+
(_ == null ? void 0 : _.peak) && /* @__PURE__ */ t(
|
|
46
|
+
n,
|
|
47
|
+
{
|
|
48
|
+
label: `Peak at ${A(_.peak.hour)}`,
|
|
49
|
+
value: `${l(_.peak.requests)} req`,
|
|
50
|
+
drill: a("requests_by_hour", _.peak.hour)
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] })
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
),
|
|
57
|
+
/* @__PURE__ */ h(
|
|
58
|
+
y,
|
|
59
|
+
{
|
|
60
|
+
id: "speed",
|
|
61
|
+
title: "Speed",
|
|
62
|
+
empty: !o,
|
|
63
|
+
gist: `p95 ${S(o == null ? void 0 : o.p95)} · p99 ${S(o == null ? void 0 : o.p99)} · ${l(o == null ? void 0 : o.over5s)} over 5 s`,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
66
|
+
/* @__PURE__ */ t(n, { label: "Average", value: S(o == null ? void 0 : o.avg_ms), drill: a("over5s") }),
|
|
67
|
+
/* @__PURE__ */ t(n, { label: "Median", value: S(o == null ? void 0 : o.p50), drill: a("over5s") }),
|
|
68
|
+
/* @__PURE__ */ t(n, { label: "p90", value: S(o == null ? void 0 : o.p90), drill: a("over5s") }),
|
|
69
|
+
/* @__PURE__ */ t(n, { label: "p95", value: S(o == null ? void 0 : o.p95), drill: a("over5s") }),
|
|
70
|
+
/* @__PURE__ */ t(n, { label: "p99", value: S(o == null ? void 0 : o.p99), drill: a("over5s") }),
|
|
71
|
+
/* @__PURE__ */ t(n, { label: "Over 1 s", value: l(o == null ? void 0 : o.over1s), drill: a("over5s", "1s") }),
|
|
72
|
+
/* @__PURE__ */ t(n, { label: "Over 5 s", value: l(o == null ? void 0 : o.over5s), drill: a("over5s") }),
|
|
73
|
+
/* @__PURE__ */ t(
|
|
74
|
+
n,
|
|
75
|
+
{
|
|
76
|
+
label: "Over 30 s",
|
|
77
|
+
value: l(o == null ? void 0 : o.over30s),
|
|
78
|
+
tone: o != null && o.over30s ? "bad" : void 0,
|
|
79
|
+
drill: a("over5s", "30s")
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
] }),
|
|
83
|
+
/* @__PURE__ */ t(
|
|
84
|
+
r,
|
|
85
|
+
{
|
|
86
|
+
title: "Bursts of slow calls",
|
|
87
|
+
rows: s(o == null ? void 0 : o.bursts),
|
|
88
|
+
drill: (e) => a("burst", e.route, e.route),
|
|
89
|
+
cols: [
|
|
90
|
+
{ h: "At", cell: (e) => e.at },
|
|
91
|
+
{ h: "Route", cell: (e) => e.route },
|
|
92
|
+
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
93
|
+
{ h: "People", cell: (e) => l(e.people), num: !0 },
|
|
94
|
+
{ h: "Slowest", cell: (e) => S(e.max_ms), num: !0 }
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
),
|
|
98
|
+
/* @__PURE__ */ t(
|
|
99
|
+
r,
|
|
100
|
+
{
|
|
101
|
+
title: "Slowest routes",
|
|
102
|
+
rows: s(o == null ? void 0 : o.slow_routes),
|
|
103
|
+
drill: (e) => a("slow_route", e.route, e.route),
|
|
104
|
+
cols: [
|
|
105
|
+
{ h: "Route", cell: (e) => e.route, className: b },
|
|
106
|
+
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
107
|
+
{ h: "Average", cell: (e) => S(e.avg_ms), num: !0 },
|
|
108
|
+
{ h: "Slowest", cell: (e) => S(e.max_ms), num: !0 },
|
|
109
|
+
{ h: "People", cell: (e) => l(e.people), num: !0 }
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
/* @__PURE__ */ t(
|
|
114
|
+
r,
|
|
115
|
+
{
|
|
116
|
+
title: "Most server time",
|
|
117
|
+
rows: s(o == null ? void 0 : o.heavy_routes),
|
|
118
|
+
drill: (e) => a("slow_route", e.route, e.route),
|
|
119
|
+
cols: [
|
|
120
|
+
{ h: "Route", cell: (e) => e.route, className: b },
|
|
121
|
+
{ h: "Total", cell: (e) => `${l(e.total_s)} s`, num: !0 },
|
|
122
|
+
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
123
|
+
{ h: "Average", cell: (e) => S(e.avg_ms), num: !0 }
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
/* @__PURE__ */ h(
|
|
131
|
+
y,
|
|
132
|
+
{
|
|
133
|
+
id: "errors",
|
|
134
|
+
title: "Errors",
|
|
135
|
+
empty: !v,
|
|
136
|
+
gist: `${l(v == null ? void 0 : v.server_total)} server · ${l(v == null ? void 0 : v.drain_503)} deploy-drain 503s · ${l(v == null ? void 0 : v.signed_out_401)} signed-out 401s`,
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
139
|
+
/* @__PURE__ */ t(
|
|
140
|
+
n,
|
|
141
|
+
{
|
|
142
|
+
label: "Server errors",
|
|
143
|
+
value: l(v == null ? void 0 : v.server_total),
|
|
144
|
+
drill: a("server_errors")
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ t(
|
|
148
|
+
n,
|
|
149
|
+
{
|
|
150
|
+
label: "Deploy-drain 503s",
|
|
151
|
+
value: l(v == null ? void 0 : v.drain_503),
|
|
152
|
+
drill: a("server_errors", "503")
|
|
153
|
+
}
|
|
154
|
+
),
|
|
155
|
+
/* @__PURE__ */ t(
|
|
156
|
+
n,
|
|
157
|
+
{
|
|
158
|
+
label: "Signed-out 401s",
|
|
159
|
+
value: l(v == null ? void 0 : v.signed_out_401),
|
|
160
|
+
drill: a("client_errors", "401")
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
] }),
|
|
164
|
+
/* @__PURE__ */ t(
|
|
165
|
+
r,
|
|
166
|
+
{
|
|
167
|
+
title: "Server errors",
|
|
168
|
+
rows: s(v == null ? void 0 : v.server),
|
|
169
|
+
drill: (e) => a("server_errors", e.route, e.route),
|
|
170
|
+
cols: [
|
|
171
|
+
{ h: "At", cell: (e) => e.at },
|
|
172
|
+
{ h: "Status", cell: (e) => e.status, num: !0 },
|
|
173
|
+
{ h: "Route", cell: (e) => e.route, className: b },
|
|
174
|
+
{ h: "Took", cell: (e) => S(e.ms), num: !0 },
|
|
175
|
+
{ h: "Person", cell: (e) => e.person ?? "No one signed in" }
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
),
|
|
179
|
+
/* @__PURE__ */ t(
|
|
180
|
+
r,
|
|
181
|
+
{
|
|
182
|
+
title: "Refused requests (4xx)",
|
|
183
|
+
rows: s(v == null ? void 0 : v.client_by_route),
|
|
184
|
+
drill: (e) => a("client_errors", e.route, e.route),
|
|
185
|
+
cols: [
|
|
186
|
+
{ h: "Status", cell: (e) => e.status, num: !0 },
|
|
187
|
+
{ h: "Route", cell: (e) => e.route, className: b },
|
|
188
|
+
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
189
|
+
{ h: "People", cell: (e) => l(e.people), num: !0 },
|
|
190
|
+
{ h: "Said", cell: (e) => e.message }
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
),
|
|
197
|
+
/* @__PURE__ */ h(
|
|
198
|
+
y,
|
|
199
|
+
{
|
|
200
|
+
id: "deploys",
|
|
201
|
+
title: "Deploys and drains",
|
|
202
|
+
empty: !T.length && !M.length,
|
|
203
|
+
gist: `${T.length} deploys · ${M.length} drains`,
|
|
204
|
+
children: [
|
|
205
|
+
/* @__PURE__ */ t(
|
|
206
|
+
r,
|
|
207
|
+
{
|
|
208
|
+
title: "Deploys",
|
|
209
|
+
rows: T,
|
|
210
|
+
drill: (e) => a("deploys", e.version, e.version ?? e.at),
|
|
211
|
+
limit: 30,
|
|
212
|
+
cols: [
|
|
213
|
+
{ h: "At", cell: (e) => e.at },
|
|
214
|
+
{ h: "Version", cell: (e) => e.version ?? "–", className: b },
|
|
215
|
+
{ h: "Release", cell: (e) => e.release ?? "" }
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
),
|
|
219
|
+
/* @__PURE__ */ t(
|
|
220
|
+
r,
|
|
221
|
+
{
|
|
222
|
+
title: "Drains (requests answered 503)",
|
|
223
|
+
rows: M,
|
|
224
|
+
drill: (e) => a("deploys", e.at, e.at),
|
|
225
|
+
cols: [
|
|
226
|
+
{ h: "At", cell: (e) => e.at },
|
|
227
|
+
{ h: "Requests", cell: (e) => l(e.n), num: !0 }
|
|
228
|
+
]
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
),
|
|
234
|
+
/* @__PURE__ */ h(
|
|
235
|
+
y,
|
|
236
|
+
{
|
|
237
|
+
id: "database",
|
|
238
|
+
title: "Database",
|
|
239
|
+
empty: !$,
|
|
240
|
+
gist: `${s($ == null ? void 0 : $.deadlocks).length} deadlocks · ${s($ == null ? void 0 : $.timeouts).length} timeouts · ${s($ == null ? void 0 : $.freezes).length} freezes`,
|
|
241
|
+
children: [
|
|
242
|
+
/* @__PURE__ */ t(
|
|
243
|
+
r,
|
|
244
|
+
{
|
|
245
|
+
title: "Deadlocks",
|
|
246
|
+
rows: s($ == null ? void 0 : $.deadlocks),
|
|
247
|
+
drill: (e) => a("issue", e.issue, `Issue #${e.issue}`),
|
|
248
|
+
cols: [
|
|
249
|
+
{ h: "Issue", cell: (e) => `#${e.issue}`, num: !0 },
|
|
250
|
+
{ h: "At", cell: (e) => e.at },
|
|
251
|
+
{ h: "Victim", cell: (e) => e.victim, className: b },
|
|
252
|
+
{ h: "Other side", cell: (e) => e.other, className: b }
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
),
|
|
256
|
+
/* @__PURE__ */ t(
|
|
257
|
+
r,
|
|
258
|
+
{
|
|
259
|
+
title: "Timeouts",
|
|
260
|
+
rows: s($ == null ? void 0 : $.timeouts),
|
|
261
|
+
drill: (e) => a("issue", e.issue, `Issue #${e.issue}`),
|
|
262
|
+
cols: [
|
|
263
|
+
{ h: "Issue", cell: (e) => `#${e.issue}`, num: !0 },
|
|
264
|
+
{ h: "What", cell: (e) => e.title }
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
),
|
|
268
|
+
/* @__PURE__ */ t(
|
|
269
|
+
r,
|
|
270
|
+
{
|
|
271
|
+
title: "Freezes",
|
|
272
|
+
rows: s($ == null ? void 0 : $.freezes),
|
|
273
|
+
drill: (e) => a("issue", e.issue, `Issue #${e.issue}`),
|
|
274
|
+
cols: [
|
|
275
|
+
{ h: "Issue", cell: (e) => `#${e.issue}`, num: !0 },
|
|
276
|
+
{ h: "What", cell: (e) => e.title }
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
)
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
),
|
|
283
|
+
/* @__PURE__ */ h(
|
|
284
|
+
y,
|
|
285
|
+
{
|
|
286
|
+
id: "issues",
|
|
287
|
+
title: "Issues",
|
|
288
|
+
empty: !s(x == null ? void 0 : x.new).length && !s(x == null ? void 0 : x.repeating).length,
|
|
289
|
+
gist: `${s(x == null ? void 0 : x.new).length} new · ${s(x == null ? void 0 : x.repeating).length} repeating`,
|
|
290
|
+
children: [
|
|
291
|
+
/* @__PURE__ */ t(
|
|
292
|
+
r,
|
|
293
|
+
{
|
|
294
|
+
title: "New today",
|
|
295
|
+
rows: s(x == null ? void 0 : x.new),
|
|
296
|
+
drill: (e) => a("issue", e.id, `Issue #${e.id}`),
|
|
297
|
+
cols: [
|
|
298
|
+
{ h: "Issue", cell: (e) => `#${e.id}`, num: !0 },
|
|
299
|
+
{ h: "Source", cell: (e) => e.source },
|
|
300
|
+
{ h: "Severity", cell: (e) => e.severity },
|
|
301
|
+
{ h: "Title", cell: (e) => e.title },
|
|
302
|
+
{ h: "Seen", cell: (e) => l(e.count), num: !0 }
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
),
|
|
306
|
+
/* @__PURE__ */ t(
|
|
307
|
+
r,
|
|
308
|
+
{
|
|
309
|
+
title: "Repeating",
|
|
310
|
+
rows: s(x == null ? void 0 : x.repeating),
|
|
311
|
+
drill: (e) => a("issue", e.id, `Issue #${e.id}`),
|
|
312
|
+
cols: [
|
|
313
|
+
{ h: "Issue", cell: (e) => `#${e.id}`, num: !0 },
|
|
314
|
+
{ h: "Title", cell: (e) => e.title },
|
|
315
|
+
{ h: "Seen", cell: (e) => l(e.count), num: !0 }
|
|
316
|
+
]
|
|
317
|
+
}
|
|
318
|
+
)
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
),
|
|
322
|
+
/* @__PURE__ */ h(
|
|
323
|
+
y,
|
|
324
|
+
{
|
|
325
|
+
id: "jobs",
|
|
326
|
+
title: "Jobs",
|
|
327
|
+
empty: !f,
|
|
328
|
+
gist: `${l(f == null ? void 0 : f.runs)} runs · ${s(f == null ? void 0 : f.failed).length} failed`,
|
|
329
|
+
children: [
|
|
330
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
331
|
+
/* @__PURE__ */ t(n, { label: "Runs", value: l(f == null ? void 0 : f.runs), drill: a("job") }),
|
|
332
|
+
/* @__PURE__ */ t(n, { label: "Failed", value: l(s(f == null ? void 0 : f.failed).length), drill: a("job_failures") })
|
|
333
|
+
] }),
|
|
334
|
+
/* @__PURE__ */ t(
|
|
335
|
+
r,
|
|
336
|
+
{
|
|
337
|
+
title: "Failed",
|
|
338
|
+
rows: s(f == null ? void 0 : f.failed),
|
|
339
|
+
drill: (e) => a("job", e.job, e.job),
|
|
340
|
+
cols: [
|
|
341
|
+
{ h: "Job", cell: (e) => e.job, className: b },
|
|
342
|
+
{ h: "At", cell: (e) => e.at },
|
|
343
|
+
{ h: "Status", cell: (e) => e.status },
|
|
344
|
+
{ h: "Said", cell: (e) => e.error ?? "" }
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
),
|
|
348
|
+
/* @__PURE__ */ t(
|
|
349
|
+
r,
|
|
350
|
+
{
|
|
351
|
+
title: "Slowest",
|
|
352
|
+
rows: s(f == null ? void 0 : f.slowest),
|
|
353
|
+
drill: (e) => a("job", e.job, e.job),
|
|
354
|
+
cols: [
|
|
355
|
+
{ h: "Job", cell: (e) => e.job, className: b },
|
|
356
|
+
{ h: "Runs", cell: (e) => l(e.n), num: !0 },
|
|
357
|
+
{ h: "Average", cell: (e) => S(e.avg_ms), num: !0 },
|
|
358
|
+
{ h: "Slowest", cell: (e) => S(e.max_ms), num: !0 }
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
)
|
|
362
|
+
]
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ h(
|
|
366
|
+
y,
|
|
367
|
+
{
|
|
368
|
+
id: "integrations",
|
|
369
|
+
title: "Partner integrations",
|
|
370
|
+
empty: !s(u == null ? void 0 : u.calls).length && !s(u == null ? void 0 : u.submissions).length && !s(u == null ? void 0 : u.failures).length && !s(u == null ? void 0 : u.alerts).length,
|
|
371
|
+
gist: `${s(u == null ? void 0 : u.calls).length} partners called · ${s(u == null ? void 0 : u.failures).length} sends failed · ${s(u == null ? void 0 : u.open_alarms).length} open alarms`,
|
|
372
|
+
children: [
|
|
373
|
+
/* @__PURE__ */ t(
|
|
374
|
+
r,
|
|
375
|
+
{
|
|
376
|
+
title: "Partner response time vs the 7-day average",
|
|
377
|
+
rows: s(u == null ? void 0 : u.calls),
|
|
378
|
+
drill: (e) => a("integration_calls", e.api, e.api),
|
|
379
|
+
cols: [
|
|
380
|
+
{ h: "Partner", cell: (e) => e.api },
|
|
381
|
+
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
382
|
+
{ h: "Failed", cell: (e) => l(e.failed), num: !0 },
|
|
383
|
+
{ h: "Average", cell: (e) => S(e.avg_ms), num: !0 },
|
|
384
|
+
{ h: "7-day avg", cell: (e) => S(e.week_avg_ms), num: !0 },
|
|
385
|
+
{
|
|
386
|
+
h: "Slowest",
|
|
387
|
+
cell: (e) => S(e.max_ms),
|
|
388
|
+
num: !0
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
h: "Vs usual",
|
|
392
|
+
num: !0,
|
|
393
|
+
cell: (e) => {
|
|
394
|
+
if (!e.week_avg_ms) return "–";
|
|
395
|
+
const c = (e.avg_ms - e.week_avg_ms) / e.week_avg_ms * 100;
|
|
396
|
+
return Math.abs(c) < 5 ? "same" : /* @__PURE__ */ h(
|
|
397
|
+
"span",
|
|
398
|
+
{
|
|
399
|
+
className: c > 0 ? "text-red-600 dark:text-red-400" : "text-emerald-700 dark:text-emerald-400",
|
|
400
|
+
children: [
|
|
401
|
+
c > 0 ? "+" : "−",
|
|
402
|
+
Math.round(Math.abs(c)),
|
|
403
|
+
"%"
|
|
404
|
+
]
|
|
405
|
+
}
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
),
|
|
412
|
+
/* @__PURE__ */ t(
|
|
413
|
+
r,
|
|
414
|
+
{
|
|
415
|
+
title: "Submissions",
|
|
416
|
+
rows: s(u == null ? void 0 : u.submissions),
|
|
417
|
+
drill: (e) => a("integration_failures", e.api, e.api),
|
|
418
|
+
cols: [
|
|
419
|
+
{ h: "Partner", cell: (e) => e.api },
|
|
420
|
+
{ h: "Status", cell: (e) => e.status },
|
|
421
|
+
{ h: "Sends", cell: (e) => l(e.n), num: !0 }
|
|
422
|
+
]
|
|
423
|
+
}
|
|
424
|
+
),
|
|
425
|
+
/* @__PURE__ */ t(
|
|
426
|
+
r,
|
|
427
|
+
{
|
|
428
|
+
title: "Failed sends",
|
|
429
|
+
rows: s(u == null ? void 0 : u.failures),
|
|
430
|
+
drill: (e) => a("integration_failures", e.api, e.api),
|
|
431
|
+
cols: [
|
|
432
|
+
{ h: "At", cell: (e) => e.at },
|
|
433
|
+
{ h: "Partner", cell: (e) => e.api },
|
|
434
|
+
{ h: "Record", cell: (e) => `${e.collection} ${e.item}`, className: b },
|
|
435
|
+
{ h: "Said", cell: (e) => e.error }
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
),
|
|
439
|
+
/* @__PURE__ */ t(
|
|
440
|
+
r,
|
|
441
|
+
{
|
|
442
|
+
title: "Open alarms",
|
|
443
|
+
rows: s(u == null ? void 0 : u.open_alarms),
|
|
444
|
+
drill: (e) => a("open_alarms", e.api, e.api),
|
|
445
|
+
cols: [
|
|
446
|
+
{ h: "Partner", cell: (e) => e.api },
|
|
447
|
+
{ h: "Kind", cell: (e) => e.kind },
|
|
448
|
+
{ h: "Outcome", cell: (e) => e.outcome },
|
|
449
|
+
{ h: "Count", cell: (e) => l(e.n), num: !0 }
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
),
|
|
453
|
+
/* @__PURE__ */ t(
|
|
454
|
+
r,
|
|
455
|
+
{
|
|
456
|
+
title: "Alerts",
|
|
457
|
+
rows: s(u == null ? void 0 : u.alerts),
|
|
458
|
+
drill: (e) => a("open_alarms", e.title, e.title),
|
|
459
|
+
cols: [
|
|
460
|
+
{ h: "Alert", cell: (e) => e.title },
|
|
461
|
+
{ h: "Status", cell: (e) => e.status },
|
|
462
|
+
{ h: "Started", cell: (e) => e.started },
|
|
463
|
+
{ h: "Ended", cell: (e) => e.ended ?? "still open" }
|
|
464
|
+
]
|
|
465
|
+
}
|
|
466
|
+
)
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
),
|
|
470
|
+
/* @__PURE__ */ t(
|
|
471
|
+
y,
|
|
472
|
+
{
|
|
473
|
+
id: "imports",
|
|
474
|
+
title: "Imports",
|
|
475
|
+
empty: !P.length,
|
|
476
|
+
gist: `${P.length} definitions ran · ${l(P.reduce((e, c) => e + c.rows, 0))} rows`,
|
|
477
|
+
children: /* @__PURE__ */ t(
|
|
478
|
+
r,
|
|
479
|
+
{
|
|
480
|
+
rows: P,
|
|
481
|
+
drill: (e) => a("imports", e.definition, e.definition),
|
|
482
|
+
cols: [
|
|
483
|
+
{ h: "Import", cell: (e) => e.definition, className: b },
|
|
484
|
+
{ h: "Status", cell: (e) => e.status },
|
|
485
|
+
{ h: "Runs", cell: (e) => l(e.runs), num: !0 },
|
|
486
|
+
{ h: "Rows", cell: (e) => l(e.rows), num: !0 }
|
|
487
|
+
]
|
|
488
|
+
}
|
|
489
|
+
)
|
|
490
|
+
}
|
|
491
|
+
),
|
|
492
|
+
/* @__PURE__ */ h(
|
|
493
|
+
y,
|
|
494
|
+
{
|
|
495
|
+
id: "mail",
|
|
496
|
+
title: "Mail",
|
|
497
|
+
empty: !s(k == null ? void 0 : k.by_status).length,
|
|
498
|
+
gist: `${l(_e)} sent · ${l(ve)} not sent`,
|
|
499
|
+
children: [
|
|
500
|
+
/* @__PURE__ */ t(
|
|
501
|
+
r,
|
|
502
|
+
{
|
|
503
|
+
rows: s(k == null ? void 0 : k.by_status),
|
|
504
|
+
drill: (e) => a("mail", e.status, e.status),
|
|
505
|
+
cols: [
|
|
506
|
+
{ h: "Status", cell: (e) => e.status },
|
|
507
|
+
{ h: "Mails", cell: (e) => l(e.n), num: !0 }
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
),
|
|
511
|
+
/* @__PURE__ */ t(
|
|
512
|
+
r,
|
|
513
|
+
{
|
|
514
|
+
title: "Why mail did not go",
|
|
515
|
+
rows: s(k == null ? void 0 : k.reasons),
|
|
516
|
+
drill: (e) => a("mail", e.reason, e.reason),
|
|
517
|
+
cols: [
|
|
518
|
+
{ h: "Reason", cell: (e) => e.reason },
|
|
519
|
+
{ h: "Mails", cell: (e) => l(e.n), num: !0 }
|
|
520
|
+
]
|
|
521
|
+
}
|
|
522
|
+
)
|
|
523
|
+
]
|
|
524
|
+
}
|
|
525
|
+
),
|
|
526
|
+
/* @__PURE__ */ t(
|
|
527
|
+
y,
|
|
528
|
+
{
|
|
529
|
+
id: "notifications",
|
|
530
|
+
title: "Notifications",
|
|
531
|
+
empty: !C.length,
|
|
532
|
+
gist: `${l(C.reduce((e, c) => e + c.n, 0))} sent`,
|
|
533
|
+
children: /* @__PURE__ */ t(
|
|
534
|
+
r,
|
|
535
|
+
{
|
|
536
|
+
rows: C,
|
|
537
|
+
drill: (e) => a("notifications", e.category, e.category),
|
|
538
|
+
cols: [
|
|
539
|
+
{ h: "Category", cell: (e) => e.category },
|
|
540
|
+
{ h: "Sent", cell: (e) => l(e.n), num: !0 },
|
|
541
|
+
{ h: "People", cell: (e) => l(e.recipients), num: !0 },
|
|
542
|
+
{ h: "Read", cell: (e) => l(e.read), num: !0 }
|
|
543
|
+
]
|
|
544
|
+
}
|
|
545
|
+
)
|
|
546
|
+
}
|
|
547
|
+
),
|
|
548
|
+
/* @__PURE__ */ h(
|
|
549
|
+
y,
|
|
550
|
+
{
|
|
551
|
+
id: "work",
|
|
552
|
+
title: "Work and backlog",
|
|
553
|
+
empty: !m,
|
|
554
|
+
gist: `${l(m == null ? void 0 : m.moves)} moves by ${l(m == null ? void 0 : m.movers)} people · ${l(I)} waiting · ${s(m == null ? void 0 : m.sla_breaches).reduce((e, c) => e + c.breached, 0)} past deadline`,
|
|
555
|
+
children: [
|
|
556
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
557
|
+
/* @__PURE__ */ t(n, { label: "Moves", value: l(m == null ? void 0 : m.moves), drill: a("moves") }),
|
|
558
|
+
/* @__PURE__ */ t(n, { label: "People moving work", value: l(m == null ? void 0 : m.movers), drill: a("moves") }),
|
|
559
|
+
/* @__PURE__ */ t(n, { label: "Waiting now", value: l(I), drill: a("backlog") })
|
|
560
|
+
] }),
|
|
561
|
+
/* @__PURE__ */ t(
|
|
562
|
+
r,
|
|
563
|
+
{
|
|
564
|
+
title: "Moves by state",
|
|
565
|
+
rows: s(m == null ? void 0 : m.by_state),
|
|
566
|
+
drill: (e) => a("moves", e.state, e.state),
|
|
567
|
+
cols: [
|
|
568
|
+
{ h: "State", cell: (e) => e.state },
|
|
569
|
+
{ h: "Moves", cell: (e) => l(e.n), num: !0 }
|
|
570
|
+
]
|
|
571
|
+
}
|
|
572
|
+
),
|
|
573
|
+
/* @__PURE__ */ t(
|
|
574
|
+
r,
|
|
575
|
+
{
|
|
576
|
+
title: "Records created",
|
|
577
|
+
rows: s(m == null ? void 0 : m.creates),
|
|
578
|
+
drill: (e) => a("creates", e.collection, e.collection),
|
|
579
|
+
cols: [
|
|
580
|
+
{ h: "Collection", cell: (e) => e.collection, className: b },
|
|
581
|
+
{ h: "Created", cell: (e) => l(e.n), num: !0 },
|
|
582
|
+
{ h: "People", cell: (e) => l(e.people), num: !0 }
|
|
583
|
+
]
|
|
584
|
+
}
|
|
585
|
+
),
|
|
586
|
+
/* @__PURE__ */ t(
|
|
587
|
+
r,
|
|
588
|
+
{
|
|
589
|
+
title: "Waiting now",
|
|
590
|
+
rows: s(m == null ? void 0 : m.backlog),
|
|
591
|
+
drill: (e) => a("backlog", e.state, e.state),
|
|
592
|
+
cols: [
|
|
593
|
+
{ h: "State", cell: (e) => e.state },
|
|
594
|
+
{ h: "Waiting", cell: (e) => l(e.waiting), num: !0 },
|
|
595
|
+
{
|
|
596
|
+
h: "Oldest",
|
|
597
|
+
cell: (e) => e.oldest_days == null ? "–" : `${e.oldest_days} days`,
|
|
598
|
+
num: !0
|
|
599
|
+
}
|
|
600
|
+
]
|
|
601
|
+
}
|
|
602
|
+
),
|
|
603
|
+
/* @__PURE__ */ t(
|
|
604
|
+
r,
|
|
605
|
+
{
|
|
606
|
+
title: "Past deadline",
|
|
607
|
+
rows: s(m == null ? void 0 : m.sla_breaches),
|
|
608
|
+
drill: (e) => a("sla_breaches", e.rule, e.rule),
|
|
609
|
+
cols: [
|
|
610
|
+
{ h: "Rule", cell: (e) => e.rule },
|
|
611
|
+
{ h: "Collection", cell: (e) => e.collection, className: b },
|
|
612
|
+
{ h: "Breached", cell: (e) => l(e.breached), num: !0 }
|
|
613
|
+
]
|
|
614
|
+
}
|
|
615
|
+
)
|
|
616
|
+
]
|
|
617
|
+
}
|
|
618
|
+
),
|
|
619
|
+
/* @__PURE__ */ h(
|
|
620
|
+
y,
|
|
621
|
+
{
|
|
622
|
+
id: "search",
|
|
623
|
+
title: "Search",
|
|
624
|
+
empty: !w,
|
|
625
|
+
gist: `${l(w == null ? void 0 : w.n)} searches · ${l(w == null ? void 0 : w.zero)} found nothing · ${S(w == null ? void 0 : w.avg_ms)} average`,
|
|
626
|
+
children: [
|
|
627
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
628
|
+
/* @__PURE__ */ t(n, { label: "Searches", value: l(w == null ? void 0 : w.n), drill: a("searches") }),
|
|
629
|
+
/* @__PURE__ */ t(n, { label: "People searching", value: l(w == null ? void 0 : w.people), drill: a("searches") }),
|
|
630
|
+
/* @__PURE__ */ t(n, { label: "Found nothing", value: l(w == null ? void 0 : w.zero), drill: a("search_zero") })
|
|
631
|
+
] }),
|
|
632
|
+
/* @__PURE__ */ t(
|
|
633
|
+
r,
|
|
634
|
+
{
|
|
635
|
+
title: "Searches that found nothing",
|
|
636
|
+
rows: s(w == null ? void 0 : w.missed),
|
|
637
|
+
drill: (e) => a("search_zero", e.query, e.query),
|
|
638
|
+
cols: [
|
|
639
|
+
{ h: "Query", cell: (e) => e.query },
|
|
640
|
+
{ h: "Times", cell: (e) => l(e.n), num: !0 }
|
|
641
|
+
]
|
|
642
|
+
}
|
|
643
|
+
)
|
|
644
|
+
]
|
|
645
|
+
}
|
|
646
|
+
),
|
|
647
|
+
/* @__PURE__ */ t(
|
|
648
|
+
y,
|
|
649
|
+
{
|
|
650
|
+
id: "config",
|
|
651
|
+
title: "Config changes",
|
|
652
|
+
empty: !W.length,
|
|
653
|
+
gist: `${W.length} changes`,
|
|
654
|
+
children: /* @__PURE__ */ t(
|
|
655
|
+
r,
|
|
656
|
+
{
|
|
657
|
+
rows: W,
|
|
658
|
+
drill: (e) => a("config_changes", e.collection, e.collection),
|
|
659
|
+
limit: 30,
|
|
660
|
+
cols: [
|
|
661
|
+
{ h: "At", cell: (e) => e.at },
|
|
662
|
+
{ h: "Who", cell: (e) => e.who ?? "System" },
|
|
663
|
+
{ h: "Action", cell: (e) => e.action },
|
|
664
|
+
{
|
|
665
|
+
h: "What",
|
|
666
|
+
cell: (e) => `${e.collection}${e.item ? ` ${e.item}` : ""}`,
|
|
667
|
+
className: b
|
|
668
|
+
}
|
|
669
|
+
]
|
|
670
|
+
}
|
|
671
|
+
)
|
|
672
|
+
}
|
|
673
|
+
),
|
|
674
|
+
/* @__PURE__ */ h(
|
|
675
|
+
y,
|
|
676
|
+
{
|
|
677
|
+
id: "security",
|
|
678
|
+
title: "Security",
|
|
679
|
+
empty: !d,
|
|
680
|
+
gist: `${l(d == null ? void 0 : d.new_places)} new places · ${l(d == null ? void 0 : d.failed_sign_ins)} failed sign-ins · ${s(d == null ? void 0 : d.view_as).length} View-as`,
|
|
681
|
+
children: [
|
|
682
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
683
|
+
/* @__PURE__ */ t(n, { label: "New places", value: l(d == null ? void 0 : d.new_places), drill: a("new_places") }),
|
|
684
|
+
/* @__PURE__ */ t(
|
|
685
|
+
n,
|
|
686
|
+
{
|
|
687
|
+
label: "Failed sign-ins",
|
|
688
|
+
value: l(d == null ? void 0 : d.failed_sign_ins),
|
|
689
|
+
drill: a("failed_sign_ins")
|
|
690
|
+
}
|
|
691
|
+
),
|
|
692
|
+
/* @__PURE__ */ t(n, { label: "Access granted", value: l(d == null ? void 0 : d.access_grants), drill: a("access") }),
|
|
693
|
+
/* @__PURE__ */ t(n, { label: "Access requests", value: l(d == null ? void 0 : d.access_requests), drill: a("access") }),
|
|
694
|
+
/* @__PURE__ */ t(
|
|
695
|
+
n,
|
|
696
|
+
{
|
|
697
|
+
label: "Waiting for authorization",
|
|
698
|
+
value: l(d == null ? void 0 : d.waiting_authorization),
|
|
699
|
+
drill: a("access")
|
|
700
|
+
}
|
|
701
|
+
)
|
|
702
|
+
] }),
|
|
703
|
+
/* @__PURE__ */ t(
|
|
704
|
+
r,
|
|
705
|
+
{
|
|
706
|
+
title: "View-as",
|
|
707
|
+
rows: s(d == null ? void 0 : d.view_as),
|
|
708
|
+
drill: (e) => a("view_as_sessions", e.who, e.who ?? "View-as"),
|
|
709
|
+
cols: [
|
|
710
|
+
{ h: "Who", cell: (e) => e.who ?? "Unknown" },
|
|
711
|
+
{ h: "At", cell: (e) => e.at }
|
|
712
|
+
]
|
|
713
|
+
}
|
|
714
|
+
),
|
|
715
|
+
/* @__PURE__ */ t(
|
|
716
|
+
r,
|
|
717
|
+
{
|
|
718
|
+
title: "Role changes",
|
|
719
|
+
rows: s(d == null ? void 0 : d.role_changes),
|
|
720
|
+
drill: (e) => a("role_changes", e.person, e.person ?? "Role change"),
|
|
721
|
+
cols: [
|
|
722
|
+
{ h: "At", cell: (e) => e.at },
|
|
723
|
+
{ h: "By", cell: (e) => e.who ?? "System" },
|
|
724
|
+
{ h: "Person", cell: (e) => e.person ?? "Unknown" }
|
|
725
|
+
]
|
|
726
|
+
}
|
|
727
|
+
),
|
|
728
|
+
/* @__PURE__ */ t(
|
|
729
|
+
r,
|
|
730
|
+
{
|
|
731
|
+
title: "API key use",
|
|
732
|
+
rows: s(d == null ? void 0 : d.api_key_use),
|
|
733
|
+
drill: (e) => a("api_key_use", e.name, e.name),
|
|
734
|
+
cols: [
|
|
735
|
+
{ h: "Key", cell: (e) => e.name },
|
|
736
|
+
{ h: "Requests", cell: (e) => l(e.requests), num: !0 }
|
|
737
|
+
]
|
|
738
|
+
}
|
|
739
|
+
)
|
|
740
|
+
]
|
|
741
|
+
}
|
|
742
|
+
),
|
|
743
|
+
/* @__PURE__ */ h(
|
|
744
|
+
y,
|
|
745
|
+
{
|
|
746
|
+
id: "capacity",
|
|
747
|
+
title: "Capacity",
|
|
748
|
+
empty: !p,
|
|
749
|
+
gist: `${(p == null ? void 0 : p.memory_mb) != null ? `${l(p.memory_mb)} MB memory · ` : ""}${s(p == null ? void 0 : p.restarts).length} restarts`,
|
|
750
|
+
children: [
|
|
751
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
752
|
+
(p == null ? void 0 : p.pool) && /* @__PURE__ */ h(pe, { children: [
|
|
753
|
+
/* @__PURE__ */ t(
|
|
754
|
+
n,
|
|
755
|
+
{
|
|
756
|
+
label: "Request connections",
|
|
757
|
+
value: l(p.pool.main_max),
|
|
758
|
+
drill: a("capacity")
|
|
759
|
+
}
|
|
760
|
+
),
|
|
761
|
+
/* @__PURE__ */ t(
|
|
762
|
+
n,
|
|
763
|
+
{
|
|
764
|
+
label: "Background connections",
|
|
765
|
+
value: l(p.pool.background_max),
|
|
766
|
+
drill: a("capacity")
|
|
767
|
+
}
|
|
768
|
+
)
|
|
769
|
+
] }),
|
|
770
|
+
(p == null ? void 0 : p.memory_mb) != null && /* @__PURE__ */ t(n, { label: "Memory", value: `${l(p.memory_mb)} MB`, drill: a("capacity") }),
|
|
771
|
+
(p == null ? void 0 : p.backups) && /* @__PURE__ */ h(pe, { children: [
|
|
772
|
+
/* @__PURE__ */ t(
|
|
773
|
+
n,
|
|
774
|
+
{
|
|
775
|
+
label: `Last full backup (${p.backups.last_full ?? "unknown"})`,
|
|
776
|
+
value: p.backups.last_full_age_hours == null ? "–" : `${l(p.backups.last_full_age_hours, 1)} h ago`,
|
|
777
|
+
drill: a("capacity")
|
|
778
|
+
}
|
|
779
|
+
),
|
|
780
|
+
/* @__PURE__ */ t(
|
|
781
|
+
n,
|
|
782
|
+
{
|
|
783
|
+
label: `Last log backup (${p.backups.last_log ?? "unknown"})`,
|
|
784
|
+
value: p.backups.last_log_age_hours == null ? "–" : `${l(p.backups.last_log_age_hours, 1)} h ago`,
|
|
785
|
+
drill: a("capacity")
|
|
786
|
+
}
|
|
787
|
+
)
|
|
788
|
+
] })
|
|
789
|
+
] }),
|
|
790
|
+
/* @__PURE__ */ t(
|
|
791
|
+
r,
|
|
792
|
+
{
|
|
793
|
+
title: "Disk",
|
|
794
|
+
rows: s(p == null ? void 0 : p.disk),
|
|
795
|
+
drill: () => a("capacity"),
|
|
796
|
+
cols: [
|
|
797
|
+
{ h: "Path", cell: (e) => e.path, className: b },
|
|
798
|
+
{ h: "Free", cell: (e) => `${l(e.free_pct)}%`, num: !0 },
|
|
799
|
+
{ h: "Free space", cell: (e) => `${l(e.free_gb)} GB`, num: !0 }
|
|
800
|
+
]
|
|
801
|
+
}
|
|
802
|
+
),
|
|
803
|
+
/* @__PURE__ */ t(
|
|
804
|
+
r,
|
|
805
|
+
{
|
|
806
|
+
title: "Restarts",
|
|
807
|
+
rows: s(p == null ? void 0 : p.restarts),
|
|
808
|
+
drill: () => a("deploys"),
|
|
809
|
+
cols: [
|
|
810
|
+
{ h: "At", cell: (e) => e.at },
|
|
811
|
+
{ h: "What", cell: (e) => e.what }
|
|
812
|
+
]
|
|
813
|
+
}
|
|
814
|
+
)
|
|
815
|
+
]
|
|
816
|
+
}
|
|
817
|
+
),
|
|
818
|
+
/* @__PURE__ */ h(
|
|
819
|
+
y,
|
|
820
|
+
{
|
|
821
|
+
id: "watch",
|
|
822
|
+
title: "Watch list for tomorrow",
|
|
823
|
+
empty: !s(g == null ? void 0 : g.jobs_next).length && !s(g == null ? void 0 : g.pending_sends).length && !s(g == null ? void 0 : g.expiring).length,
|
|
824
|
+
gist: `${s(g == null ? void 0 : g.jobs_next).length} jobs · ${s(g == null ? void 0 : g.pending_sends).length} pending sends · ${s(g == null ? void 0 : g.expiring).length} expiring`,
|
|
825
|
+
children: [
|
|
826
|
+
/* @__PURE__ */ t(
|
|
827
|
+
r,
|
|
828
|
+
{
|
|
829
|
+
title: "Jobs coming up",
|
|
830
|
+
rows: s(g == null ? void 0 : g.jobs_next),
|
|
831
|
+
drill: (e) => a("job", e.job, e.job),
|
|
832
|
+
cols: [
|
|
833
|
+
{ h: "Job", cell: (e) => e.job, className: b },
|
|
834
|
+
{ h: "At", cell: (e) => e.at },
|
|
835
|
+
{ h: "Heavy", cell: (e) => e.heavy ? "yes" : "" }
|
|
836
|
+
]
|
|
837
|
+
}
|
|
838
|
+
),
|
|
839
|
+
/* @__PURE__ */ t(
|
|
840
|
+
r,
|
|
841
|
+
{
|
|
842
|
+
title: "Sends still waiting",
|
|
843
|
+
rows: s(g == null ? void 0 : g.pending_sends),
|
|
844
|
+
drill: (e) => a("pending_sends", e.api, e.api),
|
|
845
|
+
cols: [
|
|
846
|
+
{ h: "Partner", cell: (e) => e.api },
|
|
847
|
+
{ h: "Waiting", cell: (e) => l(e.n), num: !0 },
|
|
848
|
+
{ h: "Oldest", cell: (e) => e.oldest ?? "–" }
|
|
849
|
+
]
|
|
850
|
+
}
|
|
851
|
+
),
|
|
852
|
+
/* @__PURE__ */ t(
|
|
853
|
+
r,
|
|
854
|
+
{
|
|
855
|
+
title: "Expiring",
|
|
856
|
+
rows: s(g == null ? void 0 : g.expiring),
|
|
857
|
+
drill: () => a("expiring"),
|
|
858
|
+
cols: [
|
|
859
|
+
{ h: "What", cell: (e) => e.what.replace("_", " ") },
|
|
860
|
+
{ h: "Name", cell: (e) => e.name },
|
|
861
|
+
{ h: "Expires", cell: (e) => e.expires },
|
|
862
|
+
{ h: "In", cell: (e) => `${e.days} days`, num: !0 }
|
|
863
|
+
]
|
|
864
|
+
}
|
|
865
|
+
)
|
|
866
|
+
]
|
|
867
|
+
}
|
|
868
|
+
),
|
|
869
|
+
/* @__PURE__ */ h(
|
|
870
|
+
y,
|
|
871
|
+
{
|
|
872
|
+
id: "pages",
|
|
873
|
+
title: "Screens people opened",
|
|
874
|
+
empty: !i.pages,
|
|
875
|
+
gist: `${l((F = i.pages) == null ? void 0 : F.views)} views · ${l((O = i.pages) == null ? void 0 : O.people)} people`,
|
|
876
|
+
children: [
|
|
877
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
878
|
+
/* @__PURE__ */ t(n, { label: "Page views", value: l((z = i.pages) == null ? void 0 : z.views), drill: a("page_views") }),
|
|
879
|
+
/* @__PURE__ */ t(n, { label: "People", value: l((D = i.pages) == null ? void 0 : D.people), drill: a("page_views") })
|
|
880
|
+
] }),
|
|
881
|
+
/* @__PURE__ */ t(
|
|
882
|
+
r,
|
|
883
|
+
{
|
|
884
|
+
title: "Top screens",
|
|
885
|
+
rows: s((B = i.pages) == null ? void 0 : B.top),
|
|
886
|
+
drill: (e) => a("page_views", e.page, e.page),
|
|
887
|
+
cols: [
|
|
888
|
+
{ h: "Screen", cell: (e) => e.page, className: b },
|
|
889
|
+
{ h: "Views", cell: (e) => l(e.views), num: !0 },
|
|
890
|
+
{ h: "People", cell: (e) => l(e.people), num: !0 },
|
|
891
|
+
{
|
|
892
|
+
h: "Time on screen",
|
|
893
|
+
cell: (e) => e.avg_seconds == null ? "–" : `${l(e.avg_seconds)} s`,
|
|
894
|
+
num: !0
|
|
895
|
+
},
|
|
896
|
+
{ h: "7-day avg views", cell: (e) => l(e.week_avg_views), num: !0 }
|
|
897
|
+
]
|
|
898
|
+
}
|
|
899
|
+
)
|
|
900
|
+
]
|
|
901
|
+
}
|
|
902
|
+
),
|
|
903
|
+
/* @__PURE__ */ t(
|
|
904
|
+
y,
|
|
905
|
+
{
|
|
906
|
+
id: "browser-errors",
|
|
907
|
+
title: "Browser errors",
|
|
908
|
+
empty: !s(i.client_errors).length,
|
|
909
|
+
gist: `${s(i.client_errors).length} kinds · ${s(i.client_errors).filter((e) => e.first_today).length} new today`,
|
|
910
|
+
children: /* @__PURE__ */ t(
|
|
911
|
+
r,
|
|
912
|
+
{
|
|
913
|
+
rows: s(i.client_errors),
|
|
914
|
+
drill: (e) => a("browser_errors", e.id, e.title),
|
|
915
|
+
cols: [
|
|
916
|
+
{ h: "Error", cell: (e) => e.title },
|
|
917
|
+
{ h: "Screen", cell: (e) => e.screen ?? "–", className: b },
|
|
918
|
+
{ h: "Times", cell: (e) => l(e.count), num: !0 },
|
|
919
|
+
{ h: "New", cell: (e) => e.first_today ? "first seen today" : "" }
|
|
920
|
+
]
|
|
921
|
+
}
|
|
922
|
+
)
|
|
923
|
+
}
|
|
924
|
+
),
|
|
925
|
+
/* @__PURE__ */ h(
|
|
926
|
+
y,
|
|
927
|
+
{
|
|
928
|
+
id: "adoption",
|
|
929
|
+
title: "Adoption",
|
|
930
|
+
empty: !s((E = i.adoption) == null ? void 0 : E.new_routes).length && !s((V = i.adoption) == null ? void 0 : V.rising).length,
|
|
931
|
+
gist: `${s((J = i.adoption) == null ? void 0 : J.new_routes).length} newly used · ${s((L = i.adoption) == null ? void 0 : L.rising).length} rising`,
|
|
932
|
+
children: [
|
|
933
|
+
/* @__PURE__ */ t(
|
|
934
|
+
r,
|
|
935
|
+
{
|
|
936
|
+
title: "Used today, not in the 7 days before",
|
|
937
|
+
rows: s((K = i.adoption) == null ? void 0 : K.new_routes),
|
|
938
|
+
drill: (e) => a("adoption", e.route, e.route),
|
|
939
|
+
cols: [
|
|
940
|
+
{ h: "Route", cell: (e) => e.route, className: b },
|
|
941
|
+
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
942
|
+
{ h: "People", cell: (e) => l(e.people), num: !0 }
|
|
943
|
+
]
|
|
944
|
+
}
|
|
945
|
+
),
|
|
946
|
+
/* @__PURE__ */ t(
|
|
947
|
+
r,
|
|
948
|
+
{
|
|
949
|
+
title: "Fastest risers",
|
|
950
|
+
rows: s((U = i.adoption) == null ? void 0 : U.rising),
|
|
951
|
+
drill: (e) => a("adoption", e.route, e.route),
|
|
952
|
+
cols: [
|
|
953
|
+
{ h: "Route", cell: (e) => e.route, className: b },
|
|
954
|
+
{ h: "Today", cell: (e) => l(e.today), num: !0 },
|
|
955
|
+
{ h: "7-day avg", cell: (e) => l(e.week_avg), num: !0 }
|
|
956
|
+
]
|
|
957
|
+
}
|
|
958
|
+
)
|
|
959
|
+
]
|
|
960
|
+
}
|
|
961
|
+
),
|
|
962
|
+
/* @__PURE__ */ h(
|
|
963
|
+
y,
|
|
964
|
+
{
|
|
965
|
+
id: "support",
|
|
966
|
+
title: "Support",
|
|
967
|
+
empty: !i.support,
|
|
968
|
+
gist: `${l((G = i.support) == null ? void 0 : G.opened)} opened · ${l((H = i.support) == null ? void 0 : H.closed)} closed · ${l((Q = i.support) == null ? void 0 : Q.open_total)} open`,
|
|
969
|
+
children: [
|
|
970
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
971
|
+
/* @__PURE__ */ t(n, { label: "Opened", value: l((X = i.support) == null ? void 0 : X.opened), drill: a("support") }),
|
|
972
|
+
/* @__PURE__ */ t(n, { label: "Closed", value: l((Y = i.support) == null ? void 0 : Y.closed), drill: a("support") }),
|
|
973
|
+
/* @__PURE__ */ t(n, { label: "Open now", value: l((Z = i.support) == null ? void 0 : Z.open_total), drill: a("support") }),
|
|
974
|
+
/* @__PURE__ */ t(
|
|
975
|
+
n,
|
|
976
|
+
{
|
|
977
|
+
label: "Oldest open",
|
|
978
|
+
value: ((ee = i.support) == null ? void 0 : ee.oldest_open_days) == null ? "–" : `${i.support.oldest_open_days} days`,
|
|
979
|
+
drill: a("support")
|
|
980
|
+
}
|
|
981
|
+
)
|
|
982
|
+
] }),
|
|
983
|
+
/* @__PURE__ */ t(
|
|
984
|
+
r,
|
|
985
|
+
{
|
|
986
|
+
title: "Topics",
|
|
987
|
+
rows: s((le = i.support) == null ? void 0 : le.topics),
|
|
988
|
+
drill: (e) => a("support", e.topic, e.topic),
|
|
989
|
+
cols: [
|
|
990
|
+
{ h: "Topic", cell: (e) => e.topic },
|
|
991
|
+
{ h: "Tickets", cell: (e) => l(e.n), num: !0 }
|
|
992
|
+
]
|
|
993
|
+
}
|
|
994
|
+
),
|
|
995
|
+
/* @__PURE__ */ t(
|
|
996
|
+
r,
|
|
997
|
+
{
|
|
998
|
+
title: "Opened today",
|
|
999
|
+
rows: s((te = i.support) == null ? void 0 : te.opened_today),
|
|
1000
|
+
drill: (e) => a("support", e.title, e.title),
|
|
1001
|
+
cols: [
|
|
1002
|
+
{ h: "Ticket", cell: (e) => e.title },
|
|
1003
|
+
{ h: "Status", cell: (e) => e.status }
|
|
1004
|
+
]
|
|
1005
|
+
}
|
|
1006
|
+
)
|
|
1007
|
+
]
|
|
1008
|
+
}
|
|
1009
|
+
),
|
|
1010
|
+
/* @__PURE__ */ h(
|
|
1011
|
+
y,
|
|
1012
|
+
{
|
|
1013
|
+
id: "ai",
|
|
1014
|
+
title: "AI use",
|
|
1015
|
+
empty: !i.ai,
|
|
1016
|
+
gist: `${l((se = i.ai) == null ? void 0 : se.calls)} calls · ${q((ae = i.ai) == null ? void 0 : ae.cost_usd, "usd")} · ${l((ie = i.ai) == null ? void 0 : ie.errors)} errors`,
|
|
1017
|
+
children: [
|
|
1018
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
1019
|
+
/* @__PURE__ */ t(n, { label: "Calls", value: l((re = i.ai) == null ? void 0 : re.calls), drill: a("ai_calls") }),
|
|
1020
|
+
/* @__PURE__ */ t(n, { label: "Spend", value: q((oe = i.ai) == null ? void 0 : oe.cost_usd, "usd"), drill: a("ai_calls") }),
|
|
1021
|
+
/* @__PURE__ */ t(n, { label: "Errors", value: l((ne = i.ai) == null ? void 0 : ne.errors), drill: a("ai_calls", "errors") }),
|
|
1022
|
+
/* @__PURE__ */ t(n, { label: "Refusals", value: l((ue = i.ai) == null ? void 0 : ue.refusals), drill: a("ai_calls", "refusals") }),
|
|
1023
|
+
/* @__PURE__ */ t(
|
|
1024
|
+
n,
|
|
1025
|
+
{
|
|
1026
|
+
label: "Thumbs up",
|
|
1027
|
+
value: l((ce = i.ai) == null ? void 0 : ce.thumbs_up),
|
|
1028
|
+
drill: a("ai_calls", "thumbs_up")
|
|
1029
|
+
}
|
|
1030
|
+
),
|
|
1031
|
+
/* @__PURE__ */ t(
|
|
1032
|
+
n,
|
|
1033
|
+
{
|
|
1034
|
+
label: "Thumbs down",
|
|
1035
|
+
value: l((de = i.ai) == null ? void 0 : de.thumbs_down),
|
|
1036
|
+
drill: a("ai_calls", "thumbs_down")
|
|
1037
|
+
}
|
|
1038
|
+
)
|
|
1039
|
+
] }),
|
|
1040
|
+
/* @__PURE__ */ t(
|
|
1041
|
+
r,
|
|
1042
|
+
{
|
|
1043
|
+
title: "By feature",
|
|
1044
|
+
rows: s((he = i.ai) == null ? void 0 : he.by_feature),
|
|
1045
|
+
drill: (e) => a("ai_calls", e.feature, e.feature),
|
|
1046
|
+
cols: [
|
|
1047
|
+
{ h: "Feature", cell: (e) => e.feature },
|
|
1048
|
+
{ h: "Calls", cell: (e) => l(e.calls), num: !0 },
|
|
1049
|
+
{ h: "Spend", cell: (e) => q(e.cost_usd, "usd"), num: !0 },
|
|
1050
|
+
{ h: "Errors", cell: (e) => l(e.errors), num: !0 }
|
|
1051
|
+
]
|
|
1052
|
+
}
|
|
1053
|
+
)
|
|
1054
|
+
]
|
|
1055
|
+
}
|
|
1056
|
+
),
|
|
1057
|
+
/* @__PURE__ */ t(
|
|
1058
|
+
y,
|
|
1059
|
+
{
|
|
1060
|
+
id: "data-quality",
|
|
1061
|
+
title: "Data quality",
|
|
1062
|
+
empty: !s(i.data_quality).length,
|
|
1063
|
+
gist: `${l(s(i.data_quality).reduce((e, c) => e + c.violations, 0))} problems in ${s(i.data_quality).length} collections`,
|
|
1064
|
+
children: /* @__PURE__ */ t(
|
|
1065
|
+
r,
|
|
1066
|
+
{
|
|
1067
|
+
rows: s(i.data_quality),
|
|
1068
|
+
drill: (e) => a("data_quality", e.collection, e.collection),
|
|
1069
|
+
cols: [
|
|
1070
|
+
{ h: "Collection", cell: (e) => e.collection, className: b },
|
|
1071
|
+
{ h: "Problems", cell: (e) => l(e.violations), num: !0 },
|
|
1072
|
+
{ h: "Last run", cell: (e) => l(e.prev), num: !0 },
|
|
1073
|
+
{ h: "Checked", cell: (e) => l(e.checked), num: !0 }
|
|
1074
|
+
]
|
|
1075
|
+
}
|
|
1076
|
+
)
|
|
1077
|
+
}
|
|
1078
|
+
),
|
|
1079
|
+
/* @__PURE__ */ t(
|
|
1080
|
+
y,
|
|
1081
|
+
{
|
|
1082
|
+
id: "owners",
|
|
1083
|
+
title: "Who has work waiting",
|
|
1084
|
+
empty: !s(i.owners).length,
|
|
1085
|
+
gist: `${s(i.owners).length} people · ${l(s(i.owners).reduce((e, c) => e + c.waiting, 0))} items`,
|
|
1086
|
+
children: /* @__PURE__ */ t(
|
|
1087
|
+
r,
|
|
1088
|
+
{
|
|
1089
|
+
rows: s(i.owners),
|
|
1090
|
+
drill: (e) => a("owners", e.person, e.person),
|
|
1091
|
+
cols: [
|
|
1092
|
+
{ h: "Person", cell: (e) => e.person },
|
|
1093
|
+
{ h: "Waiting", cell: (e) => l(e.waiting), num: !0 },
|
|
1094
|
+
{ h: "Past deadline", cell: (e) => l(e.sla_breached), num: !0 },
|
|
1095
|
+
{ h: "At risk", cell: (e) => l(e.at_risk), num: !0 }
|
|
1096
|
+
]
|
|
1097
|
+
}
|
|
1098
|
+
)
|
|
1099
|
+
}
|
|
1100
|
+
),
|
|
1101
|
+
ge.map((e) => /* @__PURE__ */ t(
|
|
1102
|
+
y,
|
|
1103
|
+
{
|
|
1104
|
+
id: `ext-${e.key}`,
|
|
1105
|
+
title: e.title,
|
|
1106
|
+
empty: !s(e.rows).length,
|
|
1107
|
+
gist: s(e.rows).slice(0, 2).map((c) => `${c.label} ${q(c.value, c.unit)}`).join(" · "),
|
|
1108
|
+
children: /* @__PURE__ */ t(
|
|
1109
|
+
r,
|
|
1110
|
+
{
|
|
1111
|
+
rows: s(e.rows),
|
|
1112
|
+
cols: [
|
|
1113
|
+
{ h: "Measure", cell: (c) => c.label },
|
|
1114
|
+
{ h: "Today", cell: (c) => q(c.value, c.unit), num: !0 },
|
|
1115
|
+
{ h: "7-day avg", cell: (c) => q(c.week_avg, c.unit), num: !0 },
|
|
1116
|
+
{ h: "Note", cell: (c) => c.note ?? "" }
|
|
1117
|
+
],
|
|
1118
|
+
drill: (c) => a("section", `${e.key}.${c.key ?? c.label}`, c.label)
|
|
1119
|
+
}
|
|
1120
|
+
)
|
|
1121
|
+
},
|
|
1122
|
+
e.key
|
|
1123
|
+
))
|
|
1124
|
+
] });
|
|
1125
|
+
}
|
|
1126
|
+
function A(N) {
|
|
1127
|
+
return `${(N + 11) % 12 + 1}:00 ${N < 12 || N === 24 ? "AM" : "PM"}`;
|
|
1128
|
+
}
|
|
1129
|
+
function $e(N) {
|
|
1130
|
+
return `${(N + 11) % 12 + 1}${N < 12 || N === 24 ? "a" : "p"}`;
|
|
1131
|
+
}
|
|
1132
|
+
export {
|
|
1133
|
+
qe as DigestSections
|
|
1134
|
+
};
|