@nivaro/react 0.3.110 → 0.3.112
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 +170 -2
- package/dist/index.js +745 -728
- package/dist/shared/components/CollectionBrowserView.js +3097 -2972
- package/dist/shared/components/CollectionImportBanner.js +135 -0
- package/dist/shared/components/ItemEditForm.js +2235 -2218
- package/dist/shared/components/JobsTray.js +54 -47
- package/dist/shared/components/TipLayer.js +61 -54
- package/dist/shared/components/ViewAsPersonButton.js +109 -0
- package/dist/shared/components/bulk/BulkFieldUpdate.js +228 -150
- package/dist/shared/components/bulk/BulkFieldUpdateButton.js +35 -41
- package/dist/shared/components/bulk/BulkLinksValue.js +91 -0
- package/dist/shared/components/bulk/bulk-field-options.js +20 -19
- package/dist/shared/components/bulk/bulk-update-preview.js +39 -0
- package/dist/shared/components/cbv/ColumnHeaderMenu.js +113 -0
- package/dist/shared/components/cbv/column-totals.js +66 -0
- package/dist/shared/components/collections-directory/CollectionHoverCard.js +108 -81
- package/dist/shared/components/collections-directory/CollectionRow.js +164 -148
- package/dist/shared/components/collections-directory/CollectionsDirectory.js +167 -166
- package/dist/shared/components/collections-directory/directory-data.js +70 -58
- package/dist/shared/components/imports/CollectionImportPanel.js +120 -118
- package/dist/shared/components/imports/DefinitionsPanel.js +24 -24
- package/dist/shared/components/imports/ImportDuplicatesNotice.js +65 -0
- package/dist/shared/components/item-edit/CatalogPickerField.js +631 -639
- package/dist/shared/components/item-edit/DuplicateNotice.js +168 -0
- package/dist/shared/components/item-edit/FieldRow.js +248 -246
- package/dist/shared/components/item-edit/InlineGridField.js +34 -33
- package/dist/shared/components/item-edit/InlineTableField.js +3064 -2882
- package/dist/shared/components/item-edit/MembershipSetField.js +165 -169
- package/dist/shared/components/item-edit/NestedRelationEditor.js +184 -189
- package/dist/shared/components/item-edit/PlanGrid.js +2 -1
- package/dist/shared/components/item-edit/QuickPickerDialog.js +35 -34
- package/dist/shared/components/item-edit/RecordLiveSync.js +32 -30
- package/dist/shared/components/item-edit/RelationCombobox.js +101 -100
- package/dist/shared/components/item-edit/RowHistorySheet.js +28 -27
- package/dist/shared/components/item-edit/SummaryPanel.js +133 -135
- package/dist/shared/components/item-edit/ViewAsRole.js +129 -52
- package/dist/shared/components/item-edit/grid-search.js +345 -0
- package/dist/shared/components/item-edit/render-stability.js +61 -54
- package/dist/shared/components/notifications/NotificationRulesEditor.js +25 -20
- package/dist/shared/components/ops-report/DigestSections.js +163 -144
- package/dist/shared/components/ops-report/drill.js +97 -97
- package/dist/shared/components/panels/AddendumLinesDiff.js +52 -51
- package/dist/shared/components/panels/AddendumPanel.js +92 -91
- package/dist/shared/components/panels/AsyncUserPicker.js +108 -0
- package/dist/shared/components/panels/BlockedMove.js +73 -0
- package/dist/shared/components/panels/CommentPanel.js +265 -252
- package/dist/shared/components/panels/OwnersSlot.js +47 -35
- package/dist/shared/components/panels/PipelineInsight.js +186 -0
- package/dist/shared/components/panels/PipelinePanel.js +1573 -1475
- package/dist/shared/components/panels/RecordIntegrityBanner.js +39 -38
- package/dist/shared/components/panels/RevisionsPanel.js +261 -260
- package/dist/shared/components/pipeline/FieldPicker.js +41 -40
- package/dist/shared/components/pipeline/OwnerMatrix.js +829 -700
- package/dist/shared/components/pipeline/OwnerRecordTrial.js +362 -0
- package/dist/shared/components/pipeline/PipelineEditorView.js +483 -467
- package/dist/shared/components/pipeline/PipelineStateOwners.js +65 -64
- package/dist/shared/components/pipeline/owner-matrix-draft.js +178 -0
- package/dist/shared/components/profile/MyDefaultsCard.js +36 -35
- package/dist/shared/components/profile/PersonHeader.js +29 -29
- package/dist/shared/components/profile/PersonProfile.js +30 -28
- package/dist/shared/components/profile/SlowScreensCard.js +286 -0
- package/dist/shared/components/queue/QueueWorklist.js +1090 -1071
- package/dist/shared/components/quick-filters/useQuickFilterEditing.js +45 -44
- package/dist/shared/components/support/TicketDetailSheet.js +25 -16
- package/dist/shared/components/support/TicketSlowScreens.js +32 -0
- package/dist/shared/lib/activity-sentence.js +224 -178
- package/dist/shared/lib/collection-import-banner.js +27 -0
- package/dist/shared/lib/crash-report.js +112 -0
- package/dist/shared/lib/export-runs.js +99 -0
- package/dist/shared/lib/jobs-tray.js +89 -67
- package/dist/shared/lib/list-link.js +76 -69
- package/dist/shared/lib/nav-trail.js +180 -76
- package/dist/shared/lib/query-keys.js +26 -0
- package/dist/shared/lib/view-as.js +16 -11
- package/package.json +1 -1
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Drillable as
|
|
4
|
-
import { arr as s, num as l, dr as a, ms as
|
|
5
|
-
import { Section as y, SubTitle as
|
|
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";
|
|
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";
|
|
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,
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
-
/* @__PURE__ */
|
|
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(
|
|
12
12
|
y,
|
|
13
13
|
{
|
|
14
14
|
id: "traffic",
|
|
15
15
|
title: "Traffic",
|
|
16
16
|
empty: !_,
|
|
17
|
-
gist: `${l(_ == null ? void 0 : _.requests)} requests · ${l(_ == null ? void 0 : _.page_views)} page views${_ != null && _.peak ? ` · peak ${
|
|
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__ */ d("div", { children: [
|
|
20
|
+
/* @__PURE__ */ t(ke, { 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
|
+
xe,
|
|
23
23
|
{
|
|
24
|
-
target: a("requests_by_hour", e.hour,
|
|
25
|
-
tip: `${
|
|
24
|
+
target: a("requests_by_hour", e.hour, T(e.hour)),
|
|
25
|
+
tip: `${T(e.hour)} · ${l(e.requests)} requests · ${l(e.people)} people${e.e5 ? ` · ${e.e5} server errors` : ""}`,
|
|
26
26
|
className: "group flex h-full min-w-0 flex-1 flex-col justify-end",
|
|
27
27
|
children: /* @__PURE__ */ t(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
|
-
className:
|
|
30
|
+
className: $e(
|
|
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 / _e * 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: Se(e.hour) }, e.hour)) })
|
|
41
41
|
] }),
|
|
42
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ d("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(
|
|
46
46
|
n,
|
|
47
47
|
{
|
|
48
|
-
label: `Peak at ${
|
|
48
|
+
label: `Peak at ${T(_.peak.hour)}`,
|
|
49
49
|
value: `${l(_.peak.requests)} req`,
|
|
50
50
|
drill: a("requests_by_hour", _.peak.hour)
|
|
51
51
|
}
|
|
@@ -54,20 +54,20 @@ function qe({ report: N }) {
|
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
),
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ d(
|
|
58
58
|
y,
|
|
59
59
|
{
|
|
60
60
|
id: "speed",
|
|
61
61
|
title: "Speed",
|
|
62
62
|
empty: !o,
|
|
63
|
-
gist: `p95 ${
|
|
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__ */
|
|
66
|
-
/* @__PURE__ */ t(n, { label: "Average", value:
|
|
67
|
-
/* @__PURE__ */ t(n, { label: "Median", value:
|
|
68
|
-
/* @__PURE__ */ t(n, { label: "p90", value:
|
|
69
|
-
/* @__PURE__ */ t(n, { label: "p95", value:
|
|
70
|
-
/* @__PURE__ */ t(n, { label: "p99", value:
|
|
65
|
+
/* @__PURE__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
66
|
+
/* @__PURE__ */ t(n, { label: "Average", value: k(o == null ? void 0 : o.avg_ms), drill: a("over5s") }),
|
|
67
|
+
/* @__PURE__ */ t(n, { label: "Median", value: k(o == null ? void 0 : o.p50), drill: a("over5s") }),
|
|
68
|
+
/* @__PURE__ */ t(n, { label: "p90", value: k(o == null ? void 0 : o.p90), drill: a("over5s") }),
|
|
69
|
+
/* @__PURE__ */ t(n, { label: "p95", value: k(o == null ? void 0 : o.p95), drill: a("over5s") }),
|
|
70
|
+
/* @__PURE__ */ t(n, { label: "p99", value: k(o == null ? void 0 : o.p99), drill: a("over5s") }),
|
|
71
71
|
/* @__PURE__ */ t(n, { label: "Over 1 s", value: l(o == null ? void 0 : o.over1s), drill: a("over5s", "1s") }),
|
|
72
72
|
/* @__PURE__ */ t(n, { label: "Over 5 s", value: l(o == null ? void 0 : o.over5s), drill: a("over5s") }),
|
|
73
73
|
/* @__PURE__ */ t(
|
|
@@ -91,7 +91,7 @@ function qe({ report: N }) {
|
|
|
91
91
|
{ h: "Route", cell: (e) => e.route },
|
|
92
92
|
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
93
93
|
{ h: "People", cell: (e) => l(e.people), num: !0 },
|
|
94
|
-
{ h: "Slowest", cell: (e) =>
|
|
94
|
+
{ h: "Slowest", cell: (e) => k(e.max_ms), num: !0 }
|
|
95
95
|
]
|
|
96
96
|
}
|
|
97
97
|
),
|
|
@@ -104,8 +104,8 @@ function qe({ report: N }) {
|
|
|
104
104
|
cols: [
|
|
105
105
|
{ h: "Route", cell: (e) => e.route, className: b },
|
|
106
106
|
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
107
|
-
{ h: "Average", cell: (e) =>
|
|
108
|
-
{ h: "Slowest", cell: (e) =>
|
|
107
|
+
{ h: "Average", cell: (e) => k(e.avg_ms), num: !0 },
|
|
108
|
+
{ h: "Slowest", cell: (e) => k(e.max_ms), num: !0 },
|
|
109
109
|
{ h: "People", cell: (e) => l(e.people), num: !0 }
|
|
110
110
|
]
|
|
111
111
|
}
|
|
@@ -120,14 +120,14 @@ function qe({ report: N }) {
|
|
|
120
120
|
{ h: "Route", cell: (e) => e.route, className: b },
|
|
121
121
|
{ h: "Total", cell: (e) => `${l(e.total_s)} s`, num: !0 },
|
|
122
122
|
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
123
|
-
{ h: "Average", cell: (e) =>
|
|
123
|
+
{ h: "Average", cell: (e) => k(e.avg_ms), num: !0 }
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
)
|
|
127
127
|
]
|
|
128
128
|
}
|
|
129
129
|
),
|
|
130
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ d(
|
|
131
131
|
y,
|
|
132
132
|
{
|
|
133
133
|
id: "errors",
|
|
@@ -135,7 +135,7 @@ function qe({ 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__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
139
139
|
/* @__PURE__ */ t(
|
|
140
140
|
n,
|
|
141
141
|
{
|
|
@@ -171,7 +171,7 @@ function qe({ report: N }) {
|
|
|
171
171
|
{ h: "At", cell: (e) => e.at },
|
|
172
172
|
{ h: "Status", cell: (e) => e.status, num: !0 },
|
|
173
173
|
{ h: "Route", cell: (e) => e.route, className: b },
|
|
174
|
-
{ h: "Took", cell: (e) =>
|
|
174
|
+
{ h: "Took", cell: (e) => k(e.ms), num: !0 },
|
|
175
175
|
{ h: "Person", cell: (e) => e.person ?? "No one signed in" }
|
|
176
176
|
]
|
|
177
177
|
}
|
|
@@ -194,19 +194,19 @@ function qe({ report: N }) {
|
|
|
194
194
|
]
|
|
195
195
|
}
|
|
196
196
|
),
|
|
197
|
-
/* @__PURE__ */
|
|
197
|
+
/* @__PURE__ */ d(
|
|
198
198
|
y,
|
|
199
199
|
{
|
|
200
200
|
id: "deploys",
|
|
201
201
|
title: "Deploys and drains",
|
|
202
|
-
empty: !
|
|
203
|
-
gist: `${
|
|
202
|
+
empty: !M.length && !C.length,
|
|
203
|
+
gist: `${M.length} deploys · ${C.length} drains`,
|
|
204
204
|
children: [
|
|
205
205
|
/* @__PURE__ */ t(
|
|
206
206
|
r,
|
|
207
207
|
{
|
|
208
208
|
title: "Deploys",
|
|
209
|
-
rows:
|
|
209
|
+
rows: M,
|
|
210
210
|
drill: (e) => a("deploys", e.version, e.version ?? e.at),
|
|
211
211
|
limit: 30,
|
|
212
212
|
cols: [
|
|
@@ -220,7 +220,7 @@ function qe({ report: N }) {
|
|
|
220
220
|
r,
|
|
221
221
|
{
|
|
222
222
|
title: "Drains (requests answered 503)",
|
|
223
|
-
rows:
|
|
223
|
+
rows: C,
|
|
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 qe({ report: N }) {
|
|
|
231
231
|
]
|
|
232
232
|
}
|
|
233
233
|
),
|
|
234
|
-
/* @__PURE__ */
|
|
234
|
+
/* @__PURE__ */ d(
|
|
235
235
|
y,
|
|
236
236
|
{
|
|
237
237
|
id: "database",
|
|
@@ -273,14 +273,15 @@ function qe({ report: N }) {
|
|
|
273
273
|
drill: (e) => a("issue", e.issue, `Issue #${e.issue}`),
|
|
274
274
|
cols: [
|
|
275
275
|
{ h: "Issue", cell: (e) => `#${e.issue}`, num: !0 },
|
|
276
|
-
{ h: "What", cell: (e) => e.title }
|
|
276
|
+
{ h: "What", cell: (e) => e.title },
|
|
277
|
+
{ h: "Likely cause", cell: (e) => e.cause ?? "—" }
|
|
277
278
|
]
|
|
278
279
|
}
|
|
279
280
|
)
|
|
280
281
|
]
|
|
281
282
|
}
|
|
282
283
|
),
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ d(
|
|
284
285
|
y,
|
|
285
286
|
{
|
|
286
287
|
id: "issues",
|
|
@@ -319,7 +320,7 @@ function qe({ report: N }) {
|
|
|
319
320
|
]
|
|
320
321
|
}
|
|
321
322
|
),
|
|
322
|
-
/* @__PURE__ */
|
|
323
|
+
/* @__PURE__ */ d(
|
|
323
324
|
y,
|
|
324
325
|
{
|
|
325
326
|
id: "jobs",
|
|
@@ -327,7 +328,7 @@ function qe({ report: N }) {
|
|
|
327
328
|
empty: !f,
|
|
328
329
|
gist: `${l(f == null ? void 0 : f.runs)} runs · ${s(f == null ? void 0 : f.failed).length} failed`,
|
|
329
330
|
children: [
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
+
/* @__PURE__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
331
332
|
/* @__PURE__ */ t(n, { label: "Runs", value: l(f == null ? void 0 : f.runs), drill: a("job") }),
|
|
332
333
|
/* @__PURE__ */ t(n, { label: "Failed", value: l(s(f == null ? void 0 : f.failed).length), drill: a("job_failures") })
|
|
333
334
|
] }),
|
|
@@ -354,37 +355,37 @@ function qe({ report: N }) {
|
|
|
354
355
|
cols: [
|
|
355
356
|
{ h: "Job", cell: (e) => e.job, className: b },
|
|
356
357
|
{ h: "Runs", cell: (e) => l(e.n), num: !0 },
|
|
357
|
-
{ h: "Average", cell: (e) =>
|
|
358
|
-
{ h: "Slowest", cell: (e) =>
|
|
358
|
+
{ h: "Average", cell: (e) => k(e.avg_ms), num: !0 },
|
|
359
|
+
{ h: "Slowest", cell: (e) => k(e.max_ms), num: !0 }
|
|
359
360
|
]
|
|
360
361
|
}
|
|
361
362
|
)
|
|
362
363
|
]
|
|
363
364
|
}
|
|
364
365
|
),
|
|
365
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ d(
|
|
366
367
|
y,
|
|
367
368
|
{
|
|
368
369
|
id: "integrations",
|
|
369
370
|
title: "Partner integrations",
|
|
370
|
-
empty: !s(
|
|
371
|
-
gist: `${s(
|
|
371
|
+
empty: !s(c == null ? void 0 : c.calls).length && !s(c == null ? void 0 : c.submissions).length && !s(c == null ? void 0 : c.failures).length && !s(c == null ? void 0 : c.alerts).length,
|
|
372
|
+
gist: `${s(c == null ? void 0 : c.calls).length} partners called · ${s(c == null ? void 0 : c.failures).length} sends failed · ${s(c == null ? void 0 : c.open_alarms).length} open alarms`,
|
|
372
373
|
children: [
|
|
373
374
|
/* @__PURE__ */ t(
|
|
374
375
|
r,
|
|
375
376
|
{
|
|
376
377
|
title: "Partner response time vs the 7-day average",
|
|
377
|
-
rows: s(
|
|
378
|
+
rows: s(c == null ? void 0 : c.calls),
|
|
378
379
|
drill: (e) => a("integration_calls", e.api, e.api),
|
|
379
380
|
cols: [
|
|
380
381
|
{ h: "Partner", cell: (e) => e.api },
|
|
381
382
|
{ h: "Calls", cell: (e) => l(e.n), num: !0 },
|
|
382
383
|
{ h: "Failed", cell: (e) => l(e.failed), num: !0 },
|
|
383
|
-
{ h: "Average", cell: (e) =>
|
|
384
|
-
{ h: "7-day avg", cell: (e) =>
|
|
384
|
+
{ h: "Average", cell: (e) => k(e.avg_ms), num: !0 },
|
|
385
|
+
{ h: "7-day avg", cell: (e) => k(e.week_avg_ms), num: !0 },
|
|
385
386
|
{
|
|
386
387
|
h: "Slowest",
|
|
387
|
-
cell: (e) =>
|
|
388
|
+
cell: (e) => k(e.max_ms),
|
|
388
389
|
num: !0
|
|
389
390
|
},
|
|
390
391
|
{
|
|
@@ -392,14 +393,14 @@ function qe({ report: N }) {
|
|
|
392
393
|
num: !0,
|
|
393
394
|
cell: (e) => {
|
|
394
395
|
if (!e.week_avg_ms) return "–";
|
|
395
|
-
const
|
|
396
|
-
return Math.abs(
|
|
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
398
|
"span",
|
|
398
399
|
{
|
|
399
|
-
className:
|
|
400
|
+
className: u > 0 ? "text-red-600 dark:text-red-400" : "text-emerald-700 dark:text-emerald-400",
|
|
400
401
|
children: [
|
|
401
|
-
|
|
402
|
-
Math.round(Math.abs(
|
|
402
|
+
u > 0 ? "+" : "−",
|
|
403
|
+
Math.round(Math.abs(u)),
|
|
403
404
|
"%"
|
|
404
405
|
]
|
|
405
406
|
}
|
|
@@ -413,7 +414,7 @@ function qe({ report: N }) {
|
|
|
413
414
|
r,
|
|
414
415
|
{
|
|
415
416
|
title: "Submissions",
|
|
416
|
-
rows: s(
|
|
417
|
+
rows: s(c == null ? void 0 : c.submissions),
|
|
417
418
|
drill: (e) => a("integration_failures", e.api, e.api),
|
|
418
419
|
cols: [
|
|
419
420
|
{ h: "Partner", cell: (e) => e.api },
|
|
@@ -426,7 +427,7 @@ function qe({ report: N }) {
|
|
|
426
427
|
r,
|
|
427
428
|
{
|
|
428
429
|
title: "Failed sends",
|
|
429
|
-
rows: s(
|
|
430
|
+
rows: s(c == null ? void 0 : c.failures),
|
|
430
431
|
drill: (e) => a("integration_failures", e.api, e.api),
|
|
431
432
|
cols: [
|
|
432
433
|
{ h: "At", cell: (e) => e.at },
|
|
@@ -440,7 +441,7 @@ function qe({ report: N }) {
|
|
|
440
441
|
r,
|
|
441
442
|
{
|
|
442
443
|
title: "Open alarms",
|
|
443
|
-
rows: s(
|
|
444
|
+
rows: s(c == null ? void 0 : c.open_alarms),
|
|
444
445
|
drill: (e) => a("open_alarms", e.api, e.api),
|
|
445
446
|
cols: [
|
|
446
447
|
{ h: "Partner", cell: (e) => e.api },
|
|
@@ -454,7 +455,7 @@ function qe({ report: N }) {
|
|
|
454
455
|
r,
|
|
455
456
|
{
|
|
456
457
|
title: "Alerts",
|
|
457
|
-
rows: s(
|
|
458
|
+
rows: s(c == null ? void 0 : c.alerts),
|
|
458
459
|
drill: (e) => a("open_alarms", e.title, e.title),
|
|
459
460
|
cols: [
|
|
460
461
|
{ h: "Alert", cell: (e) => e.title },
|
|
@@ -472,12 +473,12 @@ function qe({ report: N }) {
|
|
|
472
473
|
{
|
|
473
474
|
id: "imports",
|
|
474
475
|
title: "Imports",
|
|
475
|
-
empty: !
|
|
476
|
-
gist: `${
|
|
476
|
+
empty: !A.length,
|
|
477
|
+
gist: `${A.length} definitions ran · ${l(A.reduce((e, u) => e + u.rows, 0))} rows`,
|
|
477
478
|
children: /* @__PURE__ */ t(
|
|
478
479
|
r,
|
|
479
480
|
{
|
|
480
|
-
rows:
|
|
481
|
+
rows: A,
|
|
481
482
|
drill: (e) => a("imports", e.definition, e.definition),
|
|
482
483
|
cols: [
|
|
483
484
|
{ h: "Import", cell: (e) => e.definition, className: b },
|
|
@@ -489,18 +490,18 @@ function qe({ report: N }) {
|
|
|
489
490
|
)
|
|
490
491
|
}
|
|
491
492
|
),
|
|
492
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ d(
|
|
493
494
|
y,
|
|
494
495
|
{
|
|
495
496
|
id: "mail",
|
|
496
497
|
title: "Mail",
|
|
497
|
-
empty: !s(
|
|
498
|
-
gist: `${l(
|
|
498
|
+
empty: !s(S == null ? void 0 : S.by_status).length,
|
|
499
|
+
gist: `${l(ye)} sent · ${l(we)} not sent`,
|
|
499
500
|
children: [
|
|
500
501
|
/* @__PURE__ */ t(
|
|
501
502
|
r,
|
|
502
503
|
{
|
|
503
|
-
rows: s(
|
|
504
|
+
rows: s(S == null ? void 0 : S.by_status),
|
|
504
505
|
drill: (e) => a("mail", e.status, e.status),
|
|
505
506
|
cols: [
|
|
506
507
|
{ h: "Status", cell: (e) => e.status },
|
|
@@ -512,7 +513,7 @@ function qe({ report: N }) {
|
|
|
512
513
|
r,
|
|
513
514
|
{
|
|
514
515
|
title: "Why mail did not go",
|
|
515
|
-
rows: s(
|
|
516
|
+
rows: s(S == null ? void 0 : S.reasons),
|
|
516
517
|
drill: (e) => a("mail", e.reason, e.reason),
|
|
517
518
|
cols: [
|
|
518
519
|
{ h: "Reason", cell: (e) => e.reason },
|
|
@@ -528,12 +529,12 @@ function qe({ report: N }) {
|
|
|
528
529
|
{
|
|
529
530
|
id: "notifications",
|
|
530
531
|
title: "Notifications",
|
|
531
|
-
empty: !
|
|
532
|
-
gist: `${l(
|
|
532
|
+
empty: !W.length,
|
|
533
|
+
gist: `${l(W.reduce((e, u) => e + u.n, 0))} sent`,
|
|
533
534
|
children: /* @__PURE__ */ t(
|
|
534
535
|
r,
|
|
535
536
|
{
|
|
536
|
-
rows:
|
|
537
|
+
rows: W,
|
|
537
538
|
drill: (e) => a("notifications", e.category, e.category),
|
|
538
539
|
cols: [
|
|
539
540
|
{ h: "Category", cell: (e) => e.category },
|
|
@@ -545,18 +546,18 @@ function qe({ report: N }) {
|
|
|
545
546
|
)
|
|
546
547
|
}
|
|
547
548
|
),
|
|
548
|
-
/* @__PURE__ */
|
|
549
|
+
/* @__PURE__ */ d(
|
|
549
550
|
y,
|
|
550
551
|
{
|
|
551
552
|
id: "work",
|
|
552
553
|
title: "Work and backlog",
|
|
553
554
|
empty: !m,
|
|
554
|
-
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(j)} waiting · ${s(m == null ? void 0 : m.sla_breaches).reduce((e, u) => e + u.breached, 0)} past deadline`,
|
|
555
556
|
children: [
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
+
/* @__PURE__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
557
558
|
/* @__PURE__ */ t(n, { label: "Moves", value: l(m == null ? void 0 : m.moves), drill: a("moves") }),
|
|
558
559
|
/* @__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(
|
|
560
|
+
/* @__PURE__ */ t(n, { label: "Waiting now", value: l(j), drill: a("backlog") })
|
|
560
561
|
] }),
|
|
561
562
|
/* @__PURE__ */ t(
|
|
562
563
|
r,
|
|
@@ -616,15 +617,15 @@ function qe({ report: N }) {
|
|
|
616
617
|
]
|
|
617
618
|
}
|
|
618
619
|
),
|
|
619
|
-
/* @__PURE__ */
|
|
620
|
+
/* @__PURE__ */ d(
|
|
620
621
|
y,
|
|
621
622
|
{
|
|
622
623
|
id: "search",
|
|
623
624
|
title: "Search",
|
|
624
625
|
empty: !w,
|
|
625
|
-
gist: `${l(w == null ? void 0 : w.n)} searches · ${l(w == null ? void 0 : w.zero)} found nothing · ${
|
|
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`,
|
|
626
627
|
children: [
|
|
627
|
-
/* @__PURE__ */
|
|
628
|
+
/* @__PURE__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
628
629
|
/* @__PURE__ */ t(n, { label: "Searches", value: l(w == null ? void 0 : w.n), drill: a("searches") }),
|
|
629
630
|
/* @__PURE__ */ t(n, { label: "People searching", value: l(w == null ? void 0 : w.people), drill: a("searches") }),
|
|
630
631
|
/* @__PURE__ */ t(n, { label: "Found nothing", value: l(w == null ? void 0 : w.zero), drill: a("search_zero") })
|
|
@@ -649,12 +650,12 @@ function qe({ report: N }) {
|
|
|
649
650
|
{
|
|
650
651
|
id: "config",
|
|
651
652
|
title: "Config changes",
|
|
652
|
-
empty: !
|
|
653
|
-
gist: `${
|
|
653
|
+
empty: !I.length,
|
|
654
|
+
gist: `${I.length} changes`,
|
|
654
655
|
children: /* @__PURE__ */ t(
|
|
655
656
|
r,
|
|
656
657
|
{
|
|
657
|
-
rows:
|
|
658
|
+
rows: I,
|
|
658
659
|
drill: (e) => a("config_changes", e.collection, e.collection),
|
|
659
660
|
limit: 30,
|
|
660
661
|
cols: [
|
|
@@ -671,31 +672,31 @@ function qe({ report: N }) {
|
|
|
671
672
|
)
|
|
672
673
|
}
|
|
673
674
|
),
|
|
674
|
-
/* @__PURE__ */
|
|
675
|
+
/* @__PURE__ */ d(
|
|
675
676
|
y,
|
|
676
677
|
{
|
|
677
678
|
id: "security",
|
|
678
679
|
title: "Security",
|
|
679
|
-
empty: !
|
|
680
|
-
gist: `${l(
|
|
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`,
|
|
681
682
|
children: [
|
|
682
|
-
/* @__PURE__ */
|
|
683
|
-
/* @__PURE__ */ t(n, { label: "New places", value: l(
|
|
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") }),
|
|
684
685
|
/* @__PURE__ */ t(
|
|
685
686
|
n,
|
|
686
687
|
{
|
|
687
688
|
label: "Failed sign-ins",
|
|
688
|
-
value: l(
|
|
689
|
+
value: l(h == null ? void 0 : h.failed_sign_ins),
|
|
689
690
|
drill: a("failed_sign_ins")
|
|
690
691
|
}
|
|
691
692
|
),
|
|
692
|
-
/* @__PURE__ */ t(n, { label: "Access granted", value: l(
|
|
693
|
-
/* @__PURE__ */ t(n, { label: "Access requests", value: l(
|
|
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") }),
|
|
694
695
|
/* @__PURE__ */ t(
|
|
695
696
|
n,
|
|
696
697
|
{
|
|
697
698
|
label: "Waiting for authorization",
|
|
698
|
-
value: l(
|
|
699
|
+
value: l(h == null ? void 0 : h.waiting_authorization),
|
|
699
700
|
drill: a("access")
|
|
700
701
|
}
|
|
701
702
|
)
|
|
@@ -704,7 +705,7 @@ function qe({ report: N }) {
|
|
|
704
705
|
r,
|
|
705
706
|
{
|
|
706
707
|
title: "View-as",
|
|
707
|
-
rows: s(
|
|
708
|
+
rows: s(h == null ? void 0 : h.view_as),
|
|
708
709
|
drill: (e) => a("view_as_sessions", e.who, e.who ?? "View-as"),
|
|
709
710
|
cols: [
|
|
710
711
|
{ h: "Who", cell: (e) => e.who ?? "Unknown" },
|
|
@@ -716,7 +717,7 @@ function qe({ report: N }) {
|
|
|
716
717
|
r,
|
|
717
718
|
{
|
|
718
719
|
title: "Role changes",
|
|
719
|
-
rows: s(
|
|
720
|
+
rows: s(h == null ? void 0 : h.role_changes),
|
|
720
721
|
drill: (e) => a("role_changes", e.person, e.person ?? "Role change"),
|
|
721
722
|
cols: [
|
|
722
723
|
{ h: "At", cell: (e) => e.at },
|
|
@@ -729,7 +730,7 @@ function qe({ report: N }) {
|
|
|
729
730
|
r,
|
|
730
731
|
{
|
|
731
732
|
title: "API key use",
|
|
732
|
-
rows: s(
|
|
733
|
+
rows: s(h == null ? void 0 : h.api_key_use),
|
|
733
734
|
drill: (e) => a("api_key_use", e.name, e.name),
|
|
734
735
|
cols: [
|
|
735
736
|
{ h: "Key", cell: (e) => e.name },
|
|
@@ -740,7 +741,7 @@ function qe({ report: N }) {
|
|
|
740
741
|
]
|
|
741
742
|
}
|
|
742
743
|
),
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
+
/* @__PURE__ */ d(
|
|
744
745
|
y,
|
|
745
746
|
{
|
|
746
747
|
id: "capacity",
|
|
@@ -748,8 +749,8 @@ function qe({ report: N }) {
|
|
|
748
749
|
empty: !p,
|
|
749
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`,
|
|
750
751
|
children: [
|
|
751
|
-
/* @__PURE__ */
|
|
752
|
-
(p == null ? void 0 : p.pool) && /* @__PURE__ */
|
|
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: [
|
|
753
754
|
/* @__PURE__ */ t(
|
|
754
755
|
n,
|
|
755
756
|
{
|
|
@@ -768,7 +769,7 @@ function qe({ report: N }) {
|
|
|
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") }),
|
|
771
|
-
(p == null ? void 0 : p.backups) && /* @__PURE__ */
|
|
772
|
+
(p == null ? void 0 : p.backups) && /* @__PURE__ */ d(ge, { children: [
|
|
772
773
|
/* @__PURE__ */ t(
|
|
773
774
|
n,
|
|
774
775
|
{
|
|
@@ -815,7 +816,7 @@ function qe({ report: N }) {
|
|
|
815
816
|
]
|
|
816
817
|
}
|
|
817
818
|
),
|
|
818
|
-
/* @__PURE__ */
|
|
819
|
+
/* @__PURE__ */ d(
|
|
819
820
|
y,
|
|
820
821
|
{
|
|
821
822
|
id: "watch",
|
|
@@ -866,23 +867,23 @@ function qe({ report: N }) {
|
|
|
866
867
|
]
|
|
867
868
|
}
|
|
868
869
|
),
|
|
869
|
-
/* @__PURE__ */
|
|
870
|
+
/* @__PURE__ */ d(
|
|
870
871
|
y,
|
|
871
872
|
{
|
|
872
873
|
id: "pages",
|
|
873
874
|
title: "Screens people opened",
|
|
874
875
|
empty: !i.pages,
|
|
875
|
-
gist: `${l((
|
|
876
|
+
gist: `${l((O = i.pages) == null ? void 0 : O.views)} views · ${l((D = i.pages) == null ? void 0 : D.people)} people`,
|
|
876
877
|
children: [
|
|
877
|
-
/* @__PURE__ */
|
|
878
|
+
/* @__PURE__ */ d("div", { className: "flex flex-wrap gap-x-6 gap-y-2", children: [
|
|
878
879
|
/* @__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((
|
|
880
|
+
/* @__PURE__ */ t(n, { label: "People", value: l((B = i.pages) == null ? void 0 : B.people), drill: a("page_views") })
|
|
880
881
|
] }),
|
|
881
882
|
/* @__PURE__ */ t(
|
|
882
883
|
r,
|
|
883
884
|
{
|
|
884
885
|
title: "Top screens",
|
|
885
|
-
rows: s((
|
|
886
|
+
rows: s((E = i.pages) == null ? void 0 : E.top),
|
|
886
887
|
drill: (e) => a("page_views", e.page, e.page),
|
|
887
888
|
cols: [
|
|
888
889
|
{ h: "Screen", cell: (e) => e.page, className: b },
|
|
@@ -922,19 +923,19 @@ function qe({ report: N }) {
|
|
|
922
923
|
)
|
|
923
924
|
}
|
|
924
925
|
),
|
|
925
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__PURE__ */ d(
|
|
926
927
|
y,
|
|
927
928
|
{
|
|
928
929
|
id: "adoption",
|
|
929
930
|
title: "Adoption",
|
|
930
|
-
empty: !s((
|
|
931
|
-
gist: `${s((
|
|
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`,
|
|
932
933
|
children: [
|
|
933
934
|
/* @__PURE__ */ t(
|
|
934
935
|
r,
|
|
935
936
|
{
|
|
936
937
|
title: "Used today, not in the 7 days before",
|
|
937
|
-
rows: s((
|
|
938
|
+
rows: s((U = i.adoption) == null ? void 0 : U.new_routes),
|
|
938
939
|
drill: (e) => a("adoption", e.route, e.route),
|
|
939
940
|
cols: [
|
|
940
941
|
{ h: "Route", cell: (e) => e.route, className: b },
|
|
@@ -947,7 +948,7 @@ function qe({ report: N }) {
|
|
|
947
948
|
r,
|
|
948
949
|
{
|
|
949
950
|
title: "Fastest risers",
|
|
950
|
-
rows: s((
|
|
951
|
+
rows: s((G = i.adoption) == null ? void 0 : G.rising),
|
|
951
952
|
drill: (e) => a("adoption", e.route, e.route),
|
|
952
953
|
cols: [
|
|
953
954
|
{ h: "Route", cell: (e) => e.route, className: b },
|
|
@@ -959,23 +960,23 @@ function qe({ report: N }) {
|
|
|
959
960
|
]
|
|
960
961
|
}
|
|
961
962
|
),
|
|
962
|
-
/* @__PURE__ */
|
|
963
|
+
/* @__PURE__ */ d(
|
|
963
964
|
y,
|
|
964
965
|
{
|
|
965
966
|
id: "support",
|
|
966
967
|
title: "Support",
|
|
967
968
|
empty: !i.support,
|
|
968
|
-
gist: `${l((
|
|
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`,
|
|
969
970
|
children: [
|
|
970
|
-
/* @__PURE__ */
|
|
971
|
-
/* @__PURE__ */ t(n, { label: "Opened", value: l((
|
|
972
|
-
/* @__PURE__ */ t(n, { label: "Closed", value: l((
|
|
973
|
-
/* @__PURE__ */ t(n, { label: "Open now", value: l((
|
|
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") }),
|
|
974
975
|
/* @__PURE__ */ t(
|
|
975
976
|
n,
|
|
976
977
|
{
|
|
977
978
|
label: "Oldest open",
|
|
978
|
-
value: ((
|
|
979
|
+
value: ((le = i.support) == null ? void 0 : le.oldest_open_days) == null ? "–" : `${i.support.oldest_open_days} days`,
|
|
979
980
|
drill: a("support")
|
|
980
981
|
}
|
|
981
982
|
)
|
|
@@ -984,7 +985,7 @@ function qe({ report: N }) {
|
|
|
984
985
|
r,
|
|
985
986
|
{
|
|
986
987
|
title: "Topics",
|
|
987
|
-
rows: s((
|
|
988
|
+
rows: s((te = i.support) == null ? void 0 : te.topics),
|
|
988
989
|
drill: (e) => a("support", e.topic, e.topic),
|
|
989
990
|
cols: [
|
|
990
991
|
{ h: "Topic", cell: (e) => e.topic },
|
|
@@ -996,7 +997,7 @@ function qe({ report: N }) {
|
|
|
996
997
|
r,
|
|
997
998
|
{
|
|
998
999
|
title: "Opened today",
|
|
999
|
-
rows: s((
|
|
1000
|
+
rows: s((se = i.support) == null ? void 0 : se.opened_today),
|
|
1000
1001
|
drill: (e) => a("support", e.title, e.title),
|
|
1001
1002
|
cols: [
|
|
1002
1003
|
{ h: "Ticket", cell: (e) => e.title },
|
|
@@ -1007,24 +1008,24 @@ function qe({ report: N }) {
|
|
|
1007
1008
|
]
|
|
1008
1009
|
}
|
|
1009
1010
|
),
|
|
1010
|
-
/* @__PURE__ */
|
|
1011
|
+
/* @__PURE__ */ d(
|
|
1011
1012
|
y,
|
|
1012
1013
|
{
|
|
1013
1014
|
id: "ai",
|
|
1014
1015
|
title: "AI use",
|
|
1015
1016
|
empty: !i.ai,
|
|
1016
|
-
gist: `${l((
|
|
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`,
|
|
1017
1018
|
children: [
|
|
1018
|
-
/* @__PURE__ */
|
|
1019
|
-
/* @__PURE__ */ t(n, { label: "Calls", value: l((
|
|
1020
|
-
/* @__PURE__ */ t(n, { label: "Spend", value:
|
|
1021
|
-
/* @__PURE__ */ t(n, { label: "Errors", value: l((
|
|
1022
|
-
/* @__PURE__ */ t(n, { label: "Refusals", value: l((
|
|
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") }),
|
|
1023
1024
|
/* @__PURE__ */ t(
|
|
1024
1025
|
n,
|
|
1025
1026
|
{
|
|
1026
1027
|
label: "Thumbs up",
|
|
1027
|
-
value: l((
|
|
1028
|
+
value: l((de = i.ai) == null ? void 0 : de.thumbs_up),
|
|
1028
1029
|
drill: a("ai_calls", "thumbs_up")
|
|
1029
1030
|
}
|
|
1030
1031
|
),
|
|
@@ -1032,7 +1033,7 @@ function qe({ report: N }) {
|
|
|
1032
1033
|
n,
|
|
1033
1034
|
{
|
|
1034
1035
|
label: "Thumbs down",
|
|
1035
|
-
value: l((
|
|
1036
|
+
value: l((he = i.ai) == null ? void 0 : he.thumbs_down),
|
|
1036
1037
|
drill: a("ai_calls", "thumbs_down")
|
|
1037
1038
|
}
|
|
1038
1039
|
)
|
|
@@ -1041,12 +1042,12 @@ function qe({ report: N }) {
|
|
|
1041
1042
|
r,
|
|
1042
1043
|
{
|
|
1043
1044
|
title: "By feature",
|
|
1044
|
-
rows: s((
|
|
1045
|
+
rows: s((pe = i.ai) == null ? void 0 : pe.by_feature),
|
|
1045
1046
|
drill: (e) => a("ai_calls", e.feature, e.feature),
|
|
1046
1047
|
cols: [
|
|
1047
1048
|
{ h: "Feature", cell: (e) => e.feature },
|
|
1048
1049
|
{ h: "Calls", cell: (e) => l(e.calls), num: !0 },
|
|
1049
|
-
{ h: "Spend", cell: (e) =>
|
|
1050
|
+
{ h: "Spend", cell: (e) => P(e.cost_usd, "usd"), num: !0 },
|
|
1050
1051
|
{ h: "Errors", cell: (e) => l(e.errors), num: !0 }
|
|
1051
1052
|
]
|
|
1052
1053
|
}
|
|
@@ -1060,7 +1061,7 @@ function qe({ report: N }) {
|
|
|
1060
1061
|
id: "data-quality",
|
|
1061
1062
|
title: "Data quality",
|
|
1062
1063
|
empty: !s(i.data_quality).length,
|
|
1063
|
-
gist: `${l(s(i.data_quality).reduce((e,
|
|
1064
|
+
gist: `${l(s(i.data_quality).reduce((e, u) => e + u.violations, 0))} problems in ${s(i.data_quality).length} collections`,
|
|
1064
1065
|
children: /* @__PURE__ */ t(
|
|
1065
1066
|
r,
|
|
1066
1067
|
{
|
|
@@ -1082,7 +1083,7 @@ function qe({ report: N }) {
|
|
|
1082
1083
|
id: "owners",
|
|
1083
1084
|
title: "Who has work waiting",
|
|
1084
1085
|
empty: !s(i.owners).length,
|
|
1085
|
-
gist: `${s(i.owners).length} people · ${l(s(i.owners).reduce((e,
|
|
1086
|
+
gist: `${s(i.owners).length} people · ${l(s(i.owners).reduce((e, u) => e + u.waiting, 0))} items`,
|
|
1086
1087
|
children: /* @__PURE__ */ t(
|
|
1087
1088
|
r,
|
|
1088
1089
|
{
|
|
@@ -1098,24 +1099,42 @@ function qe({ report: N }) {
|
|
|
1098
1099
|
)
|
|
1099
1100
|
}
|
|
1100
1101
|
),
|
|
1101
|
-
|
|
1102
|
+
ve.map((e) => /* @__PURE__ */ t(
|
|
1102
1103
|
y,
|
|
1103
1104
|
{
|
|
1104
1105
|
id: `ext-${e.key}`,
|
|
1105
1106
|
title: e.title,
|
|
1106
1107
|
empty: !s(e.rows).length,
|
|
1107
|
-
gist: s(e.rows).slice(0, 2).map((
|
|
1108
|
+
gist: s(e.rows).slice(0, 2).map((u) => `${u.label} ${P(u.value, u.unit)}`).join(" · "),
|
|
1108
1109
|
children: /* @__PURE__ */ t(
|
|
1109
1110
|
r,
|
|
1110
1111
|
{
|
|
1111
1112
|
rows: s(e.rows),
|
|
1112
1113
|
cols: [
|
|
1113
|
-
{ h: "Measure", cell: (
|
|
1114
|
-
{ h: "Today", cell: (
|
|
1115
|
-
{ h: "7-day avg", cell: (
|
|
1116
|
-
{
|
|
1114
|
+
{ h: "Measure", cell: (u) => u.label },
|
|
1115
|
+
{ h: "Today", cell: (u) => P(u.value, u.unit), num: !0 },
|
|
1116
|
+
{ h: "7-day avg", cell: (u) => P(u.week_avg, u.unit), num: !0 },
|
|
1117
|
+
{
|
|
1118
|
+
h: "Note",
|
|
1119
|
+
cell: (u) => u.href && (q != null && q.link) ? /* @__PURE__ */ d("span", { className: "inline-flex items-center gap-1.5", children: [
|
|
1120
|
+
u.note ?? "",
|
|
1121
|
+
/* @__PURE__ */ t(
|
|
1122
|
+
"button",
|
|
1123
|
+
{
|
|
1124
|
+
type: "button",
|
|
1125
|
+
"data-ops-section-link": u.href,
|
|
1126
|
+
onClick: (be) => {
|
|
1127
|
+
var me;
|
|
1128
|
+
be.stopPropagation(), (me = q.link) == null || me.call(q, u.href);
|
|
1129
|
+
},
|
|
1130
|
+
className: "font-medium text-nvr-cyan hover:underline",
|
|
1131
|
+
children: "Open"
|
|
1132
|
+
}
|
|
1133
|
+
)
|
|
1134
|
+
] }) : u.note ?? ""
|
|
1135
|
+
}
|
|
1117
1136
|
],
|
|
1118
|
-
drill: (
|
|
1137
|
+
drill: (u) => a("section", `${e.key}.${u.key ?? u.label}`, u.label)
|
|
1119
1138
|
}
|
|
1120
1139
|
)
|
|
1121
1140
|
},
|
|
@@ -1123,12 +1142,12 @@ function qe({ report: N }) {
|
|
|
1123
1142
|
))
|
|
1124
1143
|
] });
|
|
1125
1144
|
}
|
|
1126
|
-
function
|
|
1145
|
+
function T(N) {
|
|
1127
1146
|
return `${(N + 11) % 12 + 1}:00 ${N < 12 || N === 24 ? "AM" : "PM"}`;
|
|
1128
1147
|
}
|
|
1129
|
-
function
|
|
1148
|
+
function Se(N) {
|
|
1130
1149
|
return `${(N + 11) % 12 + 1}${N < 12 || N === 24 ? "a" : "p"}`;
|
|
1131
1150
|
}
|
|
1132
1151
|
export {
|
|
1133
|
-
|
|
1152
|
+
Te as DigestSections
|
|
1134
1153
|
};
|