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