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