@nivaro/react 0.3.64 → 0.3.66
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 +62 -8
- package/dist/shared/components/CollectionBrowserView.js +3127 -3204
- package/dist/shared/components/ConformanceView.js +235 -221
- package/dist/shared/components/DataTable.js +478 -459
- package/dist/shared/components/ItemEditForm.js +4842 -4500
- package/dist/shared/components/MyWorkView.js +124 -113
- package/dist/shared/components/PageRenderer.js +146 -138
- package/dist/shared/components/ProfileView.js +483 -472
- package/dist/shared/components/RecordDrilldownSheet.js +73 -65
- package/dist/shared/components/ReportView.js +1100 -1094
- package/dist/shared/components/bulk/BulkActionButtons.js +72 -72
- package/dist/shared/components/bulk/BulkCompareButton.js +62 -0
- package/dist/shared/components/bulk/BulkFieldUpdate.js +114 -103
- package/dist/shared/components/bulk/BulkFieldUpdateButton.js +73 -0
- package/dist/shared/components/bulk/MessageStakeholders.js +235 -0
- package/dist/shared/components/bulk/bulk-field-options.js +29 -23
- package/dist/shared/components/integrations/IntegrationObligationsView.js +191 -173
- package/dist/shared/components/integrations/IntegrationStatusLines.js +101 -85
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +11 -9
- package/dist/shared/components/integrations/SendCurrentData.js +126 -0
- package/dist/shared/components/item-edit/CatalogPickerField.js +1535 -1440
- package/dist/shared/components/item-edit/FieldRenderer.js +49 -45
- package/dist/shared/components/item-edit/FieldRow.js +413 -403
- package/dist/shared/components/item-edit/GroupSection.js +555 -538
- package/dist/shared/components/item-edit/InlineTableField.js +2903 -2816
- package/dist/shared/components/item-edit/M2MCombobox.js +407 -338
- package/dist/shared/components/item-edit/MidairCollisionDialog.js +367 -116
- package/dist/shared/components/item-edit/NestedRelationEditor.js +171 -163
- package/dist/shared/components/item-edit/PlanGrid.js +783 -724
- package/dist/shared/components/item-edit/QuickCreateButton.js +291 -224
- package/dist/shared/components/item-edit/RecordInsights.js +113 -111
- package/dist/shared/components/item-edit/RecordLiveSync.js +4 -1
- package/dist/shared/components/item-edit/RelationCombobox.js +398 -364
- package/dist/shared/components/item-edit/SummaryPanel.js +146 -144
- package/dist/shared/components/item-edit/UserChip.js +264 -229
- package/dist/shared/components/item-edit/cascade-clear-notice.js +56 -0
- package/dist/shared/components/item-edit/collision-format.js +37 -0
- package/dist/shared/components/item-edit/field-a11y.js +25 -0
- package/dist/shared/components/item-edit/header-path-preview.js +52 -0
- package/dist/shared/components/item-edit/line-merge.js +84 -0
- package/dist/shared/components/item-edit/line-midair.js +94 -87
- package/dist/shared/components/item-edit/move-guard.js +17 -0
- package/dist/shared/components/item-edit/picker-search.js +27 -16
- package/dist/shared/components/item-edit/rail-width.js +8 -0
- package/dist/shared/components/monitoring/InactiveUserLinksView.js +126 -124
- package/dist/shared/components/panels/AccessDeniedPanel.js +96 -55
- package/dist/shared/components/panels/CommentPanel.js +142 -136
- package/dist/shared/components/panels/ItemLockBanner.js +246 -240
- package/dist/shared/components/panels/PipelinePanel.js +1366 -1194
- package/dist/shared/components/panels/RevisionsPanel.js +106 -102
- package/dist/shared/components/panels/SlaBreachBanner.js +16 -20
- package/dist/shared/components/panels/SlaClock.js +90 -68
- package/dist/shared/components/queue/QueueItemSheet.js +94 -87
- package/dist/shared/components/queue/QueueWorklist.js +1522 -1347
- package/dist/shared/components/queue/worklist-csv.js +75 -0
- package/dist/shared/components/queue/worklist-helpers.js +20 -0
- package/dist/shared/components/widgets/ReviewListWidget.js +226 -207
- package/dist/shared/lib/bulk-copy.js +17 -0
- package/dist/shared/lib/cbv-export.js +122 -0
- package/dist/shared/lib/delete-offer.js +13 -0
- package/dist/shared/lib/error-hints.js +1 -0
- package/dist/shared/lib/leave-guard.js +41 -26
- package/dist/shared/lib/list-link.js +72 -56
- package/dist/shared/lib/live-queries.js +32 -30
- package/dist/shared/lib/moved-notice.js +25 -0
- package/dist/shared/lib/notification-target.js +56 -54
- package/dist/shared/lib/obligation-banner.js +11 -8
- package/dist/shared/lib/obligation-reason-text.js +6 -6
- package/dist/shared/lib/quick-filter-cascade.js +29 -19
- package/dist/shared/lib/sort-cycle.js +6 -0
- package/dist/shared/lib/summary-mode.js +59 -41
- package/package.json +1 -1
|
@@ -1,64 +1,65 @@
|
|
|
1
|
-
import { jsxs as n, jsx as r, Fragment as
|
|
2
|
-
import { useQueryClient as
|
|
3
|
-
import { ExternalLink as
|
|
4
|
-
import { useState as q, useEffect as
|
|
1
|
+
import { jsxs as n, jsx as r, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
+
import { useQueryClient as ne, useQuery as $, useMutation as D } from "@tanstack/react-query";
|
|
3
|
+
import { ExternalLink as oe, ArrowRight as H } from "lucide-react";
|
|
4
|
+
import { useState as q, useEffect as se } from "react";
|
|
5
5
|
import { toast as C } from "sonner";
|
|
6
|
-
import { useNivaroClient as
|
|
7
|
-
import { get as
|
|
8
|
-
import { formatMultiValue as
|
|
9
|
-
import { useLiveRecord as
|
|
10
|
-
import { userErrorMessage as
|
|
11
|
-
import { cn as
|
|
12
|
-
import { transitionRequirementsFromError as
|
|
13
|
-
import { TransitionRequirementsDialog as
|
|
14
|
-
import { Badge as
|
|
15
|
-
import { Sheet as
|
|
16
|
-
import { OwnerAvatars as
|
|
17
|
-
import { pathHeader as
|
|
18
|
-
import { useTransitionNote as
|
|
19
|
-
function
|
|
6
|
+
import { useNivaroClient as de, useItemNavigation as ie } from "../../context.js";
|
|
7
|
+
import { get as B, post as O } from "../../lib/commands.js";
|
|
8
|
+
import { formatMultiValue as le } from "../../lib/format-value.js";
|
|
9
|
+
import { useLiveRecord as ce, batchTouches as V, LIVE_ASPECTS as U } from "../../lib/live.js";
|
|
10
|
+
import { userErrorMessage as me } from "../../lib/safe-error.js";
|
|
11
|
+
import { cn as W, formatRelative as ue, humanHours as pe } from "../../lib/utils.js";
|
|
12
|
+
import { transitionRequirementsFromError as be } from "../panels/PipelinePanel.js";
|
|
13
|
+
import { TransitionRequirementsDialog as xe } from "../panels/TransitionRequirementsDialog.js";
|
|
14
|
+
import { Badge as he } from "../ui/badge.js";
|
|
15
|
+
import { Sheet as fe, SheetContent as ge, SheetHeader as ye, SheetTitle as ve } from "../ui/sheet.js";
|
|
16
|
+
import { OwnerAvatars as ke } from "./OwnerAvatars.js";
|
|
17
|
+
import { pathHeader as Ne } from "./path-label.js";
|
|
18
|
+
import { useTransitionNote as we, needsTransitionNote as _e } from "./transition-note.js";
|
|
19
|
+
function qe(t) {
|
|
20
20
|
return (t ?? []).filter((b) => b.in_row_menu !== !1);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
return
|
|
22
|
+
function Ce(t) {
|
|
23
|
+
return pe(t);
|
|
24
24
|
}
|
|
25
|
-
const
|
|
25
|
+
const Se = Ne;
|
|
26
26
|
function p({ label: t, children: b }) {
|
|
27
27
|
return /* @__PURE__ */ n("div", { className: "bg-white px-3 py-2.5 dark:bg-card", children: [
|
|
28
28
|
/* @__PURE__ */ r("p", { className: "mb-0.5 text-[10px] font-medium uppercase tracking-wide text-slate-400 dark:text-muted-foreground", children: t }),
|
|
29
29
|
/* @__PURE__ */ r("div", { className: "text-[12px] text-slate-700 dark:text-slate-200", children: b })
|
|
30
30
|
] });
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function We({
|
|
33
33
|
item: t,
|
|
34
34
|
onOpenChange: b,
|
|
35
|
-
onClaim:
|
|
36
|
-
onRelease:
|
|
37
|
-
workNextActive:
|
|
35
|
+
onClaim: z,
|
|
36
|
+
onRelease: G,
|
|
37
|
+
workNextActive: J,
|
|
38
38
|
onNext: S,
|
|
39
39
|
refetchItems: I,
|
|
40
40
|
stateLabels: g,
|
|
41
41
|
collectionLabel: T,
|
|
42
|
-
claimsEnabled:
|
|
42
|
+
claimsEnabled: X = !0,
|
|
43
43
|
columnFormats: x,
|
|
44
44
|
fieldLabel: y,
|
|
45
|
-
width:
|
|
46
|
-
itemLayout:
|
|
45
|
+
width: Y,
|
|
46
|
+
itemLayout: K,
|
|
47
|
+
onOpenRecord: M
|
|
47
48
|
}) {
|
|
48
|
-
var
|
|
49
|
-
const h =
|
|
50
|
-
|
|
51
|
-
const { data: m } =
|
|
49
|
+
var j;
|
|
50
|
+
const h = ne(), f = de(), { open: Z, urlFor: L } = ie(), [v, P] = q(""), [l, k] = q(null), [N, c] = q(null), A = we(), o = t == null ? void 0 : t.collection, s = t == null ? void 0 : t.item_id;
|
|
51
|
+
se(() => c(null), [o, s]);
|
|
52
|
+
const { data: m } = $({
|
|
52
53
|
queryKey: ["queue-sheet-instance", o, s],
|
|
53
|
-
queryFn: () => f.request(
|
|
54
|
+
queryFn: () => f.request(B(`/pipelines/instance/${o}/${s}`)).then((e) => e.data),
|
|
54
55
|
enabled: !!o && !!s
|
|
55
|
-
}), { data: u } =
|
|
56
|
+
}), { data: u } = $({
|
|
56
57
|
queryKey: ["queue-sheet-comments", o, s],
|
|
57
|
-
queryFn: () => f.request(
|
|
58
|
+
queryFn: () => f.request(B("/comments", { collection: o, item: s })).then((e) => ({ data: (e.data ?? []).filter((a) => !a.deleted) })).catch(() => ({ data: [] })),
|
|
58
59
|
enabled: !!o && !!s
|
|
59
|
-
}), d =
|
|
60
|
+
}), d = D({
|
|
60
61
|
mutationFn: ({ transitionId: e, comment: a }) => f.request(
|
|
61
|
-
|
|
62
|
+
O(`/pipelines/instance/${o}/${s}/transition`, {
|
|
62
63
|
transition_id: e,
|
|
63
64
|
...a ? { comment: a } : {}
|
|
64
65
|
})
|
|
@@ -66,41 +67,41 @@ function Ve({
|
|
|
66
67
|
onSuccess: () => {
|
|
67
68
|
k(null), c(null), h.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), I(), C.success("Transitioned");
|
|
68
69
|
},
|
|
69
|
-
onError: (e, { transitionId: a, comment:
|
|
70
|
+
onError: (e, { transitionId: a, comment: re }) => {
|
|
70
71
|
c(null);
|
|
71
|
-
const
|
|
72
|
-
if (
|
|
72
|
+
const F = be(e);
|
|
73
|
+
if (F) {
|
|
73
74
|
k((_) => ({
|
|
74
|
-
payload:
|
|
75
|
+
payload: F,
|
|
75
76
|
transitionId: a,
|
|
76
|
-
comment:
|
|
77
|
+
comment: re,
|
|
77
78
|
revision: ((_ == null ? void 0 : _.revision) ?? 0) + 1
|
|
78
79
|
}));
|
|
79
80
|
return;
|
|
80
81
|
}
|
|
81
|
-
C.error(
|
|
82
|
+
C.error(me(e, "Transition failed"));
|
|
82
83
|
}
|
|
83
|
-
}),
|
|
84
|
-
mutationFn: (e) => f.request(
|
|
84
|
+
}), E = D({
|
|
85
|
+
mutationFn: (e) => f.request(O("/comments", { collection: o, item: s, text: e })),
|
|
85
86
|
onSuccess: () => {
|
|
86
|
-
|
|
87
|
+
P(""), h.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
|
|
87
88
|
},
|
|
88
89
|
onError: () => C.error("Failed to post comment")
|
|
89
90
|
});
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
ce(o, s, (e) => {
|
|
92
|
+
V(e, U.state) && (h.invalidateQueries({ queryKey: ["queue-sheet-instance", o, s] }), e.own || I()), V(e, U.comments) && h.invalidateQueries({ queryKey: ["queue-sheet-comments", o, s] });
|
|
92
93
|
});
|
|
93
|
-
const w =
|
|
94
|
-
const a =
|
|
94
|
+
const w = qe(m == null ? void 0 : m.available_transitions), i = N && w.some((e) => e.id === N.id) ? N : null, R = new Map(((m == null ? void 0 : m.states) ?? []).map((e) => [e.id, e])), Q = (e) => {
|
|
95
|
+
const a = R.get(e.to_state);
|
|
95
96
|
return e.label || (a == null ? void 0 : a.label) || (a == null ? void 0 : a.key) || "Move";
|
|
96
|
-
},
|
|
97
|
-
const a =
|
|
97
|
+
}, ee = (e) => {
|
|
98
|
+
const a = R.get(e.to_state);
|
|
98
99
|
return (a == null ? void 0 : a.label) || (a == null ? void 0 : a.key) || e.label || "the next step";
|
|
99
|
-
},
|
|
100
|
+
}, te = async (e) => {
|
|
100
101
|
if (!d.isPending) {
|
|
101
|
-
if (
|
|
102
|
+
if (_e(e)) {
|
|
102
103
|
c(null);
|
|
103
|
-
const a = await
|
|
104
|
+
const a = await A.ask(Q(e));
|
|
104
105
|
if (!a) return;
|
|
105
106
|
d.mutate({ transitionId: e.id, comment: a });
|
|
106
107
|
return;
|
|
@@ -108,19 +109,19 @@ function Ve({
|
|
|
108
109
|
c(e);
|
|
109
110
|
}
|
|
110
111
|
};
|
|
111
|
-
return /* @__PURE__ */ n(
|
|
112
|
+
return /* @__PURE__ */ n(fe, { open: !!t, onOpenChange: b, children: [
|
|
112
113
|
/* @__PURE__ */ r(
|
|
113
|
-
|
|
114
|
+
ge,
|
|
114
115
|
{
|
|
115
116
|
side: "right",
|
|
116
117
|
className: "flex max-w-full flex-col gap-0 p-0",
|
|
117
|
-
style: { width:
|
|
118
|
-
children: t && /* @__PURE__ */ n(
|
|
119
|
-
/* @__PURE__ */ r(
|
|
118
|
+
style: { width: Y ?? 480, maxWidth: "96vw" },
|
|
119
|
+
children: t && /* @__PURE__ */ n(ae, { children: [
|
|
120
|
+
/* @__PURE__ */ r(ye, { className: "shrink-0 border-b border-slate-200 px-5 py-4 dark:border-border", children: /* @__PURE__ */ n("div", { className: "flex items-start justify-between gap-3 pr-6", children: [
|
|
120
121
|
/* @__PURE__ */ n("div", { className: "min-w-0", children: [
|
|
121
|
-
/* @__PURE__ */ r(
|
|
122
|
+
/* @__PURE__ */ r(ve, { className: "truncate text-[15px] font-semibold", children: t.label }),
|
|
122
123
|
/* @__PURE__ */ n("div", { className: "mt-1.5 flex items-center gap-2", children: [
|
|
123
|
-
/* @__PURE__ */ r(
|
|
124
|
+
/* @__PURE__ */ r(he, { variant: "outline", children: T ? T(t.collection) : t.collection }),
|
|
124
125
|
t.state && /* @__PURE__ */ r(
|
|
125
126
|
"span",
|
|
126
127
|
{
|
|
@@ -135,39 +136,45 @@ function Ve({
|
|
|
135
136
|
] })
|
|
136
137
|
] }),
|
|
137
138
|
/* @__PURE__ */ n(
|
|
138
|
-
"
|
|
139
|
+
"a",
|
|
139
140
|
{
|
|
140
|
-
|
|
141
|
-
onClick: () => Y({
|
|
141
|
+
href: L({
|
|
142
142
|
collection: t.collection,
|
|
143
143
|
itemId: t.item_id,
|
|
144
|
-
layoutSlug:
|
|
144
|
+
layoutSlug: K ?? null
|
|
145
145
|
}),
|
|
146
|
+
onClick: (e) => {
|
|
147
|
+
e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0 || (e.preventDefault(), M ? M(t) : Z({
|
|
148
|
+
collection: t.collection,
|
|
149
|
+
itemId: t.item_id,
|
|
150
|
+
layoutSlug: K ?? null
|
|
151
|
+
}));
|
|
152
|
+
},
|
|
146
153
|
className: "flex shrink-0 items-center gap-1 text-[12px] font-medium text-nvr-navy hover:underline dark:text-nvr-cyan",
|
|
147
154
|
children: [
|
|
148
155
|
"Open ",
|
|
149
|
-
/* @__PURE__ */ r(
|
|
156
|
+
/* @__PURE__ */ r(oe, { className: "h-3 w-3" })
|
|
150
157
|
]
|
|
151
158
|
}
|
|
152
159
|
)
|
|
153
160
|
] }) }),
|
|
154
161
|
/* @__PURE__ */ n("div", { className: "flex-1 overflow-y-auto px-5 py-4", children: [
|
|
155
162
|
/* @__PURE__ */ n("div", { className: "mb-4 grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-slate-200 bg-slate-200 dark:border-border dark:bg-border", children: [
|
|
156
|
-
/* @__PURE__ */ r(p, { label: "Owners", children: /* @__PURE__ */ r(
|
|
157
|
-
/* @__PURE__ */ r(p, { label: "Claimed by", children: ((
|
|
163
|
+
/* @__PURE__ */ r(p, { label: "Owners", children: /* @__PURE__ */ r(ke, { owners: t.owners, max: 6 }) }),
|
|
164
|
+
/* @__PURE__ */ r(p, { label: "Claimed by", children: ((j = t.claimed_by) == null ? void 0 : j.name) ?? "—" }),
|
|
158
165
|
/* @__PURE__ */ r(p, { label: "SLA", children: t.sla_status ? /* @__PURE__ */ r(
|
|
159
166
|
"span",
|
|
160
167
|
{
|
|
161
|
-
className:
|
|
168
|
+
className: W(
|
|
162
169
|
"rounded px-1.5 py-0.5 text-[11px] font-medium",
|
|
163
170
|
t.sla_status === "breached" ? "bg-red-50 text-red-600 dark:bg-red-500/10 dark:text-red-400" : t.sla_status === "warning" ? "bg-amber-50 text-amber-600 dark:bg-amber-500/10 dark:text-amber-400" : "bg-emerald-50 text-emerald-600 dark:bg-emerald-500/10 dark:text-emerald-400"
|
|
164
171
|
),
|
|
165
172
|
children: t.sla_status
|
|
166
173
|
}
|
|
167
174
|
) : "—" }),
|
|
168
|
-
/* @__PURE__ */ r(p, { label: "Aging", children:
|
|
175
|
+
/* @__PURE__ */ r(p, { label: "Aging", children: Ce(t.aging_hours) }),
|
|
169
176
|
t.at_risk && /* @__PURE__ */ r(p, { label: "Risk", children: /* @__PURE__ */ r("span", { className: "text-red-500", children: "⚑ At risk" }) }),
|
|
170
|
-
Object.entries(t.extra ?? {}).map(([e, a]) => /* @__PURE__ */ r(p, { label: (y == null ? void 0 : y(e)) ||
|
|
177
|
+
Object.entries(t.extra ?? {}).map(([e, a]) => /* @__PURE__ */ r(p, { label: (y == null ? void 0 : y(e)) || Se(e), children: a == null || a === "" ? "—" : x != null && x[e] ? le(String(a), x[e]) : String(a) }, e))
|
|
171
178
|
] }),
|
|
172
179
|
w.length > 0 && /* @__PURE__ */ n("div", { className: "mb-4", children: [
|
|
173
180
|
/* @__PURE__ */ r("p", { className: "mb-1.5 text-[11px] font-medium uppercase tracking-wide text-slate-400 dark:text-muted-foreground", children: "Transitions" }),
|
|
@@ -177,13 +184,13 @@ function Ve({
|
|
|
177
184
|
type: "button",
|
|
178
185
|
disabled: d.isPending,
|
|
179
186
|
"aria-pressed": (i == null ? void 0 : i.id) === e.id,
|
|
180
|
-
onClick: () => void
|
|
181
|
-
className:
|
|
187
|
+
onClick: () => void te(e),
|
|
188
|
+
className: W(
|
|
182
189
|
"flex items-center gap-1 rounded-md border border-slate-200 bg-white px-2.5 py-1.5 text-[12px] font-medium text-slate-700 hover:border-nvr-cyan hover:text-nvr-navy disabled:opacity-50 dark:border-border dark:bg-card dark:text-slate-200 dark:hover:text-nvr-cyan",
|
|
183
190
|
(i == null ? void 0 : i.id) === e.id && "border-nvr-cyan"
|
|
184
191
|
),
|
|
185
192
|
children: [
|
|
186
|
-
|
|
193
|
+
Q(e),
|
|
187
194
|
/* @__PURE__ */ r(H, { className: "h-3 w-3 text-slate-400" })
|
|
188
195
|
]
|
|
189
196
|
},
|
|
@@ -202,7 +209,7 @@ function Ve({
|
|
|
202
209
|
/* @__PURE__ */ r("span", { className: "font-semibold", children: t.label }),
|
|
203
210
|
" to",
|
|
204
211
|
" ",
|
|
205
|
-
/* @__PURE__ */ r("span", { className: "font-semibold", children:
|
|
212
|
+
/* @__PURE__ */ r("span", { className: "font-semibold", children: ee(i) }),
|
|
206
213
|
"?"
|
|
207
214
|
] }),
|
|
208
215
|
/* @__PURE__ */ n("div", { className: "mt-2 flex gap-2", children: [
|
|
@@ -231,11 +238,11 @@ function Ve({
|
|
|
231
238
|
}
|
|
232
239
|
)
|
|
233
240
|
] }),
|
|
234
|
-
(
|
|
241
|
+
(X || t.claimed_by) && /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
|
|
235
242
|
"button",
|
|
236
243
|
{
|
|
237
244
|
type: "button",
|
|
238
|
-
onClick: () => t.claimed_by ?
|
|
245
|
+
onClick: () => t.claimed_by ? G(t) : z(t),
|
|
239
246
|
className: "rounded-md bg-nvr-cyan px-3 py-1.5 text-[12px] font-medium text-white hover:bg-nvr-cyan/90",
|
|
240
247
|
children: t.claimed_by ? "Release claim" : "Claim this item"
|
|
241
248
|
}
|
|
@@ -246,7 +253,7 @@ function Ve({
|
|
|
246
253
|
((u == null ? void 0 : u.data) ?? []).map((e) => /* @__PURE__ */ n("div", { className: "rounded-md bg-slate-50 px-3 py-2 dark:bg-muted/40", children: [
|
|
247
254
|
/* @__PURE__ */ n("p", { className: "text-[11px] font-medium text-slate-500 dark:text-muted-foreground", children: [
|
|
248
255
|
[e.first_name, e.last_name].filter(Boolean).join(" ") || e.email || "—",
|
|
249
|
-
/* @__PURE__ */ r("span", { className: "ml-1.5 font-normal text-slate-400", children:
|
|
256
|
+
/* @__PURE__ */ r("span", { className: "ml-1.5 font-normal text-slate-400", children: ue(e.created_at) })
|
|
250
257
|
] }),
|
|
251
258
|
/* @__PURE__ */ r("p", { className: "mt-0.5 whitespace-pre-wrap text-[12px] text-slate-700 dark:text-slate-200", children: e.text })
|
|
252
259
|
] }, e.id)),
|
|
@@ -257,7 +264,7 @@ function Ve({
|
|
|
257
264
|
"textarea",
|
|
258
265
|
{
|
|
259
266
|
value: v,
|
|
260
|
-
onChange: (e) =>
|
|
267
|
+
onChange: (e) => P(e.target.value),
|
|
261
268
|
placeholder: "Add a comment…",
|
|
262
269
|
rows: 2,
|
|
263
270
|
className: "w-full rounded-md border border-slate-200 bg-white px-2.5 py-1.5 text-[12px] focus:border-nvr-cyan focus:outline-none dark:border-border dark:bg-card"
|
|
@@ -267,8 +274,8 @@ function Ve({
|
|
|
267
274
|
"button",
|
|
268
275
|
{
|
|
269
276
|
type: "button",
|
|
270
|
-
disabled: !v.trim() ||
|
|
271
|
-
onClick: () =>
|
|
277
|
+
disabled: !v.trim() || E.isPending,
|
|
278
|
+
onClick: () => E.mutate(v.trim()),
|
|
272
279
|
className: "mt-1 rounded-md border border-slate-200 px-2.5 py-1 text-[12px] font-medium text-slate-600 hover:text-slate-800 disabled:opacity-50 dark:border-border dark:text-slate-300",
|
|
273
280
|
children: "Post"
|
|
274
281
|
}
|
|
@@ -276,7 +283,7 @@ function Ve({
|
|
|
276
283
|
] })
|
|
277
284
|
] })
|
|
278
285
|
] }),
|
|
279
|
-
|
|
286
|
+
J && S && /* @__PURE__ */ r("div", { className: "shrink-0 border-t border-slate-200 px-5 py-3 dark:border-border", children: /* @__PURE__ */ n(
|
|
280
287
|
"button",
|
|
281
288
|
{
|
|
282
289
|
type: "button",
|
|
@@ -292,7 +299,7 @@ function Ve({
|
|
|
292
299
|
}
|
|
293
300
|
),
|
|
294
301
|
l && /* @__PURE__ */ r(
|
|
295
|
-
|
|
302
|
+
xe,
|
|
296
303
|
{
|
|
297
304
|
payload: l.payload,
|
|
298
305
|
transitionId: l.transitionId,
|
|
@@ -306,10 +313,10 @@ function Ve({
|
|
|
306
313
|
},
|
|
307
314
|
l.revision
|
|
308
315
|
),
|
|
309
|
-
|
|
316
|
+
A.dialog
|
|
310
317
|
] });
|
|
311
318
|
}
|
|
312
319
|
export {
|
|
313
|
-
|
|
314
|
-
|
|
320
|
+
We as QueueItemSheet,
|
|
321
|
+
qe as peekTransitions
|
|
315
322
|
};
|