@nivaro/react 0.3.146 → 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.
@@ -1,14 +1,14 @@
1
- import { jsxs as d, jsx as t, Fragment as ge } from "react/jsx-runtime";
2
- import { cn as $e } from "../../lib/utils.js";
3
- import { useDrill as fe, Drillable as xe } from "./drill.js";
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 ke, Stat as n, MiniTable as r } from "./ui.js";
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 Te({ report: N }) {
8
- var F, 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;
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, h = i.security, p = i.capacity, g = i.watch, R = s(_ == null ? void 0 : _.by_hour), _e = Math.max(1, ...R.map((e) => e.requests)), M = s(i.deploys), C = s(i.drains), A = s(i.imports), W = s(i.notifications), I = s(i.config_changes), ve = s(i.sections), q = fe(), j = s(m == null ? void 0 : m.backlog).reduce((e, u) => e + u.waiting, 0), ye = (F = s(S == null ? void 0 : S.by_status).find((e) => e.status === "sent")) == null ? void 0 : F.n, we = s(S == null ? void 0 : S.by_status).filter((e) => e.status !== "sent").reduce((e, u) => e + u.n, 0);
10
- return /* @__PURE__ */ d("div", { className: "space-y-1.5", "data-ops-sections": "", children: [
11
- /* @__PURE__ */ d(
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__ */ d("div", { children: [
20
- /* @__PURE__ */ t(ke, { children: "Requests by hour" }),
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
- xe,
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: $e(
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 / _e * 100)}%` }
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: Se(e.hour) }, e.hour)) })
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
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__ */ d(
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
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__ */ d(
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
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__ */ d(
197
+ /* @__PURE__ */ h(
198
198
  y,
199
199
  {
200
200
  id: "deploys",
201
201
  title: "Deploys and drains",
202
- empty: !M.length && !C.length,
203
- gist: `${M.length} deploys · ${C.length} drains`,
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: M,
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: C,
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__ */ d(
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__ */ d(
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__ */ d(
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
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__ */ d(
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__ */ d(
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__ */ d(
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(ye)} sent · ${l(we)} not sent`,
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: !W.length,
533
- gist: `${l(W.reduce((e, u) => e + u.n, 0))} sent`,
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: W,
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__ */ d(
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(j)} waiting · ${s(m == null ? void 0 : m.sla_breaches).reduce((e, u) => e + u.breached, 0)} past deadline`,
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
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(j), drill: a("backlog") })
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__ */ d(
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
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: !I.length,
654
- gist: `${I.length} changes`,
653
+ empty: !j.length,
654
+ gist: `${j.length} changes`,
655
655
  children: /* @__PURE__ */ t(
656
656
  r,
657
657
  {
658
- rows: I,
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__ */ d(
675
+ /* @__PURE__ */ h(
676
676
  y,
677
677
  {
678
678
  id: "security",
679
679
  title: "Security",
680
- empty: !h,
681
- gist: `${l(h == null ? void 0 : h.new_places)} new places · ${l(h == null ? void 0 : h.failed_sign_ins)} failed sign-ins · ${s(h == null ? void 0 : h.view_as).length} View-as`,
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
684
- /* @__PURE__ */ t(n, { label: "New places", value: l(h == null ? void 0 : h.new_places), drill: a("new_places") }),
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(h == null ? void 0 : h.failed_sign_ins),
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(h == null ? void 0 : h.access_grants), drill: a("access") }),
694
- /* @__PURE__ */ t(n, { label: "Access requests", value: l(h == null ? void 0 : h.access_requests), drill: a("access") }),
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(h == null ? void 0 : h.waiting_authorization),
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(h == null ? void 0 : h.view_as),
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(h == null ? void 0 : h.role_changes),
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(h == null ? void 0 : h.api_key_use),
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__ */ d(
744
+ /* @__PURE__ */ h(
745
745
  y,
746
746
  {
747
747
  id: "capacity",
748
748
  title: "Capacity",
749
- empty: !p,
750
- gist: `${(p == null ? void 0 : p.memory_mb) != null ? `${l(p.memory_mb)} MB memory · ` : ""}${s(p == null ? void 0 : p.restarts).length} restarts`,
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
753
- (p == null ? void 0 : p.pool) && /* @__PURE__ */ d(ge, { children: [
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: "Request connections",
758
- value: l(p.pool.main_max),
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: "Background connections",
766
- value: l(p.pool.background_max),
765
+ label: `Background connections${M}`,
766
+ value: l(d.pool.background_max),
767
767
  drill: a("capacity")
768
768
  }
769
769
  )
770
770
  ] }),
771
- (p == null ? void 0 : p.memory_mb) != null && /* @__PURE__ */ t(n, { label: "Memory", value: `${l(p.memory_mb)} MB`, drill: a("capacity") }),
772
- (p == null ? void 0 : p.backups) && /* @__PURE__ */ d(ge, { children: [
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 (${p.backups.last_full ?? "unknown"})`,
777
- value: p.backups.last_full_age_hours == null ? "–" : `${l(p.backups.last_full_age_hours, 1)} h ago`,
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 (${p.backups.last_log ?? "unknown"})`,
785
- value: p.backups.last_log_age_hours == null ? "–" : `${l(p.backups.last_log_age_hours, 1)} h ago`,
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(p == null ? void 0 : p.disk),
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(p == null ? void 0 : p.restarts),
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__ */ d(
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__ */ d(
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((O = i.pages) == null ? void 0 : O.views)} views · ${l((D = i.pages) == null ? void 0 : D.people)} people`,
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
879
- /* @__PURE__ */ t(n, { label: "Page views", value: l((z = i.pages) == null ? void 0 : z.views), drill: a("page_views") }),
880
- /* @__PURE__ */ t(n, { label: "People", value: l((B = i.pages) == null ? void 0 : B.people), drill: a("page_views") })
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((E = i.pages) == null ? void 0 : E.top),
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__ */ d(
933
+ /* @__PURE__ */ h(
927
934
  y,
928
935
  {
929
936
  id: "adoption",
930
937
  title: "Adoption",
931
- empty: !s((V = i.adoption) == null ? void 0 : V.new_routes).length && !s((J = i.adoption) == null ? void 0 : J.rising).length,
932
- gist: `${s((L = i.adoption) == null ? void 0 : L.new_routes).length} newly used · ${s((K = i.adoption) == null ? void 0 : K.rising).length} rising`,
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((U = i.adoption) == null ? void 0 : U.new_routes),
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((G = i.adoption) == null ? void 0 : G.rising),
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__ */ d(
970
+ /* @__PURE__ */ h(
964
971
  y,
965
972
  {
966
973
  id: "support",
967
974
  title: "Support",
968
975
  empty: !i.support,
969
- gist: `${l((H = i.support) == null ? void 0 : H.opened)} opened · ${l((Q = i.support) == null ? void 0 : Q.closed)} closed · ${l((X = i.support) == null ? void 0 : X.open_total)} open`,
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
972
- /* @__PURE__ */ t(n, { label: "Opened", value: l((Y = i.support) == null ? void 0 : Y.opened), drill: a("support") }),
973
- /* @__PURE__ */ t(n, { label: "Closed", value: l((Z = i.support) == null ? void 0 : Z.closed), drill: a("support") }),
974
- /* @__PURE__ */ t(n, { label: "Open now", value: l((ee = i.support) == null ? void 0 : ee.open_total), drill: a("support") }),
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: ((le = i.support) == null ? void 0 : le.oldest_open_days) == null ? "–" : `${i.support.oldest_open_days} days`,
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((te = i.support) == null ? void 0 : te.topics),
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((se = i.support) == null ? void 0 : se.opened_today),
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__ */ d(
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((ae = i.ai) == null ? void 0 : ae.calls)} calls · ${P((ie = i.ai) == null ? void 0 : ie.cost_usd, "usd")} · ${l((re = i.ai) == null ? void 0 : re.errors)} errors`,
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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
1020
- /* @__PURE__ */ t(n, { label: "Calls", value: l((oe = i.ai) == null ? void 0 : oe.calls), drill: a("ai_calls") }),
1021
- /* @__PURE__ */ t(n, { label: "Spend", value: P((ne = i.ai) == null ? void 0 : ne.cost_usd, "usd"), drill: a("ai_calls") }),
1022
- /* @__PURE__ */ t(n, { label: "Errors", value: l((ue = i.ai) == null ? void 0 : ue.errors), drill: a("ai_calls", "errors") }),
1023
- /* @__PURE__ */ t(n, { label: "Refusals", value: l((ce = i.ai) == null ? void 0 : ce.refusals), drill: a("ai_calls", "refusals") }),
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((de = i.ai) == null ? void 0 : de.thumbs_up),
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((he = i.ai) == null ? void 0 : he.thumbs_down),
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((pe = i.ai) == null ? void 0 : pe.by_feature),
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
- ve.map((e) => /* @__PURE__ */ t(
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__ */ d("span", { className: "inline-flex items-center gap-1.5", children: [
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: (be) => {
1127
- var me;
1128
- be.stopPropagation(), (me = q.link) == null || me.call(q, u.href);
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 Se(N) {
1155
+ function Ne(N) {
1149
1156
  return `${(N + 11) % 12 + 1}${N < 12 || N === 24 ? "a" : "p"}`;
1150
1157
  }
1151
1158
  export {
1152
- Te as DigestSections
1159
+ Me as DigestSections
1153
1160
  };