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