@burdenoff/microfe-planmagnet 2026.930.1 → 2026.930.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/planmagnet/milestones/MilestoneControls.d.ts +41 -0
- package/dist/planmagnet/milestones/MilestoneControls.d.ts.map +1 -0
- package/dist/planmagnet/milestones/MilestoneControls.js +420 -0
- package/dist/planmagnet/milestones/MilestoneControls.js.map +1 -0
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +59 -59
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js +114 -95
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js +57 -48
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.js +151 -134
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TasksEditTaskPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TasksEditTaskPagePage.js +149 -126
- package/dist/planmagnet/pages/TasksEditTaskPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.js +150 -137
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.js.map +1 -1
- package/dist/planmagnet/sprints/SprintControls.d.ts.map +1 -1
- package/dist/planmagnet/sprints/SprintControls.js +239 -243
- package/dist/planmagnet/sprints/SprintControls.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,19 +4,20 @@ import { throwOnError as r } from "../utils/mutationResult.js";
|
|
|
4
4
|
import { DocSearchSelect as i } from "../controls/Pickers.js";
|
|
5
5
|
import { WORK_ITEM_PRIORITIES as a, WorkItemAssigneeSelect as o, WorkItemEnumSelect as s, WorkItemHeaderActions as c, WorkItemStatusSelect as l } from "../controls/WorkItemControls.js";
|
|
6
6
|
import { MarkdownEditor as u } from "../../components/MarkdownEditor.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
7
|
+
import { WorkItemMilestoneSelect as d } from "../milestones/MilestoneControls.js";
|
|
8
|
+
import { WorkItemComments as f } from "../comments/WorkItemComments.js";
|
|
9
|
+
import { WorkItemActivity as p } from "../comments/WorkItemActivity.js";
|
|
10
|
+
import { TaskTimePanel as m } from "../time/TaskTimePanel.js";
|
|
11
|
+
import { CustomFieldsPanel as h } from "../controls/CustomFieldValuesPanel.js";
|
|
12
|
+
import { DependencyPanel as g } from "../dependency/DependencyPanel.js";
|
|
13
|
+
import { useState as _ } from "react";
|
|
14
|
+
import { FileText as v, Link2 as y, Plus as b, X as x } from "lucide-react";
|
|
15
|
+
import { gql as S } from "@apollo/client";
|
|
16
|
+
import { useMutation as C, useQuery as w } from "@apollo/client/react";
|
|
17
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
18
|
+
import { Badge as D, Button as O, Card as k, CardContent as A, CardHeader as j, CardTitle as M, Input as N } from "@burdenoff/fe-libs/ui";
|
|
18
19
|
//#region src/planmagnet/pages/TasksTaskDetailPagePage.tsx
|
|
19
|
-
var
|
|
20
|
+
var P = S`
|
|
20
21
|
query GetWorkItemDetail($workItemId: ID!) {
|
|
21
22
|
planmagnetWorkItem(id: $workItemId) {
|
|
22
23
|
id
|
|
@@ -31,6 +32,7 @@ var N = x`
|
|
|
31
32
|
reporterId
|
|
32
33
|
createdBy
|
|
33
34
|
sprintId
|
|
35
|
+
milestoneId
|
|
34
36
|
storyPoints
|
|
35
37
|
estimateMinutes
|
|
36
38
|
dueDate
|
|
@@ -45,7 +47,7 @@ var N = x`
|
|
|
45
47
|
}
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
`,
|
|
50
|
+
`, F = S`
|
|
49
51
|
query GetWorkItemDocs($workItemId: ID!) {
|
|
50
52
|
planmagnetWorkItemDocs(workItemId: $workItemId) {
|
|
51
53
|
id
|
|
@@ -55,32 +57,32 @@ var N = x`
|
|
|
55
57
|
updatedAt
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
|
-
`,
|
|
60
|
+
`, I = S`
|
|
59
61
|
mutation CreateDocForWorkItem($input: PlanmagnetCreateDocInput!) {
|
|
60
62
|
planmagnetCreateDoc(input: $input) {
|
|
61
63
|
id
|
|
62
64
|
}
|
|
63
65
|
}
|
|
64
|
-
`,
|
|
66
|
+
`, L = S`
|
|
65
67
|
mutation LinkDocToWorkItem($docId: ID!, $workItemId: ID!) {
|
|
66
68
|
planmagnetLinkDocToWorkItem(docId: $docId, workItemId: $workItemId) {
|
|
67
69
|
id
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
|
-
`,
|
|
72
|
+
`, R = S`
|
|
71
73
|
mutation UnlinkDocFromWorkItem($docId: ID!, $workItemId: ID!) {
|
|
72
74
|
planmagnetUnlinkDocFromWorkItem(docId: $docId, workItemId: $workItemId)
|
|
73
75
|
}
|
|
74
|
-
`,
|
|
76
|
+
`, z = {
|
|
75
77
|
DRAFT: "bg-gray-100 text-gray-800",
|
|
76
78
|
PUBLISHED: "bg-green-100 text-green-800",
|
|
77
79
|
ARCHIVED: "bg-gray-100 text-gray-500"
|
|
78
80
|
};
|
|
79
|
-
function
|
|
80
|
-
let n = t(), [a, o] =
|
|
81
|
+
function B({ workItemId: e }) {
|
|
82
|
+
let n = t(), [a, o] = _(!1), [s, c] = _(!1), [l, d] = _(""), [f, p] = _(""), [m, h] = _(""), { data: g, loading: S, error: D, refetch: P } = w(F, {
|
|
81
83
|
variables: { workItemId: e },
|
|
82
84
|
skip: !e
|
|
83
|
-
}), [B, { loading: V }] =
|
|
85
|
+
}), [B, { loading: V }] = C(I), [H, { loading: U }] = C(L), [W, { loading: G }] = C(R), [K, q] = _(null), J = g?.planmagnetWorkItemDocs ?? [], Y = async () => {
|
|
84
86
|
if (!(!f.trim() || !m.trim())) {
|
|
85
87
|
q(null);
|
|
86
88
|
try {
|
|
@@ -96,7 +98,7 @@ function z({ workItemId: e }) {
|
|
|
96
98
|
q(e instanceof Error ? e.message : "The doc could not be saved.");
|
|
97
99
|
return;
|
|
98
100
|
}
|
|
99
|
-
p(""), h(""), o(!1),
|
|
101
|
+
p(""), h(""), o(!1), P();
|
|
100
102
|
}
|
|
101
103
|
}, X = async () => {
|
|
102
104
|
if (l) {
|
|
@@ -110,7 +112,7 @@ function z({ workItemId: e }) {
|
|
|
110
112
|
q(e instanceof Error ? e.message : "The doc could not be linked.");
|
|
111
113
|
return;
|
|
112
114
|
}
|
|
113
|
-
d(""), c(!1),
|
|
115
|
+
d(""), c(!1), P();
|
|
114
116
|
}
|
|
115
117
|
}, Z = async (t) => {
|
|
116
118
|
q(null);
|
|
@@ -123,44 +125,44 @@ function z({ workItemId: e }) {
|
|
|
123
125
|
q(e instanceof Error ? e.message : "The doc could not be unlinked.");
|
|
124
126
|
return;
|
|
125
127
|
}
|
|
126
|
-
|
|
128
|
+
P();
|
|
127
129
|
};
|
|
128
|
-
return /* @__PURE__ */
|
|
130
|
+
return /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ E(j, {
|
|
129
131
|
className: "flex flex-row items-center justify-between space-y-0",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
132
|
+
children: [/* @__PURE__ */ T(M, { children: "Linked Docs" }), !a && !s && /* @__PURE__ */ E("div", {
|
|
131
133
|
className: "flex gap-2",
|
|
132
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ E(O, {
|
|
133
135
|
size: "sm",
|
|
134
136
|
variant: "outline",
|
|
135
137
|
onClick: () => c(!0),
|
|
136
|
-
children: [/* @__PURE__ */
|
|
137
|
-
}), /* @__PURE__ */
|
|
138
|
+
children: [/* @__PURE__ */ T(y, { className: "h-4 w-4 mr-1" }), "Link existing doc"]
|
|
139
|
+
}), /* @__PURE__ */ E(O, {
|
|
138
140
|
size: "sm",
|
|
139
141
|
variant: "outline",
|
|
140
142
|
onClick: () => o(!0),
|
|
141
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ T(b, { className: "h-4 w-4 mr-1" }), "New Doc"]
|
|
142
144
|
})]
|
|
143
145
|
})]
|
|
144
|
-
}), /* @__PURE__ */
|
|
146
|
+
}), /* @__PURE__ */ E(A, {
|
|
145
147
|
className: "space-y-4",
|
|
146
148
|
children: [
|
|
147
|
-
s && /* @__PURE__ */
|
|
149
|
+
s && /* @__PURE__ */ E("div", {
|
|
148
150
|
className: "space-y-2 rounded-md border border-input p-3",
|
|
149
|
-
children: [/* @__PURE__ */
|
|
151
|
+
children: [/* @__PURE__ */ T(i, {
|
|
150
152
|
id: "task-link-doc",
|
|
151
153
|
value: l,
|
|
152
154
|
onChange: d,
|
|
153
155
|
exclude: J.map((e) => e.id)
|
|
154
|
-
}), /* @__PURE__ */
|
|
156
|
+
}), /* @__PURE__ */ E("div", {
|
|
155
157
|
className: "flex gap-2 justify-end",
|
|
156
|
-
children: [/* @__PURE__ */
|
|
158
|
+
children: [/* @__PURE__ */ T(O, {
|
|
157
159
|
size: "sm",
|
|
158
160
|
variant: "ghost",
|
|
159
161
|
onClick: () => {
|
|
160
162
|
c(!1), d("");
|
|
161
163
|
},
|
|
162
164
|
children: "Cancel"
|
|
163
|
-
}), /* @__PURE__ */
|
|
165
|
+
}), /* @__PURE__ */ T(O, {
|
|
164
166
|
size: "sm",
|
|
165
167
|
disabled: !l || U,
|
|
166
168
|
onClick: X,
|
|
@@ -168,30 +170,30 @@ function z({ workItemId: e }) {
|
|
|
168
170
|
})]
|
|
169
171
|
})]
|
|
170
172
|
}),
|
|
171
|
-
a && /* @__PURE__ */
|
|
173
|
+
a && /* @__PURE__ */ E("div", {
|
|
172
174
|
className: "space-y-3 rounded-md border border-input p-3",
|
|
173
175
|
children: [
|
|
174
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ T(N, {
|
|
175
177
|
placeholder: "Doc title",
|
|
176
178
|
value: f,
|
|
177
179
|
onChange: (e) => p(e.target.value)
|
|
178
180
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ T(u, {
|
|
180
182
|
value: m,
|
|
181
183
|
onChange: h,
|
|
182
184
|
placeholder: "Write the spec/doc content...",
|
|
183
185
|
minHeight: 140
|
|
184
186
|
}),
|
|
185
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ E("div", {
|
|
186
188
|
className: "flex gap-2 justify-end",
|
|
187
|
-
children: [/* @__PURE__ */
|
|
189
|
+
children: [/* @__PURE__ */ T(O, {
|
|
188
190
|
size: "sm",
|
|
189
191
|
variant: "ghost",
|
|
190
192
|
onClick: () => {
|
|
191
193
|
o(!1), p(""), h("");
|
|
192
194
|
},
|
|
193
195
|
children: "Cancel"
|
|
194
|
-
}), /* @__PURE__ */
|
|
196
|
+
}), /* @__PURE__ */ T(O, {
|
|
195
197
|
size: "sm",
|
|
196
198
|
disabled: V || !f.trim() || !m.trim(),
|
|
197
199
|
onClick: Y,
|
|
@@ -200,219 +202,230 @@ function z({ workItemId: e }) {
|
|
|
200
202
|
})
|
|
201
203
|
]
|
|
202
204
|
}),
|
|
203
|
-
|
|
205
|
+
S && /* @__PURE__ */ T("p", {
|
|
204
206
|
className: "text-sm text-muted-foreground",
|
|
205
207
|
children: "Loading docs..."
|
|
206
208
|
}),
|
|
207
|
-
|
|
209
|
+
D && /* @__PURE__ */ E("p", {
|
|
208
210
|
className: "text-sm text-red-500",
|
|
209
|
-
children: ["Error: ",
|
|
211
|
+
children: ["Error: ", D.message]
|
|
210
212
|
}),
|
|
211
|
-
K && /* @__PURE__ */
|
|
213
|
+
K && /* @__PURE__ */ T("p", {
|
|
212
214
|
role: "alert",
|
|
213
215
|
className: "text-sm text-destructive",
|
|
214
216
|
children: K
|
|
215
217
|
}),
|
|
216
|
-
!
|
|
218
|
+
!S && !D && J.length === 0 && !a && !s && /* @__PURE__ */ T("p", {
|
|
217
219
|
className: "text-sm text-muted-foreground",
|
|
218
220
|
children: "No docs linked to this work item yet."
|
|
219
221
|
}),
|
|
220
|
-
J.map((e) => /* @__PURE__ */
|
|
222
|
+
J.map((e) => /* @__PURE__ */ E("div", {
|
|
221
223
|
className: "flex items-center justify-between gap-3 rounded-md border border-input p-3",
|
|
222
|
-
children: [/* @__PURE__ */
|
|
224
|
+
children: [/* @__PURE__ */ E("div", {
|
|
223
225
|
className: "flex items-center gap-2 min-w-0",
|
|
224
|
-
children: [/* @__PURE__ */
|
|
226
|
+
children: [/* @__PURE__ */ T(v, { className: "h-4 w-4 text-muted-foreground shrink-0" }), /* @__PURE__ */ E("div", {
|
|
225
227
|
className: "min-w-0",
|
|
226
|
-
children: [/* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ T("button", {
|
|
227
229
|
type: "button",
|
|
228
230
|
className: "block max-w-full truncate text-left text-sm font-medium hover:underline",
|
|
229
231
|
onClick: () => n(`/docs/doc-detail-page?docId=${encodeURIComponent(e.id)}`),
|
|
230
232
|
children: e.title
|
|
231
|
-
}), /* @__PURE__ */
|
|
233
|
+
}), /* @__PURE__ */ E("p", {
|
|
232
234
|
className: "text-xs text-muted-foreground",
|
|
233
235
|
children: ["v", e.version]
|
|
234
236
|
})]
|
|
235
237
|
})]
|
|
236
|
-
}), /* @__PURE__ */
|
|
238
|
+
}), /* @__PURE__ */ E("div", {
|
|
237
239
|
className: "flex items-center gap-2 shrink-0",
|
|
238
|
-
children: [/* @__PURE__ */
|
|
239
|
-
className: `text-xs px-2 py-0.5 rounded-full capitalize ${
|
|
240
|
+
children: [/* @__PURE__ */ T("span", {
|
|
241
|
+
className: `text-xs px-2 py-0.5 rounded-full capitalize ${z[e.status] ?? ""}`,
|
|
240
242
|
children: e.status.toLowerCase()
|
|
241
|
-
}), /* @__PURE__ */
|
|
243
|
+
}), /* @__PURE__ */ T(O, {
|
|
242
244
|
size: "icon",
|
|
243
245
|
variant: "ghost",
|
|
244
246
|
disabled: G,
|
|
245
247
|
onClick: () => Z(e.id),
|
|
246
248
|
"aria-label": `Unlink ${e.title}`,
|
|
247
|
-
children: /* @__PURE__ */
|
|
249
|
+
children: /* @__PURE__ */ T(x, { className: "h-4 w-4" })
|
|
248
250
|
})]
|
|
249
251
|
})]
|
|
250
252
|
}, e.id))
|
|
251
253
|
]
|
|
252
254
|
})] });
|
|
253
255
|
}
|
|
254
|
-
function
|
|
255
|
-
let { workspaceId: t } = e(), r = new URLSearchParams(window.location.search).get("taskId") ?? "", { data: i, loading: u, error:
|
|
256
|
+
function V() {
|
|
257
|
+
let { workspaceId: t } = e(), r = new URLSearchParams(window.location.search).get("taskId") ?? "", { data: i, loading: u, error: _ } = w(P, {
|
|
256
258
|
variables: { workItemId: r },
|
|
257
259
|
skip: !t || !r
|
|
258
260
|
});
|
|
259
|
-
if (u && !i) return /* @__PURE__ */
|
|
261
|
+
if (u && !i) return /* @__PURE__ */ T("div", {
|
|
260
262
|
className: "flex items-center justify-center p-12",
|
|
261
|
-
children: /* @__PURE__ */
|
|
263
|
+
children: /* @__PURE__ */ T("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
262
264
|
});
|
|
263
|
-
if (
|
|
265
|
+
if (_) return /* @__PURE__ */ E("div", {
|
|
264
266
|
className: "p-6 text-red-500",
|
|
265
|
-
children: ["Error: ",
|
|
267
|
+
children: ["Error: ", _.message]
|
|
266
268
|
});
|
|
267
|
-
let
|
|
268
|
-
return
|
|
269
|
+
let v = i?.planmagnetWorkItem;
|
|
270
|
+
return v ? /* @__PURE__ */ E("div", {
|
|
269
271
|
className: "space-y-6 p-6",
|
|
270
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ E("div", {
|
|
271
273
|
className: "flex items-start justify-between gap-4",
|
|
272
|
-
children: [/* @__PURE__ */
|
|
274
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h1", {
|
|
273
275
|
className: "text-2xl font-semibold",
|
|
274
|
-
children:
|
|
275
|
-
}), /* @__PURE__ */
|
|
276
|
+
children: v.title
|
|
277
|
+
}), /* @__PURE__ */ E("p", {
|
|
276
278
|
className: "text-sm text-muted-foreground",
|
|
277
279
|
children: [
|
|
278
|
-
|
|
280
|
+
v.key,
|
|
279
281
|
" · ",
|
|
280
|
-
|
|
282
|
+
v.type.toLowerCase()
|
|
281
283
|
]
|
|
282
|
-
})] }), /* @__PURE__ */
|
|
283
|
-
workItemId:
|
|
284
|
-
title:
|
|
284
|
+
})] }), /* @__PURE__ */ T(c, {
|
|
285
|
+
workItemId: v.id,
|
|
286
|
+
title: v.title
|
|
285
287
|
})]
|
|
286
|
-
}), /* @__PURE__ */
|
|
288
|
+
}), /* @__PURE__ */ E("div", {
|
|
287
289
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
290
|
+
children: [/* @__PURE__ */ E("div", {
|
|
289
291
|
className: "lg:col-span-2 space-y-6",
|
|
290
292
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ T(M, { children: "Description" }) }), /* @__PURE__ */ T(A, { children: /* @__PURE__ */ T("p", {
|
|
292
294
|
className: "text-sm",
|
|
293
|
-
children:
|
|
295
|
+
children: v.description ?? "No description provided."
|
|
294
296
|
}) })] }),
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
workItemId:
|
|
297
|
-
projectId:
|
|
298
|
-
values:
|
|
297
|
+
/* @__PURE__ */ T(h, {
|
|
298
|
+
workItemId: v.id,
|
|
299
|
+
projectId: v.projectId,
|
|
300
|
+
values: v.customFieldValues ?? []
|
|
299
301
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
-
/* @__PURE__ */
|
|
302
|
+
/* @__PURE__ */ T(B, { workItemId: v.id }),
|
|
303
|
+
/* @__PURE__ */ T(m, {
|
|
302
304
|
workspaceId: t,
|
|
303
|
-
workItemId:
|
|
304
|
-
projectId:
|
|
305
|
-
taskLabel: `${
|
|
305
|
+
workItemId: v.id,
|
|
306
|
+
projectId: v.projectId,
|
|
307
|
+
taskLabel: `${v.key} — ${v.title}`
|
|
306
308
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
309
|
+
/* @__PURE__ */ T(g, {
|
|
308
310
|
workspaceId: t ?? "",
|
|
309
|
-
workItemId:
|
|
310
|
-
projectId:
|
|
311
|
+
workItemId: v.id,
|
|
312
|
+
projectId: v.projectId
|
|
311
313
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ T(f, { workItemId: v.id }),
|
|
315
|
+
/* @__PURE__ */ T(p, { workItemId: v.id })
|
|
314
316
|
]
|
|
315
|
-
}), /* @__PURE__ */
|
|
317
|
+
}), /* @__PURE__ */ T("div", {
|
|
316
318
|
className: "space-y-6",
|
|
317
|
-
children: /* @__PURE__ */
|
|
319
|
+
children: /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ T(M, { children: "Details" }) }), /* @__PURE__ */ E(A, {
|
|
318
320
|
className: "space-y-3 text-sm",
|
|
319
321
|
children: [
|
|
320
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ E("div", {
|
|
321
323
|
className: "flex items-start justify-between gap-2",
|
|
322
|
-
children: [/* @__PURE__ */
|
|
324
|
+
children: [/* @__PURE__ */ T("span", {
|
|
323
325
|
className: "text-muted-foreground",
|
|
324
326
|
children: "Status"
|
|
325
|
-
}), /* @__PURE__ */
|
|
326
|
-
workItemId:
|
|
327
|
-
projectId:
|
|
328
|
-
value:
|
|
327
|
+
}), /* @__PURE__ */ T(l, {
|
|
328
|
+
workItemId: v.id,
|
|
329
|
+
projectId: v.projectId,
|
|
330
|
+
value: v.status
|
|
329
331
|
})]
|
|
330
332
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ E("div", {
|
|
332
334
|
className: "flex items-start justify-between gap-2",
|
|
333
|
-
children: [/* @__PURE__ */
|
|
335
|
+
children: [/* @__PURE__ */ T("span", {
|
|
334
336
|
className: "text-muted-foreground",
|
|
335
337
|
children: "Priority"
|
|
336
|
-
}), /* @__PURE__ */
|
|
337
|
-
workItemId:
|
|
338
|
+
}), /* @__PURE__ */ T(s, {
|
|
339
|
+
workItemId: v.id,
|
|
338
340
|
field: "priority",
|
|
339
|
-
value:
|
|
341
|
+
value: v.priority,
|
|
340
342
|
options: a,
|
|
341
343
|
label: "Priority"
|
|
342
344
|
})]
|
|
343
345
|
}),
|
|
344
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ E("div", {
|
|
345
347
|
className: "flex justify-between",
|
|
346
|
-
children: [/* @__PURE__ */
|
|
348
|
+
children: [/* @__PURE__ */ T("span", {
|
|
347
349
|
className: "text-muted-foreground",
|
|
348
350
|
children: "Type"
|
|
349
|
-
}), /* @__PURE__ */
|
|
351
|
+
}), /* @__PURE__ */ T(D, {
|
|
350
352
|
variant: "outline",
|
|
351
353
|
className: "capitalize",
|
|
352
|
-
children:
|
|
354
|
+
children: v.type.toLowerCase()
|
|
353
355
|
})]
|
|
354
356
|
}),
|
|
355
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ E("div", {
|
|
358
|
+
className: "flex items-start justify-between gap-2",
|
|
359
|
+
children: [/* @__PURE__ */ T("span", {
|
|
360
|
+
className: "text-muted-foreground",
|
|
361
|
+
children: "Milestone"
|
|
362
|
+
}), /* @__PURE__ */ T(d, {
|
|
363
|
+
workItemId: v.id,
|
|
364
|
+
projectId: v.projectId,
|
|
365
|
+
milestoneId: v.milestoneId
|
|
366
|
+
})]
|
|
367
|
+
}),
|
|
368
|
+
/* @__PURE__ */ E("div", {
|
|
356
369
|
className: "flex justify-between",
|
|
357
|
-
children: [/* @__PURE__ */
|
|
370
|
+
children: [/* @__PURE__ */ T("span", {
|
|
358
371
|
className: "text-muted-foreground",
|
|
359
372
|
children: "Story Points"
|
|
360
|
-
}), /* @__PURE__ */
|
|
373
|
+
}), /* @__PURE__ */ T("span", {
|
|
361
374
|
className: "font-medium",
|
|
362
|
-
children:
|
|
375
|
+
children: v.storyPoints ?? 0
|
|
363
376
|
})]
|
|
364
377
|
}),
|
|
365
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ E("div", {
|
|
366
379
|
className: "flex items-start justify-between gap-2",
|
|
367
|
-
children: [/* @__PURE__ */
|
|
380
|
+
children: [/* @__PURE__ */ T("span", {
|
|
368
381
|
className: "text-muted-foreground",
|
|
369
382
|
children: "Assignee"
|
|
370
|
-
}), /* @__PURE__ */
|
|
371
|
-
workItemId:
|
|
372
|
-
assigneeId:
|
|
383
|
+
}), /* @__PURE__ */ T(o, {
|
|
384
|
+
workItemId: v.id,
|
|
385
|
+
assigneeId: v.assigneeId
|
|
373
386
|
})]
|
|
374
387
|
}),
|
|
375
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ E("div", {
|
|
376
389
|
className: "flex justify-between",
|
|
377
|
-
children: [/* @__PURE__ */
|
|
390
|
+
children: [/* @__PURE__ */ T("span", {
|
|
378
391
|
className: "text-muted-foreground",
|
|
379
392
|
children: "Reporter"
|
|
380
|
-
}), /* @__PURE__ */
|
|
393
|
+
}), /* @__PURE__ */ T(n, { id: v.reporterId ?? v.createdBy })]
|
|
381
394
|
}),
|
|
382
|
-
/* @__PURE__ */
|
|
395
|
+
/* @__PURE__ */ E("div", {
|
|
383
396
|
className: "flex justify-between",
|
|
384
|
-
children: [/* @__PURE__ */
|
|
397
|
+
children: [/* @__PURE__ */ T("span", {
|
|
385
398
|
className: "text-muted-foreground",
|
|
386
399
|
children: "Key"
|
|
387
|
-
}), /* @__PURE__ */
|
|
400
|
+
}), /* @__PURE__ */ T("span", { children: v.key })]
|
|
388
401
|
}),
|
|
389
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ E("div", {
|
|
390
403
|
className: "flex justify-between",
|
|
391
|
-
children: [/* @__PURE__ */
|
|
404
|
+
children: [/* @__PURE__ */ T("span", {
|
|
392
405
|
className: "text-muted-foreground",
|
|
393
406
|
children: "Due Date"
|
|
394
|
-
}), /* @__PURE__ */
|
|
407
|
+
}), /* @__PURE__ */ T("span", { children: v.dueDate ?? "Not set" })]
|
|
395
408
|
}),
|
|
396
|
-
/* @__PURE__ */
|
|
409
|
+
/* @__PURE__ */ E("div", {
|
|
397
410
|
className: "flex justify-between",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
411
|
+
children: [/* @__PURE__ */ T("span", {
|
|
399
412
|
className: "text-muted-foreground",
|
|
400
413
|
children: "Created"
|
|
401
|
-
}), /* @__PURE__ */
|
|
414
|
+
}), /* @__PURE__ */ T("span", { children: v.createdAt })]
|
|
402
415
|
}),
|
|
403
|
-
/* @__PURE__ */
|
|
416
|
+
/* @__PURE__ */ E("div", {
|
|
404
417
|
className: "flex justify-between",
|
|
405
|
-
children: [/* @__PURE__ */
|
|
418
|
+
children: [/* @__PURE__ */ T("span", {
|
|
406
419
|
className: "text-muted-foreground",
|
|
407
420
|
children: "Updated"
|
|
408
|
-
}), /* @__PURE__ */
|
|
421
|
+
}), /* @__PURE__ */ T("span", { children: v.updatedAt })]
|
|
409
422
|
}),
|
|
410
|
-
/* @__PURE__ */
|
|
423
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("span", {
|
|
411
424
|
className: "text-muted-foreground text-xs",
|
|
412
425
|
children: "Labels"
|
|
413
|
-
}), /* @__PURE__ */
|
|
426
|
+
}), /* @__PURE__ */ T("div", {
|
|
414
427
|
className: "flex gap-1 mt-1 flex-wrap",
|
|
415
|
-
children: (
|
|
428
|
+
children: (v.labels ?? []).map((e) => /* @__PURE__ */ T("span", {
|
|
416
429
|
className: "text-xs px-2 py-0.5 rounded bg-muted",
|
|
417
430
|
children: e
|
|
418
431
|
}, e))
|
|
@@ -421,12 +434,12 @@ function B() {
|
|
|
421
434
|
})] })
|
|
422
435
|
})]
|
|
423
436
|
})]
|
|
424
|
-
}) : /* @__PURE__ */
|
|
437
|
+
}) : /* @__PURE__ */ T("div", {
|
|
425
438
|
className: "p-6 text-muted-foreground",
|
|
426
439
|
children: "Task not found."
|
|
427
440
|
});
|
|
428
441
|
}
|
|
429
442
|
//#endregion
|
|
430
|
-
export {
|
|
443
|
+
export { V as TasksTaskDetailPagePage };
|
|
431
444
|
|
|
432
445
|
//# sourceMappingURL=TasksTaskDetailPagePage.js.map
|