@nivaro/react 0.3.147 → 0.3.148
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 +28 -0
- package/dist/index.js +767 -764
- package/dist/shared/components/AnnouncementBanner.js +91 -42
- package/dist/shared/components/hub-switcher/HubSwitcher.js +101 -0
- package/dist/shared/components/ops-report/DigestSections.js +119 -112
- package/dist/shared/components/panels/PipelinePanel.js +71 -71
- package/dist/shared/lib/error-hints.js +8 -1
- package/dist/shared/lib/error-message.js +73 -66
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { useDrill as
|
|
1
|
+
import { jsxs as h, jsx as t, Fragment as _e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as fe } from "../../lib/utils.js";
|
|
3
|
+
import { useDrill as xe, Drillable as ke } from "./drill.js";
|
|
4
4
|
import { arr as s, num as l, dr as a, ms as k, formatKpi as P } from "./format.js";
|
|
5
|
-
import { Section as y, SubTitle as
|
|
5
|
+
import { Section as y, SubTitle as Se, Stat as n, MiniTable as r } from "./ui.js";
|
|
6
6
|
const b = "font-mono text-[11.5px]";
|
|
7
|
-
function
|
|
8
|
-
var
|
|
9
|
-
const i = N.digest ?? {}, _ = i.traffic, o = i.speed, v = i.errors, $ = i.database, x = i.issues, f = i.jobs, c = i.integrations, S = i.mail, m = i.work, w = i.search,
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
7
|
+
function Me({ report: N }) {
|
|
8
|
+
var O, D, z, 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, pe, me;
|
|
9
|
+
const i = N.digest ?? {}, _ = i.traffic, o = i.speed, v = i.errors, $ = i.database, x = i.issues, f = i.jobs, c = i.integrations, S = i.mail, m = i.work, w = i.search, p = i.security, d = i.capacity, M = d != null && d.shared_process ? " (shared process)" : "", g = i.watch, R = s(_ == null ? void 0 : _.by_hour), ve = Math.max(1, ...R.map((e) => e.requests)), C = s(i.deploys), W = s(i.drains), A = s(i.imports), I = s(i.notifications), j = s(i.config_changes), ye = s(i.sections), q = xe(), F = s(m == null ? void 0 : m.backlog).reduce((e, u) => e + u.waiting, 0), we = (O = s(S == null ? void 0 : S.by_status).find((e) => e.status === "sent")) == null ? void 0 : O.n, be = s(S == null ? void 0 : S.by_status).filter((e) => e.status !== "sent").reduce((e, u) => e + u.n, 0);
|
|
10
|
+
return /* @__PURE__ */ h("div", { className: "space-y-1.5", "data-ops-sections": "", children: [
|
|
11
|
+
/* @__PURE__ */ h(
|
|
12
12
|
y,
|
|
13
13
|
{
|
|
14
14
|
id: "traffic",
|
|
@@ -16,10 +16,10 @@ function Te({ report: N }) {
|
|
|
16
16
|
empty: !_,
|
|
17
17
|
gist: `${l(_ == null ? void 0 : _.requests)} requests · ${l(_ == null ? void 0 : _.page_views)} page views${_ != null && _.peak ? ` · peak ${T(_.peak.hour)}` : ""}`,
|
|
18
18
|
children: [
|
|
19
|
-
R.length > 0 && /* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */ t(
|
|
19
|
+
R.length > 0 && /* @__PURE__ */ h("div", { children: [
|
|
20
|
+
/* @__PURE__ */ t(Se, { children: "Requests by hour" }),
|
|
21
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
|
-
|
|
22
|
+
ke,
|
|
23
23
|
{
|
|
24
24
|
target: a("requests_by_hour", e.hour, T(e.hour)),
|
|
25
25
|
tip: `${T(e.hour)} · ${l(e.requests)} requests · ${l(e.people)} people${e.e5 ? ` · ${e.e5} server errors` : ""}`,
|
|
@@ -27,19 +27,19 @@ function Te({ report: N }) {
|
|
|
27
27
|
children: /* @__PURE__ */ t(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
|
-
className:
|
|
30
|
+
className: fe(
|
|
31
31
|
"w-full rounded-t-sm",
|
|
32
32
|
e.e5 > 0 ? "bg-red-500" : "bg-nvr-cyan/70 group-hover:bg-nvr-cyan"
|
|
33
33
|
),
|
|
34
|
-
style: { height: `${Math.max(3, e.requests /
|
|
34
|
+
style: { height: `${Math.max(3, e.requests / ve * 100)}%` }
|
|
35
35
|
}
|
|
36
36
|
)
|
|
37
37
|
},
|
|
38
38
|
e.hour
|
|
39
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:
|
|
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: Ne(e.hour) }, e.hour)) })
|
|
41
41
|
] }),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
43
43
|
/* @__PURE__ */ t(n, { label: "Requests", value: l(_ == null ? void 0 : _.requests), drill: a("requests") }),
|
|
44
44
|
/* @__PURE__ */ t(n, { label: "Page views", value: l(_ == null ? void 0 : _.page_views), drill: a("page_views") }),
|
|
45
45
|
(_ == null ? void 0 : _.peak) && /* @__PURE__ */ t(
|
|
@@ -54,7 +54,7 @@ function Te({ report: N }) {
|
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ h(
|
|
58
58
|
y,
|
|
59
59
|
{
|
|
60
60
|
id: "speed",
|
|
@@ -62,7 +62,7 @@ function Te({ report: N }) {
|
|
|
62
62
|
empty: !o,
|
|
63
63
|
gist: `p95 ${k(o == null ? void 0 : o.p95)} · p99 ${k(o == null ? void 0 : o.p99)} · ${l(o == null ? void 0 : o.over5s)} over 5 s`,
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
66
66
|
/* @__PURE__ */ t(n, { label: "Average", value: k(o == null ? void 0 : o.avg_ms), drill: a("over5s") }),
|
|
67
67
|
/* @__PURE__ */ t(n, { label: "Median", value: k(o == null ? void 0 : o.p50), drill: a("over5s") }),
|
|
68
68
|
/* @__PURE__ */ t(n, { label: "p90", value: k(o == null ? void 0 : o.p90), drill: a("over5s") }),
|
|
@@ -127,7 +127,7 @@ function Te({ report: N }) {
|
|
|
127
127
|
]
|
|
128
128
|
}
|
|
129
129
|
),
|
|
130
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ h(
|
|
131
131
|
y,
|
|
132
132
|
{
|
|
133
133
|
id: "errors",
|
|
@@ -135,7 +135,7 @@ function Te({ report: N }) {
|
|
|
135
135
|
empty: !v,
|
|
136
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
137
|
children: [
|
|
138
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
139
139
|
/* @__PURE__ */ t(
|
|
140
140
|
n,
|
|
141
141
|
{
|
|
@@ -194,19 +194,19 @@ function Te({ report: N }) {
|
|
|
194
194
|
]
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ h(
|
|
198
198
|
y,
|
|
199
199
|
{
|
|
200
200
|
id: "deploys",
|
|
201
201
|
title: "Deploys and drains",
|
|
202
|
-
empty: !
|
|
203
|
-
gist: `${
|
|
202
|
+
empty: !C.length && !W.length,
|
|
203
|
+
gist: `${C.length} deploys · ${W.length} drains`,
|
|
204
204
|
children: [
|
|
205
205
|
/* @__PURE__ */ t(
|
|
206
206
|
r,
|
|
207
207
|
{
|
|
208
208
|
title: "Deploys",
|
|
209
|
-
rows:
|
|
209
|
+
rows: C,
|
|
210
210
|
drill: (e) => a("deploys", e.version, e.version ?? e.at),
|
|
211
211
|
limit: 30,
|
|
212
212
|
cols: [
|
|
@@ -220,7 +220,7 @@ function Te({ report: N }) {
|
|
|
220
220
|
r,
|
|
221
221
|
{
|
|
222
222
|
title: "Drains (requests answered 503)",
|
|
223
|
-
rows:
|
|
223
|
+
rows: W,
|
|
224
224
|
drill: (e) => a("deploys", e.at, e.at),
|
|
225
225
|
cols: [
|
|
226
226
|
{ h: "At", cell: (e) => e.at },
|
|
@@ -231,7 +231,7 @@ function Te({ report: N }) {
|
|
|
231
231
|
]
|
|
232
232
|
}
|
|
233
233
|
),
|
|
234
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ h(
|
|
235
235
|
y,
|
|
236
236
|
{
|
|
237
237
|
id: "database",
|
|
@@ -281,7 +281,7 @@ function Te({ report: N }) {
|
|
|
281
281
|
]
|
|
282
282
|
}
|
|
283
283
|
),
|
|
284
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ h(
|
|
285
285
|
y,
|
|
286
286
|
{
|
|
287
287
|
id: "issues",
|
|
@@ -320,7 +320,7 @@ function Te({ report: N }) {
|
|
|
320
320
|
]
|
|
321
321
|
}
|
|
322
322
|
),
|
|
323
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ h(
|
|
324
324
|
y,
|
|
325
325
|
{
|
|
326
326
|
id: "jobs",
|
|
@@ -328,7 +328,7 @@ function Te({ report: N }) {
|
|
|
328
328
|
empty: !f,
|
|
329
329
|
gist: `${l(f == null ? void 0 : f.runs)} runs · ${s(f == null ? void 0 : f.failed).length} failed`,
|
|
330
330
|
children: [
|
|
331
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
332
332
|
/* @__PURE__ */ t(n, { label: "Runs", value: l(f == null ? void 0 : f.runs), drill: a("job") }),
|
|
333
333
|
/* @__PURE__ */ t(n, { label: "Failed", value: l(s(f == null ? void 0 : f.failed).length), drill: a("job_failures") })
|
|
334
334
|
] }),
|
|
@@ -363,7 +363,7 @@ function Te({ report: N }) {
|
|
|
363
363
|
]
|
|
364
364
|
}
|
|
365
365
|
),
|
|
366
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ h(
|
|
367
367
|
y,
|
|
368
368
|
{
|
|
369
369
|
id: "integrations",
|
|
@@ -394,7 +394,7 @@ function Te({ report: N }) {
|
|
|
394
394
|
cell: (e) => {
|
|
395
395
|
if (!e.week_avg_ms) return "–";
|
|
396
396
|
const u = (e.avg_ms - e.week_avg_ms) / e.week_avg_ms * 100;
|
|
397
|
-
return Math.abs(u) < 5 ? "same" : /* @__PURE__ */
|
|
397
|
+
return Math.abs(u) < 5 ? "same" : /* @__PURE__ */ h(
|
|
398
398
|
"span",
|
|
399
399
|
{
|
|
400
400
|
className: u > 0 ? "text-red-600 dark:text-red-400" : "text-emerald-700 dark:text-emerald-400",
|
|
@@ -490,13 +490,13 @@ function Te({ report: N }) {
|
|
|
490
490
|
)
|
|
491
491
|
}
|
|
492
492
|
),
|
|
493
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ h(
|
|
494
494
|
y,
|
|
495
495
|
{
|
|
496
496
|
id: "mail",
|
|
497
497
|
title: "Mail",
|
|
498
498
|
empty: !s(S == null ? void 0 : S.by_status).length,
|
|
499
|
-
gist: `${l(
|
|
499
|
+
gist: `${l(we)} sent · ${l(be)} not sent`,
|
|
500
500
|
children: [
|
|
501
501
|
/* @__PURE__ */ t(
|
|
502
502
|
r,
|
|
@@ -529,12 +529,12 @@ function Te({ report: N }) {
|
|
|
529
529
|
{
|
|
530
530
|
id: "notifications",
|
|
531
531
|
title: "Notifications",
|
|
532
|
-
empty: !
|
|
533
|
-
gist: `${l(
|
|
532
|
+
empty: !I.length,
|
|
533
|
+
gist: `${l(I.reduce((e, u) => e + u.n, 0))} sent`,
|
|
534
534
|
children: /* @__PURE__ */ t(
|
|
535
535
|
r,
|
|
536
536
|
{
|
|
537
|
-
rows:
|
|
537
|
+
rows: I,
|
|
538
538
|
drill: (e) => a("notifications", e.category, e.category),
|
|
539
539
|
cols: [
|
|
540
540
|
{ h: "Category", cell: (e) => e.category },
|
|
@@ -546,18 +546,18 @@ function Te({ report: N }) {
|
|
|
546
546
|
)
|
|
547
547
|
}
|
|
548
548
|
),
|
|
549
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ h(
|
|
550
550
|
y,
|
|
551
551
|
{
|
|
552
552
|
id: "work",
|
|
553
553
|
title: "Work and backlog",
|
|
554
554
|
empty: !m,
|
|
555
|
-
gist: `${l(m == null ? void 0 : m.moves)} moves by ${l(m == null ? void 0 : m.movers)} people · ${l(
|
|
555
|
+
gist: `${l(m == null ? void 0 : m.moves)} moves by ${l(m == null ? void 0 : m.movers)} people · ${l(F)} waiting · ${s(m == null ? void 0 : m.sla_breaches).reduce((e, u) => e + u.breached, 0)} past deadline`,
|
|
556
556
|
children: [
|
|
557
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
558
558
|
/* @__PURE__ */ t(n, { label: "Moves", value: l(m == null ? void 0 : m.moves), drill: a("moves") }),
|
|
559
559
|
/* @__PURE__ */ t(n, { label: "People moving work", value: l(m == null ? void 0 : m.movers), drill: a("moves") }),
|
|
560
|
-
/* @__PURE__ */ t(n, { label: "Waiting now", value: l(
|
|
560
|
+
/* @__PURE__ */ t(n, { label: "Waiting now", value: l(F), drill: a("backlog") })
|
|
561
561
|
] }),
|
|
562
562
|
/* @__PURE__ */ t(
|
|
563
563
|
r,
|
|
@@ -617,7 +617,7 @@ function Te({ report: N }) {
|
|
|
617
617
|
]
|
|
618
618
|
}
|
|
619
619
|
),
|
|
620
|
-
/* @__PURE__ */
|
|
620
|
+
/* @__PURE__ */ h(
|
|
621
621
|
y,
|
|
622
622
|
{
|
|
623
623
|
id: "search",
|
|
@@ -625,7 +625,7 @@ function Te({ report: N }) {
|
|
|
625
625
|
empty: !w,
|
|
626
626
|
gist: `${l(w == null ? void 0 : w.n)} searches · ${l(w == null ? void 0 : w.zero)} found nothing · ${k(w == null ? void 0 : w.avg_ms)} average`,
|
|
627
627
|
children: [
|
|
628
|
-
/* @__PURE__ */
|
|
628
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
629
629
|
/* @__PURE__ */ t(n, { label: "Searches", value: l(w == null ? void 0 : w.n), drill: a("searches") }),
|
|
630
630
|
/* @__PURE__ */ t(n, { label: "People searching", value: l(w == null ? void 0 : w.people), drill: a("searches") }),
|
|
631
631
|
/* @__PURE__ */ t(n, { label: "Found nothing", value: l(w == null ? void 0 : w.zero), drill: a("search_zero") })
|
|
@@ -650,12 +650,12 @@ function Te({ report: N }) {
|
|
|
650
650
|
{
|
|
651
651
|
id: "config",
|
|
652
652
|
title: "Config changes",
|
|
653
|
-
empty: !
|
|
654
|
-
gist: `${
|
|
653
|
+
empty: !j.length,
|
|
654
|
+
gist: `${j.length} changes`,
|
|
655
655
|
children: /* @__PURE__ */ t(
|
|
656
656
|
r,
|
|
657
657
|
{
|
|
658
|
-
rows:
|
|
658
|
+
rows: j,
|
|
659
659
|
drill: (e) => a("config_changes", e.collection, e.collection),
|
|
660
660
|
limit: 30,
|
|
661
661
|
cols: [
|
|
@@ -672,31 +672,31 @@ function Te({ report: N }) {
|
|
|
672
672
|
)
|
|
673
673
|
}
|
|
674
674
|
),
|
|
675
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ h(
|
|
676
676
|
y,
|
|
677
677
|
{
|
|
678
678
|
id: "security",
|
|
679
679
|
title: "Security",
|
|
680
|
-
empty: !
|
|
681
|
-
gist: `${l(
|
|
680
|
+
empty: !p,
|
|
681
|
+
gist: `${l(p == null ? void 0 : p.new_places)} new places · ${l(p == null ? void 0 : p.failed_sign_ins)} failed sign-ins · ${s(p == null ? void 0 : p.view_as).length} View-as`,
|
|
682
682
|
children: [
|
|
683
|
-
/* @__PURE__ */
|
|
684
|
-
/* @__PURE__ */ t(n, { label: "New places", value: l(
|
|
683
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
684
|
+
/* @__PURE__ */ t(n, { label: "New places", value: l(p == null ? void 0 : p.new_places), drill: a("new_places") }),
|
|
685
685
|
/* @__PURE__ */ t(
|
|
686
686
|
n,
|
|
687
687
|
{
|
|
688
688
|
label: "Failed sign-ins",
|
|
689
|
-
value: l(
|
|
689
|
+
value: l(p == null ? void 0 : p.failed_sign_ins),
|
|
690
690
|
drill: a("failed_sign_ins")
|
|
691
691
|
}
|
|
692
692
|
),
|
|
693
|
-
/* @__PURE__ */ t(n, { label: "Access granted", value: l(
|
|
694
|
-
/* @__PURE__ */ t(n, { label: "Access requests", value: l(
|
|
693
|
+
/* @__PURE__ */ t(n, { label: "Access granted", value: l(p == null ? void 0 : p.access_grants), drill: a("access") }),
|
|
694
|
+
/* @__PURE__ */ t(n, { label: "Access requests", value: l(p == null ? void 0 : p.access_requests), drill: a("access") }),
|
|
695
695
|
/* @__PURE__ */ t(
|
|
696
696
|
n,
|
|
697
697
|
{
|
|
698
698
|
label: "Waiting for authorization",
|
|
699
|
-
value: l(
|
|
699
|
+
value: l(p == null ? void 0 : p.waiting_authorization),
|
|
700
700
|
drill: a("access")
|
|
701
701
|
}
|
|
702
702
|
)
|
|
@@ -705,7 +705,7 @@ function Te({ report: N }) {
|
|
|
705
705
|
r,
|
|
706
706
|
{
|
|
707
707
|
title: "View-as",
|
|
708
|
-
rows: s(
|
|
708
|
+
rows: s(p == null ? void 0 : p.view_as),
|
|
709
709
|
drill: (e) => a("view_as_sessions", e.who, e.who ?? "View-as"),
|
|
710
710
|
cols: [
|
|
711
711
|
{ h: "Who", cell: (e) => e.who ?? "Unknown" },
|
|
@@ -717,7 +717,7 @@ function Te({ report: N }) {
|
|
|
717
717
|
r,
|
|
718
718
|
{
|
|
719
719
|
title: "Role changes",
|
|
720
|
-
rows: s(
|
|
720
|
+
rows: s(p == null ? void 0 : p.role_changes),
|
|
721
721
|
drill: (e) => a("role_changes", e.person, e.person ?? "Role change"),
|
|
722
722
|
cols: [
|
|
723
723
|
{ h: "At", cell: (e) => e.at },
|
|
@@ -730,7 +730,7 @@ function Te({ report: N }) {
|
|
|
730
730
|
r,
|
|
731
731
|
{
|
|
732
732
|
title: "API key use",
|
|
733
|
-
rows: s(
|
|
733
|
+
rows: s(p == null ? void 0 : p.api_key_use),
|
|
734
734
|
drill: (e) => a("api_key_use", e.name, e.name),
|
|
735
735
|
cols: [
|
|
736
736
|
{ h: "Key", cell: (e) => e.name },
|
|
@@ -741,48 +741,55 @@ function Te({ report: N }) {
|
|
|
741
741
|
]
|
|
742
742
|
}
|
|
743
743
|
),
|
|
744
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ h(
|
|
745
745
|
y,
|
|
746
746
|
{
|
|
747
747
|
id: "capacity",
|
|
748
748
|
title: "Capacity",
|
|
749
|
-
empty: !
|
|
750
|
-
gist: `${(
|
|
749
|
+
empty: !d,
|
|
750
|
+
gist: `${(d == null ? void 0 : d.memory_mb) != null ? `${l(d.memory_mb)} MB memory · ` : ""}${s(d == null ? void 0 : d.restarts).length} restarts`,
|
|
751
751
|
children: [
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
-
(
|
|
752
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
753
|
+
(d == null ? void 0 : d.pool) && /* @__PURE__ */ h(_e, { children: [
|
|
754
754
|
/* @__PURE__ */ t(
|
|
755
755
|
n,
|
|
756
756
|
{
|
|
757
|
-
label:
|
|
758
|
-
value: l(
|
|
757
|
+
label: `Request connections${M}`,
|
|
758
|
+
value: l(d.pool.main_max),
|
|
759
759
|
drill: a("capacity")
|
|
760
760
|
}
|
|
761
761
|
),
|
|
762
762
|
/* @__PURE__ */ t(
|
|
763
763
|
n,
|
|
764
764
|
{
|
|
765
|
-
label:
|
|
766
|
-
value: l(
|
|
765
|
+
label: `Background connections${M}`,
|
|
766
|
+
value: l(d.pool.background_max),
|
|
767
767
|
drill: a("capacity")
|
|
768
768
|
}
|
|
769
769
|
)
|
|
770
770
|
] }),
|
|
771
|
-
(
|
|
772
|
-
|
|
771
|
+
(d == null ? void 0 : d.memory_mb) != null && /* @__PURE__ */ t(
|
|
772
|
+
n,
|
|
773
|
+
{
|
|
774
|
+
label: `Memory${M}`,
|
|
775
|
+
value: `${l(d.memory_mb)} MB`,
|
|
776
|
+
drill: a("capacity")
|
|
777
|
+
}
|
|
778
|
+
),
|
|
779
|
+
(d == null ? void 0 : d.backups) && /* @__PURE__ */ h(_e, { children: [
|
|
773
780
|
/* @__PURE__ */ t(
|
|
774
781
|
n,
|
|
775
782
|
{
|
|
776
|
-
label: `Last full backup (${
|
|
777
|
-
value:
|
|
783
|
+
label: `Last full backup (${d.backups.last_full ?? "unknown"})`,
|
|
784
|
+
value: d.backups.last_full_age_hours == null ? "–" : `${l(d.backups.last_full_age_hours, 1)} h ago`,
|
|
778
785
|
drill: a("capacity")
|
|
779
786
|
}
|
|
780
787
|
),
|
|
781
788
|
/* @__PURE__ */ t(
|
|
782
789
|
n,
|
|
783
790
|
{
|
|
784
|
-
label: `Last log backup (${
|
|
785
|
-
value:
|
|
791
|
+
label: `Last log backup (${d.backups.last_log ?? "unknown"})`,
|
|
792
|
+
value: d.backups.last_log_age_hours == null ? "–" : `${l(d.backups.last_log_age_hours, 1)} h ago`,
|
|
786
793
|
drill: a("capacity")
|
|
787
794
|
}
|
|
788
795
|
)
|
|
@@ -792,7 +799,7 @@ function Te({ report: N }) {
|
|
|
792
799
|
r,
|
|
793
800
|
{
|
|
794
801
|
title: "Disk",
|
|
795
|
-
rows: s(
|
|
802
|
+
rows: s(d == null ? void 0 : d.disk),
|
|
796
803
|
drill: () => a("capacity"),
|
|
797
804
|
cols: [
|
|
798
805
|
{ h: "Path", cell: (e) => e.path, className: b },
|
|
@@ -805,7 +812,7 @@ function Te({ report: N }) {
|
|
|
805
812
|
r,
|
|
806
813
|
{
|
|
807
814
|
title: "Restarts",
|
|
808
|
-
rows: s(
|
|
815
|
+
rows: s(d == null ? void 0 : d.restarts),
|
|
809
816
|
drill: () => a("deploys"),
|
|
810
817
|
cols: [
|
|
811
818
|
{ h: "At", cell: (e) => e.at },
|
|
@@ -816,7 +823,7 @@ function Te({ report: N }) {
|
|
|
816
823
|
]
|
|
817
824
|
}
|
|
818
825
|
),
|
|
819
|
-
/* @__PURE__ */
|
|
826
|
+
/* @__PURE__ */ h(
|
|
820
827
|
y,
|
|
821
828
|
{
|
|
822
829
|
id: "watch",
|
|
@@ -867,23 +874,23 @@ function Te({ report: N }) {
|
|
|
867
874
|
]
|
|
868
875
|
}
|
|
869
876
|
),
|
|
870
|
-
/* @__PURE__ */
|
|
877
|
+
/* @__PURE__ */ h(
|
|
871
878
|
y,
|
|
872
879
|
{
|
|
873
880
|
id: "pages",
|
|
874
881
|
title: "Screens people opened",
|
|
875
882
|
empty: !i.pages,
|
|
876
|
-
gist: `${l((
|
|
883
|
+
gist: `${l((D = i.pages) == null ? void 0 : D.views)} views · ${l((z = i.pages) == null ? void 0 : z.people)} people`,
|
|
877
884
|
children: [
|
|
878
|
-
/* @__PURE__ */
|
|
879
|
-
/* @__PURE__ */ t(n, { label: "Page views", value: l((
|
|
880
|
-
/* @__PURE__ */ t(n, { label: "People", value: l((
|
|
885
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
886
|
+
/* @__PURE__ */ t(n, { label: "Page views", value: l((B = i.pages) == null ? void 0 : B.views), drill: a("page_views") }),
|
|
887
|
+
/* @__PURE__ */ t(n, { label: "People", value: l((E = i.pages) == null ? void 0 : E.people), drill: a("page_views") })
|
|
881
888
|
] }),
|
|
882
889
|
/* @__PURE__ */ t(
|
|
883
890
|
r,
|
|
884
891
|
{
|
|
885
892
|
title: "Top screens",
|
|
886
|
-
rows: s((
|
|
893
|
+
rows: s((V = i.pages) == null ? void 0 : V.top),
|
|
887
894
|
drill: (e) => a("page_views", e.page, e.page),
|
|
888
895
|
cols: [
|
|
889
896
|
{ h: "Screen", cell: (e) => e.page, className: b },
|
|
@@ -923,19 +930,19 @@ function Te({ report: N }) {
|
|
|
923
930
|
)
|
|
924
931
|
}
|
|
925
932
|
),
|
|
926
|
-
/* @__PURE__ */
|
|
933
|
+
/* @__PURE__ */ h(
|
|
927
934
|
y,
|
|
928
935
|
{
|
|
929
936
|
id: "adoption",
|
|
930
937
|
title: "Adoption",
|
|
931
|
-
empty: !s((
|
|
932
|
-
gist: `${s((
|
|
938
|
+
empty: !s((J = i.adoption) == null ? void 0 : J.new_routes).length && !s((L = i.adoption) == null ? void 0 : L.rising).length,
|
|
939
|
+
gist: `${s((K = i.adoption) == null ? void 0 : K.new_routes).length} newly used · ${s((U = i.adoption) == null ? void 0 : U.rising).length} rising`,
|
|
933
940
|
children: [
|
|
934
941
|
/* @__PURE__ */ t(
|
|
935
942
|
r,
|
|
936
943
|
{
|
|
937
944
|
title: "Used today, not in the 7 days before",
|
|
938
|
-
rows: s((
|
|
945
|
+
rows: s((G = i.adoption) == null ? void 0 : G.new_routes),
|
|
939
946
|
drill: (e) => a("adoption", e.route, e.route),
|
|
940
947
|
cols: [
|
|
941
948
|
{ h: "Route", cell: (e) => e.route, className: b },
|
|
@@ -948,7 +955,7 @@ function Te({ report: N }) {
|
|
|
948
955
|
r,
|
|
949
956
|
{
|
|
950
957
|
title: "Fastest risers",
|
|
951
|
-
rows: s((
|
|
958
|
+
rows: s((H = i.adoption) == null ? void 0 : H.rising),
|
|
952
959
|
drill: (e) => a("adoption", e.route, e.route),
|
|
953
960
|
cols: [
|
|
954
961
|
{ h: "Route", cell: (e) => e.route, className: b },
|
|
@@ -960,23 +967,23 @@ function Te({ report: N }) {
|
|
|
960
967
|
]
|
|
961
968
|
}
|
|
962
969
|
),
|
|
963
|
-
/* @__PURE__ */
|
|
970
|
+
/* @__PURE__ */ h(
|
|
964
971
|
y,
|
|
965
972
|
{
|
|
966
973
|
id: "support",
|
|
967
974
|
title: "Support",
|
|
968
975
|
empty: !i.support,
|
|
969
|
-
gist: `${l((
|
|
976
|
+
gist: `${l((Q = i.support) == null ? void 0 : Q.opened)} opened · ${l((X = i.support) == null ? void 0 : X.closed)} closed · ${l((Y = i.support) == null ? void 0 : Y.open_total)} open`,
|
|
970
977
|
children: [
|
|
971
|
-
/* @__PURE__ */
|
|
972
|
-
/* @__PURE__ */ t(n, { label: "Opened", value: l((
|
|
973
|
-
/* @__PURE__ */ t(n, { label: "Closed", value: l((
|
|
974
|
-
/* @__PURE__ */ t(n, { label: "Open now", value: l((
|
|
978
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
979
|
+
/* @__PURE__ */ t(n, { label: "Opened", value: l((Z = i.support) == null ? void 0 : Z.opened), drill: a("support") }),
|
|
980
|
+
/* @__PURE__ */ t(n, { label: "Closed", value: l((ee = i.support) == null ? void 0 : ee.closed), drill: a("support") }),
|
|
981
|
+
/* @__PURE__ */ t(n, { label: "Open now", value: l((le = i.support) == null ? void 0 : le.open_total), drill: a("support") }),
|
|
975
982
|
/* @__PURE__ */ t(
|
|
976
983
|
n,
|
|
977
984
|
{
|
|
978
985
|
label: "Oldest open",
|
|
979
|
-
value: ((
|
|
986
|
+
value: ((te = i.support) == null ? void 0 : te.oldest_open_days) == null ? "–" : `${i.support.oldest_open_days} days`,
|
|
980
987
|
drill: a("support")
|
|
981
988
|
}
|
|
982
989
|
)
|
|
@@ -985,7 +992,7 @@ function Te({ report: N }) {
|
|
|
985
992
|
r,
|
|
986
993
|
{
|
|
987
994
|
title: "Topics",
|
|
988
|
-
rows: s((
|
|
995
|
+
rows: s((se = i.support) == null ? void 0 : se.topics),
|
|
989
996
|
drill: (e) => a("support", e.topic, e.topic),
|
|
990
997
|
cols: [
|
|
991
998
|
{ h: "Topic", cell: (e) => e.topic },
|
|
@@ -997,7 +1004,7 @@ function Te({ report: N }) {
|
|
|
997
1004
|
r,
|
|
998
1005
|
{
|
|
999
1006
|
title: "Opened today",
|
|
1000
|
-
rows: s((
|
|
1007
|
+
rows: s((ae = i.support) == null ? void 0 : ae.opened_today),
|
|
1001
1008
|
drill: (e) => a("support", e.title, e.title),
|
|
1002
1009
|
cols: [
|
|
1003
1010
|
{ h: "Ticket", cell: (e) => e.title },
|
|
@@ -1008,24 +1015,24 @@ function Te({ report: N }) {
|
|
|
1008
1015
|
]
|
|
1009
1016
|
}
|
|
1010
1017
|
),
|
|
1011
|
-
/* @__PURE__ */
|
|
1018
|
+
/* @__PURE__ */ h(
|
|
1012
1019
|
y,
|
|
1013
1020
|
{
|
|
1014
1021
|
id: "ai",
|
|
1015
1022
|
title: "AI use",
|
|
1016
1023
|
empty: !i.ai,
|
|
1017
|
-
gist: `${l((
|
|
1024
|
+
gist: `${l((ie = i.ai) == null ? void 0 : ie.calls)} calls · ${P((re = i.ai) == null ? void 0 : re.cost_usd, "usd")} · ${l((oe = i.ai) == null ? void 0 : oe.errors)} errors`,
|
|
1018
1025
|
children: [
|
|
1019
|
-
/* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */ t(n, { label: "Calls", value: l((
|
|
1021
|
-
/* @__PURE__ */ t(n, { label: "Spend", value: P((
|
|
1022
|
-
/* @__PURE__ */ t(n, { label: "Errors", value: l((
|
|
1023
|
-
/* @__PURE__ */ t(n, { label: "Refusals", value: l((
|
|
1026
|
+
/* @__PURE__ */ h("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
1027
|
+
/* @__PURE__ */ t(n, { label: "Calls", value: l((ne = i.ai) == null ? void 0 : ne.calls), drill: a("ai_calls") }),
|
|
1028
|
+
/* @__PURE__ */ t(n, { label: "Spend", value: P((ue = i.ai) == null ? void 0 : ue.cost_usd, "usd"), drill: a("ai_calls") }),
|
|
1029
|
+
/* @__PURE__ */ t(n, { label: "Errors", value: l((ce = i.ai) == null ? void 0 : ce.errors), drill: a("ai_calls", "errors") }),
|
|
1030
|
+
/* @__PURE__ */ t(n, { label: "Refusals", value: l((de = i.ai) == null ? void 0 : de.refusals), drill: a("ai_calls", "refusals") }),
|
|
1024
1031
|
/* @__PURE__ */ t(
|
|
1025
1032
|
n,
|
|
1026
1033
|
{
|
|
1027
1034
|
label: "Thumbs up",
|
|
1028
|
-
value: l((
|
|
1035
|
+
value: l((he = i.ai) == null ? void 0 : he.thumbs_up),
|
|
1029
1036
|
drill: a("ai_calls", "thumbs_up")
|
|
1030
1037
|
}
|
|
1031
1038
|
),
|
|
@@ -1033,7 +1040,7 @@ function Te({ report: N }) {
|
|
|
1033
1040
|
n,
|
|
1034
1041
|
{
|
|
1035
1042
|
label: "Thumbs down",
|
|
1036
|
-
value: l((
|
|
1043
|
+
value: l((pe = i.ai) == null ? void 0 : pe.thumbs_down),
|
|
1037
1044
|
drill: a("ai_calls", "thumbs_down")
|
|
1038
1045
|
}
|
|
1039
1046
|
)
|
|
@@ -1042,7 +1049,7 @@ function Te({ report: N }) {
|
|
|
1042
1049
|
r,
|
|
1043
1050
|
{
|
|
1044
1051
|
title: "By feature",
|
|
1045
|
-
rows: s((
|
|
1052
|
+
rows: s((me = i.ai) == null ? void 0 : me.by_feature),
|
|
1046
1053
|
drill: (e) => a("ai_calls", e.feature, e.feature),
|
|
1047
1054
|
cols: [
|
|
1048
1055
|
{ h: "Feature", cell: (e) => e.feature },
|
|
@@ -1099,7 +1106,7 @@ function Te({ report: N }) {
|
|
|
1099
1106
|
)
|
|
1100
1107
|
}
|
|
1101
1108
|
),
|
|
1102
|
-
|
|
1109
|
+
ye.map((e) => /* @__PURE__ */ t(
|
|
1103
1110
|
y,
|
|
1104
1111
|
{
|
|
1105
1112
|
id: `ext-${e.key}`,
|
|
@@ -1116,16 +1123,16 @@ function Te({ report: N }) {
|
|
|
1116
1123
|
{ h: "7-day avg", cell: (u) => P(u.week_avg, u.unit), num: !0 },
|
|
1117
1124
|
{
|
|
1118
1125
|
h: "Note",
|
|
1119
|
-
cell: (u) => u.href && (q != null && q.link) ? /* @__PURE__ */
|
|
1126
|
+
cell: (u) => u.href && (q != null && q.link) ? /* @__PURE__ */ h("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1120
1127
|
u.note ?? "",
|
|
1121
1128
|
/* @__PURE__ */ t(
|
|
1122
1129
|
"button",
|
|
1123
1130
|
{
|
|
1124
1131
|
type: "button",
|
|
1125
1132
|
"data-ops-section-link": u.href,
|
|
1126
|
-
onClick: (
|
|
1127
|
-
var
|
|
1128
|
-
|
|
1133
|
+
onClick: ($e) => {
|
|
1134
|
+
var ge;
|
|
1135
|
+
$e.stopPropagation(), (ge = q.link) == null || ge.call(q, u.href);
|
|
1129
1136
|
},
|
|
1130
1137
|
className: "font-medium text-nvr-cyan hover:underline",
|
|
1131
1138
|
children: "Open"
|
|
@@ -1145,9 +1152,9 @@ function Te({ report: N }) {
|
|
|
1145
1152
|
function T(N) {
|
|
1146
1153
|
return `${(N + 11) % 12 + 1}:00 ${N < 12 || N === 24 ? "AM" : "PM"}`;
|
|
1147
1154
|
}
|
|
1148
|
-
function
|
|
1155
|
+
function Ne(N) {
|
|
1149
1156
|
return `${(N + 11) % 12 + 1}${N < 12 || N === 24 ? "a" : "p"}`;
|
|
1150
1157
|
}
|
|
1151
1158
|
export {
|
|
1152
|
-
|
|
1159
|
+
Me as DigestSections
|
|
1153
1160
|
};
|