@nivaro/react 0.3.138 → 0.3.140
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/components/InlineGridField.js +95 -92
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +36 -2
- package/dist/shared/components/AudienceConfirmPanel.js +19 -19
- package/dist/shared/components/BroadcastView.js +213 -211
- package/dist/shared/components/CollectionBrowserView.js +2677 -2658
- package/dist/shared/components/ConfigHistory.js +45 -45
- package/dist/shared/components/ConformanceView.js +110 -110
- package/dist/shared/components/DataTable.js +51 -51
- package/dist/shared/components/FilePreviewLightbox.js +26 -25
- package/dist/shared/components/ItemEditForm.js +3038 -3027
- package/dist/shared/components/LiveCount.js +27 -23
- package/dist/shared/components/LiveTraceView.js +62 -61
- package/dist/shared/components/PageRenderer.js +422 -410
- package/dist/shared/components/ProfileView.js +199 -199
- package/dist/shared/components/QualityRulesView.js +70 -70
- package/dist/shared/components/QueryTable.js +131 -130
- package/dist/shared/components/RecordGraph.js +98 -98
- package/dist/shared/components/RecordReadView.js +287 -288
- package/dist/shared/components/ReportView.js +1279 -1259
- package/dist/shared/components/SlaRulesView.js +73 -74
- package/dist/shared/components/WidgetSlot.js +73 -73
- package/dist/shared/components/ai/AiChart.js +36 -32
- package/dist/shared/components/ai/AiMarkdown.js +136 -129
- package/dist/shared/components/ai/TaskDo.js +87 -87
- package/dist/shared/components/ai/answer-formats.js +37 -30
- package/dist/shared/components/ai/call-log/format.js +17 -16
- package/dist/shared/components/bulk/BulkActionButtons.js +66 -66
- package/dist/shared/components/bulk/BulkFieldUpdate.js +59 -59
- package/dist/shared/components/bulk/BulkSelectionNotices.js +34 -34
- package/dist/shared/components/bulk/MessageStakeholders.js +31 -29
- package/dist/shared/components/bulk/PushBulkButtons.js +83 -82
- package/dist/shared/components/bulk/bulk-field-options.js +10 -10
- package/dist/shared/components/cbv/column-totals.js +53 -51
- package/dist/shared/components/chat/ChatAnalyticsView.js +87 -87
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +18 -18
- package/dist/shared/components/command-center/announce.js +7 -6
- package/dist/shared/components/command-center/panels/AttentionPanel.js +32 -31
- package/dist/shared/components/command-center/panels/FlowPanel.js +29 -28
- package/dist/shared/components/command-center/panels/PeoplePanel.js +39 -39
- package/dist/shared/components/delegation/DelegationConsoleView.js +27 -27
- package/dist/shared/components/imports/RunDetailSheet.js +1 -1
- package/dist/shared/components/integrations/IntegrationObligationsView.js +119 -119
- package/dist/shared/components/integrations/console/EventsView.js +35 -35
- package/dist/shared/components/integrations/console/FirefightView.js +15 -14
- package/dist/shared/components/integrations/console/PartnerDetail.js +78 -78
- package/dist/shared/components/integrations/console/ReadyToSendView.js +103 -103
- package/dist/shared/components/integrations/console/SignalCard.js +67 -67
- package/dist/shared/components/item-edit/CatalogPickerField.js +536 -527
- package/dist/shared/components/item-edit/ChangesTray.js +88 -74
- package/dist/shared/components/item-edit/FilePickerField.js +123 -123
- package/dist/shared/components/item-edit/GroupSection.js +301 -292
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +54 -54
- package/dist/shared/components/item-edit/InlineGridField.js +45 -36
- package/dist/shared/components/item-edit/InlineTableField.js +1167 -1153
- package/dist/shared/components/item-edit/NestedRelationEditor.js +106 -99
- package/dist/shared/components/item-edit/RecordChatMentionsChip.js +11 -11
- package/dist/shared/components/layout-editor/ai-forms/SlimPanel.js +43 -44
- package/dist/shared/components/monitoring/ApiRequestLog.js +35 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +268 -268
- package/dist/shared/components/ops-report/format.js +37 -36
- package/dist/shared/components/panels/ReferencedByPanel.js +21 -20
- package/dist/shared/components/panels/RevisionsPanel.js +306 -305
- package/dist/shared/components/pipeline/OwnerMatrixVersionsCard.js +12 -12
- package/dist/shared/components/pipeline/PipelineEditorView.js +483 -482
- package/dist/shared/components/pipeline/PipelineHealthCards.js +33 -32
- package/dist/shared/components/pipeline/TeamsView.js +189 -130
- package/dist/shared/components/profile/AgentsPanel.js +6 -6
- package/dist/shared/components/profile/DelegationCard.js +13 -12
- package/dist/shared/components/profile/PersonActivity.js +48 -48
- package/dist/shared/components/profile/PersonExtras.js +107 -107
- package/dist/shared/components/profile/PersonWeek.js +9 -9
- package/dist/shared/components/queue/QueueBulkBar.js +19 -18
- package/dist/shared/components/queue/QueueBulkMove.js +21 -20
- package/dist/shared/components/queue/QueueItemSheet.js +136 -131
- package/dist/shared/components/queue/QueueWorklist.js +671 -670
- package/dist/shared/components/queue/worklist-helpers.js +36 -21
- package/dist/shared/components/support/RequestList.js +121 -121
- package/dist/shared/components/support/SupportAnalytics.js +29 -29
- package/dist/shared/lib/activity-sentence.js +316 -278
- package/dist/shared/lib/format-value.js +5 -4
- package/dist/shared/lib/number-format.js +87 -0
- package/dist/shared/lib/number-kind.js +133 -0
- package/dist/shared/lib/utils.js +24 -20
- package/dist/shared/lib/watch-list.js +1 -1
- package/dist/shared/lib/widget-value-format.js +26 -12
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as l, jsx as a, Fragment as O } from "react/jsx-runtime";
|
|
2
2
|
import { useQueryClient as Y, useQuery as K, useMutation as D } from "@tanstack/react-query";
|
|
3
3
|
import { useState as s } from "react";
|
|
4
4
|
import { useNivaroClient as B, useNavigation as W } from "../context.js";
|
|
5
5
|
import { get as L, post as Q, patch as Z, del as z } from "../lib/commands.js";
|
|
6
|
-
import { cn as x } from "../lib/utils.js";
|
|
6
|
+
import { cn as x, formatNumber as G } from "../lib/utils.js";
|
|
7
7
|
import { PickList as S } from "./imports/ServiceConfigBuilder.js";
|
|
8
|
-
import { ConfirmButton as
|
|
8
|
+
import { ConfirmButton as H } from "./profile/primitives.js";
|
|
9
9
|
const U = [
|
|
10
10
|
{ value: "not_null", label: "Not null / not empty" },
|
|
11
11
|
{ value: "regex", label: "Regex match" },
|
|
12
12
|
{ value: "range", label: "Numeric range" },
|
|
13
13
|
{ value: "unique", label: "Unique values" },
|
|
14
14
|
{ value: "formula", label: "Formula (conditions)" }
|
|
15
|
-
],
|
|
15
|
+
], J = ["low", "medium", "high", "critical"], V = {
|
|
16
16
|
low: "bg-slate-500/10 text-slate-500",
|
|
17
17
|
medium: "bg-sky-500/10 text-sky-700 dark:text-sky-400",
|
|
18
18
|
high: "bg-amber-500/10 text-amber-700 dark:text-amber-400",
|
|
@@ -37,9 +37,9 @@ function j({
|
|
|
37
37
|
config: t
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
return /* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
/* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ l("div", { className: "rounded-lg border border-slate-200 bg-white p-3 dark:border-border dark:bg-card", children: [
|
|
41
|
+
/* @__PURE__ */ l("div", { className: "grid grid-cols-1 gap-2 sm:grid-cols-2", children: [
|
|
42
|
+
/* @__PURE__ */ a(
|
|
43
43
|
"input",
|
|
44
44
|
{
|
|
45
45
|
value: N,
|
|
@@ -48,7 +48,7 @@ function j({
|
|
|
48
48
|
className: T
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ a(
|
|
52
52
|
S,
|
|
53
53
|
{
|
|
54
54
|
value: o,
|
|
@@ -57,7 +57,7 @@ function j({
|
|
|
57
57
|
placeholder: "Rule type"
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
i && /* @__PURE__ */
|
|
60
|
+
i && /* @__PURE__ */ a(
|
|
61
61
|
S,
|
|
62
62
|
{
|
|
63
63
|
value: w,
|
|
@@ -66,16 +66,16 @@ function j({
|
|
|
66
66
|
placeholder: "Field…"
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ a(
|
|
70
70
|
S,
|
|
71
71
|
{
|
|
72
72
|
value: P,
|
|
73
73
|
onChange: (t) => R(t),
|
|
74
|
-
options:
|
|
74
|
+
options: J.map((t) => ({ value: t, label: t })),
|
|
75
75
|
placeholder: "Severity"
|
|
76
76
|
}
|
|
77
77
|
),
|
|
78
|
-
o === "regex" && /* @__PURE__ */
|
|
78
|
+
o === "regex" && /* @__PURE__ */ a(
|
|
79
79
|
"input",
|
|
80
80
|
{
|
|
81
81
|
value: k,
|
|
@@ -84,8 +84,8 @@ function j({
|
|
|
84
84
|
className: x(T, "col-span-full font-mono")
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
|
-
o === "range" && /* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
87
|
+
o === "range" && /* @__PURE__ */ l(O, { children: [
|
|
88
|
+
/* @__PURE__ */ a(
|
|
89
89
|
"input",
|
|
90
90
|
{
|
|
91
91
|
value: f,
|
|
@@ -95,7 +95,7 @@ function j({
|
|
|
95
95
|
className: T
|
|
96
96
|
}
|
|
97
97
|
),
|
|
98
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ a(
|
|
99
99
|
"input",
|
|
100
100
|
{
|
|
101
101
|
value: C,
|
|
@@ -107,10 +107,10 @@ function j({
|
|
|
107
107
|
)
|
|
108
108
|
] })
|
|
109
109
|
] }),
|
|
110
|
-
o === "formula" && /* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
$.map((t, m) => /* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */
|
|
110
|
+
o === "formula" && /* @__PURE__ */ l("div", { className: "mt-2 space-y-1.5", children: [
|
|
111
|
+
/* @__PURE__ */ a("p", { className: "text-[11px] text-slate-400", children: "A record FAILS when every condition matches (flag rows where amount > 0 AND status is null, say)." }),
|
|
112
|
+
$.map((t, m) => /* @__PURE__ */ l("div", { className: "flex items-center gap-1.5", children: [
|
|
113
|
+
/* @__PURE__ */ a("div", { className: "w-[180px]", children: /* @__PURE__ */ a(
|
|
114
114
|
S,
|
|
115
115
|
{
|
|
116
116
|
value: t.field,
|
|
@@ -119,7 +119,7 @@ function j({
|
|
|
119
119
|
placeholder: "Field…"
|
|
120
120
|
}
|
|
121
121
|
) }),
|
|
122
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ a("div", { className: "w-[120px]", children: /* @__PURE__ */ a(
|
|
123
123
|
S,
|
|
124
124
|
{
|
|
125
125
|
value: t.op,
|
|
@@ -138,7 +138,7 @@ function j({
|
|
|
138
138
|
placeholder: "Op"
|
|
139
139
|
}
|
|
140
140
|
) }),
|
|
141
|
-
t.op !== "null" && t.op !== "nnull" && /* @__PURE__ */
|
|
141
|
+
t.op !== "null" && t.op !== "nnull" && /* @__PURE__ */ a(
|
|
142
142
|
"input",
|
|
143
143
|
{
|
|
144
144
|
value: t.value,
|
|
@@ -149,7 +149,7 @@ function j({
|
|
|
149
149
|
className: x(T, "flex-1")
|
|
150
150
|
}
|
|
151
151
|
),
|
|
152
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ a(
|
|
153
153
|
"button",
|
|
154
154
|
{
|
|
155
155
|
type: "button",
|
|
@@ -159,7 +159,7 @@ function j({
|
|
|
159
159
|
}
|
|
160
160
|
)
|
|
161
161
|
] }, m)),
|
|
162
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ a(
|
|
163
163
|
"button",
|
|
164
164
|
{
|
|
165
165
|
type: "button",
|
|
@@ -169,8 +169,8 @@ function j({
|
|
|
169
169
|
}
|
|
170
170
|
)
|
|
171
171
|
] }),
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
/* @__PURE__ */
|
|
172
|
+
/* @__PURE__ */ l("div", { className: "mt-2.5 flex items-center gap-2", children: [
|
|
173
|
+
/* @__PURE__ */ a(
|
|
174
174
|
"button",
|
|
175
175
|
{
|
|
176
176
|
type: "button",
|
|
@@ -180,7 +180,7 @@ function j({
|
|
|
180
180
|
children: n ? "Saving…" : d ? "Save rule" : "Create rule"
|
|
181
181
|
}
|
|
182
182
|
),
|
|
183
|
-
/* @__PURE__ */
|
|
183
|
+
/* @__PURE__ */ a(
|
|
184
184
|
"button",
|
|
185
185
|
{
|
|
186
186
|
type: "button",
|
|
@@ -192,7 +192,7 @@ function j({
|
|
|
192
192
|
] })
|
|
193
193
|
] });
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function re({ className: d }) {
|
|
196
196
|
const c = B(), y = W(), M = Y(), [n, g] = s(""), [N, b] = s(!1), [o, v] = s(null), [w, F] = s(null), { data: P = [] } = K({
|
|
197
197
|
queryKey: ["dqv-collections"],
|
|
198
198
|
queryFn: () => c.request(L("/collections")).then((e) => e.data ?? []),
|
|
@@ -229,11 +229,11 @@ function ie({ className: d }) {
|
|
|
229
229
|
F(e.data.id), M.invalidateQueries({ queryKey: ["dqv-runs", n] });
|
|
230
230
|
}
|
|
231
231
|
}), i = f.find((e) => e.id === w) ?? f[0] ?? null;
|
|
232
|
-
return /* @__PURE__ */
|
|
233
|
-
/* @__PURE__ */
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
/* @__PURE__ */
|
|
232
|
+
return /* @__PURE__ */ l("div", { className: x("flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-6", d), children: [
|
|
233
|
+
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-end gap-3", children: [
|
|
234
|
+
/* @__PURE__ */ l("div", { className: "w-[280px]", children: [
|
|
235
|
+
/* @__PURE__ */ a("p", { className: "mb-1 text-[11.5px] font-medium text-slate-600 dark:text-muted-foreground", children: "Collection" }),
|
|
236
|
+
/* @__PURE__ */ a(
|
|
237
237
|
S,
|
|
238
238
|
{
|
|
239
239
|
value: n,
|
|
@@ -245,7 +245,7 @@ function ie({ className: d }) {
|
|
|
245
245
|
}
|
|
246
246
|
)
|
|
247
247
|
] }),
|
|
248
|
-
n && /* @__PURE__ */
|
|
248
|
+
n && /* @__PURE__ */ a(
|
|
249
249
|
"button",
|
|
250
250
|
{
|
|
251
251
|
type: "button",
|
|
@@ -255,18 +255,18 @@ function ie({ className: d }) {
|
|
|
255
255
|
children: u.isPending ? "Inspecting…" : "Run inspection"
|
|
256
256
|
}
|
|
257
257
|
),
|
|
258
|
-
u.isError && /* @__PURE__ */
|
|
258
|
+
u.isError && /* @__PURE__ */ a("span", { className: "text-[12px] text-red-600 dark:text-red-400", children: "Inspection failed." })
|
|
259
259
|
] }),
|
|
260
|
-
!n && /* @__PURE__ */
|
|
261
|
-
n && /* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
260
|
+
!n && /* @__PURE__ */ a("p", { className: "text-[12.5px] text-slate-400", children: "Pick a collection to manage its quality rules — not-null, regex, range, unique, and formula checks with run history." }),
|
|
261
|
+
n && /* @__PURE__ */ l("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-2", children: [
|
|
262
|
+
/* @__PURE__ */ l("div", { className: "space-y-2", children: [
|
|
263
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
|
|
264
|
+
/* @__PURE__ */ l("p", { className: "text-[11px] font-semibold uppercase tracking-wide text-slate-500 dark:text-muted-foreground", children: [
|
|
265
265
|
"Rules (",
|
|
266
266
|
q.length,
|
|
267
267
|
")"
|
|
268
268
|
] }),
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ a(
|
|
270
270
|
"button",
|
|
271
271
|
{
|
|
272
272
|
type: "button",
|
|
@@ -278,7 +278,7 @@ function ie({ className: d }) {
|
|
|
278
278
|
}
|
|
279
279
|
)
|
|
280
280
|
] }),
|
|
281
|
-
N && /* @__PURE__ */
|
|
281
|
+
N && /* @__PURE__ */ a(
|
|
282
282
|
j,
|
|
283
283
|
{
|
|
284
284
|
rule: null,
|
|
@@ -291,7 +291,7 @@ function ie({ className: d }) {
|
|
|
291
291
|
q.map(
|
|
292
292
|
(e) => {
|
|
293
293
|
var h;
|
|
294
|
-
return o === e.id ? /* @__PURE__ */
|
|
294
|
+
return o === e.id ? /* @__PURE__ */ a(
|
|
295
295
|
j,
|
|
296
296
|
{
|
|
297
297
|
rule: e,
|
|
@@ -301,7 +301,7 @@ function ie({ className: d }) {
|
|
|
301
301
|
onCancel: () => v(null)
|
|
302
302
|
},
|
|
303
303
|
e.id
|
|
304
|
-
) : /* @__PURE__ */
|
|
304
|
+
) : /* @__PURE__ */ l(
|
|
305
305
|
"div",
|
|
306
306
|
{
|
|
307
307
|
className: x(
|
|
@@ -309,10 +309,10 @@ function ie({ className: d }) {
|
|
|
309
309
|
!e.is_active && "opacity-60"
|
|
310
310
|
),
|
|
311
311
|
children: [
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ l("div", { className: "min-w-0 flex-1", children: [
|
|
313
|
+
/* @__PURE__ */ l("p", { className: "text-[12.5px] font-medium text-slate-700 dark:text-foreground", children: [
|
|
314
314
|
e.name,
|
|
315
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ a(
|
|
316
316
|
"span",
|
|
317
317
|
{
|
|
318
318
|
className: x(
|
|
@@ -323,15 +323,15 @@ function ie({ className: d }) {
|
|
|
323
323
|
}
|
|
324
324
|
)
|
|
325
325
|
] }),
|
|
326
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ l("p", { className: "text-[11px] text-slate-400", children: [
|
|
327
327
|
((h = U.find((t) => t.value === e.rule_type)) == null ? void 0 : h.label) ?? e.rule_type,
|
|
328
|
-
e.field && /* @__PURE__ */
|
|
328
|
+
e.field && /* @__PURE__ */ l("span", { className: "font-mono", children: [
|
|
329
329
|
" · ",
|
|
330
330
|
e.field
|
|
331
331
|
] })
|
|
332
332
|
] })
|
|
333
333
|
] }),
|
|
334
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ a(
|
|
335
335
|
"button",
|
|
336
336
|
{
|
|
337
337
|
type: "button",
|
|
@@ -343,7 +343,7 @@ function ie({ className: d }) {
|
|
|
343
343
|
children: e.is_active ? "Active" : "Off"
|
|
344
344
|
}
|
|
345
345
|
),
|
|
346
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ a(
|
|
347
347
|
"button",
|
|
348
348
|
{
|
|
349
349
|
type: "button",
|
|
@@ -354,8 +354,8 @@ function ie({ className: d }) {
|
|
|
354
354
|
children: "Edit"
|
|
355
355
|
}
|
|
356
356
|
),
|
|
357
|
-
/* @__PURE__ */
|
|
358
|
-
|
|
357
|
+
/* @__PURE__ */ a(
|
|
358
|
+
H,
|
|
359
359
|
{
|
|
360
360
|
onConfirm: () => $.mutate(e.id),
|
|
361
361
|
title: "Delete rule",
|
|
@@ -372,12 +372,12 @@ function ie({ className: d }) {
|
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
),
|
|
375
|
-
q.length === 0 && !N && /* @__PURE__ */
|
|
375
|
+
q.length === 0 && !N && /* @__PURE__ */ a("p", { className: "text-[12px] text-slate-400", children: "No rules yet for this collection." })
|
|
376
376
|
] }),
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
/* @__PURE__ */
|
|
379
|
-
f.length === 0 && /* @__PURE__ */
|
|
380
|
-
f.length > 0 && /* @__PURE__ */
|
|
377
|
+
/* @__PURE__ */ l("div", { className: "space-y-2", children: [
|
|
378
|
+
/* @__PURE__ */ a("p", { className: "text-[11px] font-semibold uppercase tracking-wide text-slate-500 dark:text-muted-foreground", children: "Run history" }),
|
|
379
|
+
f.length === 0 && /* @__PURE__ */ a("p", { className: "text-[12px] text-slate-400", children: "No inspections yet." }),
|
|
380
|
+
f.length > 0 && /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-1.5", children: f.slice(0, 12).map((e) => /* @__PURE__ */ l(
|
|
381
381
|
"button",
|
|
382
382
|
{
|
|
383
383
|
type: "button",
|
|
@@ -388,17 +388,17 @@ function ie({ className: d }) {
|
|
|
388
388
|
),
|
|
389
389
|
children: [
|
|
390
390
|
new Date(e.started_at).toLocaleString(),
|
|
391
|
-
(e.failed_records ?? 0) > 0 && /* @__PURE__ */
|
|
391
|
+
(e.failed_records ?? 0) > 0 && /* @__PURE__ */ a("span", { className: "ml-1 font-medium text-red-600 dark:text-red-400", children: G(e.failed_records) })
|
|
392
392
|
]
|
|
393
393
|
},
|
|
394
394
|
e.id
|
|
395
395
|
)) }),
|
|
396
|
-
i && /* @__PURE__ */
|
|
397
|
-
/* @__PURE__ */
|
|
396
|
+
i && /* @__PURE__ */ l("div", { className: "rounded-lg border border-slate-200 bg-white p-3 dark:border-border dark:bg-card", children: [
|
|
397
|
+
/* @__PURE__ */ l("p", { className: "text-[12px] text-slate-600 dark:text-muted-foreground", children: [
|
|
398
398
|
i.total_records ?? "?",
|
|
399
399
|
" records checked ·",
|
|
400
400
|
" ",
|
|
401
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ l(
|
|
402
402
|
"span",
|
|
403
403
|
{
|
|
404
404
|
className: x(
|
|
@@ -411,16 +411,16 @@ function ie({ className: d }) {
|
|
|
411
411
|
}
|
|
412
412
|
)
|
|
413
413
|
] }),
|
|
414
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ a("div", { className: "mt-2 space-y-1.5", children: (i.results ?? []).map((e) => {
|
|
415
415
|
var h;
|
|
416
|
-
return /* @__PURE__ */
|
|
416
|
+
return /* @__PURE__ */ l(
|
|
417
417
|
"div",
|
|
418
418
|
{
|
|
419
419
|
className: "rounded-md border border-slate-100 px-2.5 py-1.5 dark:border-border",
|
|
420
420
|
children: [
|
|
421
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ l("p", { className: "text-[12px] text-slate-700 dark:text-foreground", children: [
|
|
422
422
|
e.name,
|
|
423
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ a(
|
|
424
424
|
"span",
|
|
425
425
|
{
|
|
426
426
|
className: x(
|
|
@@ -430,7 +430,7 @@ function ie({ className: d }) {
|
|
|
430
430
|
children: e.severity
|
|
431
431
|
}
|
|
432
432
|
),
|
|
433
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ a(
|
|
434
434
|
"span",
|
|
435
435
|
{
|
|
436
436
|
className: x(
|
|
@@ -441,8 +441,8 @@ function ie({ className: d }) {
|
|
|
441
441
|
}
|
|
442
442
|
)
|
|
443
443
|
] }),
|
|
444
|
-
((h = e.sample_ids) == null ? void 0 : h.length) > 0 && /* @__PURE__ */
|
|
445
|
-
e.sample_ids.slice(0, 10).map((t) => /* @__PURE__ */
|
|
444
|
+
((h = e.sample_ids) == null ? void 0 : h.length) > 0 && /* @__PURE__ */ l("p", { className: "mt-0.5 flex flex-wrap gap-1 text-[11px]", children: [
|
|
445
|
+
e.sample_ids.slice(0, 10).map((t) => /* @__PURE__ */ a(
|
|
446
446
|
"button",
|
|
447
447
|
{
|
|
448
448
|
type: "button",
|
|
@@ -459,7 +459,7 @@ function ie({ className: d }) {
|
|
|
459
459
|
},
|
|
460
460
|
String(t)
|
|
461
461
|
)),
|
|
462
|
-
e.failed_count > 10 && /* @__PURE__ */
|
|
462
|
+
e.failed_count > 10 && /* @__PURE__ */ l("span", { className: "text-slate-400", children: [
|
|
463
463
|
"+",
|
|
464
464
|
e.failed_count - 10,
|
|
465
465
|
" more"
|
|
@@ -476,5 +476,5 @@ function ie({ className: d }) {
|
|
|
476
476
|
] });
|
|
477
477
|
}
|
|
478
478
|
export {
|
|
479
|
-
|
|
479
|
+
re as QualityRulesView
|
|
480
480
|
};
|