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