@nivaro/react 0.3.117 → 0.3.119
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 +136 -14
- package/dist/index.js +488 -485
- package/dist/shared/components/ActivityEntry.js +130 -125
- package/dist/shared/components/AgentPresenceChip.js +36 -26
- package/dist/shared/components/CellCopyLayer.js +50 -45
- package/dist/shared/components/CollectionBrowserView.js +3757 -3695
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4451 -4385
- package/dist/shared/components/JobsTray.js +8 -8
- package/dist/shared/components/LiveNewMatchesPill.js +21 -14
- package/dist/shared/components/LiveOffNote.js +3 -2
- package/dist/shared/components/LiveRowMark.js +53 -23
- package/dist/shared/components/LiveTraceView.js +162 -123
- package/dist/shared/components/MyWorkView.js +320 -299
- package/dist/shared/components/NotificationBell.js +14 -14
- package/dist/shared/components/OverflowRail.js +1 -1
- package/dist/shared/components/PageRenderer.js +120 -116
- package/dist/shared/components/ProfileView.js +203 -202
- package/dist/shared/components/RealtimeStatusBanner.js +31 -29
- package/dist/shared/components/RecordDrilldownSheet.js +7 -7
- package/dist/shared/components/RecordHoverCard.js +102 -84
- package/dist/shared/components/RecordReadView.js +146 -146
- package/dist/shared/components/ScreenRefreshButton.js +34 -32
- package/dist/shared/components/TipLayer.js +65 -58
- package/dist/shared/components/WidgetImageMenu.js +83 -43
- package/dist/shared/components/activity/RecordActivityStream.js +175 -173
- package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
- package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
- package/dist/shared/components/collections-directory/page-model.js +72 -67
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
- package/dist/shared/components/integrations/SendStatus.js +65 -59
- package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
- package/dist/shared/components/integrations/console/SignalCard.js +237 -230
- package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +135 -94
- package/dist/shared/components/item-edit/CloneDialog.js +191 -161
- package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
- package/dist/shared/components/item-edit/FieldComments.js +88 -85
- package/dist/shared/components/item-edit/FieldPointer.js +82 -67
- package/dist/shared/components/item-edit/FieldRow.js +106 -100
- package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
- package/dist/shared/components/item-edit/FilePickerField.js +452 -387
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
- package/dist/shared/components/item-edit/HeaderTools.js +245 -141
- package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
- package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
- package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
- package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
- package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
- package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
- package/dist/shared/components/item-edit/RecalcValue.js +57 -32
- package/dist/shared/components/item-edit/RecordHelpChip.js +15 -16
- package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
- package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
- package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
- package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
- package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
- package/dist/shared/components/item-edit/SectionPresence.js +18 -10
- package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
- package/dist/shared/components/item-edit/UserChip.js +1 -1
- package/dist/shared/components/item-edit/addendum-view.js +6 -0
- package/dist/shared/components/item-edit/file-live.js +69 -54
- package/dist/shared/components/item-edit/layout-switch.js +98 -89
- package/dist/shared/components/item-edit/partner-needs.js +12 -12
- package/dist/shared/components/item-edit/removed-line.js +31 -25
- package/dist/shared/components/layout-editor/pickers/field-picker.js +151 -130
- package/dist/shared/components/list/ListViewers.js +46 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
- package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
- package/dist/shared/components/panels/AlertBanners.js +82 -72
- package/dist/shared/components/panels/BranchLanes.js +22 -22
- package/dist/shared/components/panels/CommentImages.js +123 -102
- package/dist/shared/components/panels/CommentPanel.js +186 -185
- package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
- package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
- package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
- package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +7 -2
- package/dist/shared/components/profile/AgentNameField.js +107 -81
- package/dist/shared/components/profile/AgentsPanel.js +184 -184
- package/dist/shared/components/profile/PersonAccess.js +599 -495
- package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
- package/dist/shared/components/profile/SignedInDevices.js +17 -17
- package/dist/shared/components/profile/primitives.js +1 -1
- package/dist/shared/components/queue/OwnerAvatars.js +91 -54
- package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
- package/dist/shared/components/queue/QueueWorklist.js +1002 -983
- package/dist/shared/components/support/AssignRules.js +1733 -0
- package/dist/shared/components/support/PersonPick.js +88 -0
- package/dist/shared/components/support/RequestList.js +790 -0
- package/dist/shared/components/support/ScreenShare.js +158 -152
- package/dist/shared/components/support/SupportRequestDialog.js +50 -48
- package/dist/shared/components/support/SupportView.js +140 -246
- package/dist/shared/components/support/TicketDetailSheet.js +82 -75
- package/dist/shared/components/support/TicketSlowScreens.js +9 -9
- package/dist/shared/components/support/assign-rules-text.js +171 -0
- package/dist/shared/components/support/support-list.js +125 -0
- package/dist/shared/components/ui/SimpleSelect.js +28 -20
- package/dist/shared/components/ui/checkbox.js +6 -6
- package/dist/shared/components/ui/select.js +43 -39
- package/dist/shared/components/ui/sheet.js +9 -9
- package/dist/shared/components/ui/switch.js +12 -11
- package/dist/shared/components/watch-list/WatchDock.js +532 -459
- package/dist/shared/components/watch-list/WatchExtras.js +332 -286
- package/dist/shared/components/watch-list/WatchRows.js +164 -140
- package/dist/shared/lib/activity-sentence.js +103 -91
- package/dist/shared/lib/agent-presence.js +27 -21
- package/dist/shared/lib/approval-progress.js +2 -2
- package/dist/shared/lib/copy-rules.js +31 -24
- package/dist/shared/lib/derived-causes.js +113 -78
- package/dist/shared/lib/grid-cursors.js +26 -26
- package/dist/shared/lib/label-flash.js +27 -0
- package/dist/shared/lib/list-return.js +137 -125
- package/dist/shared/lib/live-deltas.js +40 -34
- package/dist/shared/lib/live-groups.js +56 -52
- package/dist/shared/lib/live-preference.js +64 -59
- package/dist/shared/lib/live-screen.js +223 -192
- package/dist/shared/lib/partner-failure.js +11 -11
- package/dist/shared/lib/rollup-recalc.js +68 -64
- package/dist/shared/lib/screen-refresh.js +74 -68
- package/dist/shared/lib/screen-share.js +108 -104
- package/dist/shared/lib/send-status.js +77 -61
- package/dist/shared/lib/text-diff-window.js +29 -0
- package/dist/shared/lib/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -1,210 +1,254 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Loader2 as
|
|
3
|
-
import { useState as
|
|
1
|
+
import { jsxs as s, jsx as n, Fragment as v } from "react/jsx-runtime";
|
|
2
|
+
import { Loader2 as K, Play as H, Clock as J, CheckCircle2 as U, RefreshCw as Z } from "lucide-react";
|
|
3
|
+
import { useState as w, useMemo as M } from "react";
|
|
4
4
|
import { toast as $ } from "sonner";
|
|
5
|
-
import { useItemNavigation as
|
|
6
|
-
import { toastError as
|
|
7
|
-
import { cn as
|
|
8
|
-
import { QueryErrorState as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
5
|
+
import { useItemNavigation as ee } from "../../../context.js";
|
|
6
|
+
import { toastError as V } from "../../../lib/error-toast.js";
|
|
7
|
+
import { cn as h } from "../../../lib/utils.js";
|
|
8
|
+
import { QueryErrorState as re } from "../../QueryErrorState.js";
|
|
9
|
+
import { SimpleSelect as O } from "../../ui/SimpleSelect.js";
|
|
10
|
+
import { useReadyBoard as ne, useRunReadyCheck as te, useCheckReadyRecord as se } from "./api.js";
|
|
11
|
+
import { Segment as oe } from "./EventsView.js";
|
|
12
|
+
import { agoText as P, exactTime as ae, TONE_TEXT as k, TONE_SOFT as Q, TONE_BORDER as ie, TONE_FILL as X } from "./tone.js";
|
|
13
|
+
const R = {
|
|
13
14
|
block: { tone: "negative", label: "Would be refused", short: "Refused" },
|
|
14
15
|
warn: { tone: "warning", label: "Would send incomplete", short: "Incomplete" },
|
|
15
16
|
ask: { tone: "info", label: "Asks for something when sent", short: "Asks on send" }
|
|
16
|
-
}, N = 50,
|
|
17
|
-
function
|
|
17
|
+
}, N = 50, C = (e, o, l = `${o}s`) => `${e} ${e === 1 ? o : l}`;
|
|
18
|
+
function le(e, o, l) {
|
|
18
19
|
return e.filter(
|
|
19
|
-
(i) => (!o.partner || i.partners.includes(o.partner) || i.issues.some((
|
|
20
|
+
(i) => (!o.partner || i.partners.includes(o.partner) || i.issues.some((d) => d.partner === o.partner)) && (!o.problem || i.issues.some((d) => l(d) === o.problem)) && (!o.severity || i.worst === o.severity)
|
|
20
21
|
);
|
|
21
22
|
}
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
var B;
|
|
25
|
-
const o =
|
|
26
|
-
() =>
|
|
27
|
-
[
|
|
28
|
-
),
|
|
29
|
-
if (
|
|
30
|
-
return /* @__PURE__ */
|
|
23
|
+
const de = (e) => `${e.severity}|${e.message.replace(/\bon \d+ lines?\b/, "on some lines").trim()}`;
|
|
24
|
+
function Ce({ onOpenRecord: e }) {
|
|
25
|
+
var B, F, I;
|
|
26
|
+
const o = ne(), l = te(), [i, d] = w(null), [c, b] = w(null), [u, y] = w(""), [a, x] = w(N), t = o.data, p = M(() => (t == null ? void 0 : t.entries) ?? [], [t]), g = M(
|
|
27
|
+
() => le(p, { partner: i, problem: c, severity: u }, de),
|
|
28
|
+
[p, i, c, u]
|
|
29
|
+
), S = `${i}|${c}|${u}`, [Y, q] = w(S);
|
|
30
|
+
if (Y !== S && (q(S), x(N)), o.isLoading)
|
|
31
|
+
return /* @__PURE__ */ s("div", { className: "space-y-3", "aria-busy": !0, "data-ic-ready-loading": !0, children: [
|
|
31
32
|
/* @__PURE__ */ n("div", { className: "h-5 w-80 animate-pulse rounded bg-[hsl(var(--nvr-skeleton))]" }),
|
|
32
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ s("div", { className: "grid gap-5 lg:grid-cols-[260px_minmax(0,1fr)]", children: [
|
|
33
34
|
/* @__PURE__ */ n("div", { className: "h-48 animate-pulse rounded-lg bg-[hsl(var(--nvr-skeleton))]" }),
|
|
34
35
|
/* @__PURE__ */ n("div", { className: "h-72 animate-pulse rounded-lg bg-[hsl(var(--nvr-skeleton))]" })
|
|
35
36
|
] })
|
|
36
37
|
] });
|
|
37
|
-
if (o.isError || !
|
|
38
|
+
if (o.isError || !t)
|
|
38
39
|
return /* @__PURE__ */ n(
|
|
39
|
-
|
|
40
|
+
re,
|
|
40
41
|
{
|
|
41
42
|
error: o.error,
|
|
42
43
|
what: "the ready-to-send board",
|
|
43
44
|
onRetry: () => o.refetch()
|
|
44
45
|
}
|
|
45
46
|
);
|
|
46
|
-
const
|
|
47
|
+
const z = () => l.mutate(void 0, {
|
|
47
48
|
onSuccess: () => $.success("Checking every record that sends next. The board fills in when it is done."),
|
|
48
|
-
onError: (
|
|
49
|
-
}),
|
|
49
|
+
onError: (r) => V(r, "Could not start the check")
|
|
50
|
+
}), _ = t.can_run ? /* @__PURE__ */ s(
|
|
50
51
|
"button",
|
|
51
52
|
{
|
|
52
53
|
type: "button",
|
|
53
54
|
"data-ic-ready-run": !0,
|
|
54
|
-
disabled:
|
|
55
|
-
onClick:
|
|
55
|
+
disabled: l.isPending || t.running,
|
|
56
|
+
onClick: z,
|
|
56
57
|
className: "inline-flex h-8 shrink-0 items-center gap-1.5 rounded-md border border-border bg-card px-3 text-[12.5px] font-medium text-foreground transition-colors hover:bg-muted disabled:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
57
58
|
children: [
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
l.isPending || t.running ? /* @__PURE__ */ n(K, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ n(H, { className: "h-3.5 w-3.5" }),
|
|
60
|
+
t.running ? "Checking…" : "Run now"
|
|
60
61
|
]
|
|
61
62
|
}
|
|
62
63
|
) : null;
|
|
63
|
-
if (!
|
|
64
|
-
return /* @__PURE__ */
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
);
|
|
78
|
-
const f = s.totals ?? { records: 0, refused: 0, warnings: 0, asks: 0 }, S = s.run.generated_at, k = s.coverage, A = !!(i || c || u);
|
|
79
|
-
return /* @__PURE__ */ r("div", { className: "space-y-4", "data-ic-ready": !0, children: [
|
|
80
|
-
/* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2", children: [
|
|
81
|
-
/* @__PURE__ */ r("p", { className: "min-w-0 text-[13px] text-muted-foreground", "data-ic-ready-summary": !0, children: [
|
|
82
|
-
f.records === 0 ? /* @__PURE__ */ n("span", { className: "font-medium text-foreground", children: "Nothing in the way of the next sends" }) : /* @__PURE__ */ r(v, { children: [
|
|
83
|
-
/* @__PURE__ */ n(P, { n: f.refused, tone: "negative" }),
|
|
84
|
-
" would be refused",
|
|
85
|
-
" · ",
|
|
86
|
-
/* @__PURE__ */ n(P, { n: f.warnings, tone: "warning" }),
|
|
87
|
-
" would send incomplete",
|
|
88
|
-
" · ",
|
|
89
|
-
/* @__PURE__ */ n(P, { n: f.asks, tone: "info" }),
|
|
90
|
-
" ask for something when sent"
|
|
91
|
-
] }),
|
|
64
|
+
if (!t.run)
|
|
65
|
+
return /* @__PURE__ */ s("div", { className: "space-y-4", "data-ic-ready-empty": !0, children: [
|
|
66
|
+
/* @__PURE__ */ s(W, { runButton: _, children: [
|
|
67
|
+
/* @__PURE__ */ n("span", { className: "font-medium text-foreground", children: t.running ? "The first check is running" : "Not checked yet" }),
|
|
68
|
+
t.running && ((B = t.progress) != null && B.total) ? ` · ${t.progress.checked} of ${t.progress.total} records so far` : ""
|
|
69
|
+
] }),
|
|
70
|
+
/* @__PURE__ */ n("div", { className: "rounded-lg border border-border bg-card px-5 py-6", children: /* @__PURE__ */ n("p", { className: "max-w-[68ch] text-[12.5px] leading-relaxed text-muted-foreground", children: "Every night, each open record whose next step sends to a partner is checked the way its Push readiness check does: missing values, conditions, and what the partner needs. What would be refused shows up here, so it can be fixed before someone presses the button." }) })
|
|
71
|
+
] });
|
|
72
|
+
const f = t.totals ?? { records: 0, refused: 0, warnings: 0, asks: 0 }, A = t.run.generated_at, m = t.coverage, j = !!(i || c || u), L = m ? Math.max(0, m.checked - m.ready - m.errors - f.records) : 0;
|
|
73
|
+
return /* @__PURE__ */ s("div", { className: "space-y-4", "data-ic-ready": !0, children: [
|
|
74
|
+
/* @__PURE__ */ s(W, { runButton: _, children: [
|
|
75
|
+
f.records === 0 ? /* @__PURE__ */ n("span", { className: "font-medium text-foreground", children: "Nothing in the way of the next sends" }) : /* @__PURE__ */ s(v, { children: [
|
|
76
|
+
/* @__PURE__ */ n(E, { n: f.refused, tone: "negative" }),
|
|
77
|
+
" would be refused",
|
|
92
78
|
" · ",
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
" · ",
|
|
99
|
-
/* @__PURE__ */ r("span", { "data-ic-ready-coverage": !0, children: [
|
|
100
|
-
R(k.checked, "record"),
|
|
101
|
-
" with a send next",
|
|
102
|
-
k.ready > 0 ? `, ${k.ready} ready` : ""
|
|
103
|
-
] })
|
|
104
|
-
] })
|
|
79
|
+
/* @__PURE__ */ n(E, { n: f.warnings, tone: "warning" }),
|
|
80
|
+
" would send incomplete",
|
|
81
|
+
" · ",
|
|
82
|
+
/* @__PURE__ */ n(E, { n: f.asks, tone: "info" }),
|
|
83
|
+
" ask for something when sent"
|
|
105
84
|
] }),
|
|
106
|
-
|
|
85
|
+
" · ",
|
|
86
|
+
/* @__PURE__ */ s("span", { "data-tip": ae(A), children: [
|
|
87
|
+
"checked ",
|
|
88
|
+
P(A)
|
|
89
|
+
] }),
|
|
90
|
+
m && /* @__PURE__ */ s(v, { children: [
|
|
91
|
+
" · ",
|
|
92
|
+
/* @__PURE__ */ s("span", { "data-ic-ready-coverage": !0, children: [
|
|
93
|
+
C(m.checked, "record"),
|
|
94
|
+
" with a send next",
|
|
95
|
+
m.ready > 0 ? `, ${m.ready} ready` : "",
|
|
96
|
+
m.errors > 0 ? `, ${m.errors} could not be checked` : "",
|
|
97
|
+
L > 0 ? `, ${L} not shown to you` : ""
|
|
98
|
+
] })
|
|
99
|
+
] })
|
|
107
100
|
] }),
|
|
108
|
-
|
|
109
|
-
|
|
101
|
+
t.running && /* @__PURE__ */ s(
|
|
102
|
+
D,
|
|
110
103
|
{
|
|
111
104
|
tone: "info",
|
|
112
|
-
icon: /* @__PURE__ */ n(
|
|
105
|
+
icon: /* @__PURE__ */ n(K, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 animate-spin" }),
|
|
113
106
|
"data-ic-ready-running": !0,
|
|
114
107
|
children: [
|
|
115
108
|
"A new check is running",
|
|
116
|
-
(
|
|
117
|
-
". This board is from the last complete check and updates when it finishes."
|
|
109
|
+
(F = t.progress) != null && F.total ? ` (${t.progress.checked} of ${t.progress.total} records so far)` : "",
|
|
110
|
+
". This board is from the last complete check and updates when it finishes.",
|
|
111
|
+
(I = t.progress) != null && I.total ? /* @__PURE__ */ n(
|
|
112
|
+
"span",
|
|
113
|
+
{
|
|
114
|
+
className: "mt-2 block h-1 w-full max-w-[320px] overflow-hidden rounded-full bg-black/10 dark:bg-white/15",
|
|
115
|
+
role: "progressbar",
|
|
116
|
+
"aria-label": "Records checked",
|
|
117
|
+
"aria-valuemin": 0,
|
|
118
|
+
"aria-valuemax": t.progress.total,
|
|
119
|
+
"aria-valuenow": t.progress.checked,
|
|
120
|
+
children: /* @__PURE__ */ n(
|
|
121
|
+
"span",
|
|
122
|
+
{
|
|
123
|
+
className: "block h-full rounded-full bg-current transition-[width] duration-500",
|
|
124
|
+
style: {
|
|
125
|
+
width: `${Math.min(100, Math.round(t.progress.checked / t.progress.total * 100))}%`
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
}
|
|
130
|
+
) : null
|
|
118
131
|
]
|
|
119
132
|
}
|
|
120
133
|
),
|
|
121
|
-
!
|
|
122
|
-
|
|
134
|
+
!t.running && t.stopped_short && /* @__PURE__ */ s(
|
|
135
|
+
D,
|
|
123
136
|
{
|
|
124
137
|
tone: "warning",
|
|
125
|
-
icon: /* @__PURE__ */ n(
|
|
138
|
+
icon: /* @__PURE__ */ n(J, { className: "mt-0.5 h-3.5 w-3.5 shrink-0" }),
|
|
126
139
|
"data-ic-ready-stopped": !0,
|
|
127
140
|
children: [
|
|
128
141
|
"The latest check stopped before it finished",
|
|
129
|
-
|
|
142
|
+
t.stopped ? ` (at ${t.stopped.checked}${t.stopped.total != null ? ` of ${t.stopped.total}` : ""} records${t.stopped.at ? `, started ${P(t.stopped.at)}` : ""})` : "",
|
|
130
143
|
", so this board is from the last complete check. The next check starts from the beginning."
|
|
131
144
|
]
|
|
132
145
|
}
|
|
133
146
|
),
|
|
134
|
-
f.records === 0 ? /* @__PURE__ */
|
|
147
|
+
f.records === 0 ? /* @__PURE__ */ s(
|
|
135
148
|
"div",
|
|
136
149
|
{
|
|
137
150
|
"data-ic-ready-clear": !0,
|
|
138
151
|
className: "flex flex-col items-start gap-1 rounded-lg border border-border bg-card px-5 py-6",
|
|
139
152
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
/* @__PURE__ */ n(
|
|
153
|
+
/* @__PURE__ */ s("p", { className: "flex items-center gap-2 text-[14px] font-semibold text-foreground", children: [
|
|
154
|
+
/* @__PURE__ */ n(U, { className: h("h-4 w-4", k.positive) }),
|
|
142
155
|
"Every record you can see is ready to send"
|
|
143
156
|
] }),
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
"Checked ",
|
|
146
|
-
C(S),
|
|
147
|
-
". Records whose next step sends to a partner show up here when something would stop or weaken that send."
|
|
148
|
-
] })
|
|
157
|
+
/* @__PURE__ */ n("p", { className: "text-[12.5px] text-muted-foreground", children: "Records whose next step sends to a partner show up here when something would stop or weaken that send." })
|
|
149
158
|
]
|
|
150
159
|
}
|
|
151
|
-
) : /* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
160
|
+
) : /* @__PURE__ */ s("div", { className: "grid items-start gap-5 lg:grid-cols-[260px_minmax(0,1fr)]", children: [
|
|
161
|
+
/* @__PURE__ */ s("aside", { className: "hidden space-y-5 lg:block", "aria-label": "Group the board", children: [
|
|
162
|
+
/* @__PURE__ */ s(G, { title: "Partner", children: [
|
|
154
163
|
/* @__PURE__ */ n(
|
|
155
|
-
|
|
164
|
+
T,
|
|
156
165
|
{
|
|
157
166
|
on: !i,
|
|
158
|
-
onClick: () =>
|
|
167
|
+
onClick: () => d(null),
|
|
159
168
|
label: "All partners",
|
|
160
169
|
count: f.records
|
|
161
170
|
}
|
|
162
171
|
),
|
|
163
|
-
(
|
|
164
|
-
|
|
172
|
+
(t.partners ?? []).map((r) => /* @__PURE__ */ n(
|
|
173
|
+
T,
|
|
165
174
|
{
|
|
166
|
-
"data-ic-ready-partner":
|
|
167
|
-
on: i ===
|
|
168
|
-
onClick: () =>
|
|
169
|
-
label:
|
|
170
|
-
count:
|
|
171
|
-
tone:
|
|
175
|
+
"data-ic-ready-partner": r.partner,
|
|
176
|
+
on: i === r.partner,
|
|
177
|
+
onClick: () => d(i === r.partner ? null : r.partner),
|
|
178
|
+
label: r.partner,
|
|
179
|
+
count: r.records,
|
|
180
|
+
tone: r.refused > 0 ? "negative" : r.warnings > 0 ? "warning" : "info",
|
|
172
181
|
hint: [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
182
|
+
r.refused ? `${r.refused} refused` : "",
|
|
183
|
+
r.warnings ? `${r.warnings} incomplete` : "",
|
|
184
|
+
r.asks ? `${r.asks} ask on send` : ""
|
|
176
185
|
].filter(Boolean).join(" · ")
|
|
177
186
|
},
|
|
178
|
-
|
|
187
|
+
r.partner
|
|
179
188
|
))
|
|
180
189
|
] }),
|
|
181
|
-
/* @__PURE__ */ n(
|
|
182
|
-
|
|
190
|
+
/* @__PURE__ */ n(G, { title: "Problem", children: (t.problems ?? []).map((r) => /* @__PURE__ */ n(
|
|
191
|
+
T,
|
|
183
192
|
{
|
|
184
|
-
"data-ic-ready-problem":
|
|
185
|
-
on: c ===
|
|
186
|
-
onClick: () =>
|
|
187
|
-
label:
|
|
188
|
-
count:
|
|
189
|
-
tone:
|
|
193
|
+
"data-ic-ready-problem": r.key,
|
|
194
|
+
on: c === r.key,
|
|
195
|
+
onClick: () => b(c === r.key ? null : r.key),
|
|
196
|
+
label: r.label,
|
|
197
|
+
count: r.records,
|
|
198
|
+
tone: R[r.severity].tone,
|
|
190
199
|
hint: [
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
200
|
+
R[r.severity].short,
|
|
201
|
+
r.lines > 0 ? C(r.lines, "line") : "",
|
|
202
|
+
r.partners.length && !i ? r.partners.join(", ") : ""
|
|
194
203
|
].filter(Boolean).join(" · "),
|
|
195
204
|
wrap: !0
|
|
196
205
|
},
|
|
197
|
-
|
|
206
|
+
r.key
|
|
198
207
|
)) })
|
|
199
208
|
] }),
|
|
200
|
-
/* @__PURE__ */
|
|
201
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ s("section", { className: "min-w-0 space-y-3", "aria-label": "Records", children: [
|
|
210
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-2 gap-2 lg:hidden", "data-ic-ready-phone-groups": !0, children: [
|
|
202
211
|
/* @__PURE__ */ n(
|
|
203
|
-
|
|
212
|
+
O,
|
|
213
|
+
{
|
|
214
|
+
ariaLabel: "Partner",
|
|
215
|
+
value: i ?? "",
|
|
216
|
+
onChange: (r) => d(r || null),
|
|
217
|
+
className: "h-9 min-w-0 text-[12.5px]",
|
|
218
|
+
options: [
|
|
219
|
+
{ value: "", label: `All partners (${f.records})` },
|
|
220
|
+
...(t.partners ?? []).map((r) => ({
|
|
221
|
+
value: r.partner,
|
|
222
|
+
label: `${r.partner} (${r.records})`
|
|
223
|
+
}))
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
),
|
|
227
|
+
/* @__PURE__ */ n(
|
|
228
|
+
O,
|
|
229
|
+
{
|
|
230
|
+
ariaLabel: "Problem",
|
|
231
|
+
value: c ?? "",
|
|
232
|
+
onChange: (r) => b(r || null),
|
|
233
|
+
className: "h-9 min-w-0 text-[12.5px]",
|
|
234
|
+
contentClassName: "max-w-[calc(100vw-2rem)] [&_[role=option]]:whitespace-normal",
|
|
235
|
+
options: [
|
|
236
|
+
{ value: "", label: "All problems" },
|
|
237
|
+
...(t.problems ?? []).map((r) => ({
|
|
238
|
+
value: r.key,
|
|
239
|
+
label: `${r.label} (${r.records})`
|
|
240
|
+
}))
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
] }),
|
|
245
|
+
/* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
246
|
+
/* @__PURE__ */ n(
|
|
247
|
+
oe,
|
|
204
248
|
{
|
|
205
249
|
label: "Show",
|
|
206
250
|
value: u,
|
|
207
|
-
onChange:
|
|
251
|
+
onChange: y,
|
|
208
252
|
options: [
|
|
209
253
|
["", "All"],
|
|
210
254
|
["block", "Refused"],
|
|
@@ -214,40 +258,37 @@ function xe({ onOpenRecord: e }) {
|
|
|
214
258
|
"data-ic-ready-severity": !0
|
|
215
259
|
}
|
|
216
260
|
),
|
|
217
|
-
/* @__PURE__ */
|
|
218
|
-
|
|
219
|
-
|
|
261
|
+
/* @__PURE__ */ s("span", { className: "text-[12px] text-muted-foreground tabular-nums", children: [
|
|
262
|
+
C(g.length, "send"),
|
|
263
|
+
j && ` of ${p.length}`
|
|
220
264
|
] }),
|
|
221
|
-
|
|
265
|
+
j && /* @__PURE__ */ n(
|
|
222
266
|
"button",
|
|
223
267
|
{
|
|
224
268
|
type: "button",
|
|
225
269
|
onClick: () => {
|
|
226
|
-
|
|
270
|
+
d(null), b(null), y("");
|
|
227
271
|
},
|
|
228
|
-
className: "text-[12px] font-medium text-
|
|
272
|
+
className: "rounded text-[12px] font-medium text-sky-700 underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring dark:text-nvr-cyan",
|
|
229
273
|
children: "Clear filters"
|
|
230
274
|
}
|
|
231
275
|
)
|
|
232
276
|
] }),
|
|
233
|
-
g.length === 0 ? /* @__PURE__ */ n("p", { className: "rounded-lg border border-border bg-card px-4 py-5 text-[12.5px] text-muted-foreground", children: "Nothing matches these filters." }) : /* @__PURE__ */ n("ul", { className: "divide-y divide-border overflow-hidden rounded-lg border border-border bg-card", children: g.slice(0, a).map((
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
);
|
|
244
|
-
}) }),
|
|
245
|
-
g.length > a && /* @__PURE__ */ r(
|
|
277
|
+
g.length === 0 ? /* @__PURE__ */ n("p", { className: "rounded-lg border border-border bg-card px-4 py-5 text-[12.5px] text-muted-foreground", children: "Nothing matches these filters." }) : /* @__PURE__ */ n("ul", { className: "divide-y divide-border overflow-hidden rounded-lg border border-border bg-card", children: g.slice(0, a).map((r) => /* @__PURE__ */ n(
|
|
278
|
+
me,
|
|
279
|
+
{
|
|
280
|
+
entry: r,
|
|
281
|
+
collectionLabel: ue(t.collections, r.collection),
|
|
282
|
+
onOpenRecord: e
|
|
283
|
+
},
|
|
284
|
+
`${r.collection}:${r.item}:${r.transition.id}`
|
|
285
|
+
)) }),
|
|
286
|
+
g.length > a && /* @__PURE__ */ s(
|
|
246
287
|
"button",
|
|
247
288
|
{
|
|
248
289
|
type: "button",
|
|
249
290
|
"data-ic-ready-more": !0,
|
|
250
|
-
onClick: () =>
|
|
291
|
+
onClick: () => x((r) => r + N),
|
|
251
292
|
className: "inline-flex h-8 items-center rounded-md border border-border bg-card px-3 text-[12.5px] font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
252
293
|
children: [
|
|
253
294
|
"Show ",
|
|
@@ -262,72 +303,93 @@ function xe({ onOpenRecord: e }) {
|
|
|
262
303
|
] })
|
|
263
304
|
] });
|
|
264
305
|
}
|
|
265
|
-
function
|
|
266
|
-
return
|
|
306
|
+
function ce(e) {
|
|
307
|
+
return e.replace(/^[\s·•|,–—-]+|[\s·•|,–—-]+$/g, "").trim();
|
|
308
|
+
}
|
|
309
|
+
function ue(e, o) {
|
|
310
|
+
var i;
|
|
311
|
+
const l = (i = e == null ? void 0 : e[o]) == null ? void 0 : i.trim();
|
|
312
|
+
return l && l !== o ? l : null;
|
|
313
|
+
}
|
|
314
|
+
function W({ runButton: e, children: o }) {
|
|
315
|
+
return /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2", children: [
|
|
316
|
+
/* @__PURE__ */ n(
|
|
317
|
+
"p",
|
|
318
|
+
{
|
|
319
|
+
className: "min-w-0 basis-full text-[13px] leading-relaxed text-muted-foreground sm:flex-1 sm:basis-auto",
|
|
320
|
+
"data-ic-ready-summary": !0,
|
|
321
|
+
children: o
|
|
322
|
+
}
|
|
323
|
+
),
|
|
324
|
+
e && /* @__PURE__ */ n("div", { className: "sm:ml-auto", children: e })
|
|
325
|
+
] });
|
|
326
|
+
}
|
|
327
|
+
function E({ n: e, tone: o }) {
|
|
328
|
+
return /* @__PURE__ */ n("span", { className: h("font-semibold tabular-nums", e > 0 ? k[o] : "text-foreground"), children: e });
|
|
267
329
|
}
|
|
268
|
-
function
|
|
330
|
+
function D({
|
|
269
331
|
tone: e,
|
|
270
332
|
icon: o,
|
|
271
|
-
children:
|
|
333
|
+
children: l,
|
|
272
334
|
...i
|
|
273
335
|
}) {
|
|
274
|
-
return /* @__PURE__ */
|
|
336
|
+
return /* @__PURE__ */ s(
|
|
275
337
|
"div",
|
|
276
338
|
{
|
|
277
339
|
role: "status",
|
|
278
340
|
...i,
|
|
279
|
-
className:
|
|
341
|
+
className: h(
|
|
280
342
|
"flex items-start gap-2 rounded-lg border px-4 py-2.5 text-[12.5px]",
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
343
|
+
ie[e],
|
|
344
|
+
Q[e],
|
|
345
|
+
k[e]
|
|
284
346
|
),
|
|
285
347
|
children: [
|
|
286
348
|
o,
|
|
287
|
-
/* @__PURE__ */ n("span", { children:
|
|
349
|
+
/* @__PURE__ */ n("span", { children: l })
|
|
288
350
|
]
|
|
289
351
|
}
|
|
290
352
|
);
|
|
291
353
|
}
|
|
292
|
-
function
|
|
293
|
-
return /* @__PURE__ */
|
|
354
|
+
function G({ title: e, children: o }) {
|
|
355
|
+
return /* @__PURE__ */ s("div", { children: [
|
|
294
356
|
/* @__PURE__ */ n("h3", { className: "mb-1.5 px-2 text-[12px] font-semibold text-foreground", children: e }),
|
|
295
357
|
/* @__PURE__ */ n("div", { className: "flex flex-col gap-0.5", children: o })
|
|
296
358
|
] });
|
|
297
359
|
}
|
|
298
|
-
function
|
|
360
|
+
function T({
|
|
299
361
|
on: e,
|
|
300
362
|
onClick: o,
|
|
301
|
-
label:
|
|
363
|
+
label: l,
|
|
302
364
|
count: i,
|
|
303
|
-
tone:
|
|
365
|
+
tone: d,
|
|
304
366
|
hint: c,
|
|
305
|
-
wrap:
|
|
367
|
+
wrap: b,
|
|
306
368
|
...u
|
|
307
369
|
}) {
|
|
308
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ s(
|
|
309
371
|
"button",
|
|
310
372
|
{
|
|
311
373
|
type: "button",
|
|
312
374
|
"aria-pressed": e,
|
|
313
375
|
onClick: o,
|
|
314
376
|
...u,
|
|
315
|
-
className:
|
|
377
|
+
className: h(
|
|
316
378
|
"flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
317
379
|
e ? "bg-accent text-foreground" : "text-foreground hover:bg-muted"
|
|
318
380
|
),
|
|
319
381
|
children: [
|
|
320
|
-
|
|
321
|
-
/* @__PURE__ */
|
|
382
|
+
d && /* @__PURE__ */ n("span", { className: h("mt-[7px] h-1.5 w-1.5 shrink-0 rounded-full", X[d]) }),
|
|
383
|
+
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
|
|
322
384
|
/* @__PURE__ */ n(
|
|
323
385
|
"span",
|
|
324
386
|
{
|
|
325
|
-
className:
|
|
387
|
+
className: h(
|
|
326
388
|
"block text-[12.5px] leading-snug",
|
|
327
|
-
|
|
389
|
+
b ? "break-words" : "truncate",
|
|
328
390
|
e && "font-medium"
|
|
329
391
|
),
|
|
330
|
-
children:
|
|
392
|
+
children: l
|
|
331
393
|
}
|
|
332
394
|
),
|
|
333
395
|
c && /* @__PURE__ */ n("span", { className: "block text-[11.5px] leading-snug text-muted-foreground", children: c })
|
|
@@ -337,117 +399,121 @@ function _({
|
|
|
337
399
|
}
|
|
338
400
|
);
|
|
339
401
|
}
|
|
340
|
-
function
|
|
402
|
+
function me({
|
|
341
403
|
entry: e,
|
|
342
404
|
collectionLabel: o,
|
|
343
|
-
onOpenRecord:
|
|
405
|
+
onOpenRecord: l
|
|
344
406
|
}) {
|
|
345
|
-
const i =
|
|
346
|
-
a.metaKey || a.ctrlKey || a.shiftKey || a.button !== 0 || (a.preventDefault(),
|
|
347
|
-
}, u =
|
|
407
|
+
const i = ee(), d = se(), c = { collection: e.collection, itemId: e.item }, b = (a) => {
|
|
408
|
+
a.metaKey || a.ctrlKey || a.shiftKey || a.button !== 0 || (a.preventDefault(), l ? l(e.collection, e.item) : i.open(c));
|
|
409
|
+
}, u = R[e.worst], y = () => d.mutate(
|
|
348
410
|
{ collection: e.collection, item: e.item },
|
|
349
411
|
{
|
|
350
412
|
onSuccess: (a) => {
|
|
351
413
|
a.sending ? a.ready ? $.success(`${e.label} is ready to send`) : $.message(
|
|
352
|
-
`${e.label} still has ${
|
|
353
|
-
a.entries.reduce((
|
|
414
|
+
`${e.label} still has ${C(
|
|
415
|
+
a.entries.reduce((x, t) => x + t.issues.length, 0),
|
|
354
416
|
"problem"
|
|
355
417
|
)}`
|
|
356
418
|
) : $.success(`${e.label} no longer has a send next`);
|
|
357
419
|
},
|
|
358
|
-
onError: (a) =>
|
|
420
|
+
onError: (a) => V(a, "Could not check this record", { retry: y })
|
|
359
421
|
}
|
|
360
422
|
);
|
|
361
|
-
return /* @__PURE__ */
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
-
/* @__PURE__ */
|
|
423
|
+
return /* @__PURE__ */ s("li", { className: "px-4 py-3", "data-ic-ready-row": `${e.collection}:${e.item}`, "data-worst": e.worst, children: [
|
|
424
|
+
/* @__PURE__ */ s("div", { className: "flex flex-wrap items-start gap-x-3 gap-y-2", children: [
|
|
425
|
+
/* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children: [
|
|
426
|
+
/* @__PURE__ */ s("div", { className: "flex flex-wrap items-baseline gap-x-2 gap-y-0.5", children: [
|
|
365
427
|
/* @__PURE__ */ n(
|
|
366
428
|
"a",
|
|
367
429
|
{
|
|
368
430
|
href: i.urlFor(c),
|
|
369
|
-
onClick:
|
|
431
|
+
onClick: b,
|
|
370
432
|
className: "truncate text-[13px] font-semibold text-foreground underline-offset-2 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring rounded",
|
|
371
433
|
children: e.label
|
|
372
434
|
}
|
|
373
435
|
),
|
|
374
|
-
/* @__PURE__ */ n("span", { className: "text-[12px] text-muted-foreground", children: o }),
|
|
436
|
+
o && /* @__PURE__ */ n("span", { className: "text-[12px] text-muted-foreground", children: o }),
|
|
375
437
|
/* @__PURE__ */ n(
|
|
376
438
|
"span",
|
|
377
439
|
{
|
|
378
|
-
className:
|
|
440
|
+
className: h(
|
|
379
441
|
"rounded px-1.5 py-px text-[11px] font-semibold",
|
|
380
|
-
|
|
381
|
-
|
|
442
|
+
Q[u.tone],
|
|
443
|
+
k[u.tone]
|
|
382
444
|
),
|
|
383
445
|
children: u.short
|
|
384
446
|
}
|
|
385
447
|
)
|
|
386
448
|
] }),
|
|
387
|
-
/* @__PURE__ */
|
|
449
|
+
/* @__PURE__ */ s("p", { className: "mt-0.5 text-[12px] text-muted-foreground", children: [
|
|
388
450
|
e.state ? `${e.state} → ` : "",
|
|
389
451
|
/* @__PURE__ */ n("span", { className: "text-foreground", children: e.transition.label }),
|
|
390
|
-
e.partners.length > 0 && /* @__PURE__ */
|
|
452
|
+
e.partners.length > 0 && /* @__PURE__ */ s(v, { children: [
|
|
391
453
|
" · sends to ",
|
|
392
454
|
e.partners.join(", ")
|
|
393
455
|
] })
|
|
394
456
|
] })
|
|
395
457
|
] }),
|
|
396
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ s(
|
|
397
459
|
"button",
|
|
398
460
|
{
|
|
399
461
|
type: "button",
|
|
400
462
|
"data-ic-ready-check": !0,
|
|
401
|
-
disabled:
|
|
402
|
-
onClick:
|
|
463
|
+
disabled: d.isPending,
|
|
464
|
+
onClick: y,
|
|
403
465
|
className: "inline-flex h-7 shrink-0 items-center gap-1.5 rounded-md border border-border bg-card px-2.5 text-[12px] font-medium text-foreground transition-colors hover:bg-muted disabled:opacity-70 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
404
466
|
children: [
|
|
405
|
-
/* @__PURE__ */ n(
|
|
406
|
-
|
|
467
|
+
/* @__PURE__ */ n(Z, { className: h("h-3 w-3", d.isPending && "animate-spin") }),
|
|
468
|
+
d.isPending ? "Checking…" : "Check again"
|
|
407
469
|
]
|
|
408
470
|
}
|
|
409
471
|
)
|
|
410
472
|
] }),
|
|
411
473
|
/* @__PURE__ */ n("ul", { className: "mt-2 space-y-1", children: e.issues.map((a) => {
|
|
412
|
-
const
|
|
413
|
-
return /* @__PURE__ */
|
|
474
|
+
const x = R[a.severity].tone, t = a.rows ?? [];
|
|
475
|
+
return /* @__PURE__ */ s(
|
|
414
476
|
"li",
|
|
415
477
|
{
|
|
416
478
|
className: "flex items-start gap-2 text-[12.5px] leading-snug",
|
|
417
479
|
children: [
|
|
418
|
-
/* @__PURE__ */ n("span", { className:
|
|
419
|
-
/* @__PURE__ */
|
|
420
|
-
/* @__PURE__ */ n("span", { className: a.severity === "ask" ? "text-foreground" :
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
480
|
+
/* @__PURE__ */ n("span", { className: h("mt-[6px] h-1.5 w-1.5 shrink-0 rounded-full", X[x]) }),
|
|
481
|
+
/* @__PURE__ */ s("span", { className: "min-w-0", children: [
|
|
482
|
+
/* @__PURE__ */ n("span", { className: a.severity === "ask" ? "text-foreground" : k[x], children: a.message }),
|
|
483
|
+
(() => {
|
|
484
|
+
const p = t.map((g) => ce(g.label)).filter(Boolean);
|
|
485
|
+
return p.length === 0 ? null : /* @__PURE__ */ s("span", { className: "text-muted-foreground", children: [
|
|
486
|
+
" — ",
|
|
487
|
+
p.slice(0, 3).join(", "),
|
|
488
|
+
p.length > 3 ? ` and ${p.length - 3} more` : ""
|
|
489
|
+
] });
|
|
490
|
+
})()
|
|
426
491
|
] })
|
|
427
492
|
]
|
|
428
493
|
},
|
|
429
494
|
`${a.severity}:${a.partner ?? ""}:${a.message}`
|
|
430
495
|
);
|
|
431
496
|
}) }),
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
-
e.owners.length > 0 ? /* @__PURE__ */
|
|
497
|
+
/* @__PURE__ */ s("p", { className: "mt-2 text-[11.5px] text-muted-foreground", children: [
|
|
498
|
+
e.owners.length > 0 ? /* @__PURE__ */ s(v, { children: [
|
|
434
499
|
"Step owner",
|
|
435
500
|
e.owners.length === 1 ? "" : "s",
|
|
436
501
|
": ",
|
|
437
502
|
e.owners.map((a) => a.name).join(", ")
|
|
438
503
|
] }) : "Nobody owns this step",
|
|
439
|
-
e.checked_by && /* @__PURE__ */
|
|
504
|
+
e.checked_by && /* @__PURE__ */ s(v, { children: [
|
|
440
505
|
" · ",
|
|
441
506
|
"checked again by ",
|
|
442
507
|
e.checked_by,
|
|
443
508
|
" ",
|
|
444
|
-
|
|
509
|
+
P(e.checked_at)
|
|
445
510
|
] })
|
|
446
511
|
] })
|
|
447
512
|
] });
|
|
448
513
|
}
|
|
449
514
|
export {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
515
|
+
Ce as ReadyToSendView,
|
|
516
|
+
le as filterReadyEntries,
|
|
517
|
+
de as readyProblemKey,
|
|
518
|
+
ce as tidyRowLabel
|
|
453
519
|
};
|