@burdenoff/microfe-healthybowl 2026.704.5 → 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 +715 -451
- package/dist/node_modules/@burdenoff/planmagnet-fe-sdk/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -19,24 +19,24 @@ import { CalendarDays as S, CalendarRange as C, ChevronDown as w, ChevronLeft as
|
|
|
19
19
|
import { jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
20
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
41
|
var oe = G`
|
|
42
42
|
fragment WorkItemSummaryFields on WorkItem {
|
|
@@ -272,36 +272,70 @@ var he = 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
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: J(
|
|
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: J("inline-flex items-center justify-center rounded-full border border-dashed border-border text-muted-foreground",
|
|
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: J("inline-flex items-center justify-center rounded-full font-medium",
|
|
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
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),
|
|
421
|
-
title: `${
|
|
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",
|
|
@@ -484,6 +518,18 @@ var Ie = {
|
|
|
484
518
|
linkedRecordsLabel: "Linked records",
|
|
485
519
|
createdLabel: "Created",
|
|
486
520
|
updatedLabel: "Updated",
|
|
521
|
+
parentLabel: "Parent",
|
|
522
|
+
subtasksLabel: "Sub-tasks",
|
|
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",
|
|
487
533
|
create: "Create task",
|
|
488
534
|
creating: "Creating…",
|
|
489
535
|
cancel: "Cancel",
|
|
@@ -526,29 +572,29 @@ var Ie = {
|
|
|
526
572
|
EPIC: "Epic",
|
|
527
573
|
SUB_TASK: "Sub Task"
|
|
528
574
|
}
|
|
529
|
-
},
|
|
575
|
+
}, Ve = g(Be), He = Ve.Provider;
|
|
530
576
|
function Y() {
|
|
531
|
-
return v(
|
|
577
|
+
return v(Ve);
|
|
532
578
|
}
|
|
533
|
-
function
|
|
579
|
+
function Ue(e) {
|
|
534
580
|
return e ? {
|
|
535
|
-
...
|
|
581
|
+
...Be,
|
|
536
582
|
...e,
|
|
537
583
|
status: {
|
|
538
|
-
...
|
|
584
|
+
...Be.status,
|
|
539
585
|
...e.status
|
|
540
586
|
},
|
|
541
587
|
priority: {
|
|
542
|
-
...
|
|
588
|
+
...Be.priority,
|
|
543
589
|
...e.priority
|
|
544
590
|
},
|
|
545
591
|
type: {
|
|
546
|
-
...
|
|
592
|
+
...Be.type,
|
|
547
593
|
...e.type
|
|
548
594
|
}
|
|
549
|
-
} :
|
|
595
|
+
} : Be;
|
|
550
596
|
}
|
|
551
|
-
var
|
|
597
|
+
var We = {
|
|
552
598
|
BACKLOG: {
|
|
553
599
|
icon: A,
|
|
554
600
|
tone: "text-muted-foreground/60"
|
|
@@ -578,21 +624,21 @@ var Be = {
|
|
|
578
624
|
tone: "text-destructive/70"
|
|
579
625
|
}
|
|
580
626
|
};
|
|
581
|
-
function
|
|
582
|
-
let n =
|
|
627
|
+
function Ge({ status: e, className: t }) {
|
|
628
|
+
let n = We[e] ?? We.TODO, r = n.icon;
|
|
583
629
|
return /* @__PURE__ */ H(r, {
|
|
584
630
|
className: J("h-3.5 w-3.5 shrink-0", n.tone, t),
|
|
585
631
|
"aria-hidden": "true"
|
|
586
632
|
});
|
|
587
633
|
}
|
|
588
|
-
function
|
|
634
|
+
function Ke({ status: e, className: t }) {
|
|
589
635
|
let n = Y();
|
|
590
636
|
return /* @__PURE__ */ U("span", {
|
|
591
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),
|
|
592
|
-
children: [/* @__PURE__ */ H(
|
|
638
|
+
children: [/* @__PURE__ */ H(Ge, { status: e }), n.status[e]]
|
|
593
639
|
});
|
|
594
640
|
}
|
|
595
|
-
var
|
|
641
|
+
var qe = {
|
|
596
642
|
NONE: {
|
|
597
643
|
level: 0,
|
|
598
644
|
tone: "text-muted-foreground/50"
|
|
@@ -613,42 +659,42 @@ var Ue = {
|
|
|
613
659
|
level: 3,
|
|
614
660
|
tone: "text-destructive"
|
|
615
661
|
}
|
|
616
|
-
},
|
|
662
|
+
}, Je = [
|
|
617
663
|
"h-1.5",
|
|
618
664
|
"h-2.5",
|
|
619
665
|
"h-3.5"
|
|
620
666
|
];
|
|
621
|
-
function
|
|
622
|
-
let r = Y(), i =
|
|
667
|
+
function Ye({ priority: e, showLabel: t = !1, className: n }) {
|
|
668
|
+
let r = Y(), i = qe[e] ?? qe.NONE;
|
|
623
669
|
return /* @__PURE__ */ U("span", {
|
|
624
670
|
className: J("inline-flex items-center gap-1.5", i.tone, n),
|
|
625
671
|
title: `${r.priorityLabel}: ${r.priority[e]}`,
|
|
626
672
|
children: [/* @__PURE__ */ H("span", {
|
|
627
673
|
className: "flex items-end gap-0.5",
|
|
628
674
|
"aria-hidden": "true",
|
|
629
|
-
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))
|
|
630
676
|
}), t && /* @__PURE__ */ H("span", {
|
|
631
677
|
className: "text-xs font-medium capitalize",
|
|
632
678
|
children: r.priority[e]
|
|
633
679
|
})]
|
|
634
680
|
});
|
|
635
681
|
}
|
|
636
|
-
var
|
|
682
|
+
var Xe = {
|
|
637
683
|
TASK: "secondary",
|
|
638
684
|
STORY: "default",
|
|
639
685
|
BUG: "destructive",
|
|
640
686
|
EPIC: "accent",
|
|
641
687
|
SUB_TASK: "muted"
|
|
642
688
|
};
|
|
643
|
-
function
|
|
689
|
+
function Ze({ type: e, className: t }) {
|
|
644
690
|
let n = Y();
|
|
645
|
-
return /* @__PURE__ */ H(
|
|
646
|
-
variant:
|
|
691
|
+
return /* @__PURE__ */ H(Oe, {
|
|
692
|
+
variant: Xe[e],
|
|
647
693
|
className: t,
|
|
648
694
|
children: n.type[e]
|
|
649
695
|
});
|
|
650
696
|
}
|
|
651
|
-
function
|
|
697
|
+
function Qe({ open: e, onClose: t, children: n, ariaLabel: r, className: i, variant: a }) {
|
|
652
698
|
if (y(() => {
|
|
653
699
|
if (!e) return;
|
|
654
700
|
let n = (e) => {
|
|
@@ -676,21 +722,21 @@ function Je({ open: e, onClose: t, children: n, ariaLabel: r, className: i, vari
|
|
|
676
722
|
})
|
|
677
723
|
});
|
|
678
724
|
}
|
|
679
|
-
function
|
|
680
|
-
return /* @__PURE__ */ H(
|
|
725
|
+
function $e(e) {
|
|
726
|
+
return /* @__PURE__ */ H(Qe, {
|
|
681
727
|
variant: "modal",
|
|
682
728
|
...e
|
|
683
729
|
});
|
|
684
730
|
}
|
|
685
|
-
function
|
|
686
|
-
return /* @__PURE__ */ H(
|
|
731
|
+
function et(e) {
|
|
732
|
+
return /* @__PURE__ */ H(Qe, {
|
|
687
733
|
variant: "drawer",
|
|
688
734
|
...e
|
|
689
735
|
});
|
|
690
736
|
}
|
|
691
|
-
var
|
|
692
|
-
function
|
|
693
|
-
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;
|
|
694
740
|
return /* @__PURE__ */ U("div", {
|
|
695
741
|
role: T ? "button" : void 0,
|
|
696
742
|
tabIndex: T ? 0 : void 0,
|
|
@@ -708,7 +754,7 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
708
754
|
children: [t.has("key") ? /* @__PURE__ */ H("span", {}) : /* @__PURE__ */ H("span", {
|
|
709
755
|
className: "font-mono text-[10px] uppercase tracking-wide text-muted-foreground",
|
|
710
756
|
children: e.key
|
|
711
|
-
}), !t.has("type") && /* @__PURE__ */ H(
|
|
757
|
+
}), !t.has("type") && /* @__PURE__ */ H(Ze, { type: e.type })]
|
|
712
758
|
}),
|
|
713
759
|
/* @__PURE__ */ H("p", {
|
|
714
760
|
className: "line-clamp-2 text-sm font-medium leading-snug text-foreground",
|
|
@@ -716,7 +762,7 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
716
762
|
}),
|
|
717
763
|
g && /* @__PURE__ */ U("div", {
|
|
718
764
|
className: "mt-1.5 flex flex-wrap gap-1",
|
|
719
|
-
children: [c.slice(0, 3).map((e) => /* @__PURE__ */ H(
|
|
765
|
+
children: [c.slice(0, 3).map((e) => /* @__PURE__ */ H(ze, {
|
|
720
766
|
link: e,
|
|
721
767
|
renderIcon: l
|
|
722
768
|
}, e.id)), c.length > 3 && /* @__PURE__ */ U("span", {
|
|
@@ -736,7 +782,7 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
736
782
|
}),
|
|
737
783
|
b && /* @__PURE__ */ U("div", {
|
|
738
784
|
className: "mt-2 flex items-center justify-between",
|
|
739
|
-
children: [v ? /* @__PURE__ */ H(
|
|
785
|
+
children: [v ? /* @__PURE__ */ H(Ye, {
|
|
740
786
|
priority: e.priority,
|
|
741
787
|
showLabel: !0
|
|
742
788
|
}) : /* @__PURE__ */ H("span", {}), y && /* @__PURE__ */ H("span", {
|
|
@@ -749,7 +795,7 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
749
795
|
className: "mt-2 flex items-center justify-between gap-2",
|
|
750
796
|
children: [x ? /* @__PURE__ */ U("span", {
|
|
751
797
|
className: "flex min-w-0 items-center gap-1.5",
|
|
752
|
-
children: [/* @__PURE__ */ H(
|
|
798
|
+
children: [/* @__PURE__ */ H(Ne, {
|
|
753
799
|
id: e.assigneeId,
|
|
754
800
|
name: m?.name,
|
|
755
801
|
size: "sm"
|
|
@@ -769,8 +815,8 @@ function Qe({ task: e, hidden: t = Ze, onClick: n, draggable: r, onDragStart: i,
|
|
|
769
815
|
]
|
|
770
816
|
});
|
|
771
817
|
}
|
|
772
|
-
function
|
|
773
|
-
let { data: r, loading: i } =
|
|
818
|
+
function rt(e, t, n = 500) {
|
|
819
|
+
let { data: r, loading: i } = q(me, {
|
|
774
820
|
variables: {
|
|
775
821
|
workspaceId: e,
|
|
776
822
|
...t ? { filter: { sourceProduct: t } } : {},
|
|
@@ -790,8 +836,8 @@ function $e(e, t, n = 500) {
|
|
|
790
836
|
loading: i
|
|
791
837
|
};
|
|
792
838
|
}
|
|
793
|
-
function
|
|
794
|
-
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, {
|
|
795
841
|
variables: {
|
|
796
842
|
workspaceId: v,
|
|
797
843
|
...e ? { filter: { projectId: e } } : {},
|
|
@@ -887,7 +933,7 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
887
933
|
className: "flex items-center justify-between gap-2 px-3 py-2",
|
|
888
934
|
children: [/* @__PURE__ */ U("span", {
|
|
889
935
|
className: "flex items-center gap-2 text-sm font-medium text-foreground",
|
|
890
|
-
children: [/* @__PURE__ */ H(
|
|
936
|
+
children: [/* @__PURE__ */ H(Ge, { status: e.status }), S.status[e.status]]
|
|
891
937
|
}), /* @__PURE__ */ H("span", {
|
|
892
938
|
className: "rounded-full bg-muted px-1.5 text-xs font-medium text-muted-foreground",
|
|
893
939
|
children: t.length
|
|
@@ -897,7 +943,7 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
897
943
|
children: t.length === 0 ? /* @__PURE__ */ H("div", {
|
|
898
944
|
className: "rounded-md border border-dashed border-border/70 px-3 py-6 text-center text-xs text-muted-foreground",
|
|
899
945
|
children: n ? S.dropHere : S.noTasks
|
|
900
|
-
}) : t.map((e) => /* @__PURE__ */ H(
|
|
946
|
+
}) : t.map((e) => /* @__PURE__ */ H(nt, {
|
|
901
947
|
task: e,
|
|
902
948
|
hidden: C,
|
|
903
949
|
onClick: p,
|
|
@@ -917,7 +963,7 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
917
963
|
}, e.status);
|
|
918
964
|
})
|
|
919
965
|
}),
|
|
920
|
-
/* @__PURE__ */ H(
|
|
966
|
+
/* @__PURE__ */ H($e, {
|
|
921
967
|
open: j != null,
|
|
922
968
|
onClose: () => M(null),
|
|
923
969
|
ariaLabel: S.moveConfirmTitle,
|
|
@@ -955,26 +1001,27 @@ function et({ projectId: e, columns: t = Ae, readonly: n, confirmMove: r = !0, h
|
|
|
955
1001
|
]
|
|
956
1002
|
});
|
|
957
1003
|
}
|
|
958
|
-
var
|
|
959
|
-
function
|
|
960
|
-
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) => {
|
|
961
1007
|
if (e.preventDefault(), !z || !p) return;
|
|
962
|
-
let t = M.split(",").map((e) => e.trim()).filter(Boolean), n = P.trim() ? Number(P) : void 0,
|
|
1008
|
+
let t = M.split(",").map((e) => e.trim()).filter(Boolean), n = P.trim() ? Number(P) : void 0, i = {
|
|
963
1009
|
projectId: p,
|
|
964
1010
|
title: g.trim(),
|
|
965
1011
|
type: S,
|
|
1012
|
+
...r?.parentId ? { parentId: r.parentId } : {},
|
|
966
1013
|
...h.has("status") ? {} : { status: w },
|
|
967
1014
|
...h.has("priority") ? {} : { priority: E },
|
|
968
1015
|
...h.has("description") || !v.trim() ? {} : { description: v.trim() },
|
|
969
1016
|
...h.has("assignee") || !O.trim() ? {} : { assigneeId: O.trim() },
|
|
970
|
-
...h.has("dueDate") || !A.trim() ? {} : { dueDate:
|
|
1017
|
+
...h.has("dueDate") || !A.trim() ? {} : { dueDate: Ce(A) },
|
|
971
1018
|
...h.has("labels") || t.length === 0 ? {} : { labels: t },
|
|
972
1019
|
...h.has("storyPoints") || n == null || Number.isNaN(n) ? {} : { storyPoints: n }
|
|
973
1020
|
};
|
|
974
1021
|
try {
|
|
975
|
-
let e = (await I({ variables: { input:
|
|
1022
|
+
let e = (await I({ variables: { input: i } })).data?.planmagnetCreateWorkItem;
|
|
976
1023
|
if (e) {
|
|
977
|
-
let t =
|
|
1024
|
+
let t = re();
|
|
978
1025
|
try {
|
|
979
1026
|
await t.onTaskSaved?.({
|
|
980
1027
|
id: e.id,
|
|
@@ -991,7 +1038,7 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
991
1038
|
}
|
|
992
1039
|
};
|
|
993
1040
|
function V() {
|
|
994
|
-
_(""), y(""), C(
|
|
1041
|
+
_(""), y(""), C(at), T(ot), D(st), k(""), j(""), N(""), F("");
|
|
995
1042
|
}
|
|
996
1043
|
return f ? /* @__PURE__ */ H(W, {
|
|
997
1044
|
className: J("shadow-sm", l),
|
|
@@ -1055,7 +1102,7 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1055
1102
|
className: J(X, "capitalize"),
|
|
1056
1103
|
value: S,
|
|
1057
1104
|
onChange: (e) => C(e.target.value),
|
|
1058
|
-
children:
|
|
1105
|
+
children: Ie.map((e) => /* @__PURE__ */ H("option", {
|
|
1059
1106
|
value: e,
|
|
1060
1107
|
children: m.type[e]
|
|
1061
1108
|
}, e))
|
|
@@ -1072,7 +1119,7 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1072
1119
|
className: J(X, "capitalize"),
|
|
1073
1120
|
value: w,
|
|
1074
1121
|
onChange: (e) => T(e.target.value),
|
|
1075
|
-
children:
|
|
1122
|
+
children: Le.map((e) => /* @__PURE__ */ H("option", {
|
|
1076
1123
|
value: e,
|
|
1077
1124
|
children: m.status[e]
|
|
1078
1125
|
}, e))
|
|
@@ -1089,7 +1136,7 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1089
1136
|
className: J(X, "capitalize"),
|
|
1090
1137
|
value: E,
|
|
1091
1138
|
onChange: (e) => D(e.target.value),
|
|
1092
|
-
children:
|
|
1139
|
+
children: Fe.map((e) => /* @__PURE__ */ H("option", {
|
|
1093
1140
|
value: e,
|
|
1094
1141
|
children: m.priority[e]
|
|
1095
1142
|
}, e))
|
|
@@ -1197,20 +1244,20 @@ function it({ projectId: e, assigneeOptions: t, hiddenFields: n, defaultValues:
|
|
|
1197
1244
|
children: "CreateTask: no workspaceId provided (prop or PlanMagnetProvider)."
|
|
1198
1245
|
});
|
|
1199
1246
|
}
|
|
1200
|
-
var
|
|
1247
|
+
var lt = [
|
|
1201
1248
|
"title",
|
|
1202
1249
|
"status",
|
|
1203
1250
|
"priority",
|
|
1204
1251
|
"assignee",
|
|
1205
1252
|
"dueDate",
|
|
1206
1253
|
"storyPoints"
|
|
1207
|
-
],
|
|
1254
|
+
], ut = {
|
|
1208
1255
|
CRITICAL: 0,
|
|
1209
1256
|
HIGH: 1,
|
|
1210
1257
|
MEDIUM: 2,
|
|
1211
1258
|
LOW: 3,
|
|
1212
1259
|
NONE: 4
|
|
1213
|
-
},
|
|
1260
|
+
}, dt = {
|
|
1214
1261
|
BACKLOG: 0,
|
|
1215
1262
|
TODO: 1,
|
|
1216
1263
|
IN_PROGRESS: 2,
|
|
@@ -1219,7 +1266,7 @@ var at = [
|
|
|
1219
1266
|
DONE: 5,
|
|
1220
1267
|
CANCELLED: 6
|
|
1221
1268
|
};
|
|
1222
|
-
function
|
|
1269
|
+
function ft(e, t) {
|
|
1223
1270
|
switch (e) {
|
|
1224
1271
|
case "key": return t.colKey;
|
|
1225
1272
|
case "title": return t.colTask;
|
|
@@ -1234,7 +1281,7 @@ function ct(e, t) {
|
|
|
1234
1281
|
default: return e;
|
|
1235
1282
|
}
|
|
1236
1283
|
}
|
|
1237
|
-
var
|
|
1284
|
+
var pt = {
|
|
1238
1285
|
title: "title",
|
|
1239
1286
|
type: "type",
|
|
1240
1287
|
status: "status",
|
|
@@ -1242,8 +1289,8 @@ var lt = {
|
|
|
1242
1289
|
dueDate: "dueDate",
|
|
1243
1290
|
storyPoints: "storyPoints"
|
|
1244
1291
|
};
|
|
1245
|
-
function
|
|
1246
|
-
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({
|
|
1247
1294
|
by: s ?? null,
|
|
1248
1295
|
dir: c
|
|
1249
1296
|
}), E = b(() => {
|
|
@@ -1256,7 +1303,7 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1256
1303
|
r,
|
|
1257
1304
|
i,
|
|
1258
1305
|
a
|
|
1259
|
-
]), { data: O, loading: k, error: A } =
|
|
1306
|
+
]), { data: O, loading: k, error: A } = q(le, {
|
|
1260
1307
|
variables: {
|
|
1261
1308
|
workspaceId: v,
|
|
1262
1309
|
...Object.keys(E).length ? { filter: E } : {},
|
|
@@ -1267,9 +1314,9 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1267
1314
|
let e = O?.planmagnetWorkItems?.items ?? [];
|
|
1268
1315
|
if (!C.by) return e;
|
|
1269
1316
|
let t = C.dir === "desc" ? -1 : 1, n = C.by;
|
|
1270
|
-
return [...e].sort((e, r) => t *
|
|
1317
|
+
return [...e].sort((e, r) => t * gt(e, r, n));
|
|
1271
1318
|
}, [O, C]), M = (e) => {
|
|
1272
|
-
let t =
|
|
1319
|
+
let t = pt[e];
|
|
1273
1320
|
t && T((e) => e.by === t ? {
|
|
1274
1321
|
by: t,
|
|
1275
1322
|
dir: e.dir === "asc" ? "desc" : "asc"
|
|
@@ -1310,13 +1357,13 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1310
1357
|
children: [/* @__PURE__ */ H("thead", { children: /* @__PURE__ */ H("tr", {
|
|
1311
1358
|
className: "border-b border-border bg-muted/50 text-left",
|
|
1312
1359
|
children: o.map((e) => {
|
|
1313
|
-
let t = !!
|
|
1360
|
+
let t = !!pt[e], n = C.by === pt[e];
|
|
1314
1361
|
return /* @__PURE__ */ H("th", {
|
|
1315
1362
|
onClick: t ? () => M(e) : void 0,
|
|
1316
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"),
|
|
1317
1364
|
children: /* @__PURE__ */ U("span", {
|
|
1318
1365
|
className: "inline-flex items-center gap-1",
|
|
1319
|
-
children: [
|
|
1366
|
+
children: [ft(e, S), n && (C.dir === "asc" ? /* @__PURE__ */ H(D, {
|
|
1320
1367
|
className: "h-3 w-3",
|
|
1321
1368
|
"aria-hidden": "true"
|
|
1322
1369
|
}) : /* @__PURE__ */ H(w, {
|
|
@@ -1335,7 +1382,7 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1335
1382
|
className: J("border-b border-border last:border-0", u && "cursor-pointer hover:bg-muted/40"),
|
|
1336
1383
|
children: o.map((t) => /* @__PURE__ */ H("td", {
|
|
1337
1384
|
className: "px-3 py-2 align-middle text-foreground",
|
|
1338
|
-
children:
|
|
1385
|
+
children: ht(t, e, {
|
|
1339
1386
|
resolveAssignee: d,
|
|
1340
1387
|
links: y.get(e.id),
|
|
1341
1388
|
renderLinkIcon: p,
|
|
@@ -1350,7 +1397,7 @@ function ut({ projectId: e, status: t, type: n, priority: r, assigneeId: i, sear
|
|
|
1350
1397
|
children: "TaskList: no workspaceId provided (prop or PlanMagnetProvider)."
|
|
1351
1398
|
});
|
|
1352
1399
|
}
|
|
1353
|
-
function
|
|
1400
|
+
function ht(e, t, n) {
|
|
1354
1401
|
let { resolveAssignee: r, links: i, renderLinkIcon: a, unassigned: o } = n;
|
|
1355
1402
|
switch (e) {
|
|
1356
1403
|
case "key": return /* @__PURE__ */ H("span", {
|
|
@@ -1367,9 +1414,9 @@ function dt(e, t, n) {
|
|
|
1367
1414
|
children: t.key
|
|
1368
1415
|
})]
|
|
1369
1416
|
});
|
|
1370
|
-
case "type": return /* @__PURE__ */ H(
|
|
1371
|
-
case "status": return /* @__PURE__ */ H(
|
|
1372
|
-
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, {
|
|
1373
1420
|
priority: t.priority,
|
|
1374
1421
|
showLabel: !0
|
|
1375
1422
|
});
|
|
@@ -1377,7 +1424,7 @@ function dt(e, t, n) {
|
|
|
1377
1424
|
let e = t.assigneeId ? r?.(t.assigneeId) : null;
|
|
1378
1425
|
return /* @__PURE__ */ U("span", {
|
|
1379
1426
|
className: "flex items-center gap-1.5",
|
|
1380
|
-
children: [/* @__PURE__ */ H(
|
|
1427
|
+
children: [/* @__PURE__ */ H(Ne, {
|
|
1381
1428
|
id: t.assigneeId,
|
|
1382
1429
|
name: e?.name,
|
|
1383
1430
|
size: "sm"
|
|
@@ -1388,9 +1435,9 @@ function dt(e, t, n) {
|
|
|
1388
1435
|
});
|
|
1389
1436
|
}
|
|
1390
1437
|
case "dueDate": {
|
|
1391
|
-
let e =
|
|
1438
|
+
let e = we(t.dueDate);
|
|
1392
1439
|
return e ? /* @__PURE__ */ H("span", {
|
|
1393
|
-
className: J("text-xs",
|
|
1440
|
+
className: J("text-xs", Ee(t.dueDate, t.status) ? "font-medium text-destructive" : "text-muted-foreground"),
|
|
1394
1441
|
children: e
|
|
1395
1442
|
}) : /* @__PURE__ */ H("span", {
|
|
1396
1443
|
className: "text-muted-foreground",
|
|
@@ -1409,7 +1456,7 @@ function dt(e, t, n) {
|
|
|
1409
1456
|
children: "—"
|
|
1410
1457
|
}) : /* @__PURE__ */ U("div", {
|
|
1411
1458
|
className: "flex flex-wrap gap-1",
|
|
1412
|
-
children: [i.slice(0, 2).map((e) => /* @__PURE__ */ H(
|
|
1459
|
+
children: [i.slice(0, 2).map((e) => /* @__PURE__ */ H(ze, {
|
|
1413
1460
|
link: e,
|
|
1414
1461
|
renderIcon: a
|
|
1415
1462
|
}, e.id)), i.length > 2 && /* @__PURE__ */ U("span", {
|
|
@@ -1427,10 +1474,10 @@ function dt(e, t, n) {
|
|
|
1427
1474
|
default: return null;
|
|
1428
1475
|
}
|
|
1429
1476
|
}
|
|
1430
|
-
function
|
|
1477
|
+
function gt(e, t, n) {
|
|
1431
1478
|
switch (n) {
|
|
1432
|
-
case "priority": return
|
|
1433
|
-
case "status": return
|
|
1479
|
+
case "priority": return ut[e.priority] - ut[t.priority];
|
|
1480
|
+
case "status": return dt[e.status] - dt[t.status];
|
|
1434
1481
|
case "title": return e.title.localeCompare(t.title);
|
|
1435
1482
|
case "type": return e.type.localeCompare(t.type);
|
|
1436
1483
|
case "dueDate": return (e.dueDate ?? "").localeCompare(t.dueDate ?? "");
|
|
@@ -1438,8 +1485,8 @@ function ft(e, t, n) {
|
|
|
1438
1485
|
default: return 0;
|
|
1439
1486
|
}
|
|
1440
1487
|
}
|
|
1441
|
-
function
|
|
1442
|
-
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, {
|
|
1443
1490
|
variables: {
|
|
1444
1491
|
workspaceId: e,
|
|
1445
1492
|
...n ? { filter: { projectId: n } } : {},
|
|
@@ -1453,7 +1500,7 @@ function pt(e, t = {}) {
|
|
|
1453
1500
|
byDay: b(() => {
|
|
1454
1501
|
let e = /* @__PURE__ */ new Map();
|
|
1455
1502
|
for (let t of s) {
|
|
1456
|
-
let n =
|
|
1503
|
+
let n = Se(t.dueDate);
|
|
1457
1504
|
if (!n) continue;
|
|
1458
1505
|
let r = `${n.getFullYear()}-${String(n.getMonth() + 1).padStart(2, "0")}-${String(n.getDate()).padStart(2, "0")}`, i = e.get(r);
|
|
1459
1506
|
i ? i.push(t) : e.set(r, [t]);
|
|
@@ -1463,15 +1510,15 @@ function pt(e, t = {}) {
|
|
|
1463
1510
|
loading: o
|
|
1464
1511
|
};
|
|
1465
1512
|
}
|
|
1466
|
-
var
|
|
1467
|
-
function
|
|
1513
|
+
var vt = { weekStartsOn: 1 };
|
|
1514
|
+
function yt(e) {
|
|
1468
1515
|
return d(e, "yyyy-MM-dd");
|
|
1469
1516
|
}
|
|
1470
|
-
function
|
|
1471
|
-
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, {
|
|
1472
1519
|
projectId: e,
|
|
1473
1520
|
enabled: v
|
|
1474
|
-
}), [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, {
|
|
1475
1522
|
variables: {
|
|
1476
1523
|
workspaceId: w,
|
|
1477
1524
|
...e ? { filter: { projectId: e } } : {},
|
|
@@ -1494,7 +1541,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1494
1541
|
]), { anchor: z, rangeStart: B, rangeEnd: V, days: W } = b(() => {
|
|
1495
1542
|
let e = /* @__PURE__ */ new Date();
|
|
1496
1543
|
if (A === "week") {
|
|
1497
|
-
let t = a(e, M), n = r(t,
|
|
1544
|
+
let t = a(e, M), n = r(t, vt), i = u(t, vt);
|
|
1498
1545
|
return {
|
|
1499
1546
|
anchor: t,
|
|
1500
1547
|
rangeStart: n,
|
|
@@ -1505,7 +1552,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1505
1552
|
})
|
|
1506
1553
|
};
|
|
1507
1554
|
}
|
|
1508
|
-
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);
|
|
1509
1556
|
return {
|
|
1510
1557
|
anchor: t,
|
|
1511
1558
|
rangeStart: i,
|
|
@@ -1518,16 +1565,16 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1518
1565
|
}, [A, M]), { byDay: ee, overdue: G, undated: te } = b(() => {
|
|
1519
1566
|
let e = /* @__PURE__ */ new Map(), t = [], n = [];
|
|
1520
1567
|
for (let r of R) {
|
|
1521
|
-
let i =
|
|
1568
|
+
let i = Se(r.dueDate);
|
|
1522
1569
|
if (!i) {
|
|
1523
1570
|
n.push(r);
|
|
1524
1571
|
continue;
|
|
1525
1572
|
}
|
|
1526
|
-
if (
|
|
1573
|
+
if (Ee(r.dueDate, r.status)) {
|
|
1527
1574
|
t.push(r);
|
|
1528
1575
|
continue;
|
|
1529
1576
|
}
|
|
1530
|
-
let a =
|
|
1577
|
+
let a = yt(i), o = e.get(a);
|
|
1531
1578
|
o ? o.push(r) : e.set(a, [r]);
|
|
1532
1579
|
}
|
|
1533
1580
|
return {
|
|
@@ -1552,7 +1599,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1552
1599
|
L.message
|
|
1553
1600
|
]
|
|
1554
1601
|
});
|
|
1555
|
-
let
|
|
1602
|
+
let K = A === "week" ? `${d(B, "MMM d")} \u2013 ${d(V, "MMM d")}` : d(z, "MMMM yyyy");
|
|
1556
1603
|
return /* @__PURE__ */ U("div", {
|
|
1557
1604
|
className: J("space-y-3", y),
|
|
1558
1605
|
children: [
|
|
@@ -1583,7 +1630,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1583
1630
|
}),
|
|
1584
1631
|
/* @__PURE__ */ H("span", {
|
|
1585
1632
|
className: "ml-2 text-sm font-medium text-foreground",
|
|
1586
|
-
children:
|
|
1633
|
+
children: K
|
|
1587
1634
|
})
|
|
1588
1635
|
]
|
|
1589
1636
|
}), /* @__PURE__ */ H("div", {
|
|
@@ -1605,7 +1652,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1605
1652
|
children: D.overdue.replace("{n}", String(G.length))
|
|
1606
1653
|
}), /* @__PURE__ */ H("div", {
|
|
1607
1654
|
className: "flex flex-wrap gap-1.5",
|
|
1608
|
-
children: G.map((e) => /* @__PURE__ */ H(
|
|
1655
|
+
children: G.map((e) => /* @__PURE__ */ H(St, {
|
|
1609
1656
|
task: e,
|
|
1610
1657
|
onSelect: g,
|
|
1611
1658
|
resolveAssignee: _,
|
|
@@ -1623,13 +1670,13 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1623
1670
|
}), D.milestones]
|
|
1624
1671
|
}), /* @__PURE__ */ H("div", {
|
|
1625
1672
|
className: "flex flex-wrap gap-1.5",
|
|
1626
|
-
children: O.map((e) => /* @__PURE__ */ H(
|
|
1673
|
+
children: O.map((e) => /* @__PURE__ */ H(xt, { milestone: e }, e.id))
|
|
1627
1674
|
})]
|
|
1628
1675
|
}),
|
|
1629
1676
|
A === "week" ? /* @__PURE__ */ H("div", {
|
|
1630
1677
|
className: "grid grid-cols-7 gap-2",
|
|
1631
1678
|
children: W.map((e) => {
|
|
1632
|
-
let t = ee.get(
|
|
1679
|
+
let t = ee.get(yt(e)) ?? [], n = k.get(yt(e)) ?? [], r = p(e);
|
|
1633
1680
|
return /* @__PURE__ */ U("div", {
|
|
1634
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"),
|
|
1635
1682
|
children: [/* @__PURE__ */ U("div", {
|
|
@@ -1643,16 +1690,16 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1643
1690
|
})]
|
|
1644
1691
|
}), /* @__PURE__ */ U("div", {
|
|
1645
1692
|
className: "flex flex-col gap-1.5",
|
|
1646
|
-
children: [n.map((e) => /* @__PURE__ */ H(
|
|
1693
|
+
children: [n.map((e) => /* @__PURE__ */ H(xt, {
|
|
1647
1694
|
milestone: e,
|
|
1648
1695
|
compact: !0
|
|
1649
|
-
}, e.id)), t.map((e) => /* @__PURE__ */ H(
|
|
1696
|
+
}, e.id)), t.map((e) => /* @__PURE__ */ H(St, {
|
|
1650
1697
|
task: e,
|
|
1651
1698
|
onSelect: g,
|
|
1652
1699
|
resolveAssignee: _
|
|
1653
1700
|
}, e.id))]
|
|
1654
1701
|
})]
|
|
1655
|
-
},
|
|
1702
|
+
}, yt(e));
|
|
1656
1703
|
})
|
|
1657
1704
|
}) : /* @__PURE__ */ U("div", {
|
|
1658
1705
|
className: "grid grid-cols-7 gap-1",
|
|
@@ -1668,7 +1715,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1668
1715
|
className: "px-1 pb-1 text-center text-[10px] font-semibold uppercase text-muted-foreground",
|
|
1669
1716
|
children: e
|
|
1670
1717
|
}, e)), W.map((e) => {
|
|
1671
|
-
let t = ee.get(
|
|
1718
|
+
let t = ee.get(yt(e)) ?? [], n = p(e), r = f(e, z);
|
|
1672
1719
|
return /* @__PURE__ */ U("div", {
|
|
1673
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"),
|
|
1674
1721
|
children: [
|
|
@@ -1676,7 +1723,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1676
1723
|
className: J("text-[10px] font-semibold", n ? "text-primary" : "text-muted-foreground"),
|
|
1677
1724
|
children: d(e, "d")
|
|
1678
1725
|
}),
|
|
1679
|
-
t.slice(0, 3).map((e) => /* @__PURE__ */ H(
|
|
1726
|
+
t.slice(0, 3).map((e) => /* @__PURE__ */ H(St, {
|
|
1680
1727
|
task: e,
|
|
1681
1728
|
onSelect: g,
|
|
1682
1729
|
resolveAssignee: _,
|
|
@@ -1692,7 +1739,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1692
1739
|
]
|
|
1693
1740
|
})
|
|
1694
1741
|
]
|
|
1695
|
-
},
|
|
1742
|
+
}, yt(e));
|
|
1696
1743
|
})]
|
|
1697
1744
|
}),
|
|
1698
1745
|
te.length > 0 && /* @__PURE__ */ U("div", {
|
|
@@ -1702,7 +1749,7 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1702
1749
|
children: D.noDueDate.replace("{n}", String(te.length))
|
|
1703
1750
|
}), /* @__PURE__ */ H("div", {
|
|
1704
1751
|
className: "flex flex-wrap gap-1.5",
|
|
1705
|
-
children: te.map((e) => /* @__PURE__ */ H(
|
|
1752
|
+
children: te.map((e) => /* @__PURE__ */ H(St, {
|
|
1706
1753
|
task: e,
|
|
1707
1754
|
onSelect: g,
|
|
1708
1755
|
resolveAssignee: _
|
|
@@ -1712,8 +1759,8 @@ function gt({ projectId: e, priority: t = "ALL", type: i = "ALL", search: o = ""
|
|
|
1712
1759
|
]
|
|
1713
1760
|
});
|
|
1714
1761
|
}
|
|
1715
|
-
function
|
|
1716
|
-
let n =
|
|
1762
|
+
function xt({ milestone: e, compact: t }) {
|
|
1763
|
+
let n = we(e.dueDate);
|
|
1717
1764
|
return /* @__PURE__ */ U("span", {
|
|
1718
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"),
|
|
1719
1766
|
title: e.name + (n ? ` \xB7 ${n}` : ""),
|
|
@@ -1733,7 +1780,7 @@ function _t({ milestone: e, compact: t }) {
|
|
|
1733
1780
|
]
|
|
1734
1781
|
});
|
|
1735
1782
|
}
|
|
1736
|
-
function
|
|
1783
|
+
function St({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
|
|
1737
1784
|
let a = e.assigneeId ? n?.(e.assigneeId) : null, o = !!t;
|
|
1738
1785
|
return /* @__PURE__ */ U("button", {
|
|
1739
1786
|
type: "button",
|
|
@@ -1742,12 +1789,12 @@ function vt({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
|
|
|
1742
1789
|
title: e.title,
|
|
1743
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"),
|
|
1744
1791
|
children: [
|
|
1745
|
-
/* @__PURE__ */ H(
|
|
1792
|
+
/* @__PURE__ */ H(Ye, { priority: e.priority }),
|
|
1746
1793
|
/* @__PURE__ */ H("span", {
|
|
1747
1794
|
className: "min-w-0 flex-1 truncate text-[11px] font-medium text-foreground",
|
|
1748
1795
|
children: e.title
|
|
1749
1796
|
}),
|
|
1750
|
-
!i && /* @__PURE__ */ H(
|
|
1797
|
+
!i && /* @__PURE__ */ H(Ne, {
|
|
1751
1798
|
id: e.assigneeId,
|
|
1752
1799
|
name: a?.name,
|
|
1753
1800
|
size: "sm"
|
|
@@ -1755,12 +1802,12 @@ function vt({ task: e, onSelect: t, resolveAssignee: n, tone: r, compact: i }) {
|
|
|
1755
1802
|
]
|
|
1756
1803
|
});
|
|
1757
1804
|
}
|
|
1758
|
-
var
|
|
1805
|
+
var Ct = {
|
|
1759
1806
|
board: F,
|
|
1760
1807
|
list: L,
|
|
1761
1808
|
timeline: C
|
|
1762
|
-
},
|
|
1763
|
-
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 = [
|
|
1764
1811
|
"board",
|
|
1765
1812
|
"list",
|
|
1766
1813
|
"timeline"
|
|
@@ -1777,7 +1824,7 @@ function xt({ view: e, onViewChange: t, views: n = [
|
|
|
1777
1824
|
role: "tablist",
|
|
1778
1825
|
"aria-label": "Task views",
|
|
1779
1826
|
children: n.map((n) => {
|
|
1780
|
-
let r =
|
|
1827
|
+
let r = Ct[n], i = n === e;
|
|
1781
1828
|
return /* @__PURE__ */ U("button", {
|
|
1782
1829
|
type: "button",
|
|
1783
1830
|
role: "tab",
|
|
@@ -1825,11 +1872,11 @@ function xt({ view: e, onViewChange: t, views: n = [
|
|
|
1825
1872
|
value: a,
|
|
1826
1873
|
onChange: (e) => o(e.target.value),
|
|
1827
1874
|
"aria-label": m.priorityLabel,
|
|
1828
|
-
className:
|
|
1875
|
+
className: wt,
|
|
1829
1876
|
children: [/* @__PURE__ */ H("option", {
|
|
1830
1877
|
value: "ALL",
|
|
1831
1878
|
children: m.allPriorities
|
|
1832
|
-
}),
|
|
1879
|
+
}), Fe.map((e) => /* @__PURE__ */ H("option", {
|
|
1833
1880
|
value: e,
|
|
1834
1881
|
children: m.priority[e]
|
|
1835
1882
|
}, e))]
|
|
@@ -1838,11 +1885,11 @@ function xt({ view: e, onViewChange: t, views: n = [
|
|
|
1838
1885
|
value: s,
|
|
1839
1886
|
onChange: (e) => c(e.target.value),
|
|
1840
1887
|
"aria-label": m.typeLabel,
|
|
1841
|
-
className:
|
|
1888
|
+
className: wt,
|
|
1842
1889
|
children: [/* @__PURE__ */ H("option", {
|
|
1843
1890
|
value: "ALL",
|
|
1844
1891
|
children: m.allTypes
|
|
1845
|
-
}),
|
|
1892
|
+
}), Ie.map((e) => /* @__PURE__ */ H("option", {
|
|
1846
1893
|
value: e,
|
|
1847
1894
|
children: m.type[e]
|
|
1848
1895
|
}, e))]
|
|
@@ -1860,50 +1907,177 @@ function xt({ view: e, onViewChange: t, views: n = [
|
|
|
1860
1907
|
})]
|
|
1861
1908
|
});
|
|
1862
1909
|
}
|
|
1863
|
-
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 = {
|
|
1864
2028
|
NONE: "muted",
|
|
1865
2029
|
LOW: "muted",
|
|
1866
2030
|
MEDIUM: "secondary",
|
|
1867
2031
|
HIGH: "accent",
|
|
1868
2032
|
CRITICAL: "destructive"
|
|
1869
2033
|
};
|
|
1870
|
-
function
|
|
1871
|
-
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, {
|
|
1872
2036
|
variables: { id: e },
|
|
1873
2037
|
skip: !e
|
|
1874
|
-
}),
|
|
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, {
|
|
2042
|
+
variables: {
|
|
2043
|
+
workspaceId: T?.workspaceId,
|
|
2044
|
+
filter: { parentId: T?.id },
|
|
2045
|
+
pagination: { first: 100 }
|
|
2046
|
+
},
|
|
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("");
|
|
1875
2049
|
y(() => {
|
|
1876
|
-
|
|
1877
|
-
}, [
|
|
1878
|
-
let [
|
|
1879
|
-
if (
|
|
1880
|
-
await
|
|
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({
|
|
1881
2055
|
__typename: "WorkItem",
|
|
1882
|
-
id:
|
|
1883
|
-
}) }),
|
|
2056
|
+
id: T.id
|
|
2057
|
+
}) }), g.cache.gc(), g.refetchQueries({ include: [le] }).catch(() => {}), a?.(T.id);
|
|
1884
2058
|
} catch (e) {
|
|
1885
2059
|
o?.(e instanceof Error ? e : Error(String(e)));
|
|
1886
2060
|
}
|
|
1887
|
-
},
|
|
1888
|
-
if (e.preventDefault(), !
|
|
1889
|
-
let t =
|
|
1890
|
-
title:
|
|
1891
|
-
...
|
|
1892
|
-
...
|
|
1893
|
-
...
|
|
1894
|
-
...
|
|
1895
|
-
...
|
|
1896
|
-
...
|
|
1897
|
-
...
|
|
1898
|
-
...
|
|
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 }
|
|
1899
2073
|
};
|
|
1900
2074
|
try {
|
|
1901
|
-
let e = (await
|
|
1902
|
-
id:
|
|
2075
|
+
let e = (await ye({ variables: {
|
|
2076
|
+
id: T.id,
|
|
1903
2077
|
input: r
|
|
1904
2078
|
} })).data?.planmagnetUpdateWorkItem;
|
|
1905
2079
|
if (e) {
|
|
1906
|
-
let t =
|
|
2080
|
+
let t = re();
|
|
1907
2081
|
try {
|
|
1908
2082
|
await t.onTaskSaved?.({
|
|
1909
2083
|
id: e.id,
|
|
@@ -1913,35 +2087,35 @@ function Ct({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
|
|
|
1913
2087
|
operation: "updated"
|
|
1914
2088
|
});
|
|
1915
2089
|
} catch {}
|
|
1916
|
-
i?.(e),
|
|
2090
|
+
i?.(e), N(!1);
|
|
1917
2091
|
}
|
|
1918
2092
|
} catch (e) {
|
|
1919
2093
|
o?.(e instanceof Error ? e : Error(String(e)));
|
|
1920
2094
|
}
|
|
1921
2095
|
};
|
|
1922
2096
|
if (!e) return /* @__PURE__ */ H("div", {
|
|
1923
|
-
className: J("p-6 text-sm text-destructive",
|
|
2097
|
+
className: J("p-6 text-sm text-destructive", h),
|
|
1924
2098
|
children: "TaskDetail: no work-item id provided."
|
|
1925
2099
|
});
|
|
1926
|
-
if (
|
|
1927
|
-
className: J("flex items-center justify-center p-12",
|
|
2100
|
+
if (C && !S) return /* @__PURE__ */ H("div", {
|
|
2101
|
+
className: J("flex items-center justify-center p-12", h),
|
|
1928
2102
|
children: /* @__PURE__ */ H("div", { className: "h-8 w-8 animate-spin rounded-full border-2 border-primary border-t-transparent" })
|
|
1929
2103
|
});
|
|
1930
|
-
if (
|
|
1931
|
-
className: J("p-6 text-sm text-destructive",
|
|
2104
|
+
if (w && !S) return /* @__PURE__ */ U("div", {
|
|
2105
|
+
className: J("p-6 text-sm text-destructive", h),
|
|
1932
2106
|
children: [
|
|
1933
|
-
|
|
2107
|
+
_.errorLoading,
|
|
1934
2108
|
": ",
|
|
1935
|
-
|
|
2109
|
+
w.message
|
|
1936
2110
|
]
|
|
1937
2111
|
});
|
|
1938
|
-
if (!
|
|
1939
|
-
className: J("p-6 text-sm text-muted-foreground",
|
|
1940
|
-
children:
|
|
2112
|
+
if (!T) return /* @__PURE__ */ H("div", {
|
|
2113
|
+
className: J("p-6 text-sm text-muted-foreground", h),
|
|
2114
|
+
children: _.taskNotFound
|
|
1941
2115
|
});
|
|
1942
|
-
let
|
|
2116
|
+
let Ae = !t;
|
|
1943
2117
|
return /* @__PURE__ */ H(W, {
|
|
1944
|
-
className: J("shadow-sm",
|
|
2118
|
+
className: J("shadow-sm", h),
|
|
1945
2119
|
children: /* @__PURE__ */ U(ee, {
|
|
1946
2120
|
className: "space-y-4 p-6",
|
|
1947
2121
|
children: [
|
|
@@ -1949,58 +2123,58 @@ function Ct({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
|
|
|
1949
2123
|
className: "flex items-start justify-between gap-4",
|
|
1950
2124
|
children: [/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("p", {
|
|
1951
2125
|
className: "text-xs text-muted-foreground",
|
|
1952
|
-
children:
|
|
2126
|
+
children: T.key
|
|
1953
2127
|
}), /* @__PURE__ */ H("h2", {
|
|
1954
2128
|
className: "text-xl font-semibold text-foreground",
|
|
1955
|
-
children:
|
|
1956
|
-
})] }),
|
|
2129
|
+
children: T.title
|
|
2130
|
+
})] }), Ae && !M && /* @__PURE__ */ U("div", {
|
|
1957
2131
|
className: "flex shrink-0 items-center gap-2",
|
|
1958
|
-
children: [a && (
|
|
2132
|
+
children: [a && (P ? /* @__PURE__ */ U("span", {
|
|
1959
2133
|
className: "flex items-center gap-1 text-xs",
|
|
1960
2134
|
children: [
|
|
1961
2135
|
/* @__PURE__ */ H("span", {
|
|
1962
2136
|
className: "text-muted-foreground",
|
|
1963
|
-
children:
|
|
2137
|
+
children: _.deletePrompt
|
|
1964
2138
|
}),
|
|
1965
2139
|
/* @__PURE__ */ H("button", {
|
|
1966
2140
|
type: "button",
|
|
1967
|
-
disabled:
|
|
1968
|
-
onClick:
|
|
2141
|
+
disabled: we,
|
|
2142
|
+
onClick: De,
|
|
1969
2143
|
className: "rounded bg-destructive px-2 py-1 font-medium text-destructive-foreground disabled:opacity-50",
|
|
1970
|
-
children:
|
|
2144
|
+
children: we ? "…" : _.yes
|
|
1971
2145
|
}),
|
|
1972
2146
|
/* @__PURE__ */ H("button", {
|
|
1973
2147
|
type: "button",
|
|
1974
|
-
onClick: () =>
|
|
2148
|
+
onClick: () => F(!1),
|
|
1975
2149
|
className: "rounded bg-muted px-2 py-1 text-muted-foreground",
|
|
1976
|
-
children:
|
|
2150
|
+
children: _.no
|
|
1977
2151
|
})
|
|
1978
2152
|
]
|
|
1979
2153
|
}) : /* @__PURE__ */ H("button", {
|
|
1980
2154
|
type: "button",
|
|
1981
|
-
onClick: () =>
|
|
1982
|
-
title:
|
|
1983
|
-
"aria-label":
|
|
2155
|
+
onClick: () => F(!0),
|
|
2156
|
+
title: _.del,
|
|
2157
|
+
"aria-label": _.del,
|
|
1984
2158
|
className: "rounded-md p-1.5 text-destructive hover:bg-destructive/10",
|
|
1985
2159
|
children: /* @__PURE__ */ H(B, { className: "h-4 w-4" })
|
|
1986
2160
|
})), /* @__PURE__ */ H("button", {
|
|
1987
2161
|
type: "button",
|
|
1988
|
-
onClick: () =>
|
|
2162
|
+
onClick: () => N(!0),
|
|
1989
2163
|
className: "rounded-md bg-primary px-3 py-1.5 text-sm font-medium text-primary-foreground",
|
|
1990
|
-
children:
|
|
2164
|
+
children: _.edit
|
|
1991
2165
|
})]
|
|
1992
2166
|
})]
|
|
1993
2167
|
}),
|
|
1994
|
-
|
|
2168
|
+
Ee && /* @__PURE__ */ U("p", {
|
|
1995
2169
|
className: "text-sm text-destructive",
|
|
1996
2170
|
children: [
|
|
1997
|
-
|
|
2171
|
+
_.failedToDelete,
|
|
1998
2172
|
": ",
|
|
1999
|
-
|
|
2173
|
+
Ee.message
|
|
2000
2174
|
]
|
|
2001
2175
|
}),
|
|
2002
|
-
|
|
2003
|
-
onSubmit:
|
|
2176
|
+
M ? /* @__PURE__ */ U("form", {
|
|
2177
|
+
onSubmit: ke,
|
|
2004
2178
|
className: "space-y-4",
|
|
2005
2179
|
children: [
|
|
2006
2180
|
/* @__PURE__ */ U("div", {
|
|
@@ -2008,96 +2182,96 @@ function Ct({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
|
|
|
2008
2182
|
children: [/* @__PURE__ */ H("label", {
|
|
2009
2183
|
htmlFor: "pm-detail-title",
|
|
2010
2184
|
className: $,
|
|
2011
|
-
children:
|
|
2185
|
+
children: _.title
|
|
2012
2186
|
}), /* @__PURE__ */ H("input", {
|
|
2013
2187
|
id: "pm-detail-title",
|
|
2014
2188
|
className: Q,
|
|
2015
|
-
value:
|
|
2016
|
-
onChange: (e) =>
|
|
2189
|
+
value: I,
|
|
2190
|
+
onChange: (e) => L(e.target.value),
|
|
2017
2191
|
required: !0
|
|
2018
2192
|
})]
|
|
2019
2193
|
}),
|
|
2020
|
-
!
|
|
2194
|
+
!v.has("description") && /* @__PURE__ */ U("div", {
|
|
2021
2195
|
className: "space-y-1",
|
|
2022
2196
|
children: [/* @__PURE__ */ H("label", {
|
|
2023
2197
|
htmlFor: "pm-detail-desc",
|
|
2024
2198
|
className: $,
|
|
2025
|
-
children:
|
|
2199
|
+
children: _.description
|
|
2026
2200
|
}), /* @__PURE__ */ H("textarea", {
|
|
2027
2201
|
id: "pm-detail-desc",
|
|
2028
2202
|
className: J(Q, "min-h-[80px]"),
|
|
2029
|
-
value:
|
|
2030
|
-
onChange: (e) =>
|
|
2203
|
+
value: R,
|
|
2204
|
+
onChange: (e) => z(e.target.value)
|
|
2031
2205
|
})]
|
|
2032
2206
|
}),
|
|
2033
2207
|
/* @__PURE__ */ U("div", {
|
|
2034
2208
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2",
|
|
2035
2209
|
children: [
|
|
2036
|
-
!
|
|
2210
|
+
!v.has("type") && /* @__PURE__ */ U("div", {
|
|
2037
2211
|
className: "space-y-1",
|
|
2038
2212
|
children: [/* @__PURE__ */ H("label", {
|
|
2039
2213
|
htmlFor: "pm-detail-type",
|
|
2040
2214
|
className: $,
|
|
2041
|
-
children:
|
|
2215
|
+
children: _.typeLabel
|
|
2042
2216
|
}), /* @__PURE__ */ H("select", {
|
|
2043
2217
|
id: "pm-detail-type",
|
|
2044
2218
|
className: J(Q, "capitalize"),
|
|
2045
|
-
value:
|
|
2046
|
-
onChange: (e) =>
|
|
2047
|
-
children:
|
|
2219
|
+
value: V,
|
|
2220
|
+
onChange: (e) => G(e.target.value),
|
|
2221
|
+
children: Ie.map((e) => /* @__PURE__ */ H("option", {
|
|
2048
2222
|
value: e,
|
|
2049
|
-
children:
|
|
2223
|
+
children: _.type[e]
|
|
2050
2224
|
}, e))
|
|
2051
2225
|
})]
|
|
2052
2226
|
}),
|
|
2053
|
-
!
|
|
2227
|
+
!v.has("status") && /* @__PURE__ */ U("div", {
|
|
2054
2228
|
className: "space-y-1",
|
|
2055
2229
|
children: [/* @__PURE__ */ H("label", {
|
|
2056
2230
|
htmlFor: "pm-detail-status",
|
|
2057
2231
|
className: $,
|
|
2058
|
-
children:
|
|
2232
|
+
children: _.statusLabel
|
|
2059
2233
|
}), /* @__PURE__ */ H("select", {
|
|
2060
2234
|
id: "pm-detail-status",
|
|
2061
2235
|
className: J(Q, "capitalize"),
|
|
2062
|
-
value:
|
|
2063
|
-
onChange: (e) =>
|
|
2064
|
-
children:
|
|
2236
|
+
value: ne,
|
|
2237
|
+
onChange: (e) => ie(e.target.value),
|
|
2238
|
+
children: Le.map((e) => /* @__PURE__ */ H("option", {
|
|
2065
2239
|
value: e,
|
|
2066
|
-
children:
|
|
2240
|
+
children: _.status[e]
|
|
2067
2241
|
}, e))
|
|
2068
2242
|
})]
|
|
2069
2243
|
}),
|
|
2070
|
-
!
|
|
2244
|
+
!v.has("priority") && /* @__PURE__ */ U("div", {
|
|
2071
2245
|
className: "space-y-1",
|
|
2072
2246
|
children: [/* @__PURE__ */ H("label", {
|
|
2073
2247
|
htmlFor: "pm-detail-priority",
|
|
2074
2248
|
className: $,
|
|
2075
|
-
children:
|
|
2249
|
+
children: _.priorityLabel
|
|
2076
2250
|
}), /* @__PURE__ */ H("select", {
|
|
2077
2251
|
id: "pm-detail-priority",
|
|
2078
2252
|
className: J(Q, "capitalize"),
|
|
2079
|
-
value:
|
|
2080
|
-
onChange: (e) =>
|
|
2081
|
-
children:
|
|
2253
|
+
value: ae,
|
|
2254
|
+
onChange: (e) => oe(e.target.value),
|
|
2255
|
+
children: Fe.map((e) => /* @__PURE__ */ H("option", {
|
|
2082
2256
|
value: e,
|
|
2083
|
-
children:
|
|
2257
|
+
children: _.priority[e]
|
|
2084
2258
|
}, e))
|
|
2085
2259
|
})]
|
|
2086
2260
|
}),
|
|
2087
|
-
!
|
|
2261
|
+
!v.has("assignee") && /* @__PURE__ */ U("div", {
|
|
2088
2262
|
className: "space-y-1",
|
|
2089
2263
|
children: [/* @__PURE__ */ H("label", {
|
|
2090
2264
|
htmlFor: "pm-detail-assignee",
|
|
2091
2265
|
className: $,
|
|
2092
|
-
children:
|
|
2266
|
+
children: _.assigneeLabel
|
|
2093
2267
|
}), c && c.length > 0 ? /* @__PURE__ */ U("select", {
|
|
2094
2268
|
id: "pm-detail-assignee",
|
|
2095
2269
|
className: Q,
|
|
2096
|
-
value:
|
|
2097
|
-
onChange: (e) =>
|
|
2270
|
+
value: se,
|
|
2271
|
+
onChange: (e) => ce(e.target.value),
|
|
2098
2272
|
children: [/* @__PURE__ */ H("option", {
|
|
2099
2273
|
value: "",
|
|
2100
|
-
children:
|
|
2274
|
+
children: _.unassigned
|
|
2101
2275
|
}), c.map((e) => /* @__PURE__ */ H("option", {
|
|
2102
2276
|
value: e.id,
|
|
2103
2277
|
children: e.name
|
|
@@ -2105,192 +2279,267 @@ function Ct({ id: e, readonly: t, hiddenFields: n, hideHeader: r, onUpdated: i,
|
|
|
2105
2279
|
}) : /* @__PURE__ */ H("input", {
|
|
2106
2280
|
id: "pm-detail-assignee",
|
|
2107
2281
|
className: Q,
|
|
2108
|
-
value:
|
|
2109
|
-
onChange: (e) =>
|
|
2110
|
-
placeholder:
|
|
2282
|
+
value: se,
|
|
2283
|
+
onChange: (e) => ce(e.target.value),
|
|
2284
|
+
placeholder: _.assigneePlaceholder
|
|
2111
2285
|
})]
|
|
2112
2286
|
}),
|
|
2113
|
-
!
|
|
2287
|
+
!v.has("dueDate") && /* @__PURE__ */ U("div", {
|
|
2114
2288
|
className: "space-y-1",
|
|
2115
2289
|
children: [/* @__PURE__ */ H("label", {
|
|
2116
2290
|
htmlFor: "pm-detail-due",
|
|
2117
2291
|
className: $,
|
|
2118
|
-
children:
|
|
2292
|
+
children: _.dueDateLabel
|
|
2119
2293
|
}), /* @__PURE__ */ H("input", {
|
|
2120
2294
|
id: "pm-detail-due",
|
|
2121
2295
|
type: "date",
|
|
2122
2296
|
className: Q,
|
|
2123
|
-
value:
|
|
2124
|
-
onChange: (e) =>
|
|
2297
|
+
value: de,
|
|
2298
|
+
onChange: (e) => pe(e.target.value)
|
|
2125
2299
|
})]
|
|
2126
2300
|
}),
|
|
2127
|
-
!
|
|
2301
|
+
!v.has("storyPoints") && /* @__PURE__ */ U("div", {
|
|
2128
2302
|
className: "space-y-1",
|
|
2129
2303
|
children: [/* @__PURE__ */ H("label", {
|
|
2130
2304
|
htmlFor: "pm-detail-points",
|
|
2131
2305
|
className: $,
|
|
2132
|
-
children:
|
|
2306
|
+
children: _.storyPointsLabel
|
|
2133
2307
|
}), /* @__PURE__ */ H("input", {
|
|
2134
2308
|
id: "pm-detail-points",
|
|
2135
2309
|
type: "number",
|
|
2136
2310
|
min: 0,
|
|
2137
2311
|
className: Q,
|
|
2138
|
-
value:
|
|
2139
|
-
onChange: (e) =>
|
|
2312
|
+
value: _e,
|
|
2313
|
+
onChange: (e) => ve(e.target.value)
|
|
2140
2314
|
})]
|
|
2141
2315
|
})
|
|
2142
2316
|
]
|
|
2143
2317
|
}),
|
|
2144
|
-
!
|
|
2318
|
+
!v.has("labels") && /* @__PURE__ */ U("div", {
|
|
2145
2319
|
className: "space-y-1",
|
|
2146
2320
|
children: [/* @__PURE__ */ H("label", {
|
|
2147
2321
|
htmlFor: "pm-detail-labels",
|
|
2148
2322
|
className: $,
|
|
2149
|
-
children:
|
|
2323
|
+
children: _.labelsLabel
|
|
2150
2324
|
}), /* @__PURE__ */ H("input", {
|
|
2151
2325
|
id: "pm-detail-labels",
|
|
2152
2326
|
className: Q,
|
|
2153
|
-
value:
|
|
2154
|
-
onChange: (e) =>
|
|
2155
|
-
placeholder:
|
|
2327
|
+
value: me,
|
|
2328
|
+
onChange: (e) => he(e.target.value),
|
|
2329
|
+
placeholder: _.labelsPlaceholder
|
|
2156
2330
|
})]
|
|
2157
2331
|
}),
|
|
2158
|
-
|
|
2332
|
+
xe && /* @__PURE__ */ U("p", {
|
|
2159
2333
|
className: "text-sm text-destructive",
|
|
2160
2334
|
children: [
|
|
2161
|
-
|
|
2335
|
+
_.failedToSave,
|
|
2162
2336
|
": ",
|
|
2163
|
-
|
|
2337
|
+
xe.message
|
|
2164
2338
|
]
|
|
2165
2339
|
}),
|
|
2166
2340
|
/* @__PURE__ */ U("div", {
|
|
2167
2341
|
className: "flex items-center justify-end gap-2",
|
|
2168
2342
|
children: [/* @__PURE__ */ H("button", {
|
|
2169
2343
|
type: "button",
|
|
2170
|
-
onClick: () =>
|
|
2344
|
+
onClick: () => N(!1),
|
|
2171
2345
|
className: "rounded-md bg-muted px-4 py-2 text-sm font-medium text-muted-foreground hover:bg-muted/70",
|
|
2172
|
-
children:
|
|
2346
|
+
children: _.cancel
|
|
2173
2347
|
}), /* @__PURE__ */ H("button", {
|
|
2174
2348
|
type: "submit",
|
|
2175
|
-
disabled:
|
|
2176
|
-
className: J("rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground", (
|
|
2177
|
-
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
|
|
2178
2352
|
})]
|
|
2179
2353
|
})
|
|
2180
2354
|
]
|
|
2181
|
-
}) : /* @__PURE__ */ U("
|
|
2182
|
-
className: "
|
|
2183
|
-
children: [
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
children:
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
children:
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
children:
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
children:
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
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", {
|
|
2401
|
+
className: "text-foreground",
|
|
2402
|
+
children: Te(T.dueDate) ?? "—"
|
|
2403
|
+
})
|
|
2404
|
+
}),
|
|
2405
|
+
!v.has("storyPoints") && /* @__PURE__ */ H(jt, {
|
|
2406
|
+
label: _.storyPointsLabel,
|
|
2407
|
+
children: /* @__PURE__ */ H("span", {
|
|
2214
2408
|
className: "text-foreground",
|
|
2215
|
-
children:
|
|
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", {
|
|
2415
|
+
className: $,
|
|
2416
|
+
children: _.description
|
|
2417
|
+
}), /* @__PURE__ */ H("dd", {
|
|
2418
|
+
className: "mt-1 whitespace-pre-wrap text-sm text-foreground",
|
|
2419
|
+
children: T.description || "—"
|
|
2216
2420
|
})]
|
|
2217
|
-
})
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
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
|
|
2488
|
+
}),
|
|
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
|
+
] })]
|
|
2234
2526
|
})
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
children: v.description || "—"
|
|
2244
|
-
})]
|
|
2245
|
-
}),
|
|
2246
|
-
!m.has("labels") && /* @__PURE__ */ U("div", {
|
|
2247
|
-
className: "sm:col-span-2",
|
|
2248
|
-
children: [/* @__PURE__ */ H("dt", {
|
|
2249
|
-
className: $,
|
|
2250
|
-
children: p.labelsLabel
|
|
2251
|
-
}), /* @__PURE__ */ H("dd", {
|
|
2252
|
-
className: "mt-1 flex flex-wrap gap-1",
|
|
2253
|
-
children: (v.labels ?? []).length === 0 ? /* @__PURE__ */ H("span", {
|
|
2254
|
-
className: "text-sm text-muted-foreground",
|
|
2255
|
-
children: "—"
|
|
2256
|
-
}) : v.labels.map((e) => /* @__PURE__ */ H("span", {
|
|
2257
|
-
className: "rounded bg-muted px-1.5 py-0.5 text-xs text-muted-foreground",
|
|
2258
|
-
children: e
|
|
2259
|
-
}, e))
|
|
2260
|
-
})]
|
|
2261
|
-
}),
|
|
2262
|
-
C.length > 0 && /* @__PURE__ */ U("div", {
|
|
2263
|
-
className: "sm:col-span-2",
|
|
2264
|
-
children: [/* @__PURE__ */ H("dt", {
|
|
2265
|
-
className: $,
|
|
2266
|
-
children: p.linkedRecordsLabel
|
|
2267
|
-
}), /* @__PURE__ */ H("dd", {
|
|
2268
|
-
className: "mt-1 flex flex-wrap gap-1.5",
|
|
2269
|
-
children: C.map((e) => /* @__PURE__ */ H(Fe, {
|
|
2270
|
-
link: e,
|
|
2271
|
-
renderIcon: u
|
|
2272
|
-
}, e.id))
|
|
2273
|
-
})]
|
|
2274
|
-
}),
|
|
2275
|
-
(v.createdAt || v.updatedAt) && /* @__PURE__ */ U("div", {
|
|
2276
|
-
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",
|
|
2277
|
-
children: [v.createdAt && /* @__PURE__ */ U("span", { children: [
|
|
2278
|
-
p.createdLabel,
|
|
2279
|
-
" ",
|
|
2280
|
-
xe(v.createdAt)
|
|
2281
|
-
] }), v.updatedAt && /* @__PURE__ */ U("span", { children: [
|
|
2282
|
-
p.updatedLabel,
|
|
2283
|
-
" ",
|
|
2284
|
-
xe(v.updatedAt)
|
|
2285
|
-
] })]
|
|
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
|
|
2286
2535
|
})
|
|
2287
|
-
]
|
|
2536
|
+
})]
|
|
2288
2537
|
})
|
|
2289
2538
|
]
|
|
2290
2539
|
})
|
|
2291
2540
|
});
|
|
2292
2541
|
}
|
|
2293
|
-
function
|
|
2542
|
+
function jt({ label: e, children: t }) {
|
|
2294
2543
|
return /* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H("dt", {
|
|
2295
2544
|
className: $,
|
|
2296
2545
|
children: e
|
|
@@ -2299,50 +2548,65 @@ function wt({ label: e, children: t }) {
|
|
|
2299
2548
|
children: t
|
|
2300
2549
|
})] });
|
|
2301
2550
|
}
|
|
2302
|
-
function
|
|
2303
|
-
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);
|
|
2304
2553
|
y(() => {
|
|
2305
|
-
|
|
2306
|
-
}, [
|
|
2307
|
-
let
|
|
2308
|
-
|
|
2309
|
-
}, [
|
|
2310
|
-
|
|
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?.({
|
|
2311
2560
|
workItem: e,
|
|
2312
2561
|
operation: "created"
|
|
2313
2562
|
});
|
|
2314
|
-
}, [
|
|
2315
|
-
W(),
|
|
2563
|
+
}, [K, b]), ne = _((e) => {
|
|
2564
|
+
W(null), G({
|
|
2565
|
+
parentId: e.id,
|
|
2566
|
+
projectId: e.projectId,
|
|
2567
|
+
type: "SUB_TASK"
|
|
2568
|
+
}), B(!0);
|
|
2569
|
+
}, []), re = _(() => {
|
|
2570
|
+
G(null), B(!0);
|
|
2571
|
+
}, []), ie = _(() => {
|
|
2572
|
+
B(!1), G(null);
|
|
2573
|
+
}, []), oe = _((e) => {
|
|
2574
|
+
K(), b?.({
|
|
2316
2575
|
workItem: e,
|
|
2317
2576
|
operation: "updated"
|
|
2318
2577
|
});
|
|
2319
|
-
}, [
|
|
2320
|
-
|
|
2321
|
-
}, []),
|
|
2322
|
-
|
|
2323
|
-
}, []),
|
|
2324
|
-
if (!
|
|
2325
|
-
className: J("p-6 text-sm text-destructive",
|
|
2578
|
+
}, [K, b]), se = _(() => {
|
|
2579
|
+
W(null);
|
|
2580
|
+
}, []), ce = _((e) => {
|
|
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),
|
|
2326
2585
|
children: "TasksPage: no workspaceId provided (prop or PlanMagnetProvider)."
|
|
2327
2586
|
});
|
|
2328
|
-
let
|
|
2329
|
-
workspaceId:
|
|
2587
|
+
let de = !i && !!t, fe = z && S === "inline", pe = V != null && C === "inline", me = /* @__PURE__ */ H(ct, {
|
|
2588
|
+
workspaceId: E,
|
|
2330
2589
|
projectId: t,
|
|
2331
2590
|
assigneeOptions: f,
|
|
2332
2591
|
hiddenFields: a,
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2592
|
+
defaultValues: ee ?? void 0,
|
|
2593
|
+
onCreated: q,
|
|
2594
|
+
onCancel: ie
|
|
2595
|
+
}), he = V == null ? null : /* @__PURE__ */ H(At, {
|
|
2596
|
+
id: V,
|
|
2337
2597
|
readonly: i,
|
|
2338
2598
|
hiddenFields: a,
|
|
2339
2599
|
resolveAssignee: l,
|
|
2340
2600
|
assigneeOptions: f,
|
|
2341
2601
|
linkSourceProduct: u,
|
|
2342
2602
|
renderLinkIcon: d,
|
|
2343
|
-
onUpdated:
|
|
2344
|
-
onDeleted:
|
|
2345
|
-
|
|
2603
|
+
onUpdated: oe,
|
|
2604
|
+
onDeleted: se,
|
|
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 ? [
|
|
2346
2610
|
"title",
|
|
2347
2611
|
"status",
|
|
2348
2612
|
"priority",
|
|
@@ -2350,96 +2614,96 @@ function Tt({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
|
|
|
2350
2614
|
"dueDate",
|
|
2351
2615
|
"linkedRecord"
|
|
2352
2616
|
] : void 0;
|
|
2353
|
-
return /* @__PURE__ */ H(
|
|
2354
|
-
value:
|
|
2617
|
+
return /* @__PURE__ */ H(He, {
|
|
2618
|
+
value: O,
|
|
2355
2619
|
children: /* @__PURE__ */ U("div", {
|
|
2356
|
-
className: J("space-y-4 p-6",
|
|
2620
|
+
className: J("space-y-4 p-6", w),
|
|
2357
2621
|
children: [
|
|
2358
|
-
|
|
2622
|
+
v && /* @__PURE__ */ H("div", {
|
|
2359
2623
|
className: "min-w-0",
|
|
2360
|
-
children: typeof
|
|
2624
|
+
children: typeof v == "string" ? /* @__PURE__ */ H("h1", {
|
|
2361
2625
|
className: "truncate text-2xl font-semibold text-foreground",
|
|
2362
|
-
children:
|
|
2363
|
-
}) :
|
|
2626
|
+
children: v
|
|
2627
|
+
}) : v
|
|
2364
2628
|
}),
|
|
2365
|
-
/* @__PURE__ */ H(
|
|
2366
|
-
view:
|
|
2367
|
-
onViewChange:
|
|
2629
|
+
/* @__PURE__ */ H(Tt, {
|
|
2630
|
+
view: k,
|
|
2631
|
+
onViewChange: A,
|
|
2368
2632
|
views: o,
|
|
2369
|
-
search:
|
|
2370
|
-
onSearchChange:
|
|
2371
|
-
priority:
|
|
2372
|
-
onPriorityChange:
|
|
2373
|
-
type:
|
|
2374
|
-
onTypeChange:
|
|
2375
|
-
onNewTask:
|
|
2376
|
-
canCreate:
|
|
2377
|
-
mine:
|
|
2378
|
-
onMineChange: p ?
|
|
2633
|
+
search: j,
|
|
2634
|
+
onSearchChange: M,
|
|
2635
|
+
priority: N,
|
|
2636
|
+
onPriorityChange: P,
|
|
2637
|
+
type: F,
|
|
2638
|
+
onTypeChange: I,
|
|
2639
|
+
onNewTask: re,
|
|
2640
|
+
canCreate: de,
|
|
2641
|
+
mine: L,
|
|
2642
|
+
onMineChange: p ? R : void 0
|
|
2379
2643
|
}),
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
workspaceId:
|
|
2644
|
+
fe && /* @__PURE__ */ H("div", { children: me }),
|
|
2645
|
+
k === "board" && /* @__PURE__ */ H(it, {
|
|
2646
|
+
workspaceId: E,
|
|
2383
2647
|
projectId: n,
|
|
2384
2648
|
columns: r,
|
|
2385
2649
|
readonly: i,
|
|
2386
2650
|
confirmMove: c,
|
|
2387
2651
|
hideHeader: !0,
|
|
2388
|
-
priority:
|
|
2389
|
-
type:
|
|
2390
|
-
search:
|
|
2391
|
-
assigneeId:
|
|
2652
|
+
priority: N,
|
|
2653
|
+
type: F,
|
|
2654
|
+
search: j,
|
|
2655
|
+
assigneeId: ve,
|
|
2392
2656
|
hiddenFields: a,
|
|
2393
2657
|
resolveAssignee: l,
|
|
2394
2658
|
linkSourceProduct: u,
|
|
2395
2659
|
renderLinkIcon: d,
|
|
2396
|
-
onTaskClick:
|
|
2660
|
+
onTaskClick: ce
|
|
2397
2661
|
}),
|
|
2398
|
-
|
|
2399
|
-
workspaceId:
|
|
2662
|
+
k === "list" && /* @__PURE__ */ H(mt, {
|
|
2663
|
+
workspaceId: E,
|
|
2400
2664
|
projectId: n,
|
|
2401
|
-
priority:
|
|
2402
|
-
type:
|
|
2403
|
-
search:
|
|
2404
|
-
assigneeId:
|
|
2665
|
+
priority: ge,
|
|
2666
|
+
type: _e,
|
|
2667
|
+
search: j || void 0,
|
|
2668
|
+
assigneeId: ve,
|
|
2405
2669
|
hideHeader: !0,
|
|
2406
2670
|
resolveAssignee: l,
|
|
2407
2671
|
linkSourceProduct: u,
|
|
2408
2672
|
renderLinkIcon: d,
|
|
2409
|
-
columns:
|
|
2410
|
-
onSelect:
|
|
2673
|
+
columns: ye ? [...ye] : void 0,
|
|
2674
|
+
onSelect: ue
|
|
2411
2675
|
}),
|
|
2412
|
-
|
|
2413
|
-
workspaceId:
|
|
2676
|
+
k === "timeline" && /* @__PURE__ */ H(bt, {
|
|
2677
|
+
workspaceId: E,
|
|
2414
2678
|
projectId: n,
|
|
2415
|
-
priority:
|
|
2416
|
-
type:
|
|
2417
|
-
search:
|
|
2418
|
-
assigneeId:
|
|
2679
|
+
priority: N,
|
|
2680
|
+
type: F,
|
|
2681
|
+
search: j,
|
|
2682
|
+
assigneeId: ve,
|
|
2419
2683
|
resolveAssignee: l,
|
|
2420
|
-
onSelect:
|
|
2684
|
+
onSelect: ue
|
|
2421
2685
|
}),
|
|
2422
|
-
|
|
2686
|
+
pe && /* @__PURE__ */ H("div", {
|
|
2423
2687
|
className: "pb-6",
|
|
2424
|
-
children:
|
|
2688
|
+
children: he
|
|
2425
2689
|
}),
|
|
2426
|
-
|
|
2427
|
-
open:
|
|
2428
|
-
onClose:
|
|
2690
|
+
S === "modal" && /* @__PURE__ */ H($e, {
|
|
2691
|
+
open: z,
|
|
2692
|
+
onClose: ie,
|
|
2429
2693
|
ariaLabel: "Create task",
|
|
2430
2694
|
className: "max-w-xl",
|
|
2431
2695
|
children: /* @__PURE__ */ H("div", {
|
|
2432
2696
|
className: "p-2 pt-8",
|
|
2433
|
-
children:
|
|
2697
|
+
children: me
|
|
2434
2698
|
})
|
|
2435
2699
|
}),
|
|
2436
|
-
|
|
2437
|
-
open:
|
|
2438
|
-
onClose: () =>
|
|
2700
|
+
C === "drawer" && /* @__PURE__ */ H(et, {
|
|
2701
|
+
open: V != null,
|
|
2702
|
+
onClose: () => W(null),
|
|
2439
2703
|
ariaLabel: "Task detail",
|
|
2440
2704
|
children: /* @__PURE__ */ H("div", {
|
|
2441
2705
|
className: "p-2 pt-8",
|
|
2442
|
-
children:
|
|
2706
|
+
children: he
|
|
2443
2707
|
})
|
|
2444
2708
|
})
|
|
2445
2709
|
]
|
|
@@ -2447,6 +2711,6 @@ function Tt({ workspaceId: e, projectId: t, boardProjectId: n, columns: r, reado
|
|
|
2447
2711
|
});
|
|
2448
2712
|
}
|
|
2449
2713
|
//#endregion
|
|
2450
|
-
export {
|
|
2714
|
+
export { ct as CreateTaskCore, Mt as TasksPageCore };
|
|
2451
2715
|
|
|
2452
2716
|
//# sourceMappingURL=index.js.map
|