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