@burdenoff/microfe-healthybowl 2026.705.1 → 2026.705.2
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/healthybowl/pages/tasks/TasksPage.js +1 -0
- package/dist/healthybowl/pages/tasks/TasksPage.js.map +1 -1
- package/dist/node_modules/@burdenoff/planmagnet-fe-sdk/dist/index.js +759 -586
- package/dist/node_modules/@burdenoff/planmagnet-fe-sdk/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -17,28 +17,28 @@ import { cva as h } from "../../../class-variance-authority/dist/index.js";
|
|
|
17
17
|
import { createContext as g, useCallback as _, useContext as v, useEffect as y, useMemo as b, useState as x } from "react";
|
|
18
18
|
import { CalendarDays as S, CalendarRange as C, ChevronDown as w, ChevronLeft as T, ChevronRight as E, ChevronUp as D, Circle as O, CircleCheckBig as k, CircleDashed as A, CircleDot as j, CircleDotDashed as M, CircleX as N, Flag as P, LayoutGrid as F, Link2 as I, List as L, Plus as R, Search as z, Trash2 as B, User as V } from "lucide-react";
|
|
19
19
|
import { jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
20
|
-
import { Card as
|
|
20
|
+
import { Card as W, CardContent as ee } from "@burdenoff/fe-libs/ui";
|
|
21
21
|
import { gql as G } from "@apollo/client";
|
|
22
|
-
import { useApolloClient as te, useMutation as
|
|
22
|
+
import { useApolloClient as te, useMutation as K, useQuery as q } from "@apollo/client/react";
|
|
23
23
|
import "@apollo/client/core";
|
|
24
24
|
import "@apollo/client/link/context";
|
|
25
25
|
import "@apollo/client/link/error";
|
|
26
26
|
//#region node_modules/@burdenoff/planmagnet-fe-sdk/dist/index.js
|
|
27
|
-
var
|
|
27
|
+
var ne = {
|
|
28
28
|
apiGatewayUrl: "",
|
|
29
29
|
workspaceId: ""
|
|
30
30
|
};
|
|
31
31
|
new Proxy({}, { get(e, t) {
|
|
32
|
-
return
|
|
32
|
+
return ne[t];
|
|
33
33
|
} });
|
|
34
|
-
function
|
|
35
|
-
return { ...
|
|
34
|
+
function re() {
|
|
35
|
+
return { ...ne };
|
|
36
36
|
}
|
|
37
|
-
var
|
|
38
|
-
function
|
|
39
|
-
return v(
|
|
37
|
+
var ie = g(null);
|
|
38
|
+
function ae() {
|
|
39
|
+
return v(ie);
|
|
40
40
|
}
|
|
41
|
-
var
|
|
41
|
+
var oe = G`
|
|
42
42
|
fragment WorkItemSummaryFields on WorkItem {
|
|
43
43
|
id
|
|
44
44
|
key
|
|
@@ -52,7 +52,7 @@ var se = G`
|
|
|
52
52
|
dueDate
|
|
53
53
|
labels
|
|
54
54
|
}
|
|
55
|
-
`,
|
|
55
|
+
`, se = G`
|
|
56
56
|
fragment WorkItemFields on WorkItem {
|
|
57
57
|
id
|
|
58
58
|
workspaceId
|
|
@@ -81,7 +81,7 @@ var se = G`
|
|
|
81
81
|
updatedBy
|
|
82
82
|
deletedAt
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`, ce = G`
|
|
85
85
|
fragment ProjectSummaryFields on Project {
|
|
86
86
|
id
|
|
87
87
|
name
|
|
@@ -93,7 +93,7 @@ var se = G`
|
|
|
93
93
|
endDate
|
|
94
94
|
tags
|
|
95
95
|
}
|
|
96
|
-
`,
|
|
96
|
+
`, le = G`
|
|
97
97
|
query ListWorkItems(
|
|
98
98
|
$workspaceId: ID!
|
|
99
99
|
$filter: PlanmagnetWorkItemFilter
|
|
@@ -117,14 +117,14 @@ var se = G`
|
|
|
117
117
|
totalCount
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
${
|
|
121
|
-
`,
|
|
120
|
+
${oe}
|
|
121
|
+
`, ue = G`
|
|
122
122
|
query GetWorkItem($id: ID!) {
|
|
123
123
|
planmagnetWorkItem(id: $id) {
|
|
124
124
|
...WorkItemFields
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
${
|
|
127
|
+
${se}
|
|
128
128
|
`;
|
|
129
129
|
G`
|
|
130
130
|
query GetProjects(
|
|
@@ -150,22 +150,22 @@ G`
|
|
|
150
150
|
totalCount
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
${
|
|
153
|
+
${ce}
|
|
154
154
|
`;
|
|
155
|
-
var
|
|
155
|
+
var de = G`
|
|
156
156
|
mutation CreateWorkItem($input: PlanmagnetCreateWorkItemInput!) {
|
|
157
157
|
planmagnetCreateWorkItem(input: $input) {
|
|
158
158
|
...WorkItemFields
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
-
${
|
|
162
|
-
`,
|
|
161
|
+
${se}
|
|
162
|
+
`, fe = G`
|
|
163
163
|
mutation UpdateWorkItem($id: ID!, $input: PlanmagnetUpdateWorkItemInput!) {
|
|
164
164
|
planmagnetUpdateWorkItem(id: $id, input: $input) {
|
|
165
165
|
...WorkItemFields
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
${
|
|
168
|
+
${se}
|
|
169
169
|
`;
|
|
170
170
|
G`
|
|
171
171
|
mutation MoveWorkItem($id: ID!, $input: PlanmagnetMoveWorkItemInput!) {
|
|
@@ -173,9 +173,9 @@ G`
|
|
|
173
173
|
...WorkItemFields
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
${
|
|
176
|
+
${se}
|
|
177
177
|
`;
|
|
178
|
-
var
|
|
178
|
+
var pe = G`
|
|
179
179
|
fragment WorkItemLinkFields on WorkItemLink {
|
|
180
180
|
id
|
|
181
181
|
workspaceId
|
|
@@ -192,7 +192,7 @@ var me = G`
|
|
|
192
192
|
createdAt
|
|
193
193
|
updatedAt
|
|
194
194
|
}
|
|
195
|
-
`,
|
|
195
|
+
`, me = G`
|
|
196
196
|
query ListWorkItemLinks(
|
|
197
197
|
$workspaceId: ID!
|
|
198
198
|
$filter: PlanmagnetWorkItemLinkFilter
|
|
@@ -216,7 +216,7 @@ var me = G`
|
|
|
216
216
|
totalCount
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
${
|
|
219
|
+
${pe}
|
|
220
220
|
`;
|
|
221
221
|
G`
|
|
222
222
|
mutation CreateWorkItemLink($input: PlanmagnetCreateWorkItemLinkInput!) {
|
|
@@ -224,13 +224,13 @@ G`
|
|
|
224
224
|
...WorkItemLinkFields
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
${
|
|
227
|
+
${pe}
|
|
228
228
|
`, G`
|
|
229
229
|
mutation UnlinkWorkItem($id: ID!) {
|
|
230
230
|
planmagnetUnlinkWorkItem(id: $id)
|
|
231
231
|
}
|
|
232
232
|
`;
|
|
233
|
-
var
|
|
233
|
+
var he = G`
|
|
234
234
|
query ListMilestones(
|
|
235
235
|
$workspaceId: ID!
|
|
236
236
|
$filter: PlanmagnetMilestoneFilter
|
|
@@ -268,40 +268,74 @@ var ge = G`
|
|
|
268
268
|
updatedAt
|
|
269
269
|
}
|
|
270
270
|
`}
|
|
271
|
-
`,
|
|
271
|
+
`, ge = G`
|
|
272
272
|
mutation DeleteWorkItem($id: ID!) {
|
|
273
273
|
planmagnetDeleteWorkItem(id: $id)
|
|
274
274
|
}
|
|
275
|
+
`, _e = G`
|
|
276
|
+
fragment EntityCommentFields on EntityComment {
|
|
277
|
+
id
|
|
278
|
+
authorId
|
|
279
|
+
authorType
|
|
280
|
+
content {
|
|
281
|
+
text
|
|
282
|
+
}
|
|
283
|
+
createdAt
|
|
284
|
+
edited
|
|
285
|
+
editedAt
|
|
286
|
+
status
|
|
287
|
+
}
|
|
288
|
+
`, ve = G`
|
|
289
|
+
query GetEntityComments($input: GetCommentsInput!) {
|
|
290
|
+
getEntityComments(input: $input) {
|
|
291
|
+
items {
|
|
292
|
+
...EntityCommentFields
|
|
293
|
+
}
|
|
294
|
+
total
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
${_e}
|
|
298
|
+
`, ye = G`
|
|
299
|
+
mutation CreateEntityComment($input: CreateEntityCommentInput!) {
|
|
300
|
+
createEntityComment(input: $input) {
|
|
301
|
+
...EntityCommentFields
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
${_e}
|
|
305
|
+
`, be = G`
|
|
306
|
+
mutation DeleteEntityComment($input: DeleteCommentInput!) {
|
|
307
|
+
deleteEntityComment(input: $input)
|
|
308
|
+
}
|
|
275
309
|
`;
|
|
276
|
-
function
|
|
310
|
+
function J(...n) {
|
|
277
311
|
return t(e(n));
|
|
278
312
|
}
|
|
279
|
-
var
|
|
280
|
-
function
|
|
313
|
+
var xe = /* @__PURE__ */ new Set(["DONE", "CANCELLED"]);
|
|
314
|
+
function Se(e) {
|
|
281
315
|
if (!e) return null;
|
|
282
316
|
let t = m(e);
|
|
283
317
|
return o(t) ? t : null;
|
|
284
318
|
}
|
|
285
|
-
function
|
|
319
|
+
function Ce(e) {
|
|
286
320
|
if (!e) return;
|
|
287
321
|
let t = /^\d{4}-\d{2}-\d{2}$/.test(e) ? `${e}T00:00:00.000Z` : e, n = new Date(t);
|
|
288
322
|
return Number.isNaN(n.getTime()) ? void 0 : n.toISOString();
|
|
289
323
|
}
|
|
290
|
-
function
|
|
291
|
-
let t =
|
|
324
|
+
function we(e) {
|
|
325
|
+
let t = Se(e);
|
|
292
326
|
if (!t) return null;
|
|
293
327
|
let n = /* @__PURE__ */ new Date();
|
|
294
328
|
return d(t, t.getFullYear() === n.getFullYear() ? "MMM d" : "MMM d yyyy");
|
|
295
329
|
}
|
|
296
|
-
function
|
|
297
|
-
let t =
|
|
330
|
+
function Te(e) {
|
|
331
|
+
let t = Se(e);
|
|
298
332
|
return t ? d(t, "MMM d, yyyy") : null;
|
|
299
333
|
}
|
|
300
|
-
function
|
|
301
|
-
let n =
|
|
302
|
-
return !n || t &&
|
|
334
|
+
function Ee(e, t) {
|
|
335
|
+
let n = Se(e);
|
|
336
|
+
return !n || t && xe.has(t) ? !1 : i(n).getTime() < i(/* @__PURE__ */ new Date()).getTime();
|
|
303
337
|
}
|
|
304
|
-
var
|
|
338
|
+
var De = h("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium capitalize transition-colors", {
|
|
305
339
|
variants: { variant: {
|
|
306
340
|
default: "bg-primary/10 text-primary",
|
|
307
341
|
muted: "bg-muted text-muted-foreground",
|
|
@@ -311,29 +345,29 @@ var Ce = h("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-m
|
|
|
311
345
|
} },
|
|
312
346
|
defaultVariants: { variant: "default" }
|
|
313
347
|
});
|
|
314
|
-
function
|
|
348
|
+
function Oe({ className: e, variant: t, ...n }) {
|
|
315
349
|
return /* @__PURE__ */ H("span", {
|
|
316
|
-
className:
|
|
350
|
+
className: J(De({ variant: t }), e),
|
|
317
351
|
...n
|
|
318
352
|
});
|
|
319
353
|
}
|
|
320
|
-
var
|
|
354
|
+
var ke = [
|
|
321
355
|
"bg-primary/15 text-primary",
|
|
322
356
|
"bg-secondary text-secondary-foreground",
|
|
323
357
|
"bg-accent text-accent-foreground",
|
|
324
358
|
"bg-muted text-muted-foreground",
|
|
325
359
|
"bg-destructive/15 text-destructive"
|
|
326
|
-
],
|
|
360
|
+
], Ae = {
|
|
327
361
|
sm: "h-5 w-5 text-[9px]",
|
|
328
362
|
md: "h-6 w-6 text-[10px]",
|
|
329
363
|
lg: "h-8 w-8 text-xs"
|
|
330
364
|
};
|
|
331
|
-
function
|
|
365
|
+
function je(e) {
|
|
332
366
|
let t = 0;
|
|
333
367
|
for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
334
|
-
return t %
|
|
368
|
+
return t % ke.length;
|
|
335
369
|
}
|
|
336
|
-
function
|
|
370
|
+
function Me(e, t) {
|
|
337
371
|
let n = (e ?? "").trim();
|
|
338
372
|
if (n) {
|
|
339
373
|
let e = n.split(/\s+/);
|
|
@@ -341,9 +375,9 @@ function Oe(e, t) {
|
|
|
341
375
|
}
|
|
342
376
|
return (t ?? "").replace(/[^a-zA-Z0-9]/g, "").slice(0, 2).toUpperCase() || "?";
|
|
343
377
|
}
|
|
344
|
-
function
|
|
378
|
+
function Ne({ id: e, name: t, size: n = "md", className: r }) {
|
|
345
379
|
if (!e && !t) return /* @__PURE__ */ H("span", {
|
|
346
|
-
className:
|
|
380
|
+
className: J("inline-flex items-center justify-center rounded-full border border-dashed border-border text-muted-foreground", Ae[n], r),
|
|
347
381
|
title: "Unassigned",
|
|
348
382
|
"aria-label": "Unassigned",
|
|
349
383
|
children: /* @__PURE__ */ H(V, {
|
|
@@ -351,15 +385,15 @@ function ke({ id: e, name: t, size: n = "md", className: r }) {
|
|
|
351
385
|
"aria-hidden": "true"
|
|
352
386
|
})
|
|
353
387
|
});
|
|
354
|
-
let i =
|
|
388
|
+
let i = ke[je(t || e || "")];
|
|
355
389
|
return /* @__PURE__ */ H("span", {
|
|
356
|
-
className:
|
|
390
|
+
className: J("inline-flex items-center justify-center rounded-full font-medium", Ae[n], i, r),
|
|
357
391
|
title: t ?? e ?? void 0,
|
|
358
392
|
"aria-label": t ?? e ?? void 0,
|
|
359
|
-
children:
|
|
393
|
+
children: Me(t, e)
|
|
360
394
|
});
|
|
361
395
|
}
|
|
362
|
-
var
|
|
396
|
+
var Pe = [
|
|
363
397
|
{
|
|
364
398
|
status: "BACKLOG",
|
|
365
399
|
label: "Backlog"
|
|
@@ -388,19 +422,19 @@ var Ae = [
|
|
|
388
422
|
status: "CANCELLED",
|
|
389
423
|
label: "Cancelled"
|
|
390
424
|
}
|
|
391
|
-
],
|
|
425
|
+
], Fe = [
|
|
392
426
|
"NONE",
|
|
393
427
|
"LOW",
|
|
394
428
|
"MEDIUM",
|
|
395
429
|
"HIGH",
|
|
396
430
|
"CRITICAL"
|
|
397
|
-
],
|
|
431
|
+
], Ie = [
|
|
398
432
|
"TASK",
|
|
399
433
|
"STORY",
|
|
400
434
|
"BUG",
|
|
401
435
|
"EPIC",
|
|
402
436
|
"SUB_TASK"
|
|
403
|
-
],
|
|
437
|
+
], Le = [
|
|
404
438
|
"BACKLOG",
|
|
405
439
|
"TODO",
|
|
406
440
|
"IN_PROGRESS",
|
|
@@ -409,16 +443,16 @@ var Ae = [
|
|
|
409
443
|
"DONE",
|
|
410
444
|
"CANCELLED"
|
|
411
445
|
];
|
|
412
|
-
function
|
|
446
|
+
function Re(e) {
|
|
413
447
|
return e.toLowerCase().replace(/_/g, " ");
|
|
414
448
|
}
|
|
415
|
-
function
|
|
416
|
-
let r = e.displayNameSnapshot ||
|
|
449
|
+
function ze({ link: e, renderIcon: t, className: n }) {
|
|
450
|
+
let r = e.displayNameSnapshot || Re(e.entityType), i = t?.(e.entityType) ?? /* @__PURE__ */ H(I, {
|
|
417
451
|
className: "h-3 w-3 shrink-0",
|
|
418
452
|
"aria-hidden": "true"
|
|
419
453
|
}), a = /* @__PURE__ */ U("span", {
|
|
420
|
-
className:
|
|
421
|
-
title: `${
|
|
454
|
+
className: J("inline-flex max-w-full items-center gap-1 rounded-full border border-primary/20 bg-primary/5 px-1.5 py-0.5 text-[10px] font-medium text-primary", n),
|
|
455
|
+
title: `${Re(e.relationType)} \xB7 ${Re(e.entityType)}`,
|
|
422
456
|
children: [i, /* @__PURE__ */ H("span", {
|
|
423
457
|
className: "truncate",
|
|
424
458
|
children: r
|
|
@@ -431,7 +465,7 @@ function Fe({ link: e, renderIcon: t, className: n }) {
|
|
|
431
465
|
children: a
|
|
432
466
|
}) : a;
|
|
433
467
|
}
|
|
434
|
-
var
|
|
468
|
+
var Be = {
|
|
435
469
|
board: "Board",
|
|
436
470
|
list: "List",
|
|
437
471
|
timeline: "Timeline",
|
|
@@ -487,6 +521,15 @@ var Ie = {
|
|
|
487
521
|
parentLabel: "Parent",
|
|
488
522
|
subtasksLabel: "Sub-tasks",
|
|
489
523
|
addSubtask: "Add sub-task",
|
|
524
|
+
commentsLabel: "Comments",
|
|
525
|
+
commentPlaceholder: "Write a comment…",
|
|
526
|
+
postComment: "Comment",
|
|
527
|
+
posting: "Posting…",
|
|
528
|
+
noComments: "No comments yet",
|
|
529
|
+
you: "You",
|
|
530
|
+
editedTag: "(edited)",
|
|
531
|
+
failedToComment: "Failed to post comment",
|
|
532
|
+
failedToDeleteComment: "Failed to delete comment",
|
|
490
533
|
create: "Create task",
|
|
491
534
|
creating: "Creating…",
|
|
492
535
|
cancel: "Cancel",
|
|
@@ -529,29 +572,29 @@ var Ie = {
|
|
|
529
572
|
EPIC: "Epic",
|
|
530
573
|
SUB_TASK: "Sub Task"
|
|
531
574
|
}
|
|
532
|
-
},
|
|
575
|
+
}, Ve = g(Be), He = Ve.Provider;
|
|
533
576
|
function Y() {
|
|
534
|
-
return v(
|
|
577
|
+
return v(Ve);
|
|
535
578
|
}
|
|
536
|
-
function
|
|
579
|
+
function Ue(e) {
|
|
537
580
|
return e ? {
|
|
538
|
-
...
|
|
581
|
+
...Be,
|
|
539
582
|
...e,
|
|
540
583
|
status: {
|
|
541
|
-
...
|
|
584
|
+
...Be.status,
|
|
542
585
|
...e.status
|
|
543
586
|
},
|
|
544
587
|
priority: {
|
|
545
|
-
...
|
|
588
|
+
...Be.priority,
|
|
546
589
|
...e.priority
|
|
547
590
|
},
|
|
548
591
|
type: {
|
|
549
|
-
...
|
|
592
|
+
...Be.type,
|
|
550
593
|
...e.type
|
|
551
594
|
}
|
|
552
|
-
} :
|
|
595
|
+
} : Be;
|
|
553
596
|
}
|
|
554
|
-
var
|
|
597
|
+
var We = {
|
|
555
598
|
BACKLOG: {
|
|
556
599
|
icon: A,
|
|
557
600
|
tone: "text-muted-foreground/60"
|
|
@@ -581,21 +624,21 @@ var Be = {
|
|
|
581
624
|
tone: "text-destructive/70"
|
|
582
625
|
}
|
|
583
626
|
};
|
|
584
|
-
function
|
|
585
|
-
let n =
|
|
627
|
+
function Ge({ status: e, className: t }) {
|
|
628
|
+
let n = We[e] ?? We.TODO, r = n.icon;
|
|
586
629
|
return /* @__PURE__ */ H(r, {
|
|
587
|
-
className:
|
|
630
|
+
className: J("h-3.5 w-3.5 shrink-0", n.tone, t),
|
|
588
631
|
"aria-hidden": "true"
|
|
589
632
|
});
|
|
590
633
|
}
|
|
591
|
-
function
|
|
634
|
+
function Ke({ status: e, className: t }) {
|
|
592
635
|
let n = Y();
|
|
593
636
|
return /* @__PURE__ */ U("span", {
|
|
594
|
-
className:
|
|
595
|
-
children: [/* @__PURE__ */ H(
|
|
637
|
+
className: J("inline-flex items-center gap-1.5 rounded-md border border-border bg-muted/40 px-2 py-0.5 text-xs font-medium capitalize text-foreground", t),
|
|
638
|
+
children: [/* @__PURE__ */ H(Ge, { status: e }), n.status[e]]
|
|
596
639
|
});
|
|
597
640
|
}
|
|
598
|
-
var
|
|
641
|
+
var qe = {
|
|
599
642
|
NONE: {
|
|
600
643
|
level: 0,
|
|
601
644
|
tone: "text-muted-foreground/50"
|
|
@@ -616,42 +659,42 @@ var Ue = {
|
|
|
616
659
|
level: 3,
|
|
617
660
|
tone: "text-destructive"
|
|
618
661
|
}
|
|
619
|
-
},
|
|
662
|
+
}, Je = [
|
|
620
663
|
"h-1.5",
|
|
621
664
|
"h-2.5",
|
|
622
665
|
"h-3.5"
|
|
623
666
|
];
|
|
624
|
-
function
|
|
625
|
-
let r = Y(), i =
|
|
667
|
+
function Ye({ priority: e, showLabel: t = !1, className: n }) {
|
|
668
|
+
let r = Y(), i = qe[e] ?? qe.NONE;
|
|
626
669
|
return /* @__PURE__ */ U("span", {
|
|
627
|
-
className:
|
|
670
|
+
className: J("inline-flex items-center gap-1.5", i.tone, n),
|
|
628
671
|
title: `${r.priorityLabel}: ${r.priority[e]}`,
|
|
629
672
|
children: [/* @__PURE__ */ H("span", {
|
|
630
673
|
className: "flex items-end gap-0.5",
|
|
631
674
|
"aria-hidden": "true",
|
|
632
|
-
children:
|
|
675
|
+
children: Je.map((e, t) => /* @__PURE__ */ H("span", { className: J("w-1 rounded-[1px]", e, t < i.level ? "bg-current" : "bg-current/25") }, e))
|
|
633
676
|
}), t && /* @__PURE__ */ H("span", {
|
|
634
677
|
className: "text-xs font-medium capitalize",
|
|
635
678
|
children: r.priority[e]
|
|
636
679
|
})]
|
|
637
680
|
});
|
|
638
681
|
}
|
|
639
|
-
var
|
|
682
|
+
var Xe = {
|
|
640
683
|
TASK: "secondary",
|
|
641
684
|
STORY: "default",
|
|
642
685
|
BUG: "destructive",
|
|
643
686
|
EPIC: "accent",
|
|
644
687
|
SUB_TASK: "muted"
|
|
645
688
|
};
|
|
646
|
-
function
|
|
689
|
+
function Ze({ type: e, className: t }) {
|
|
647
690
|
let n = Y();
|
|
648
|
-
return /* @__PURE__ */ H(
|
|
649
|
-
variant:
|
|
691
|
+
return /* @__PURE__ */ H(Oe, {
|
|
692
|
+
variant: Xe[e],
|
|
650
693
|
className: t,
|
|
651
694
|
children: n.type[e]
|
|
652
695
|
});
|
|
653
696
|
}
|
|
654
|
-
function
|
|
697
|
+
function Qe({ open: e, onClose: t, children: n, ariaLabel: r, className: i, variant: a }) {
|
|
655
698
|
if (y(() => {
|
|
656
699
|
if (!e) return;
|
|
657
700
|
let n = (e) => {
|
|
@@ -661,13 +704,13 @@ function Je({ open: e, onClose: t, children: n, ariaLabel: r, className: i, vari
|
|
|
661
704
|
}, [e, t]), !e) return null;
|
|
662
705
|
let o = a === "modal";
|
|
663
706
|
return /* @__PURE__ */ H("div", {
|
|
664
|
-
className:
|
|
707
|
+
className: J("fixed inset-0 z-50 flex bg-foreground/40", o ? "items-center justify-center p-4" : "justify-end"),
|
|
665
708
|
onClick: t,
|
|
666
709
|
children: /* @__PURE__ */ U("div", {
|
|
667
710
|
role: "dialog",
|
|
668
711
|
"aria-modal": "true",
|
|
669
712
|
"aria-label": r,
|
|
670
|
-
className:
|
|
713
|
+
className: J("relative overflow-y-auto bg-background text-foreground shadow-lg", o ? "max-h-[90vh] w-full max-w-2xl rounded-lg" : "h-full w-full max-w-lg", i),
|
|
671
714
|
onClick: (e) => e.stopPropagation(),
|
|
672
715
|
children: [/* @__PURE__ */ H("button", {
|
|
673
716
|
type: "button",
|
|
@@ -679,21 +722,21 @@ function Je({ open: e, onClose: t, children: n, ariaLabel: r, className: i, vari
|
|
|
679
722
|
})
|
|
680
723
|
});
|
|
681
724
|
}
|
|
682
|
-
function
|
|
683
|
-
return /* @__PURE__ */ H(
|
|
725
|
+
function $e(e) {
|
|
726
|
+
return /* @__PURE__ */ H(Qe, {
|
|
684
727
|
variant: "modal",
|
|
685
728
|
...e
|
|
686
729
|
});
|
|
687
730
|
}
|
|
688
|
-
function
|
|
689
|
-
return /* @__PURE__ */ H(
|
|
731
|
+
function et(e) {
|
|
732
|
+
return /* @__PURE__ */ H(Qe, {
|
|
690
733
|
variant: "drawer",
|
|
691
734
|
...e
|
|
692
735
|
});
|
|
693
736
|
}
|
|
694
|
-
var
|
|
695
|
-
function
|
|
696
|
-
let d = Y(), f =
|
|
737
|
+
var tt = /* @__PURE__ */ new Set();
|
|
738
|
+
function nt({ task: e, hidden: t = tt, onClick: n, draggable: r, onDragStart: i, onDragEnd: a, dragging: o, resolveAssignee: s, links: c, renderLinkIcon: l, className: u }) {
|
|
739
|
+
let d = Y(), f = Ee(e.dueDate, e.status), p = we(e.dueDate), m = e.assigneeId ? s?.(e.assigneeId) : null, h = !t.has("key") || !t.has("type"), g = !t.has("links") && (c?.length ?? 0) > 0, _ = !t.has("labels") && (e.labels?.length ?? 0) > 0, v = !t.has("priority"), y = !t.has("storyPoints") && e.storyPoints != null, b = v || y, x = !t.has("assignee"), C = !t.has("dueDate") && !!p, w = x || C, T = !!n;
|
|
697
740
|
return /* @__PURE__ */ U("div", {
|
|
698
741
|
role: T ? "button" : void 0,
|
|
699
742
|
tabIndex: T ? 0 : void 0,
|
|
@@ -704,14 +747,14 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
704
747
|
onKeyDown: n ? (t) => {
|
|
705
748
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), n(e));
|
|
706
749
|
} : void 0,
|
|
707
|
-
className:
|
|
750
|
+
className: J("group rounded-lg border border-border bg-card p-2.5 shadow-sm transition", "focus:outline-none focus-visible:ring-2 focus-visible:ring-ring", T && "cursor-pointer hover:border-primary/50 hover:shadow-md", r && "active:cursor-grabbing", o && "opacity-50 ring-2 ring-primary/40", u),
|
|
708
751
|
children: [
|
|
709
752
|
h && /* @__PURE__ */ U("div", {
|
|
710
753
|
className: "mb-1 flex items-center justify-between gap-2",
|
|
711
754
|
children: [t.has("key") ? /* @__PURE__ */ H("span", {}) : /* @__PURE__ */ H("span", {
|
|
712
755
|
className: "font-mono text-[10px] uppercase tracking-wide text-muted-foreground",
|
|
713
756
|
children: e.key
|
|
714
|
-
}), !t.has("type") && /* @__PURE__ */ H(
|
|
757
|
+
}), !t.has("type") && /* @__PURE__ */ H(Ze, { type: e.type })]
|
|
715
758
|
}),
|
|
716
759
|
/* @__PURE__ */ H("p", {
|
|
717
760
|
className: "line-clamp-2 text-sm font-medium leading-snug text-foreground",
|
|
@@ -719,7 +762,7 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
719
762
|
}),
|
|
720
763
|
g && /* @__PURE__ */ U("div", {
|
|
721
764
|
className: "mt-1.5 flex flex-wrap gap-1",
|
|
722
|
-
children: [c.slice(0, 3).map((e) => /* @__PURE__ */ H(
|
|
765
|
+
children: [c.slice(0, 3).map((e) => /* @__PURE__ */ H(ze, {
|
|
723
766
|
link: e,
|
|
724
767
|
renderIcon: l
|
|
725
768
|
}, e.id)), c.length > 3 && /* @__PURE__ */ U("span", {
|
|
@@ -739,7 +782,7 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
739
782
|
}),
|
|
740
783
|
b && /* @__PURE__ */ U("div", {
|
|
741
784
|
className: "mt-2 flex items-center justify-between",
|
|
742
|
-
children: [v ? /* @__PURE__ */ H(
|
|
785
|
+
children: [v ? /* @__PURE__ */ H(Ye, {
|
|
743
786
|
priority: e.priority,
|
|
744
787
|
showLabel: !0
|
|
745
788
|
}) : /* @__PURE__ */ H("span", {}), y && /* @__PURE__ */ H("span", {
|
|
@@ -752,7 +795,7 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
752
795
|
className: "mt-2 flex items-center justify-between gap-2",
|
|
753
796
|
children: [x ? /* @__PURE__ */ U("span", {
|
|
754
797
|
className: "flex min-w-0 items-center gap-1.5",
|
|
755
|
-
children: [/* @__PURE__ */ H(
|
|
798
|
+
children: [/* @__PURE__ */ H(Ne, {
|
|
756
799
|
id: e.assigneeId,
|
|
757
800
|
name: m?.name,
|
|
758
801
|
size: "sm"
|
|
@@ -761,7 +804,7 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
761
804
|
children: m.name
|
|
762
805
|
})]
|
|
763
806
|
}) : /* @__PURE__ */ H("span", {}), C && /* @__PURE__ */ U("span", {
|
|
764
|
-
className:
|
|
807
|
+
className: J("flex shrink-0 items-center gap-1 text-[11px]", f ? "font-medium text-destructive" : "text-muted-foreground"),
|
|
765
808
|
title: f ? d.overdueLabel : d.dueDateLabel,
|
|
766
809
|
children: [/* @__PURE__ */ H(S, {
|
|
767
810
|
className: "h-3 w-3",
|
|
@@ -772,8 +815,8 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
772
815
|
]
|
|
773
816
|
});
|
|
774
817
|
}
|
|
775
|
-
function
|
|
776
|
-
let { data: r, loading: i } =
|
|
818
|
+
function rt(e, t, n = 500) {
|
|
819
|
+
let { data: r, loading: i } = q(me, {
|
|
777
820
|
variables: {
|
|
778
821
|
workspaceId: e,
|
|
779
822
|
...t ? { filter: { sourceProduct: t } } : {},
|
|
@@ -793,8 +836,8 @@ function $e(e, t, n = 500) {
|
|
|
793
836
|
loading: i
|
|
794
837
|
};
|
|
795
838
|
}
|
|
796
|
-
function
|
|
797
|
-
let g =
|
|
839
|
+
function it({ projectId: e, columns: t = Pe, readonly: n, confirmMove: r = !0, hideHeader: i, priority: a = "ALL", type: o = "ALL", search: s = "", assigneeId: c, hiddenFields: l, resolveAssignee: u, linkSourceProduct: d, renderLinkIcon: f, onTaskClick: p, className: m, workspaceId: h }) {
|
|
840
|
+
let g = ae(), v = h ?? g?.workspaceId, y = te(), S = Y(), C = b(() => new Set(l ?? []), [l]), { linksByItem: w } = rt(v, d), [T, E] = x(null), [D, O] = x(null), [k, A] = x(null), [j, M] = x(null), [N] = K(fe), { data: P, loading: F, error: I } = q(le, {
|
|
798
841
|
variables: {
|
|
799
842
|
workspaceId: v,
|
|
800
843
|
...e ? { filter: { projectId: e } } : {},
|
|
@@ -826,15 +869,15 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
826
869
|
S
|
|
827
870
|
]);
|
|
828
871
|
if (!v) return /* @__PURE__ */ H("div", {
|
|
829
|
-
className:
|
|
872
|
+
className: J("p-6 text-sm text-destructive", m),
|
|
830
873
|
children: "TaskBoard: no workspaceId provided (prop or PlanMagnetProvider)."
|
|
831
874
|
});
|
|
832
875
|
if (F && !P) return /* @__PURE__ */ H("div", {
|
|
833
|
-
className:
|
|
876
|
+
className: J("flex items-center justify-center p-12", m),
|
|
834
877
|
children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
|
|
835
878
|
});
|
|
836
879
|
if (I && !P) return /* @__PURE__ */ U("div", {
|
|
837
|
-
className:
|
|
880
|
+
className: J("p-6 text-sm text-destructive", m),
|
|
838
881
|
children: [
|
|
839
882
|
S.errorLoading,
|
|
840
883
|
": ",
|
|
@@ -845,9 +888,9 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
845
888
|
e.title,
|
|
846
889
|
e.key,
|
|
847
890
|
...e.labels ?? []
|
|
848
|
-
].join(" ").toLowerCase().includes(z))), V = !n,
|
|
891
|
+
].join(" ").toLowerCase().includes(z))), V = !n, W = (e) => (t) => {
|
|
849
892
|
!V || !T || (t.preventDefault(), D !== e && O(e));
|
|
850
|
-
},
|
|
893
|
+
}, ee = (e) => (t) => {
|
|
851
894
|
if (!V) return;
|
|
852
895
|
t.preventDefault();
|
|
853
896
|
let n = R.find((e) => e.id === T);
|
|
@@ -857,7 +900,7 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
857
900
|
}) : L(n, e));
|
|
858
901
|
};
|
|
859
902
|
return /* @__PURE__ */ U("div", {
|
|
860
|
-
className:
|
|
903
|
+
className: J("space-y-3", m),
|
|
861
904
|
children: [
|
|
862
905
|
!i && /* @__PURE__ */ U("div", {
|
|
863
906
|
className: "flex items-baseline justify-between",
|
|
@@ -882,15 +925,15 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
882
925
|
children: t.map((e) => {
|
|
883
926
|
let t = B.filter((t) => t.status === e.status), n = D === e.status;
|
|
884
927
|
return /* @__PURE__ */ U("div", {
|
|
885
|
-
onDragOver:
|
|
928
|
+
onDragOver: W(e.status),
|
|
886
929
|
onDragLeave: () => D === e.status && O(null),
|
|
887
|
-
onDrop:
|
|
888
|
-
className:
|
|
930
|
+
onDrop: ee(e.status),
|
|
931
|
+
className: J("flex w-72 shrink-0 flex-col rounded-lg border transition-colors", n ? "border-primary/50 bg-primary/5" : "border-transparent bg-muted/40"),
|
|
889
932
|
children: [/* @__PURE__ */ U("div", {
|
|
890
933
|
className: "flex items-center justify-between gap-2 px-3 py-2",
|
|
891
934
|
children: [/* @__PURE__ */ U("span", {
|
|
892
935
|
className: "flex items-center gap-2 text-sm font-medium text-foreground",
|
|
893
|
-
children: [/* @__PURE__ */ H(
|
|
936
|
+
children: [/* @__PURE__ */ H(Ge, { status: e.status }), S.status[e.status]]
|
|
894
937
|
}), /* @__PURE__ */ H("span", {
|
|
895
938
|
className: "rounded-full bg-muted px-1.5 text-xs font-medium text-muted-foreground",
|
|
896
939
|
children: t.length
|
|
@@ -900,7 +943,7 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
900
943
|
children: t.length === 0 ? /* @__PURE__ */ H("div", {
|
|
901
944
|
className: "rounded-md border border-dashed border-border/70 px-3 py-6 text-center text-xs text-muted-foreground",
|
|
902
945
|
children: n ? S.dropHere : S.noTasks
|
|
903
|
-
}) : t.map((e) => /* @__PURE__ */ H(
|
|
946
|
+
}) : t.map((e) => /* @__PURE__ */ H(nt, {
|
|
904
947
|
task: e,
|
|
905
948
|
hidden: C,
|
|
906
949
|
onClick: p,
|
|
@@ -920,7 +963,7 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
920
963
|
}, e.status);
|
|
921
964
|
})
|
|
922
965
|
}),
|
|
923
|
-
/* @__PURE__ */ H(
|
|
966
|
+
/* @__PURE__ */ H($e, {
|
|
924
967
|
open: j != null,
|
|
925
968
|
onClose: () => M(null),
|
|
926
969
|
ariaLabel: S.moveConfirmTitle,
|
|
@@ -958,9 +1001,9 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
958
1001
|
]
|
|
959
1002
|
});
|
|
960
1003
|
}
|
|
961
|
-
var
|
|
962
|
-
function
|
|
963
|
-
let d =
|
|
1004
|
+
var at = "TASK", ot = "BACKLOG", st = "NONE", X = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring", Z = "text-sm font-medium text-foreground";
|
|
1005
|
+
function ct({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues: r, hideHeader: i, submitLabel: a, onCreated: o, onError: s, onCancel: c, className: l, workspaceId: u }) {
|
|
1006
|
+
let d = ae(), f = u ?? d?.workspaceId, p = e ?? r?.projectId, m = Y(), h = b(() => new Set(n ?? []), [n]), [g, _] = x(r?.title ?? ""), [v, y] = x(r?.description ?? ""), [S, C] = x(r?.type ?? at), [w, T] = x(r?.status ?? ot), [E, D] = x(r?.priority ?? st), [O, k] = x(r?.assigneeId ?? ""), [A, j] = x(r?.dueDate ?? ""), [M, N] = x((r?.labels ?? []).join(", ")), [P, F] = x(r?.storyPoints == null ? "" : String(r.storyPoints)), [I, { loading: L, error: R }] = K(de), z = !!(f && p && g.trim()), B = async (e) => {
|
|
964
1007
|
if (e.preventDefault(), !z || !p) return;
|
|
965
1008
|
let t = M.split(",").map((e) => e.trim()).filter(Boolean), n = P.trim() ? Number(P) : void 0, i = {
|
|
966
1009
|
projectId: p,
|
|
@@ -971,14 +1014,14 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
971
1014
|
...h.has("priority") ? {} : { priority: E },
|
|
972
1015
|
...h.has("description") || !v.trim() ? {} : { description: v.trim() },
|
|
973
1016
|
...h.has("assignee") || !O.trim() ? {} : { assigneeId: O.trim() },
|
|
974
|
-
...h.has("dueDate") || !A.trim() ? {} : { dueDate:
|
|
1017
|
+
...h.has("dueDate") || !A.trim() ? {} : { dueDate: Ce(A) },
|
|
975
1018
|
...h.has("labels") || t.length === 0 ? {} : { labels: t },
|
|
976
1019
|
...h.has("storyPoints") || n == null || Number.isNaN(n) ? {} : { storyPoints: n }
|
|
977
1020
|
};
|
|
978
1021
|
try {
|
|
979
1022
|
let e = (await I({ variables: { input: i } })).data?.planmagnetCreateWorkItem;
|
|
980
1023
|
if (e) {
|
|
981
|
-
let t =
|
|
1024
|
+
let t = re();
|
|
982
1025
|
try {
|
|
983
1026
|
await t.onTaskSaved?.({
|
|
984
1027
|
id: e.id,
|
|
@@ -995,11 +1038,11 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
995
1038
|
}
|
|
996
1039
|
};
|
|
997
1040
|
function V() {
|
|
998
|
-
_(""), y(""), C(
|
|
1041
|
+
_(""), y(""), C(at), T(ot), D(st), k(""), j(""), N(""), F("");
|
|
999
1042
|
}
|
|
1000
|
-
return f ? /* @__PURE__ */ H(
|
|
1001
|
-
className:
|
|
1002
|
-
children: /* @__PURE__ */ H(
|
|
1043
|
+
return f ? /* @__PURE__ */ H(W, {
|
|
1044
|
+
className: J("shadow-sm", l),
|
|
1045
|
+
children: /* @__PURE__ */ H(ee, {
|
|
1003
1046
|
className: "p-6",
|
|
1004
1047
|
children: /* @__PURE__ */ U("form", {
|
|
1005
1048
|
onSubmit: B,
|
|
@@ -1039,7 +1082,7 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1039
1082
|
children: m.description
|
|
1040
1083
|
}), /* @__PURE__ */ H("textarea", {
|
|
1041
1084
|
id: "pm-description",
|
|
1042
|
-
className:
|
|
1085
|
+
className: J(X, "min-h-[80px]"),
|
|
1043
1086
|
value: v,
|
|
1044
1087
|
onChange: (e) => y(e.target.value),
|
|
1045
1088
|
placeholder: m.descriptionPlaceholder
|
|
@@ -1056,10 +1099,10 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1056
1099
|
children: m.typeLabel
|
|
1057
1100
|
}), /* @__PURE__ */ H("select", {
|
|
1058
1101
|
id: "pm-type",
|
|
1059
|
-
className:
|
|
1102
|
+
className: J(X, "capitalize"),
|
|
1060
1103
|
value: S,
|
|
1061
1104
|
onChange: (e) => C(e.target.value),
|
|
1062
|
-
children:
|
|
1105
|
+
children: Ie.map((e) => /* @__PURE__ */ H("option", {
|
|
1063
1106
|
value: e,
|
|
1064
1107
|
children: m.type[e]
|
|
1065
1108
|
}, e))
|
|
@@ -1073,10 +1116,10 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1073
1116
|
children: m.statusLabel
|
|
1074
1117
|
}), /* @__PURE__ */ H("select", {
|
|
1075
1118
|
id: "pm-status",
|
|
1076
|
-
className:
|
|
1119
|
+
className: J(X, "capitalize"),
|
|
1077
1120
|
value: w,
|
|
1078
1121
|
onChange: (e) => T(e.target.value),
|
|
1079
|
-
children:
|
|
1122
|
+
children: Le.map((e) => /* @__PURE__ */ H("option", {
|
|
1080
1123
|
value: e,
|
|
1081
1124
|
children: m.status[e]
|
|
1082
1125
|
}, e))
|
|
@@ -1090,10 +1133,10 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1090
1133
|
children: m.priorityLabel
|
|
1091
1134
|
}), /* @__PURE__ */ H("select", {
|
|
1092
1135
|
id: "pm-priority",
|
|
1093
|
-
className:
|
|
1136
|
+
className: J(X, "capitalize"),
|
|
1094
1137
|
value: E,
|
|
1095
1138
|
onChange: (e) => D(e.target.value),
|
|
1096
|
-
children:
|
|
1139
|
+
children: Fe.map((e) => /* @__PURE__ */ H("option", {
|
|
1097
1140
|
value: e,
|
|
1098
1141
|
children: m.priority[e]
|
|
1099
1142
|
}, e))
|
|
@@ -1189,7 +1232,7 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1189
1232
|
}), /* @__PURE__ */ H("button", {
|
|
1190
1233
|
type: "submit",
|
|
1191
1234
|
disabled: !z || L,
|
|
1192
|
-
className:
|
|
1235
|
+
className: J("rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground", (!z || L) && "cursor-not-allowed opacity-50"),
|
|
1193
1236
|
children: L ? m.creating : a ?? m.create
|
|
1194
1237
|
})]
|
|
1195
1238
|
})
|
|
@@ -1197,24 +1240,24 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1197
1240
|
})
|
|
1198
1241
|
})
|
|
1199
1242
|
}) : /* @__PURE__ */ H("div", {
|
|
1200
|
-
className:
|
|
1243
|
+
className: J("p-6 text-sm text-destructive", l),
|
|
1201
1244
|
children: "CreateTask: no workspaceId provided (prop or PlanMagnetProvider)."
|
|
1202
1245
|
});
|
|
1203
1246
|
}
|
|
1204
|
-
var
|
|
1247
|
+
var lt = [
|
|
1205
1248
|
"title",
|
|
1206
1249
|
"status",
|
|
1207
1250
|
"priority",
|
|
1208
1251
|
"assignee",
|
|
1209
1252
|
"dueDate",
|
|
1210
1253
|
"storyPoints"
|
|
1211
|
-
],
|
|
1254
|
+
], ut = {
|
|
1212
1255
|
CRITICAL: 0,
|
|
1213
1256
|
HIGH: 1,
|
|
1214
1257
|
MEDIUM: 2,
|
|
1215
1258
|
LOW: 3,
|
|
1216
1259
|
NONE: 4
|
|
1217
|
-
},
|
|
1260
|
+
}, dt = {
|
|
1218
1261
|
BACKLOG: 0,
|
|
1219
1262
|
TODO: 1,
|
|
1220
1263
|
IN_PROGRESS: 2,
|
|
@@ -1223,7 +1266,7 @@ var at = [
|
|
|
1223
1266
|
DONE: 5,
|
|
1224
1267
|
CANCELLED: 6
|
|
1225
1268
|
};
|
|
1226
|
-
function
|
|
1269
|
+
function ft(e, t) {
|
|
1227
1270
|
switch (e) {
|
|
1228
1271
|
case "key": return t.colKey;
|
|
1229
1272
|
case "title": return t.colTask;
|
|
@@ -1238,7 +1281,7 @@ function ct(e, t) {
|
|
|
1238
1281
|
default: return e;
|
|
1239
1282
|
}
|
|
1240
1283
|
}
|
|
1241
|
-
var
|
|
1284
|
+
var pt = {
|
|
1242
1285
|
title: "title",
|
|
1243
1286
|
type: "type",
|
|
1244
1287
|
status: "status",
|
|
@@ -1246,8 +1289,8 @@ var lt = {
|
|
|
1246
1289
|
dueDate: "dueDate",
|
|
1247
1290
|
storyPoints: "storyPoints"
|
|
1248
1291
|
};
|
|
1249
|
-
function
|
|
1250
|
-
let _ =
|
|
1292
|
+
function mt({ projectId: e, status: t, type: n, priority: r, assigneeId: i, search: a, columns: o = lt, sortBy: s, sortDir: c = "asc", hideHeader: l, onSelect: u, resolveAssignee: d, linkSourceProduct: f, renderLinkIcon: p, limit: m = 200, className: h, workspaceId: g }) {
|
|
1293
|
+
let _ = ae(), v = g ?? _?.workspaceId, { linksByItem: y } = rt(v, f), S = Y(), [C, T] = x({
|
|
1251
1294
|
by: s ?? null,
|
|
1252
1295
|
dir: c
|
|
1253
1296
|
}), E = b(() => {
|
|
@@ -1260,7 +1303,7 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1260
1303
|
r,
|
|
1261
1304
|
i,
|
|
1262
1305
|
a
|
|
1263
|
-
]), { data: O, loading: k, error: A } =
|
|
1306
|
+
]), { data: O, loading: k, error: A } = q(le, {
|
|
1264
1307
|
variables: {
|
|
1265
1308
|
workspaceId: v,
|
|
1266
1309
|
...Object.keys(E).length ? { filter: E } : {},
|
|
@@ -1271,9 +1314,9 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1271
1314
|
let e = O?.planmagnetWorkItems?.items ?? [];
|
|
1272
1315
|
if (!C.by) return e;
|
|
1273
1316
|
let t = C.dir === "desc" ? -1 : 1, n = C.by;
|
|
1274
|
-
return [...e].sort((e, r) => t *
|
|
1317
|
+
return [...e].sort((e, r) => t * gt(e, r, n));
|
|
1275
1318
|
}, [O, C]), M = (e) => {
|
|
1276
|
-
let t =
|
|
1319
|
+
let t = pt[e];
|
|
1277
1320
|
t && T((e) => e.by === t ? {
|
|
1278
1321
|
by: t,
|
|
1279
1322
|
dir: e.dir === "asc" ? "desc" : "asc"
|
|
@@ -1283,17 +1326,17 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1283
1326
|
});
|
|
1284
1327
|
};
|
|
1285
1328
|
return v ? k && !O ? /* @__PURE__ */ H("div", {
|
|
1286
|
-
className:
|
|
1329
|
+
className: J("flex items-center justify-center p-12", h),
|
|
1287
1330
|
children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
|
|
1288
1331
|
}) : A && !O ? /* @__PURE__ */ U("div", {
|
|
1289
|
-
className:
|
|
1332
|
+
className: J("p-6 text-sm text-destructive", h),
|
|
1290
1333
|
children: [
|
|
1291
1334
|
S.errorLoading,
|
|
1292
1335
|
": ",
|
|
1293
1336
|
A.message
|
|
1294
1337
|
]
|
|
1295
1338
|
}) : /* @__PURE__ */ U("div", {
|
|
1296
|
-
className:
|
|
1339
|
+
className: J("space-y-3", h),
|
|
1297
1340
|
children: [!l && /* @__PURE__ */ U("div", {
|
|
1298
1341
|
className: "flex items-baseline justify-between",
|
|
1299
1342
|
children: [/* @__PURE__ */ H("h2", {
|
|
@@ -1314,13 +1357,13 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1314
1357
|
children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H("tr", {
|
|
1315
1358
|
className: "border-b border-border bg-muted/50 text-left",
|
|
1316
1359
|
children: o.map((e) => {
|
|
1317
|
-
let t = !!
|
|
1360
|
+
let t = !!pt[e], n = C.by === pt[e];
|
|
1318
1361
|
return /* @__PURE__ */ H("th", {
|
|
1319
1362
|
onClick: t ? () => M(e) : void 0,
|
|
1320
|
-
className:
|
|
1363
|
+
className: J("px-3 py-2 text-xs font-semibold uppercase tracking-wide text-muted-foreground", t && "cursor-pointer select-none hover:text-foreground"),
|
|
1321
1364
|
children: /* @__PURE__ */ U("span", {
|
|
1322
1365
|
className: "inline-flex items-center gap-1",
|
|
1323
|
-
children: [
|
|
1366
|
+
children: [ft(e, S), n && (C.dir === "asc" ? /* @__PURE__ */ H(D, {
|
|
1324
1367
|
className: "h-3 w-3",
|
|
1325
1368
|
"aria-hidden": "true"
|
|
1326
1369
|
}) : /* @__PURE__ */ H(w, {
|
|
@@ -1336,10 +1379,10 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1336
1379
|
children: S.noTasksFound
|
|
1337
1380
|
}) }), j.map((e) => /* @__PURE__ */ H("tr", {
|
|
1338
1381
|
onClick: u ? () => u(e.id) : void 0,
|
|
1339
|
-
className:
|
|
1382
|
+
className: J("border-b border-border last:border-0", u && "cursor-pointer hover:bg-muted/40"),
|
|
1340
1383
|
children: o.map((t) => /* @__PURE__ */ H("td", {
|
|
1341
1384
|
className: "px-3 py-2 align-middle text-foreground",
|
|
1342
|
-
children:
|
|
1385
|
+
children: ht(t, e, {
|
|
1343
1386
|
resolveAssignee: d,
|
|
1344
1387
|
links: y.get(e.id),
|
|
1345
1388
|
renderLinkIcon: p,
|
|
@@ -1350,11 +1393,11 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1350
1393
|
})
|
|
1351
1394
|
})]
|
|
1352
1395
|
}) : /* @__PURE__ */ H("div", {
|
|
1353
|
-
className:
|
|
1396
|
+
className: J("p-6 text-sm text-destructive", h),
|
|
1354
1397
|
children: "TaskList: no workspaceId provided (prop or PlanMagnetProvider)."
|
|
1355
1398
|
});
|
|
1356
1399
|
}
|
|
1357
|
-
function
|
|
1400
|
+
function ht(e, t, n) {
|
|
1358
1401
|
let { resolveAssignee: r, links: i, renderLinkIcon: a, unassigned: o } = n;
|
|
1359
1402
|
switch (e) {
|
|
1360
1403
|
case "key": return /* @__PURE__ */ H("span", {
|
|
@@ -1371,9 +1414,9 @@ function dt(e, t, n) {
|
|
|
1371
1414
|
children: t.key
|
|
1372
1415
|
})]
|
|
1373
1416
|
});
|
|
1374
|
-
case "type": return /* @__PURE__ */ H(
|
|
1375
|
-
case "status": return /* @__PURE__ */ H(
|
|
1376
|
-
case "priority": return /* @__PURE__ */ H(
|
|
1417
|
+
case "type": return /* @__PURE__ */ H(Ze, { type: t.type });
|
|
1418
|
+
case "status": return /* @__PURE__ */ H(Ke, { status: t.status });
|
|
1419
|
+
case "priority": return /* @__PURE__ */ H(Ye, {
|
|
1377
1420
|
priority: t.priority,
|
|
1378
1421
|
showLabel: !0
|
|
1379
1422
|
});
|
|
@@ -1381,7 +1424,7 @@ function dt(e, t, n) {
|
|
|
1381
1424
|
let e = t.assigneeId ? r?.(t.assigneeId) : null;
|
|
1382
1425
|
return /* @__PURE__ */ U("span", {
|
|
1383
1426
|
className: "flex items-center gap-1.5",
|
|
1384
|
-
children: [/* @__PURE__ */ H(
|
|
1427
|
+
children: [/* @__PURE__ */ H(Ne, {
|
|
1385
1428
|
id: t.assigneeId,
|
|
1386
1429
|
name: e?.name,
|
|
1387
1430
|
size: "sm"
|
|
@@ -1392,9 +1435,9 @@ function dt(e, t, n) {
|
|
|
1392
1435
|
});
|
|
1393
1436
|
}
|
|
1394
1437
|
case "dueDate": {
|
|
1395
|
-
let e =
|
|
1438
|
+
let e = we(t.dueDate);
|
|
1396
1439
|
return e ? /* @__PURE__ */ H("span", {
|
|
1397
|
-
className:
|
|
1440
|
+
className: J("text-xs", Ee(t.dueDate, t.status) ? "font-medium text-destructive" : "text-muted-foreground"),
|
|
1398
1441
|
children: e
|
|
1399
1442
|
}) : /* @__PURE__ */ H("span", {
|
|
1400
1443
|
className: "text-muted-foreground",
|
|
@@ -1413,7 +1456,7 @@ function dt(e, t, n) {
|
|
|
1413
1456
|
children: "—"
|
|
1414
1457
|
}) : /* @__PURE__ */ U("div", {
|
|
1415
1458
|
className: "flex flex-wrap gap-1",
|
|
1416
|
-
children: [i.slice(0, 2).map((e) => /* @__PURE__ */ H(
|
|
1459
|
+
children: [i.slice(0, 2).map((e) => /* @__PURE__ */ H(ze, {
|
|
1417
1460
|
link: e,
|
|
1418
1461
|
renderIcon: a
|
|
1419
1462
|
}, e.id)), i.length > 2 && /* @__PURE__ */ U("span", {
|
|
@@ -1431,10 +1474,10 @@ function dt(e, t, n) {
|
|
|
1431
1474
|
default: return null;
|
|
1432
1475
|
}
|
|
1433
1476
|
}
|
|
1434
|
-
function
|
|
1477
|
+
function gt(e, t, n) {
|
|
1435
1478
|
switch (n) {
|
|
1436
|
-
case "priority": return
|
|
1437
|
-
case "status": return
|
|
1479
|
+
case "priority": return ut[e.priority] - ut[t.priority];
|
|
1480
|
+
case "status": return dt[e.status] - dt[t.status];
|
|
1438
1481
|
case "title": return e.title.localeCompare(t.title);
|
|
1439
1482
|
case "type": return e.type.localeCompare(t.type);
|
|
1440
1483
|
case "dueDate": return (e.dueDate ?? "").localeCompare(t.dueDate ?? "");
|
|
@@ -1442,8 +1485,8 @@ function ft(e, t, n) {
|
|
|
1442
1485
|
default: return 0;
|
|
1443
1486
|
}
|
|
1444
1487
|
}
|
|
1445
|
-
function
|
|
1446
|
-
let { projectId: n, enabled: r = !0, limit: i = 100 } = t, { data: a, loading: o } =
|
|
1488
|
+
function _t(e, t = {}) {
|
|
1489
|
+
let { projectId: n, enabled: r = !0, limit: i = 100 } = t, { data: a, loading: o } = q(he, {
|
|
1447
1490
|
variables: {
|
|
1448
1491
|
workspaceId: e,
|
|
1449
1492
|
...n ? { filter: { projectId: n } } : {},
|
|
@@ -1457,7 +1500,7 @@ function pt(e, t = {}) {
|
|
|
1457
1500
|
byDay: b(() => {
|
|
1458
1501
|
let e = /* @__PURE__ */ new Map();
|
|
1459
1502
|
for (let t of s) {
|
|
1460
|
-
let n =
|
|
1503
|
+
let n = Se(t.dueDate);
|
|
1461
1504
|
if (!n) continue;
|
|
1462
1505
|
let r = `${n.getFullYear()}-${String(n.getMonth() + 1).padStart(2, "0")}-${String(n.getDate()).padStart(2, "0")}`, i = e.get(r);
|
|
1463
1506
|
i ? i.push(t) : e.set(r, [t]);
|
|
@@ -1467,15 +1510,15 @@ function pt(e, t = {}) {
|
|
|
1467
1510
|
loading: o
|
|
1468
1511
|
};
|
|
1469
1512
|
}
|
|
1470
|
-
var
|
|
1471
|
-
function
|
|
1513
|
+
var vt = { weekStartsOn: 1 };
|
|
1514
|
+
function yt(e) {
|
|
1472
1515
|
return d(e, "yyyy-MM-dd");
|
|
1473
1516
|
}
|
|
1474
|
-
function
|
|
1475
|
-
let C =
|
|
1517
|
+
function bt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = "", assigneeId: m, defaultMode: h = "week", onSelect: g, resolveAssignee: _, showMilestones: v = !0, className: y, workspaceId: S }) {
|
|
1518
|
+
let C = ae(), w = S ?? C?.workspaceId, D = Y(), { milestones: O, byDay: k } = _t(w, {
|
|
1476
1519
|
projectId: e,
|
|
1477
1520
|
enabled: v
|
|
1478
|
-
}), [A, j] = x(h), [M, N] = x(0), { data: F, loading: I, error: L } =
|
|
1521
|
+
}), [A, j] = x(h), [M, N] = x(0), { data: F, loading: I, error: L } = q(le, {
|
|
1479
1522
|
variables: {
|
|
1480
1523
|
workspaceId: w,
|
|
1481
1524
|
...e ? { filter: { projectId: e } } : {},
|
|
@@ -1495,10 +1538,10 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1495
1538
|
i,
|
|
1496
1539
|
o,
|
|
1497
1540
|
m
|
|
1498
|
-
]), { anchor: z, rangeStart: B, rangeEnd: V, days:
|
|
1541
|
+
]), { anchor: z, rangeStart: B, rangeEnd: V, days: W } = b(() => {
|
|
1499
1542
|
let e = /* @__PURE__ */ new Date();
|
|
1500
1543
|
if (A === "week") {
|
|
1501
|
-
let t = a(e, M), n = r(t,
|
|
1544
|
+
let t = a(e, M), n = r(t, vt), i = u(t, vt);
|
|
1502
1545
|
return {
|
|
1503
1546
|
anchor: t,
|
|
1504
1547
|
rangeStart: n,
|
|
@@ -1509,7 +1552,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1509
1552
|
})
|
|
1510
1553
|
};
|
|
1511
1554
|
}
|
|
1512
|
-
let t = n(e, M), i = r(l(t),
|
|
1555
|
+
let t = n(e, M), i = r(l(t), vt), o = u(s(t), vt);
|
|
1513
1556
|
return {
|
|
1514
1557
|
anchor: t,
|
|
1515
1558
|
rangeStart: i,
|
|
@@ -1519,19 +1562,19 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1519
1562
|
end: o
|
|
1520
1563
|
})
|
|
1521
1564
|
};
|
|
1522
|
-
}, [A, M]), { byDay:
|
|
1565
|
+
}, [A, M]), { byDay: ee, overdue: G, undated: te } = b(() => {
|
|
1523
1566
|
let e = /* @__PURE__ */ new Map(), t = [], n = [];
|
|
1524
1567
|
for (let r of R) {
|
|
1525
|
-
let i =
|
|
1568
|
+
let i = Se(r.dueDate);
|
|
1526
1569
|
if (!i) {
|
|
1527
1570
|
n.push(r);
|
|
1528
1571
|
continue;
|
|
1529
1572
|
}
|
|
1530
|
-
if (
|
|
1573
|
+
if (Ee(r.dueDate, r.status)) {
|
|
1531
1574
|
t.push(r);
|
|
1532
1575
|
continue;
|
|
1533
1576
|
}
|
|
1534
|
-
let a =
|
|
1577
|
+
let a = yt(i), o = e.get(a);
|
|
1535
1578
|
o ? o.push(r) : e.set(a, [r]);
|
|
1536
1579
|
}
|
|
1537
1580
|
return {
|
|
@@ -1541,24 +1584,24 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1541
1584
|
};
|
|
1542
1585
|
}, [R]);
|
|
1543
1586
|
if (!w) return /* @__PURE__ */ H("div", {
|
|
1544
|
-
className:
|
|
1587
|
+
className: J("p-6 text-sm text-destructive", y),
|
|
1545
1588
|
children: "Timeline: no workspaceId provided (prop or PlanMagnetProvider)."
|
|
1546
1589
|
});
|
|
1547
1590
|
if (I && !F) return /* @__PURE__ */ H("div", {
|
|
1548
|
-
className:
|
|
1591
|
+
className: J("flex items-center justify-center p-12", y),
|
|
1549
1592
|
children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
|
|
1550
1593
|
});
|
|
1551
1594
|
if (L && !F) return /* @__PURE__ */ U("div", {
|
|
1552
|
-
className:
|
|
1595
|
+
className: J("p-6 text-sm text-destructive", y),
|
|
1553
1596
|
children: [
|
|
1554
1597
|
D.errorLoading,
|
|
1555
1598
|
": ",
|
|
1556
1599
|
L.message
|
|
1557
1600
|
]
|
|
1558
1601
|
});
|
|
1559
|
-
let
|
|
1602
|
+
let K = A === "week" ? `${d(B, "MMM d")} \u2013 ${d(V, "MMM d")}` : d(z, "MMMM yyyy");
|
|
1560
1603
|
return /* @__PURE__ */ U("div", {
|
|
1561
|
-
className:
|
|
1604
|
+
className: J("space-y-3", y),
|
|
1562
1605
|
children: [
|
|
1563
1606
|
/* @__PURE__ */ U("div", {
|
|
1564
1607
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
@@ -1587,7 +1630,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1587
1630
|
}),
|
|
1588
1631
|
/* @__PURE__ */ H("span", {
|
|
1589
1632
|
className: "ml-2 text-sm font-medium text-foreground",
|
|
1590
|
-
children:
|
|
1633
|
+
children: K
|
|
1591
1634
|
})
|
|
1592
1635
|
]
|
|
1593
1636
|
}), /* @__PURE__ */ H("div", {
|
|
@@ -1597,7 +1640,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1597
1640
|
onClick: () => {
|
|
1598
1641
|
j(e), N(0);
|
|
1599
1642
|
},
|
|
1600
|
-
className:
|
|
1643
|
+
className: J("rounded px-3 py-1 text-xs font-medium capitalize transition-colors", A === e ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:text-foreground"),
|
|
1601
1644
|
children: e === "week" ? D.week : D.month
|
|
1602
1645
|
}, e))
|
|
1603
1646
|
})]
|
|
@@ -1609,7 +1652,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1609
1652
|
children: D.overdue.replace("{n}", String(G.length))
|
|
1610
1653
|
}), /* @__PURE__ */ H("div", {
|
|
1611
1654
|
className: "flex flex-wrap gap-1.5",
|
|
1612
|
-
children: G.map((e) => /* @__PURE__ */ H(
|
|
1655
|
+
children: G.map((e) => /* @__PURE__ */ H(St, {
|
|
1613
1656
|
task: e,
|
|
1614
1657
|
onSelect: g,
|
|
1615
1658
|
resolveAssignee: _,
|
|
@@ -1627,36 +1670,36 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1627
1670
|
}), D.milestones]
|
|
1628
1671
|
}), /* @__PURE__ */ H("div", {
|
|
1629
1672
|
className: "flex flex-wrap gap-1.5",
|
|
1630
|
-
children: O.map((e) => /* @__PURE__ */ H(
|
|
1673
|
+
children: O.map((e) => /* @__PURE__ */ H(xt, { milestone: e }, e.id))
|
|
1631
1674
|
})]
|
|
1632
1675
|
}),
|
|
1633
1676
|
A === "week" ? /* @__PURE__ */ H("div", {
|
|
1634
1677
|
className: "grid grid-cols-7 gap-2",
|
|
1635
|
-
children:
|
|
1636
|
-
let t =
|
|
1678
|
+
children: W.map((e) => {
|
|
1679
|
+
let t = ee.get(yt(e)) ?? [], n = k.get(yt(e)) ?? [], r = p(e);
|
|
1637
1680
|
return /* @__PURE__ */ U("div", {
|
|
1638
|
-
className:
|
|
1681
|
+
className: J("flex min-h-32 flex-col rounded-lg border p-2", r ? "border-primary/50 bg-primary/5" : "border-border bg-muted/20"),
|
|
1639
1682
|
children: [/* @__PURE__ */ U("div", {
|
|
1640
1683
|
className: "mb-2 flex items-baseline justify-between",
|
|
1641
1684
|
children: [/* @__PURE__ */ H("span", {
|
|
1642
|
-
className:
|
|
1685
|
+
className: J("text-xs font-semibold uppercase", r ? "text-primary" : "text-muted-foreground"),
|
|
1643
1686
|
children: d(e, "EEE")
|
|
1644
1687
|
}), /* @__PURE__ */ H("span", {
|
|
1645
|
-
className:
|
|
1688
|
+
className: J("text-sm font-semibold", r ? "text-primary" : "text-foreground"),
|
|
1646
1689
|
children: d(e, "d")
|
|
1647
1690
|
})]
|
|
1648
1691
|
}), /* @__PURE__ */ U("div", {
|
|
1649
1692
|
className: "flex flex-col gap-1.5",
|
|
1650
|
-
children: [n.map((e) => /* @__PURE__ */ H(
|
|
1693
|
+
children: [n.map((e) => /* @__PURE__ */ H(xt, {
|
|
1651
1694
|
milestone: e,
|
|
1652
1695
|
compact: !0
|
|
1653
|
-
}, e.id)), t.map((e) => /* @__PURE__ */ H(
|
|
1696
|
+
}, e.id)), t.map((e) => /* @__PURE__ */ H(St, {
|
|
1654
1697
|
task: e,
|
|
1655
1698
|
onSelect: g,
|
|
1656
1699
|
resolveAssignee: _
|
|
1657
1700
|
}, e.id))]
|
|
1658
1701
|
})]
|
|
1659
|
-
},
|
|
1702
|
+
}, yt(e));
|
|
1660
1703
|
})
|
|
1661
1704
|
}) : /* @__PURE__ */ U("div", {
|
|
1662
1705
|
className: "grid grid-cols-7 gap-1",
|
|
@@ -1671,16 +1714,16 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1671
1714
|
].map((e) => /* @__PURE__ */ H("div", {
|
|
1672
1715
|
className: "px-1 pb-1 text-center text-[10px] font-semibold uppercase text-muted-foreground",
|
|
1673
1716
|
children: e
|
|
1674
|
-
}, e)),
|
|
1675
|
-
let t =
|
|
1717
|
+
}, e)), W.map((e) => {
|
|
1718
|
+
let t = ee.get(yt(e)) ?? [], n = p(e), r = f(e, z);
|
|
1676
1719
|
return /* @__PURE__ */ U("div", {
|
|
1677
|
-
className:
|
|
1720
|
+
className: J("flex min-h-20 flex-col gap-1 rounded-md border p-1", n ? "border-primary/50 bg-primary/5" : "border-border/60 bg-muted/10", !r && "opacity-40"),
|
|
1678
1721
|
children: [
|
|
1679
1722
|
/* @__PURE__ */ H("span", {
|
|
1680
|
-
className:
|
|
1723
|
+
className: J("text-[10px] font-semibold", n ? "text-primary" : "text-muted-foreground"),
|
|
1681
1724
|
children: d(e, "d")
|
|
1682
1725
|
}),
|
|
1683
|
-
t.slice(0, 3).map((e) => /* @__PURE__ */ H(
|
|
1726
|
+
t.slice(0, 3).map((e) => /* @__PURE__ */ H(St, {
|
|
1684
1727
|
task: e,
|
|
1685
1728
|
onSelect: g,
|
|
1686
1729
|
resolveAssignee: _,
|
|
@@ -1696,7 +1739,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1696
1739
|
]
|
|
1697
1740
|
})
|
|
1698
1741
|
]
|
|
1699
|
-
},
|
|
1742
|
+
}, yt(e));
|
|
1700
1743
|
})]
|
|
1701
1744
|
}),
|
|
1702
1745
|
te.length > 0 && /* @__PURE__ */ U("div", {
|
|
@@ -1706,7 +1749,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1706
1749
|
children: D.noDueDate.replace("{n}", String(te.length))
|
|
1707
1750
|
}), /* @__PURE__ */ H("div", {
|
|
1708
1751
|
className: "flex flex-wrap gap-1.5",
|
|
1709
|
-
children: te.map((e) => /* @__PURE__ */ H(
|
|
1752
|
+
children: te.map((e) => /* @__PURE__ */ H(St, {
|
|
1710
1753
|
task: e,
|
|
1711
1754
|
onSelect: g,
|
|
1712
1755
|
resolveAssignee: _
|
|
@@ -1716,10 +1759,10 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1716
1759
|
]
|
|
1717
1760
|
});
|
|
1718
1761
|
}
|
|
1719
|
-
function
|
|
1720
|
-
let n =
|
|
1762
|
+
function xt({ milestone: e, compact: t }) {
|
|
1763
|
+
let n = we(e.dueDate);
|
|
1721
1764
|
return /* @__PURE__ */ U("span", {
|
|
1722
|
-
className:
|
|
1765
|
+
className: J("inline-flex max-w-full items-center gap-1 rounded-md border border-primary/40 bg-primary/10 px-1.5 py-1 text-[11px] font-medium text-primary", t && "w-full"),
|
|
1723
1766
|
title: e.name + (n ? ` \xB7 ${n}` : ""),
|
|
1724
1767
|
children: [
|
|
1725
1768
|
/* @__PURE__ */ H(P, {
|
|
@@ -1737,21 +1780,21 @@ function _t({ milestone: e, compact: t }) {
|
|
|
1737
1780
|
]
|
|
1738
1781
|
});
|
|
1739
1782
|
}
|
|
1740
|
-
function
|
|
1783
|
+
function St({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
|
|
1741
1784
|
let a = e.assigneeId ? n?.(e.assigneeId) : null, o = !!t;
|
|
1742
1785
|
return /* @__PURE__ */ U("button", {
|
|
1743
1786
|
type: "button",
|
|
1744
1787
|
disabled: !o,
|
|
1745
1788
|
onClick: o ? () => t?.(e.id) : void 0,
|
|
1746
1789
|
title: e.title,
|
|
1747
|
-
className:
|
|
1790
|
+
className: J("flex w-full items-center gap-1.5 rounded-md border px-1.5 py-1 text-left transition-colors", r === "destructive" ? "border-destructive/40 bg-card hover:bg-destructive/5" : "border-border bg-card hover:border-primary/50", o ? "cursor-pointer" : "cursor-default"),
|
|
1748
1791
|
children: [
|
|
1749
|
-
/* @__PURE__ */ H(
|
|
1792
|
+
/* @__PURE__ */ H(Ye, { priority: e.priority }),
|
|
1750
1793
|
/* @__PURE__ */ H("span", {
|
|
1751
1794
|
className: "min-w-0 flex-1 truncate text-[11px] font-medium text-foreground",
|
|
1752
1795
|
children: e.title
|
|
1753
1796
|
}),
|
|
1754
|
-
!i && /* @__PURE__ */ H(
|
|
1797
|
+
!i && /* @__PURE__ */ H(Ne, {
|
|
1755
1798
|
id: e.assigneeId,
|
|
1756
1799
|
name: a?.name,
|
|
1757
1800
|
size: "sm"
|
|
@@ -1759,12 +1802,12 @@ function vt({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
|
|
|
1759
1802
|
]
|
|
1760
1803
|
});
|
|
1761
1804
|
}
|
|
1762
|
-
var
|
|
1805
|
+
var Ct = {
|
|
1763
1806
|
board: F,
|
|
1764
1807
|
list: L,
|
|
1765
1808
|
timeline: C
|
|
1766
|
-
},
|
|
1767
|
-
function
|
|
1809
|
+
}, wt = "h-8 rounded-md border border-border bg-background px-2 text-xs font-medium text-foreground capitalize transition-colors hover:bg-muted/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring";
|
|
1810
|
+
function Tt({ view: e, onViewChange: t, views: n = [
|
|
1768
1811
|
"board",
|
|
1769
1812
|
"list",
|
|
1770
1813
|
"timeline"
|
|
@@ -1775,19 +1818,19 @@ function xt({ view: e, onViewChange: t, views: n = [
|
|
|
1775
1818
|
timeline: m.timeline
|
|
1776
1819
|
};
|
|
1777
1820
|
return /* @__PURE__ */ U("div", {
|
|
1778
|
-
className:
|
|
1821
|
+
className: J("flex flex-wrap items-center justify-between gap-3 border-b border-border pb-2", p),
|
|
1779
1822
|
children: [/* @__PURE__ */ H("div", {
|
|
1780
1823
|
className: "flex items-center gap-1",
|
|
1781
1824
|
role: "tablist",
|
|
1782
1825
|
"aria-label": "Task views",
|
|
1783
1826
|
children: n.map((n) => {
|
|
1784
|
-
let r =
|
|
1827
|
+
let r = Ct[n], i = n === e;
|
|
1785
1828
|
return /* @__PURE__ */ U("button", {
|
|
1786
1829
|
type: "button",
|
|
1787
1830
|
role: "tab",
|
|
1788
1831
|
"aria-selected": i,
|
|
1789
1832
|
onClick: () => t(n),
|
|
1790
|
-
className:
|
|
1833
|
+
className: J("relative flex items-center gap-1.5 rounded-t-md px-2.5 py-1.5 text-sm font-medium transition-colors", i ? "text-foreground" : "text-muted-foreground hover:text-foreground"),
|
|
1791
1834
|
children: [
|
|
1792
1835
|
/* @__PURE__ */ H(r, {
|
|
1793
1836
|
className: "h-4 w-4",
|
|
@@ -1819,7 +1862,7 @@ function xt({ view: e, onViewChange: t, views: n = [
|
|
|
1819
1862
|
type: "button",
|
|
1820
1863
|
onClick: () => f(!d),
|
|
1821
1864
|
"aria-pressed": d,
|
|
1822
|
-
className:
|
|
1865
|
+
className: J("flex h-8 items-center gap-1.5 rounded-md border px-2.5 text-xs font-medium transition-colors", d ? "border-primary bg-primary/10 text-primary" : "border-border bg-background text-muted-foreground hover:bg-muted/50 hover:text-foreground"),
|
|
1823
1866
|
children: [/* @__PURE__ */ H(V, {
|
|
1824
1867
|
className: "h-3.5 w-3.5",
|
|
1825
1868
|
"aria-hidden": "true"
|
|
@@ -1829,11 +1872,11 @@ function xt({ view: e, onViewChange: t, views: n = [
|
|
|
1829
1872
|
value: a,
|
|
1830
1873
|
onChange: (e) => o(e.target.value),
|
|
1831
1874
|
"aria-label": m.priorityLabel,
|
|
1832
|
-
className:
|
|
1875
|
+
className: wt,
|
|
1833
1876
|
children: [/* @__PURE__ */ H("option", {
|
|
1834
1877
|
value: "ALL",
|
|
1835
1878
|
children: m.allPriorities
|
|
1836
|
-
}),
|
|
1879
|
+
}), Fe.map((e) => /* @__PURE__ */ H("option", {
|
|
1837
1880
|
value: e,
|
|
1838
1881
|
children: m.priority[e]
|
|
1839
1882
|
}, e))]
|
|
@@ -1842,11 +1885,11 @@ function xt({ view: e, onViewChange: t, views: n = [
|
|
|
1842
1885
|
value: s,
|
|
1843
1886
|
onChange: (e) => c(e.target.value),
|
|
1844
1887
|
"aria-label": m.typeLabel,
|
|
1845
|
-
className:
|
|
1888
|
+
className: wt,
|
|
1846
1889
|
children: [/* @__PURE__ */ H("option", {
|
|
1847
1890
|
value: "ALL",
|
|
1848
1891
|
children: m.allTypes
|
|
1849
|
-
}),
|
|
1892
|
+
}), Ie.map((e) => /* @__PURE__ */ H("option", {
|
|
1850
1893
|
value: e,
|
|
1851
1894
|
children: m.type[e]
|
|
1852
1895
|
}, e))]
|
|
@@ -1864,60 +1907,177 @@ function xt({ view: e, onViewChange: t, views: n = [
|
|
|
1864
1907
|
})]
|
|
1865
1908
|
});
|
|
1866
1909
|
}
|
|
1867
|
-
var
|
|
1910
|
+
var Et = "text-xs font-medium uppercase tracking-wide text-muted-foreground", Dt = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring";
|
|
1911
|
+
function Ot({ entityType: e, entityId: t, currentActorId: n, resolveAssignee: r, readonly: i, className: a }) {
|
|
1912
|
+
let o = Y(), [s, c] = x(""), [l, u] = x(null), { data: d, loading: f, refetch: p } = q(ve, {
|
|
1913
|
+
variables: { input: {
|
|
1914
|
+
entityType: e,
|
|
1915
|
+
entityId: t,
|
|
1916
|
+
take: 100,
|
|
1917
|
+
sortBy: "createdAt",
|
|
1918
|
+
sortOrder: "asc"
|
|
1919
|
+
} },
|
|
1920
|
+
skip: !t,
|
|
1921
|
+
errorPolicy: "all"
|
|
1922
|
+
}), m = d?.getEntityComments?.items ?? [], [h, { loading: g }] = K(ye), [_] = K(be), v = (e) => e === n ? o.you : r?.(e)?.name ?? void 0, y = async (n) => {
|
|
1923
|
+
n.preventDefault();
|
|
1924
|
+
let r = s.trim();
|
|
1925
|
+
if (r) {
|
|
1926
|
+
u(null);
|
|
1927
|
+
try {
|
|
1928
|
+
await h({ variables: { input: {
|
|
1929
|
+
entityType: e,
|
|
1930
|
+
entityId: t,
|
|
1931
|
+
content: { text: r },
|
|
1932
|
+
contentType: "TEXT"
|
|
1933
|
+
} } }), c(""), await p();
|
|
1934
|
+
} catch {
|
|
1935
|
+
u(o.failedToComment);
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
}, b = async (e) => {
|
|
1939
|
+
u(null);
|
|
1940
|
+
try {
|
|
1941
|
+
await _({ variables: { input: {
|
|
1942
|
+
id: e,
|
|
1943
|
+
soft: !0
|
|
1944
|
+
} } }), await p();
|
|
1945
|
+
} catch {
|
|
1946
|
+
u(o.failedToDeleteComment);
|
|
1947
|
+
}
|
|
1948
|
+
};
|
|
1949
|
+
return /* @__PURE__ */ U("div", {
|
|
1950
|
+
className: J("space-y-3", a),
|
|
1951
|
+
children: [
|
|
1952
|
+
/* @__PURE__ */ U("div", {
|
|
1953
|
+
className: Et,
|
|
1954
|
+
children: [o.commentsLabel, m.length > 0 ? ` (${m.length})` : ""]
|
|
1955
|
+
}),
|
|
1956
|
+
/* @__PURE__ */ H("ul", {
|
|
1957
|
+
className: "space-y-3",
|
|
1958
|
+
children: m.length === 0 && !f ? /* @__PURE__ */ H("li", {
|
|
1959
|
+
className: "text-sm text-muted-foreground",
|
|
1960
|
+
children: o.noComments
|
|
1961
|
+
}) : m.map((e) => /* @__PURE__ */ U("li", {
|
|
1962
|
+
className: "flex gap-2",
|
|
1963
|
+
children: [/* @__PURE__ */ H(Ne, {
|
|
1964
|
+
id: e.authorId,
|
|
1965
|
+
name: v(e.authorId),
|
|
1966
|
+
size: "sm"
|
|
1967
|
+
}), /* @__PURE__ */ U("div", {
|
|
1968
|
+
className: "min-w-0 flex-1",
|
|
1969
|
+
children: [/* @__PURE__ */ U("div", {
|
|
1970
|
+
className: "flex items-center gap-2",
|
|
1971
|
+
children: [
|
|
1972
|
+
/* @__PURE__ */ H("span", {
|
|
1973
|
+
className: "text-sm font-medium text-foreground",
|
|
1974
|
+
children: v(e.authorId) ?? e.authorId.slice(0, 8)
|
|
1975
|
+
}),
|
|
1976
|
+
/* @__PURE__ */ H("span", {
|
|
1977
|
+
className: "text-xs text-muted-foreground",
|
|
1978
|
+
children: Te(e.createdAt)
|
|
1979
|
+
}),
|
|
1980
|
+
e.edited && /* @__PURE__ */ H("span", {
|
|
1981
|
+
className: "text-xs text-muted-foreground",
|
|
1982
|
+
children: o.editedTag
|
|
1983
|
+
}),
|
|
1984
|
+
!i && e.authorId === n && /* @__PURE__ */ H("button", {
|
|
1985
|
+
type: "button",
|
|
1986
|
+
onClick: () => b(e.id),
|
|
1987
|
+
"aria-label": o.del,
|
|
1988
|
+
title: o.del,
|
|
1989
|
+
className: "ml-auto rounded p-1 text-muted-foreground hover:text-destructive",
|
|
1990
|
+
children: /* @__PURE__ */ H(B, { className: "h-3.5 w-3.5" })
|
|
1991
|
+
})
|
|
1992
|
+
]
|
|
1993
|
+
}), /* @__PURE__ */ H("p", {
|
|
1994
|
+
className: "whitespace-pre-wrap break-words text-sm text-foreground",
|
|
1995
|
+
children: e.content?.text
|
|
1996
|
+
})]
|
|
1997
|
+
})]
|
|
1998
|
+
}, e.id))
|
|
1999
|
+
}),
|
|
2000
|
+
l && /* @__PURE__ */ H("p", {
|
|
2001
|
+
className: "text-sm text-destructive",
|
|
2002
|
+
children: l
|
|
2003
|
+
}),
|
|
2004
|
+
!i && /* @__PURE__ */ U("form", {
|
|
2005
|
+
onSubmit: y,
|
|
2006
|
+
className: "space-y-2",
|
|
2007
|
+
children: [/* @__PURE__ */ H("textarea", {
|
|
2008
|
+
className: J(Dt, "min-h-[60px]"),
|
|
2009
|
+
rows: 2,
|
|
2010
|
+
value: s,
|
|
2011
|
+
onChange: (e) => c(e.target.value),
|
|
2012
|
+
placeholder: o.commentPlaceholder,
|
|
2013
|
+
"aria-label": o.commentsLabel
|
|
2014
|
+
}), /* @__PURE__ */ H("div", {
|
|
2015
|
+
className: "flex justify-end",
|
|
2016
|
+
children: /* @__PURE__ */ H("button", {
|
|
2017
|
+
type: "submit",
|
|
2018
|
+
disabled: g || !s.trim(),
|
|
2019
|
+
className: J("rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground", (g || !s.trim()) && "cursor-not-allowed opacity-50"),
|
|
2020
|
+
children: g ? o.posting : o.postComment
|
|
2021
|
+
})
|
|
2022
|
+
})]
|
|
2023
|
+
})
|
|
2024
|
+
]
|
|
2025
|
+
});
|
|
2026
|
+
}
|
|
2027
|
+
var Q = "w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring", $ = "text-xs font-medium uppercase tracking-wide text-muted-foreground", kt = {
|
|
1868
2028
|
NONE: "muted",
|
|
1869
2029
|
LOW: "muted",
|
|
1870
2030
|
MEDIUM: "secondary",
|
|
1871
2031
|
HIGH: "accent",
|
|
1872
2032
|
CRITICAL: "destructive"
|
|
1873
2033
|
};
|
|
1874
|
-
function
|
|
1875
|
-
let
|
|
2034
|
+
function At({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i, onDeleted: a, onError: o, resolveAssignee: s, assigneeOptions: c, linkSourceProduct: l, renderLinkIcon: u, onOpenItem: d, onAddSubtask: f, commentsEntityType: p, currentActorId: m, className: h }) {
|
|
2035
|
+
let g = te(), _ = Y(), v = b(() => new Set(n ?? []), [n]), { data: S, loading: C, error: w } = q(ue, {
|
|
1876
2036
|
variables: { id: e },
|
|
1877
2037
|
skip: !e
|
|
1878
|
-
}),
|
|
1879
|
-
variables: { id:
|
|
1880
|
-
skip: !
|
|
1881
|
-
}),
|
|
2038
|
+
}), T = S?.planmagnetWorkItem ?? null, { linksByItem: E } = rt(T?.workspaceId, l), D = T ? E.get(T.id) ?? [] : [], { data: O } = q(ue, {
|
|
2039
|
+
variables: { id: T?.parentId },
|
|
2040
|
+
skip: !T?.parentId
|
|
2041
|
+
}), k = O?.planmagnetWorkItem ?? null, { data: A } = q(le, {
|
|
1882
2042
|
variables: {
|
|
1883
|
-
workspaceId:
|
|
1884
|
-
filter: { parentId:
|
|
2043
|
+
workspaceId: T?.workspaceId,
|
|
2044
|
+
filter: { parentId: T?.id },
|
|
1885
2045
|
pagination: { first: 100 }
|
|
1886
2046
|
},
|
|
1887
|
-
skip: !
|
|
1888
|
-
}),
|
|
2047
|
+
skip: !T?.id || !T?.workspaceId
|
|
2048
|
+
}), j = A?.planmagnetWorkItems?.items ?? [], [M, N] = x(!1), [P, F] = x(!1), [I, L] = x(""), [R, z] = x(""), [V, G] = x("TASK"), [ne, ie] = x("BACKLOG"), [ae, oe] = x("NONE"), [se, ce] = x(""), [de, pe] = x(""), [me, he] = x(""), [_e, ve] = x("");
|
|
1889
2049
|
y(() => {
|
|
1890
|
-
|
|
1891
|
-
}, [
|
|
1892
|
-
let [
|
|
1893
|
-
if (
|
|
1894
|
-
await Se({ variables: { id:
|
|
2050
|
+
T && (L(T.title), z(T.description ?? ""), G(T.type), ie(T.status), oe(T.priority), ce(T.assigneeId ?? ""), pe(T.dueDate ? String(T.dueDate).slice(0, 10) : ""), he((T.labels ?? []).join(", ")), ve(T.storyPoints == null ? "" : String(T.storyPoints)));
|
|
2051
|
+
}, [T]);
|
|
2052
|
+
let [ye, { loading: be, error: xe }] = K(fe), [Se, { loading: we, error: Ee }] = K(ge), De = async () => {
|
|
2053
|
+
if (T) try {
|
|
2054
|
+
await Se({ variables: { id: T.id } }), g.cache.evict({ id: g.cache.identify({
|
|
1895
2055
|
__typename: "WorkItem",
|
|
1896
|
-
id:
|
|
1897
|
-
}) }),
|
|
2056
|
+
id: T.id
|
|
2057
|
+
}) }), g.cache.gc(), g.refetchQueries({ include: [le] }).catch(() => {}), a?.(T.id);
|
|
1898
2058
|
} catch (e) {
|
|
1899
2059
|
o?.(e instanceof Error ? e : Error(String(e)));
|
|
1900
2060
|
}
|
|
1901
|
-
},
|
|
1902
|
-
if (e.preventDefault(), !
|
|
1903
|
-
let t =
|
|
1904
|
-
title:
|
|
1905
|
-
...
|
|
1906
|
-
...
|
|
1907
|
-
...
|
|
1908
|
-
...
|
|
1909
|
-
...
|
|
1910
|
-
...
|
|
1911
|
-
...
|
|
1912
|
-
...
|
|
2061
|
+
}, ke = async (e) => {
|
|
2062
|
+
if (e.preventDefault(), !T) return;
|
|
2063
|
+
let t = me.split(",").map((e) => e.trim()).filter(Boolean), n = _e.trim() ? Number(_e) : void 0, r = {
|
|
2064
|
+
title: I.trim(),
|
|
2065
|
+
...v.has("description") ? {} : { description: R.trim() },
|
|
2066
|
+
...v.has("type") ? {} : { type: V },
|
|
2067
|
+
...v.has("status") ? {} : { status: ne },
|
|
2068
|
+
...v.has("priority") ? {} : { priority: ae },
|
|
2069
|
+
...v.has("assignee") ? {} : { assigneeId: se.trim() },
|
|
2070
|
+
...v.has("dueDate") ? {} : { dueDate: Ce(de) },
|
|
2071
|
+
...v.has("labels") ? {} : { labels: t },
|
|
2072
|
+
...v.has("storyPoints") || n == null || Number.isNaN(n) ? {} : { storyPoints: n }
|
|
1913
2073
|
};
|
|
1914
2074
|
try {
|
|
1915
|
-
let e = (await
|
|
1916
|
-
id:
|
|
2075
|
+
let e = (await ye({ variables: {
|
|
2076
|
+
id: T.id,
|
|
1917
2077
|
input: r
|
|
1918
2078
|
} })).data?.planmagnetUpdateWorkItem;
|
|
1919
2079
|
if (e) {
|
|
1920
|
-
let t =
|
|
2080
|
+
let t = re();
|
|
1921
2081
|
try {
|
|
1922
2082
|
await t.onTaskSaved?.({
|
|
1923
2083
|
id: e.id,
|
|
@@ -1927,94 +2087,94 @@ function Ct({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
|
|
|
1927
2087
|
operation: "updated"
|
|
1928
2088
|
});
|
|
1929
2089
|
} catch {}
|
|
1930
|
-
i?.(e),
|
|
2090
|
+
i?.(e), N(!1);
|
|
1931
2091
|
}
|
|
1932
2092
|
} catch (e) {
|
|
1933
2093
|
o?.(e instanceof Error ? e : Error(String(e)));
|
|
1934
2094
|
}
|
|
1935
2095
|
};
|
|
1936
2096
|
if (!e) return /* @__PURE__ */ H("div", {
|
|
1937
|
-
className:
|
|
2097
|
+
className: J("p-6 text-sm text-destructive", h),
|
|
1938
2098
|
children: "TaskDetail: no work-item id provided."
|
|
1939
2099
|
});
|
|
1940
|
-
if (
|
|
1941
|
-
className:
|
|
2100
|
+
if (C && !S) return /* @__PURE__ */ H("div", {
|
|
2101
|
+
className: J("flex items-center justify-center p-12", h),
|
|
1942
2102
|
children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
|
|
1943
2103
|
});
|
|
1944
|
-
if (
|
|
1945
|
-
className:
|
|
2104
|
+
if (w && !S) return /* @__PURE__ */ U("div", {
|
|
2105
|
+
className: J("p-6 text-sm text-destructive", h),
|
|
1946
2106
|
children: [
|
|
1947
|
-
|
|
2107
|
+
_.errorLoading,
|
|
1948
2108
|
": ",
|
|
1949
|
-
|
|
2109
|
+
w.message
|
|
1950
2110
|
]
|
|
1951
2111
|
});
|
|
1952
|
-
if (!
|
|
1953
|
-
className:
|
|
1954
|
-
children:
|
|
2112
|
+
if (!T) return /* @__PURE__ */ H("div", {
|
|
2113
|
+
className: J("p-6 text-sm text-muted-foreground", h),
|
|
2114
|
+
children: _.taskNotFound
|
|
1955
2115
|
});
|
|
1956
|
-
let
|
|
1957
|
-
return /* @__PURE__ */ H(
|
|
1958
|
-
className:
|
|
1959
|
-
children: /* @__PURE__ */ U(
|
|
2116
|
+
let Ae = !t;
|
|
2117
|
+
return /* @__PURE__ */ H(W, {
|
|
2118
|
+
className: J("shadow-sm", h),
|
|
2119
|
+
children: /* @__PURE__ */ U(ee, {
|
|
1960
2120
|
className: "space-y-4 p-6",
|
|
1961
2121
|
children: [
|
|
1962
2122
|
!r && /* @__PURE__ */ U("div", {
|
|
1963
2123
|
className: "flex items-start justify-between gap-4",
|
|
1964
2124
|
children: [/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("p", {
|
|
1965
2125
|
className: "text-xs text-muted-foreground",
|
|
1966
|
-
children:
|
|
2126
|
+
children: T.key
|
|
1967
2127
|
}), /* @__PURE__ */ H("h2", {
|
|
1968
2128
|
className: "text-xl font-semibold text-foreground",
|
|
1969
|
-
children:
|
|
1970
|
-
})] }),
|
|
2129
|
+
children: T.title
|
|
2130
|
+
})] }), Ae && !M && /* @__PURE__ */ U("div", {
|
|
1971
2131
|
className: "flex shrink-0 items-center gap-2",
|
|
1972
|
-
children: [a && (
|
|
2132
|
+
children: [a && (P ? /* @__PURE__ */ U("span", {
|
|
1973
2133
|
className: "flex items-center gap-1 text-xs",
|
|
1974
2134
|
children: [
|
|
1975
2135
|
/* @__PURE__ */ H("span", {
|
|
1976
2136
|
className: "text-muted-foreground",
|
|
1977
|
-
children:
|
|
2137
|
+
children: _.deletePrompt
|
|
1978
2138
|
}),
|
|
1979
2139
|
/* @__PURE__ */ H("button", {
|
|
1980
2140
|
type: "button",
|
|
1981
|
-
disabled:
|
|
1982
|
-
onClick:
|
|
2141
|
+
disabled: we,
|
|
2142
|
+
onClick: De,
|
|
1983
2143
|
className: "rounded bg-destructive px-2 py-1 font-medium text-destructive-foreground disabled:opacity-50",
|
|
1984
|
-
children:
|
|
2144
|
+
children: we ? "…" : _.yes
|
|
1985
2145
|
}),
|
|
1986
2146
|
/* @__PURE__ */ H("button", {
|
|
1987
2147
|
type: "button",
|
|
1988
|
-
onClick: () =>
|
|
2148
|
+
onClick: () => F(!1),
|
|
1989
2149
|
className: "rounded bg-muted px-2 py-1 text-muted-foreground",
|
|
1990
|
-
children:
|
|
2150
|
+
children: _.no
|
|
1991
2151
|
})
|
|
1992
2152
|
]
|
|
1993
2153
|
}) : /* @__PURE__ */ H("button", {
|
|
1994
2154
|
type: "button",
|
|
1995
|
-
onClick: () =>
|
|
1996
|
-
title:
|
|
1997
|
-
"aria-label":
|
|
2155
|
+
onClick: () => F(!0),
|
|
2156
|
+
title: _.del,
|
|
2157
|
+
"aria-label": _.del,
|
|
1998
2158
|
className: "rounded-md p-1.5 text-destructive hover:bg-destructive/10",
|
|
1999
2159
|
children: /* @__PURE__ */ H(B, { className: "h-4 w-4" })
|
|
2000
2160
|
})), /* @__PURE__ */ H("button", {
|
|
2001
2161
|
type: "button",
|
|
2002
|
-
onClick: () =>
|
|
2162
|
+
onClick: () => N(!0),
|
|
2003
2163
|
className: "rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground",
|
|
2004
|
-
children:
|
|
2164
|
+
children: _.edit
|
|
2005
2165
|
})]
|
|
2006
2166
|
})]
|
|
2007
2167
|
}),
|
|
2008
|
-
|
|
2168
|
+
Ee && /* @__PURE__ */ U("p", {
|
|
2009
2169
|
className: "text-sm text-destructive",
|
|
2010
2170
|
children: [
|
|
2011
|
-
|
|
2171
|
+
_.failedToDelete,
|
|
2012
2172
|
": ",
|
|
2013
|
-
|
|
2173
|
+
Ee.message
|
|
2014
2174
|
]
|
|
2015
2175
|
}),
|
|
2016
|
-
|
|
2017
|
-
onSubmit:
|
|
2176
|
+
M ? /* @__PURE__ */ U("form", {
|
|
2177
|
+
onSubmit: ke,
|
|
2018
2178
|
className: "space-y-4",
|
|
2019
2179
|
children: [
|
|
2020
2180
|
/* @__PURE__ */ U("div", {
|
|
@@ -2022,96 +2182,96 @@ function Ct({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
|
|
|
2022
2182
|
children: [/* @__PURE__ */ H("label", {
|
|
2023
2183
|
htmlFor: "pm-detail-title",
|
|
2024
2184
|
className: $,
|
|
2025
|
-
children:
|
|
2185
|
+
children: _.title
|
|
2026
2186
|
}), /* @__PURE__ */ H("input", {
|
|
2027
2187
|
id: "pm-detail-title",
|
|
2028
2188
|
className: Q,
|
|
2029
|
-
value:
|
|
2030
|
-
onChange: (e) =>
|
|
2189
|
+
value: I,
|
|
2190
|
+
onChange: (e) => L(e.target.value),
|
|
2031
2191
|
required: !0
|
|
2032
2192
|
})]
|
|
2033
2193
|
}),
|
|
2034
|
-
!
|
|
2194
|
+
!v.has("description") && /* @__PURE__ */ U("div", {
|
|
2035
2195
|
className: "space-y-1",
|
|
2036
2196
|
children: [/* @__PURE__ */ H("label", {
|
|
2037
2197
|
htmlFor: "pm-detail-desc",
|
|
2038
2198
|
className: $,
|
|
2039
|
-
children:
|
|
2199
|
+
children: _.description
|
|
2040
2200
|
}), /* @__PURE__ */ H("textarea", {
|
|
2041
2201
|
id: "pm-detail-desc",
|
|
2042
|
-
className:
|
|
2043
|
-
value:
|
|
2044
|
-
onChange: (e) =>
|
|
2202
|
+
className: J(Q, "min-h-[80px]"),
|
|
2203
|
+
value: R,
|
|
2204
|
+
onChange: (e) => z(e.target.value)
|
|
2045
2205
|
})]
|
|
2046
2206
|
}),
|
|
2047
2207
|
/* @__PURE__ */ U("div", {
|
|
2048
2208
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
2049
2209
|
children: [
|
|
2050
|
-
!
|
|
2210
|
+
!v.has("type") && /* @__PURE__ */ U("div", {
|
|
2051
2211
|
className: "space-y-1",
|
|
2052
2212
|
children: [/* @__PURE__ */ H("label", {
|
|
2053
2213
|
htmlFor: "pm-detail-type",
|
|
2054
2214
|
className: $,
|
|
2055
|
-
children:
|
|
2215
|
+
children: _.typeLabel
|
|
2056
2216
|
}), /* @__PURE__ */ H("select", {
|
|
2057
2217
|
id: "pm-detail-type",
|
|
2058
|
-
className:
|
|
2059
|
-
value:
|
|
2060
|
-
onChange: (e) =>
|
|
2061
|
-
children:
|
|
2218
|
+
className: J(Q, "capitalize"),
|
|
2219
|
+
value: V,
|
|
2220
|
+
onChange: (e) => G(e.target.value),
|
|
2221
|
+
children: Ie.map((e) => /* @__PURE__ */ H("option", {
|
|
2062
2222
|
value: e,
|
|
2063
|
-
children:
|
|
2223
|
+
children: _.type[e]
|
|
2064
2224
|
}, e))
|
|
2065
2225
|
})]
|
|
2066
2226
|
}),
|
|
2067
|
-
!
|
|
2227
|
+
!v.has("status") && /* @__PURE__ */ U("div", {
|
|
2068
2228
|
className: "space-y-1",
|
|
2069
2229
|
children: [/* @__PURE__ */ H("label", {
|
|
2070
2230
|
htmlFor: "pm-detail-status",
|
|
2071
2231
|
className: $,
|
|
2072
|
-
children:
|
|
2232
|
+
children: _.statusLabel
|
|
2073
2233
|
}), /* @__PURE__ */ H("select", {
|
|
2074
2234
|
id: "pm-detail-status",
|
|
2075
|
-
className:
|
|
2076
|
-
value:
|
|
2077
|
-
onChange: (e) =>
|
|
2078
|
-
children:
|
|
2235
|
+
className: J(Q, "capitalize"),
|
|
2236
|
+
value: ne,
|
|
2237
|
+
onChange: (e) => ie(e.target.value),
|
|
2238
|
+
children: Le.map((e) => /* @__PURE__ */ H("option", {
|
|
2079
2239
|
value: e,
|
|
2080
|
-
children:
|
|
2240
|
+
children: _.status[e]
|
|
2081
2241
|
}, e))
|
|
2082
2242
|
})]
|
|
2083
2243
|
}),
|
|
2084
|
-
!
|
|
2244
|
+
!v.has("priority") && /* @__PURE__ */ U("div", {
|
|
2085
2245
|
className: "space-y-1",
|
|
2086
2246
|
children: [/* @__PURE__ */ H("label", {
|
|
2087
2247
|
htmlFor: "pm-detail-priority",
|
|
2088
2248
|
className: $,
|
|
2089
|
-
children:
|
|
2249
|
+
children: _.priorityLabel
|
|
2090
2250
|
}), /* @__PURE__ */ H("select", {
|
|
2091
2251
|
id: "pm-detail-priority",
|
|
2092
|
-
className:
|
|
2093
|
-
value:
|
|
2094
|
-
onChange: (e) =>
|
|
2095
|
-
children:
|
|
2252
|
+
className: J(Q, "capitalize"),
|
|
2253
|
+
value: ae,
|
|
2254
|
+
onChange: (e) => oe(e.target.value),
|
|
2255
|
+
children: Fe.map((e) => /* @__PURE__ */ H("option", {
|
|
2096
2256
|
value: e,
|
|
2097
|
-
children:
|
|
2257
|
+
children: _.priority[e]
|
|
2098
2258
|
}, e))
|
|
2099
2259
|
})]
|
|
2100
2260
|
}),
|
|
2101
|
-
!
|
|
2261
|
+
!v.has("assignee") && /* @__PURE__ */ U("div", {
|
|
2102
2262
|
className: "space-y-1",
|
|
2103
2263
|
children: [/* @__PURE__ */ H("label", {
|
|
2104
2264
|
htmlFor: "pm-detail-assignee",
|
|
2105
2265
|
className: $,
|
|
2106
|
-
children:
|
|
2266
|
+
children: _.assigneeLabel
|
|
2107
2267
|
}), c && c.length > 0 ? /* @__PURE__ */ U("select", {
|
|
2108
2268
|
id: "pm-detail-assignee",
|
|
2109
2269
|
className: Q,
|
|
2110
|
-
value:
|
|
2111
|
-
onChange: (e) =>
|
|
2270
|
+
value: se,
|
|
2271
|
+
onChange: (e) => ce(e.target.value),
|
|
2112
2272
|
children: [/* @__PURE__ */ H("option", {
|
|
2113
2273
|
value: "",
|
|
2114
|
-
children:
|
|
2274
|
+
children: _.unassigned
|
|
2115
2275
|
}), c.map((e) => /* @__PURE__ */ H("option", {
|
|
2116
2276
|
value: e.id,
|
|
2117
2277
|
children: e.name
|
|
@@ -2119,256 +2279,267 @@ function Ct({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
|
|
|
2119
2279
|
}) : /* @__PURE__ */ H("input", {
|
|
2120
2280
|
id: "pm-detail-assignee",
|
|
2121
2281
|
className: Q,
|
|
2122
|
-
value:
|
|
2123
|
-
onChange: (e) =>
|
|
2124
|
-
placeholder:
|
|
2282
|
+
value: se,
|
|
2283
|
+
onChange: (e) => ce(e.target.value),
|
|
2284
|
+
placeholder: _.assigneePlaceholder
|
|
2125
2285
|
})]
|
|
2126
2286
|
}),
|
|
2127
|
-
!
|
|
2287
|
+
!v.has("dueDate") && /* @__PURE__ */ U("div", {
|
|
2128
2288
|
className: "space-y-1",
|
|
2129
2289
|
children: [/* @__PURE__ */ H("label", {
|
|
2130
2290
|
htmlFor: "pm-detail-due",
|
|
2131
2291
|
className: $,
|
|
2132
|
-
children:
|
|
2292
|
+
children: _.dueDateLabel
|
|
2133
2293
|
}), /* @__PURE__ */ H("input", {
|
|
2134
2294
|
id: "pm-detail-due",
|
|
2135
2295
|
type: "date",
|
|
2136
2296
|
className: Q,
|
|
2137
|
-
value:
|
|
2138
|
-
onChange: (e) =>
|
|
2297
|
+
value: de,
|
|
2298
|
+
onChange: (e) => pe(e.target.value)
|
|
2139
2299
|
})]
|
|
2140
2300
|
}),
|
|
2141
|
-
!
|
|
2301
|
+
!v.has("storyPoints") && /* @__PURE__ */ U("div", {
|
|
2142
2302
|
className: "space-y-1",
|
|
2143
2303
|
children: [/* @__PURE__ */ H("label", {
|
|
2144
2304
|
htmlFor: "pm-detail-points",
|
|
2145
2305
|
className: $,
|
|
2146
|
-
children:
|
|
2306
|
+
children: _.storyPointsLabel
|
|
2147
2307
|
}), /* @__PURE__ */ H("input", {
|
|
2148
2308
|
id: "pm-detail-points",
|
|
2149
2309
|
type: "number",
|
|
2150
2310
|
min: 0,
|
|
2151
2311
|
className: Q,
|
|
2152
|
-
value:
|
|
2153
|
-
onChange: (e) =>
|
|
2312
|
+
value: _e,
|
|
2313
|
+
onChange: (e) => ve(e.target.value)
|
|
2154
2314
|
})]
|
|
2155
2315
|
})
|
|
2156
2316
|
]
|
|
2157
2317
|
}),
|
|
2158
|
-
!
|
|
2318
|
+
!v.has("labels") && /* @__PURE__ */ U("div", {
|
|
2159
2319
|
className: "space-y-1",
|
|
2160
2320
|
children: [/* @__PURE__ */ H("label", {
|
|
2161
2321
|
htmlFor: "pm-detail-labels",
|
|
2162
2322
|
className: $,
|
|
2163
|
-
children:
|
|
2323
|
+
children: _.labelsLabel
|
|
2164
2324
|
}), /* @__PURE__ */ H("input", {
|
|
2165
2325
|
id: "pm-detail-labels",
|
|
2166
2326
|
className: Q,
|
|
2167
|
-
value:
|
|
2168
|
-
onChange: (e) =>
|
|
2169
|
-
placeholder:
|
|
2327
|
+
value: me,
|
|
2328
|
+
onChange: (e) => he(e.target.value),
|
|
2329
|
+
placeholder: _.labelsPlaceholder
|
|
2170
2330
|
})]
|
|
2171
2331
|
}),
|
|
2172
|
-
|
|
2332
|
+
xe && /* @__PURE__ */ U("p", {
|
|
2173
2333
|
className: "text-sm text-destructive",
|
|
2174
2334
|
children: [
|
|
2175
|
-
|
|
2335
|
+
_.failedToSave,
|
|
2176
2336
|
": ",
|
|
2177
|
-
|
|
2337
|
+
xe.message
|
|
2178
2338
|
]
|
|
2179
2339
|
}),
|
|
2180
2340
|
/* @__PURE__ */ U("div", {
|
|
2181
2341
|
className: "flex items-center justify-end gap-2",
|
|
2182
2342
|
children: [/* @__PURE__ */ H("button", {
|
|
2183
2343
|
type: "button",
|
|
2184
|
-
onClick: () =>
|
|
2344
|
+
onClick: () => N(!1),
|
|
2185
2345
|
className: "rounded-md bg-muted px-4 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/70",
|
|
2186
|
-
children:
|
|
2346
|
+
children: _.cancel
|
|
2187
2347
|
}), /* @__PURE__ */ H("button", {
|
|
2188
2348
|
type: "submit",
|
|
2189
|
-
disabled:
|
|
2190
|
-
className:
|
|
2191
|
-
children:
|
|
2349
|
+
disabled: be || !I.trim(),
|
|
2350
|
+
className: J("rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground", (be || !I.trim()) && "cursor-not-allowed opacity-50"),
|
|
2351
|
+
children: be ? _.saving : _.save
|
|
2192
2352
|
})]
|
|
2193
2353
|
})
|
|
2194
2354
|
]
|
|
2195
|
-
}) : /* @__PURE__ */ U("
|
|
2196
|
-
className: "
|
|
2197
|
-
children: [
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
children:
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
children:
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
children:
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
children:
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2355
|
+
}) : /* @__PURE__ */ U("div", {
|
|
2356
|
+
className: "space-y-6",
|
|
2357
|
+
children: [/* @__PURE__ */ U("dl", {
|
|
2358
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
2359
|
+
children: [
|
|
2360
|
+
!v.has("type") && /* @__PURE__ */ H(jt, {
|
|
2361
|
+
label: _.typeLabel,
|
|
2362
|
+
children: /* @__PURE__ */ H(Oe, {
|
|
2363
|
+
variant: "secondary",
|
|
2364
|
+
children: _.type[T.type]
|
|
2365
|
+
})
|
|
2366
|
+
}),
|
|
2367
|
+
!v.has("status") && /* @__PURE__ */ H(jt, {
|
|
2368
|
+
label: _.statusLabel,
|
|
2369
|
+
children: /* @__PURE__ */ H("span", {
|
|
2370
|
+
className: "capitalize text-foreground",
|
|
2371
|
+
children: _.status[T.status]
|
|
2372
|
+
})
|
|
2373
|
+
}),
|
|
2374
|
+
!v.has("priority") && /* @__PURE__ */ H(jt, {
|
|
2375
|
+
label: _.priorityLabel,
|
|
2376
|
+
children: /* @__PURE__ */ H(Oe, {
|
|
2377
|
+
variant: kt[T.priority],
|
|
2378
|
+
children: _.priority[T.priority]
|
|
2379
|
+
})
|
|
2380
|
+
}),
|
|
2381
|
+
!v.has("assignee") && /* @__PURE__ */ H(jt, {
|
|
2382
|
+
label: _.assigneeLabel,
|
|
2383
|
+
children: T.assigneeId ? /* @__PURE__ */ U("span", {
|
|
2384
|
+
className: "flex items-center gap-1.5",
|
|
2385
|
+
children: [/* @__PURE__ */ H(Ne, {
|
|
2386
|
+
id: T.assigneeId,
|
|
2387
|
+
name: s?.(T.assigneeId)?.name,
|
|
2388
|
+
size: "sm"
|
|
2389
|
+
}), /* @__PURE__ */ H("span", {
|
|
2390
|
+
className: "text-foreground",
|
|
2391
|
+
children: s?.(T.assigneeId)?.name ?? _.assigned
|
|
2392
|
+
})]
|
|
2393
|
+
}) : /* @__PURE__ */ H("span", {
|
|
2394
|
+
className: "text-muted-foreground",
|
|
2395
|
+
children: _.unassigned
|
|
2396
|
+
})
|
|
2397
|
+
}),
|
|
2398
|
+
!v.has("dueDate") && /* @__PURE__ */ H(jt, {
|
|
2399
|
+
label: _.dueDateLabel,
|
|
2400
|
+
children: /* @__PURE__ */ H("span", {
|
|
2228
2401
|
className: "text-foreground",
|
|
2229
|
-
children:
|
|
2230
|
-
})]
|
|
2231
|
-
}) : /* @__PURE__ */ H("span", {
|
|
2232
|
-
className: "text-muted-foreground",
|
|
2233
|
-
children: h.unassigned
|
|
2234
|
-
})
|
|
2235
|
-
}),
|
|
2236
|
-
!g.has("dueDate") && /* @__PURE__ */ H(wt, {
|
|
2237
|
-
label: h.dueDateLabel,
|
|
2238
|
-
children: /* @__PURE__ */ H("span", {
|
|
2239
|
-
className: "text-foreground",
|
|
2240
|
-
children: xe(C.dueDate) ?? "—"
|
|
2241
|
-
})
|
|
2242
|
-
}),
|
|
2243
|
-
!g.has("storyPoints") && /* @__PURE__ */ H(wt, {
|
|
2244
|
-
label: h.storyPointsLabel,
|
|
2245
|
-
children: /* @__PURE__ */ H("span", {
|
|
2246
|
-
className: "text-foreground",
|
|
2247
|
-
children: C.storyPoints ?? 0
|
|
2248
|
-
})
|
|
2249
|
-
}),
|
|
2250
|
-
!g.has("description") && /* @__PURE__ */ U("div", {
|
|
2251
|
-
className: "sm:col-span-2",
|
|
2252
|
-
children: [/* @__PURE__ */ H("dt", {
|
|
2253
|
-
className: $,
|
|
2254
|
-
children: h.description
|
|
2255
|
-
}), /* @__PURE__ */ H("dd", {
|
|
2256
|
-
className: "mt-1 whitespace-pre-wrap text-sm text-foreground",
|
|
2257
|
-
children: C.description || "—"
|
|
2258
|
-
})]
|
|
2259
|
-
}),
|
|
2260
|
-
!g.has("labels") && /* @__PURE__ */ U("div", {
|
|
2261
|
-
className: "sm:col-span-2",
|
|
2262
|
-
children: [/* @__PURE__ */ H("dt", {
|
|
2263
|
-
className: $,
|
|
2264
|
-
children: h.labelsLabel
|
|
2265
|
-
}), /* @__PURE__ */ H("dd", {
|
|
2266
|
-
className: "mt-1 flex flex-wrap gap-1",
|
|
2267
|
-
children: (C.labels ?? []).length === 0 ? /* @__PURE__ */ H("span", {
|
|
2268
|
-
className: "text-sm text-muted-foreground",
|
|
2269
|
-
children: "—"
|
|
2270
|
-
}) : C.labels.map((e) => /* @__PURE__ */ H("span", {
|
|
2271
|
-
className: "rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground",
|
|
2272
|
-
children: e
|
|
2273
|
-
}, e))
|
|
2274
|
-
})]
|
|
2275
|
-
}),
|
|
2276
|
-
T.length > 0 && /* @__PURE__ */ U("div", {
|
|
2277
|
-
className: "sm:col-span-2",
|
|
2278
|
-
children: [/* @__PURE__ */ H("dt", {
|
|
2279
|
-
className: $,
|
|
2280
|
-
children: h.linkedRecordsLabel
|
|
2281
|
-
}), /* @__PURE__ */ H("dd", {
|
|
2282
|
-
className: "mt-1 flex flex-wrap gap-1.5",
|
|
2283
|
-
children: T.map((e) => /* @__PURE__ */ H(Fe, {
|
|
2284
|
-
link: e,
|
|
2285
|
-
renderIcon: u
|
|
2286
|
-
}, e.id))
|
|
2287
|
-
})]
|
|
2288
|
-
}),
|
|
2289
|
-
D && /* @__PURE__ */ U("div", {
|
|
2290
|
-
className: "sm:col-span-2",
|
|
2291
|
-
children: [/* @__PURE__ */ H("dt", {
|
|
2292
|
-
className: $,
|
|
2293
|
-
children: h.parentLabel
|
|
2294
|
-
}), /* @__PURE__ */ H("dd", {
|
|
2295
|
-
className: "mt-1",
|
|
2296
|
-
children: /* @__PURE__ */ U("button", {
|
|
2297
|
-
type: "button",
|
|
2298
|
-
onClick: () => d?.(D.id),
|
|
2299
|
-
className: "inline-flex max-w-full items-center gap-1.5 rounded-md border border-border bg-muted/40 px-2 py-1 text-sm text-foreground hover:bg-muted",
|
|
2300
|
-
children: [
|
|
2301
|
-
/* @__PURE__ */ H(Ve, { status: D.status }),
|
|
2302
|
-
/* @__PURE__ */ H("span", {
|
|
2303
|
-
className: "text-xs text-muted-foreground",
|
|
2304
|
-
children: D.key
|
|
2305
|
-
}),
|
|
2306
|
-
/* @__PURE__ */ H("span", {
|
|
2307
|
-
className: "truncate",
|
|
2308
|
-
children: D.title
|
|
2309
|
-
})
|
|
2310
|
-
]
|
|
2402
|
+
children: Te(T.dueDate) ?? "—"
|
|
2311
2403
|
})
|
|
2312
|
-
})
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2404
|
+
}),
|
|
2405
|
+
!v.has("storyPoints") && /* @__PURE__ */ H(jt, {
|
|
2406
|
+
label: _.storyPointsLabel,
|
|
2407
|
+
children: /* @__PURE__ */ H("span", {
|
|
2408
|
+
className: "text-foreground",
|
|
2409
|
+
children: T.storyPoints ?? 0
|
|
2410
|
+
})
|
|
2411
|
+
}),
|
|
2412
|
+
!v.has("description") && /* @__PURE__ */ U("div", {
|
|
2413
|
+
className: "sm:col-span-2",
|
|
2414
|
+
children: [/* @__PURE__ */ H("dt", {
|
|
2319
2415
|
className: $,
|
|
2320
|
-
children:
|
|
2321
|
-
}),
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
id: C.id,
|
|
2325
|
-
projectId: C.projectId
|
|
2326
|
-
}),
|
|
2327
|
-
className: "text-xs font-medium text-primary hover:underline",
|
|
2328
|
-
children: ["+ ", h.addSubtask]
|
|
2416
|
+
children: _.description
|
|
2417
|
+
}), /* @__PURE__ */ H("dd", {
|
|
2418
|
+
className: "mt-1 whitespace-pre-wrap text-sm text-foreground",
|
|
2419
|
+
children: T.description || "—"
|
|
2329
2420
|
})]
|
|
2330
|
-
}),
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2421
|
+
}),
|
|
2422
|
+
!v.has("labels") && /* @__PURE__ */ U("div", {
|
|
2423
|
+
className: "sm:col-span-2",
|
|
2424
|
+
children: [/* @__PURE__ */ H("dt", {
|
|
2425
|
+
className: $,
|
|
2426
|
+
children: _.labelsLabel
|
|
2427
|
+
}), /* @__PURE__ */ H("dd", {
|
|
2428
|
+
className: "mt-1 flex flex-wrap gap-1",
|
|
2429
|
+
children: (T.labels ?? []).length === 0 ? /* @__PURE__ */ H("span", {
|
|
2430
|
+
className: "text-sm text-muted-foreground",
|
|
2431
|
+
children: "—"
|
|
2432
|
+
}) : T.labels.map((e) => /* @__PURE__ */ H("span", {
|
|
2433
|
+
className: "rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground",
|
|
2434
|
+
children: e
|
|
2435
|
+
}, e))
|
|
2436
|
+
})]
|
|
2437
|
+
}),
|
|
2438
|
+
D.length > 0 && /* @__PURE__ */ U("div", {
|
|
2439
|
+
className: "sm:col-span-2",
|
|
2440
|
+
children: [/* @__PURE__ */ H("dt", {
|
|
2441
|
+
className: $,
|
|
2442
|
+
children: _.linkedRecordsLabel
|
|
2443
|
+
}), /* @__PURE__ */ H("dd", {
|
|
2444
|
+
className: "mt-1 flex flex-wrap gap-1.5",
|
|
2445
|
+
children: D.map((e) => /* @__PURE__ */ H(ze, {
|
|
2446
|
+
link: e,
|
|
2447
|
+
renderIcon: u
|
|
2448
|
+
}, e.id))
|
|
2449
|
+
})]
|
|
2450
|
+
}),
|
|
2451
|
+
k && /* @__PURE__ */ U("div", {
|
|
2452
|
+
className: "sm:col-span-2",
|
|
2453
|
+
children: [/* @__PURE__ */ H("dt", {
|
|
2454
|
+
className: $,
|
|
2455
|
+
children: _.parentLabel
|
|
2456
|
+
}), /* @__PURE__ */ H("dd", {
|
|
2457
|
+
className: "mt-1",
|
|
2458
|
+
children: /* @__PURE__ */ U("button", {
|
|
2459
|
+
type: "button",
|
|
2460
|
+
onClick: () => d?.(k.id),
|
|
2461
|
+
className: "inline-flex max-w-full items-center gap-1.5 rounded-md border border-border bg-muted/40 px-2 py-1 text-sm text-foreground hover:bg-muted",
|
|
2462
|
+
children: [
|
|
2463
|
+
/* @__PURE__ */ H(Ge, { status: k.status }),
|
|
2464
|
+
/* @__PURE__ */ H("span", {
|
|
2465
|
+
className: "text-xs text-muted-foreground",
|
|
2466
|
+
children: k.key
|
|
2467
|
+
}),
|
|
2468
|
+
/* @__PURE__ */ H("span", {
|
|
2469
|
+
className: "truncate",
|
|
2470
|
+
children: k.title
|
|
2471
|
+
})
|
|
2472
|
+
]
|
|
2473
|
+
})
|
|
2474
|
+
})]
|
|
2475
|
+
}),
|
|
2476
|
+
(j.length > 0 || f && Ae) && /* @__PURE__ */ U("div", {
|
|
2477
|
+
className: "sm:col-span-2",
|
|
2478
|
+
children: [/* @__PURE__ */ U("div", {
|
|
2479
|
+
className: "flex items-center justify-between",
|
|
2480
|
+
children: [/* @__PURE__ */ U("dt", {
|
|
2481
|
+
className: $,
|
|
2482
|
+
children: [_.subtasksLabel, j.length > 0 ? ` (${j.length})` : ""]
|
|
2483
|
+
}), f && Ae && /* @__PURE__ */ U("button", {
|
|
2484
|
+
type: "button",
|
|
2485
|
+
onClick: () => f({
|
|
2486
|
+
id: T.id,
|
|
2487
|
+
projectId: T.projectId
|
|
2344
2488
|
}),
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2489
|
+
className: "text-xs font-medium text-primary hover:underline",
|
|
2490
|
+
children: ["+ ", _.addSubtask]
|
|
2491
|
+
})]
|
|
2492
|
+
}), /* @__PURE__ */ H("dd", {
|
|
2493
|
+
className: "mt-1 space-y-1",
|
|
2494
|
+
children: j.length === 0 ? /* @__PURE__ */ H("span", {
|
|
2495
|
+
className: "text-sm text-muted-foreground",
|
|
2496
|
+
children: "—"
|
|
2497
|
+
}) : j.map((e) => /* @__PURE__ */ U("button", {
|
|
2498
|
+
type: "button",
|
|
2499
|
+
onClick: () => d?.(e.id),
|
|
2500
|
+
className: "flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm hover:bg-muted",
|
|
2501
|
+
children: [
|
|
2502
|
+
/* @__PURE__ */ H(Ge, { status: e.status }),
|
|
2503
|
+
/* @__PURE__ */ H("span", {
|
|
2504
|
+
className: "text-xs text-muted-foreground",
|
|
2505
|
+
children: e.key
|
|
2506
|
+
}),
|
|
2507
|
+
/* @__PURE__ */ H("span", {
|
|
2508
|
+
className: "flex-1 truncate text-foreground",
|
|
2509
|
+
children: e.title
|
|
2510
|
+
})
|
|
2511
|
+
]
|
|
2512
|
+
}, e.id))
|
|
2513
|
+
})]
|
|
2514
|
+
}),
|
|
2515
|
+
(T.createdAt || T.updatedAt) && /* @__PURE__ */ U("div", {
|
|
2516
|
+
className: "flex flex-wrap gap-x-6 gap-y-1 border-t border-border pt-3 text-xs text-muted-foreground sm:col-span-2",
|
|
2517
|
+
children: [T.createdAt && /* @__PURE__ */ U("span", { children: [
|
|
2518
|
+
_.createdLabel,
|
|
2519
|
+
" ",
|
|
2520
|
+
Te(T.createdAt)
|
|
2521
|
+
] }), T.updatedAt && /* @__PURE__ */ U("span", { children: [
|
|
2522
|
+
_.updatedLabel,
|
|
2523
|
+
" ",
|
|
2524
|
+
Te(T.updatedAt)
|
|
2525
|
+
] })]
|
|
2526
|
+
})
|
|
2527
|
+
]
|
|
2528
|
+
}), p && /* @__PURE__ */ H("div", {
|
|
2529
|
+
className: "border-t border-border pt-4",
|
|
2530
|
+
children: /* @__PURE__ */ H(Ot, {
|
|
2531
|
+
entityType: p,
|
|
2532
|
+
entityId: T.id,
|
|
2533
|
+
currentActorId: m,
|
|
2534
|
+
resolveAssignee: s
|
|
2364
2535
|
})
|
|
2365
|
-
]
|
|
2536
|
+
})]
|
|
2366
2537
|
})
|
|
2367
2538
|
]
|
|
2368
2539
|
})
|
|
2369
2540
|
});
|
|
2370
2541
|
}
|
|
2371
|
-
function
|
|
2542
|
+
function jt({ label: e, children: t }) {
|
|
2372
2543
|
return /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("dt", {
|
|
2373
2544
|
className: $,
|
|
2374
2545
|
children: e
|
|
@@ -2377,63 +2548,65 @@ function wt({ label: e, children: t }) {
|
|
|
2377
2548
|
children: t
|
|
2378
2549
|
})] });
|
|
2379
2550
|
}
|
|
2380
|
-
function
|
|
2381
|
-
let
|
|
2551
|
+
function Mt({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, readonly: i, hiddenFields: a, views: o, defaultView: s = "board", confirmMove: c, resolveAssignee: l, linkSourceProduct: u, renderLinkIcon: d, assigneeOptions: f, currentActorId: p, commentsEntityType: m, labels: h, openItemId: g, header: v, onTaskSaved: b, createSurface: S = "modal", detailSurface: C = "drawer", className: w }) {
|
|
2552
|
+
let T = ae(), E = e ?? T?.workspaceId, D = te(), O = Ue(h), [k, A] = x(s), [j, M] = x(""), [N, P] = x("ALL"), [F, I] = x("ALL"), [L, R] = x(!1), [z, B] = x(!1), [V, W] = x(null), [ee, G] = x(null);
|
|
2382
2553
|
y(() => {
|
|
2383
|
-
|
|
2384
|
-
}, [
|
|
2385
|
-
let
|
|
2386
|
-
|
|
2387
|
-
}, [
|
|
2388
|
-
|
|
2554
|
+
g && W(g);
|
|
2555
|
+
}, [g]);
|
|
2556
|
+
let K = _(() => {
|
|
2557
|
+
D.refetchQueries({ include: [le] }).catch(() => {});
|
|
2558
|
+
}, [D]), q = _((e) => {
|
|
2559
|
+
K(), B(!1), G(null), b?.({
|
|
2389
2560
|
workItem: e,
|
|
2390
2561
|
operation: "created"
|
|
2391
2562
|
});
|
|
2392
|
-
}, [
|
|
2393
|
-
|
|
2563
|
+
}, [K, b]), ne = _((e) => {
|
|
2564
|
+
W(null), G({
|
|
2394
2565
|
parentId: e.id,
|
|
2395
2566
|
projectId: e.projectId,
|
|
2396
2567
|
type: "SUB_TASK"
|
|
2397
|
-
}),
|
|
2568
|
+
}), B(!0);
|
|
2398
2569
|
}, []), re = _(() => {
|
|
2399
|
-
|
|
2570
|
+
G(null), B(!0);
|
|
2400
2571
|
}, []), ie = _(() => {
|
|
2401
|
-
|
|
2402
|
-
}, []),
|
|
2403
|
-
|
|
2572
|
+
B(!1), G(null);
|
|
2573
|
+
}, []), oe = _((e) => {
|
|
2574
|
+
K(), b?.({
|
|
2404
2575
|
workItem: e,
|
|
2405
2576
|
operation: "updated"
|
|
2406
2577
|
});
|
|
2407
|
-
}, [
|
|
2408
|
-
|
|
2578
|
+
}, [K, b]), se = _(() => {
|
|
2579
|
+
W(null);
|
|
2409
2580
|
}, []), ce = _((e) => {
|
|
2410
|
-
|
|
2411
|
-
}, []),
|
|
2412
|
-
if (!
|
|
2413
|
-
className:
|
|
2581
|
+
W(e.id);
|
|
2582
|
+
}, []), ue = _((e) => W(e), []);
|
|
2583
|
+
if (!E) return /* @__PURE__ */ H("div", {
|
|
2584
|
+
className: J("p-6 text-sm text-destructive", w),
|
|
2414
2585
|
children: "TasksPage: no workspaceId provided (prop or PlanMagnetProvider)."
|
|
2415
2586
|
});
|
|
2416
|
-
let de = !i && !!t, fe =
|
|
2417
|
-
workspaceId:
|
|
2587
|
+
let de = !i && !!t, fe = z && S === "inline", pe = V != null && C === "inline", me = /* @__PURE__ */ H(ct, {
|
|
2588
|
+
workspaceId: E,
|
|
2418
2589
|
projectId: t,
|
|
2419
2590
|
assigneeOptions: f,
|
|
2420
2591
|
hiddenFields: a,
|
|
2421
2592
|
defaultValues: ee ?? void 0,
|
|
2422
|
-
onCreated:
|
|
2593
|
+
onCreated: q,
|
|
2423
2594
|
onCancel: ie
|
|
2424
|
-
}), he =
|
|
2425
|
-
id:
|
|
2595
|
+
}), he = V == null ? null : /* @__PURE__ */ H(At, {
|
|
2596
|
+
id: V,
|
|
2426
2597
|
readonly: i,
|
|
2427
2598
|
hiddenFields: a,
|
|
2428
2599
|
resolveAssignee: l,
|
|
2429
2600
|
assigneeOptions: f,
|
|
2430
2601
|
linkSourceProduct: u,
|
|
2431
2602
|
renderLinkIcon: d,
|
|
2432
|
-
onUpdated:
|
|
2603
|
+
onUpdated: oe,
|
|
2433
2604
|
onDeleted: se,
|
|
2434
|
-
onOpenItem:
|
|
2435
|
-
onAddSubtask:
|
|
2436
|
-
|
|
2605
|
+
onOpenItem: ue,
|
|
2606
|
+
onAddSubtask: ne,
|
|
2607
|
+
commentsEntityType: m,
|
|
2608
|
+
currentActorId: p
|
|
2609
|
+
}), ge = N === "ALL" ? void 0 : N, _e = F === "ALL" ? void 0 : F, ve = L && p ? p : void 0, ye = u ? [
|
|
2437
2610
|
"title",
|
|
2438
2611
|
"status",
|
|
2439
2612
|
"priority",
|
|
@@ -2441,44 +2614,44 @@ function Tt({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
|
|
|
2441
2614
|
"dueDate",
|
|
2442
2615
|
"linkedRecord"
|
|
2443
2616
|
] : void 0;
|
|
2444
|
-
return /* @__PURE__ */ H(
|
|
2445
|
-
value:
|
|
2617
|
+
return /* @__PURE__ */ H(He, {
|
|
2618
|
+
value: O,
|
|
2446
2619
|
children: /* @__PURE__ */ U("div", {
|
|
2447
|
-
className:
|
|
2620
|
+
className: J("space-y-4 p-6", w),
|
|
2448
2621
|
children: [
|
|
2449
|
-
|
|
2622
|
+
v && /* @__PURE__ */ H("div", {
|
|
2450
2623
|
className: "min-w-0",
|
|
2451
|
-
children: typeof
|
|
2624
|
+
children: typeof v == "string" ? /* @__PURE__ */ H("h1", {
|
|
2452
2625
|
className: "truncate text-2xl font-semibold text-foreground",
|
|
2453
|
-
children:
|
|
2454
|
-
}) :
|
|
2626
|
+
children: v
|
|
2627
|
+
}) : v
|
|
2455
2628
|
}),
|
|
2456
|
-
/* @__PURE__ */ H(
|
|
2457
|
-
view:
|
|
2458
|
-
onViewChange:
|
|
2629
|
+
/* @__PURE__ */ H(Tt, {
|
|
2630
|
+
view: k,
|
|
2631
|
+
onViewChange: A,
|
|
2459
2632
|
views: o,
|
|
2460
|
-
search:
|
|
2461
|
-
onSearchChange:
|
|
2462
|
-
priority:
|
|
2463
|
-
onPriorityChange:
|
|
2464
|
-
type:
|
|
2465
|
-
onTypeChange:
|
|
2633
|
+
search: j,
|
|
2634
|
+
onSearchChange: M,
|
|
2635
|
+
priority: N,
|
|
2636
|
+
onPriorityChange: P,
|
|
2637
|
+
type: F,
|
|
2638
|
+
onTypeChange: I,
|
|
2466
2639
|
onNewTask: re,
|
|
2467
2640
|
canCreate: de,
|
|
2468
|
-
mine:
|
|
2469
|
-
onMineChange: p ?
|
|
2641
|
+
mine: L,
|
|
2642
|
+
onMineChange: p ? R : void 0
|
|
2470
2643
|
}),
|
|
2471
2644
|
fe && /* @__PURE__ */ H("div", { children: me }),
|
|
2472
|
-
|
|
2473
|
-
workspaceId:
|
|
2645
|
+
k === "board" && /* @__PURE__ */ H(it, {
|
|
2646
|
+
workspaceId: E,
|
|
2474
2647
|
projectId: n,
|
|
2475
2648
|
columns: r,
|
|
2476
2649
|
readonly: i,
|
|
2477
2650
|
confirmMove: c,
|
|
2478
2651
|
hideHeader: !0,
|
|
2479
|
-
priority:
|
|
2480
|
-
type:
|
|
2481
|
-
search:
|
|
2652
|
+
priority: N,
|
|
2653
|
+
type: F,
|
|
2654
|
+
search: j,
|
|
2482
2655
|
assigneeId: ve,
|
|
2483
2656
|
hiddenFields: a,
|
|
2484
2657
|
resolveAssignee: l,
|
|
@@ -2486,36 +2659,36 @@ function Tt({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
|
|
|
2486
2659
|
renderLinkIcon: d,
|
|
2487
2660
|
onTaskClick: ce
|
|
2488
2661
|
}),
|
|
2489
|
-
|
|
2490
|
-
workspaceId:
|
|
2662
|
+
k === "list" && /* @__PURE__ */ H(mt, {
|
|
2663
|
+
workspaceId: E,
|
|
2491
2664
|
projectId: n,
|
|
2492
2665
|
priority: ge,
|
|
2493
2666
|
type: _e,
|
|
2494
|
-
search:
|
|
2667
|
+
search: j || void 0,
|
|
2495
2668
|
assigneeId: ve,
|
|
2496
2669
|
hideHeader: !0,
|
|
2497
2670
|
resolveAssignee: l,
|
|
2498
2671
|
linkSourceProduct: u,
|
|
2499
2672
|
renderLinkIcon: d,
|
|
2500
|
-
columns:
|
|
2501
|
-
onSelect:
|
|
2673
|
+
columns: ye ? [...ye] : void 0,
|
|
2674
|
+
onSelect: ue
|
|
2502
2675
|
}),
|
|
2503
|
-
|
|
2504
|
-
workspaceId:
|
|
2676
|
+
k === "timeline" && /* @__PURE__ */ H(bt, {
|
|
2677
|
+
workspaceId: E,
|
|
2505
2678
|
projectId: n,
|
|
2506
|
-
priority:
|
|
2507
|
-
type:
|
|
2508
|
-
search:
|
|
2679
|
+
priority: N,
|
|
2680
|
+
type: F,
|
|
2681
|
+
search: j,
|
|
2509
2682
|
assigneeId: ve,
|
|
2510
2683
|
resolveAssignee: l,
|
|
2511
|
-
onSelect:
|
|
2684
|
+
onSelect: ue
|
|
2512
2685
|
}),
|
|
2513
2686
|
pe && /* @__PURE__ */ H("div", {
|
|
2514
2687
|
className: "pb-6",
|
|
2515
2688
|
children: he
|
|
2516
2689
|
}),
|
|
2517
|
-
|
|
2518
|
-
open:
|
|
2690
|
+
S === "modal" && /* @__PURE__ */ H($e, {
|
|
2691
|
+
open: z,
|
|
2519
2692
|
onClose: ie,
|
|
2520
2693
|
ariaLabel: "Create task",
|
|
2521
2694
|
className: "max-w-xl",
|
|
@@ -2524,9 +2697,9 @@ function Tt({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
|
|
|
2524
2697
|
children: me
|
|
2525
2698
|
})
|
|
2526
2699
|
}),
|
|
2527
|
-
|
|
2528
|
-
open:
|
|
2529
|
-
onClose: () =>
|
|
2700
|
+
C === "drawer" && /* @__PURE__ */ H(et, {
|
|
2701
|
+
open: V != null,
|
|
2702
|
+
onClose: () => W(null),
|
|
2530
2703
|
ariaLabel: "Task detail",
|
|
2531
2704
|
children: /* @__PURE__ */ H("div", {
|
|
2532
2705
|
className: "p-2 pt-8",
|
|
@@ -2538,6 +2711,6 @@ function Tt({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
|
|
|
2538
2711
|
});
|
|
2539
2712
|
}
|
|
2540
2713
|
//#endregion
|
|
2541
|
-
export {
|
|
2714
|
+
export { ct as CreateTaskCore, Mt as TasksPageCore };
|
|
2542
2715
|
|
|
2543
2716
|
//# sourceMappingURL=index.js.map
|