@burdenoff/microfe-planmagnet 2026.930.6 → 2026.930.7

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 (58) hide show
  1. package/dist/planmagnet/PlanMagnetRoot.d.ts.map +1 -1
  2. package/dist/planmagnet/PlanMagnetRoot.js +132 -108
  3. package/dist/planmagnet/PlanMagnetRoot.js.map +1 -1
  4. package/dist/planmagnet/PlanMagnetRoutes.d.ts.map +1 -1
  5. package/dist/planmagnet/PlanMagnetRoutes.js +24 -12
  6. package/dist/planmagnet/PlanMagnetRoutes.js.map +1 -1
  7. package/dist/planmagnet/controls/FeatureControls.js +25 -25
  8. package/dist/planmagnet/controls/Pickers.d.ts +2 -1
  9. package/dist/planmagnet/controls/Pickers.d.ts.map +1 -1
  10. package/dist/planmagnet/controls/Pickers.js +133 -102
  11. package/dist/planmagnet/controls/Pickers.js.map +1 -1
  12. package/dist/planmagnet/controls/QualityGateControls.d.ts +64 -0
  13. package/dist/planmagnet/controls/QualityGateControls.d.ts.map +1 -0
  14. package/dist/planmagnet/controls/QualityGateControls.js +390 -0
  15. package/dist/planmagnet/controls/QualityGateControls.js.map +1 -0
  16. package/dist/planmagnet/create/CreateDialogs.d.ts +8 -0
  17. package/dist/planmagnet/create/CreateDialogs.d.ts.map +1 -1
  18. package/dist/planmagnet/create/CreateDialogs.js +344 -206
  19. package/dist/planmagnet/create/CreateDialogs.js.map +1 -1
  20. package/dist/planmagnet/pages/AiActivityPagePage.d.ts +2 -0
  21. package/dist/planmagnet/pages/AiActivityPagePage.d.ts.map +1 -0
  22. package/dist/planmagnet/pages/AiActivityPagePage.js +249 -0
  23. package/dist/planmagnet/pages/AiActivityPagePage.js.map +1 -0
  24. package/dist/planmagnet/pages/AiPlanPagePage.d.ts +2 -0
  25. package/dist/planmagnet/pages/AiPlanPagePage.d.ts.map +1 -0
  26. package/dist/planmagnet/pages/AiPlanPagePage.js +381 -0
  27. package/dist/planmagnet/pages/AiPlanPagePage.js.map +1 -0
  28. package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js +4 -4
  29. package/dist/planmagnet/pages/ProductsEditProductPagePage.js +5 -5
  30. package/dist/planmagnet/pages/ProductsEditRoadmapPagePage.js +4 -4
  31. package/dist/planmagnet/pages/ProductsProductDetailPagePage.js +4 -4
  32. package/dist/planmagnet/pages/ProgramsEditProgramPagePage.js +4 -4
  33. package/dist/planmagnet/pages/ProjectsBudgetDetailPagePage.js +4 -4
  34. package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.js +4 -4
  35. package/dist/planmagnet/pages/ProjectsEditProjectPagePage.js +11 -11
  36. package/dist/planmagnet/pages/ProjectsPlanningEditPagePage.js +6 -6
  37. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.d.ts.map +1 -1
  38. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +209 -199
  39. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js.map +1 -1
  40. package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.d.ts +2 -0
  41. package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.d.ts.map +1 -0
  42. package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.js +236 -0
  43. package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.js.map +1 -0
  44. package/dist/planmagnet/pages/RisksRiskDetailPagePage.js +5 -5
  45. package/dist/planmagnet/pages/TasksTimesheetDetailPagePage.js +6 -6
  46. package/dist/planmagnet/pages/TeamCreateTeamPagePage.js +4 -4
  47. package/dist/planmagnet/pages/TeamTeamEditPagePage.js +8 -8
  48. package/dist/planmagnet/pages/TemplatesEditTemplatePagePage.js +7 -7
  49. package/dist/planmagnet/releases/useReleaseOptions.d.ts +21 -0
  50. package/dist/planmagnet/releases/useReleaseOptions.d.ts.map +1 -0
  51. package/dist/planmagnet/releases/useReleaseOptions.js +75 -0
  52. package/dist/planmagnet/releases/useReleaseOptions.js.map +1 -0
  53. package/dist/planmagnet/roadmaps/RoadmapControls.js +13 -13
  54. package/dist/planmagnet/utils/qualityGateCriteria.d.ts +33 -0
  55. package/dist/planmagnet/utils/qualityGateCriteria.d.ts.map +1 -0
  56. package/dist/planmagnet/utils/qualityGateCriteria.js +58 -0
  57. package/dist/planmagnet/utils/qualityGateCriteria.js.map +1 -0
  58. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
  import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/PlanMagnetProvider.js";
2
2
  import { PersonName as n } from "../people/People.js";
3
3
  import { workProgress as r } from "../hooks/useCounts.js";
4
- import { useEntityId as ee } from "../hooks/useEntityId.js";
5
4
  import { enumLabel as i } from "../controls/WorkItemControls.js";
6
- import { ROW_LINK_CLASS as a, detailPath as o, rowLinkProps as s } from "../utils/rowNavigation.js";
7
- import { NewRiskDialog as c, NewTemplateFromProjectDialog as l } from "../create/CreateDialogs.js";
8
- import { ProjectHeaderActions as u } from "../controls/ProjectControls.js";
9
- import { ProjectBudgetsSummary as d } from "../budgets/ProjectBudgetsSummary.js";
10
- import { Bot as f, Calendar as p, CheckSquare as m, FolderKanban as h, LayoutTemplate as g, Route as _, ShieldAlert as v, Users as y, Zap as b } from "lucide-react";
11
- import { gql as x } from "@apollo/client";
12
- import { useQuery as S } from "@apollo/client/react";
13
- import { jsx as C, jsxs as w } from "react/jsx-runtime";
14
- import { Badge as T, Button as E, Card as D, CardContent as O, CardHeader as k, CardTitle as A } from "@burdenoff/fe-libs/ui";
5
+ import { useEntityId as a } from "../hooks/useEntityId.js";
6
+ import { ROW_LINK_CLASS as o, detailPath as s, rowLinkProps as c } from "../utils/rowNavigation.js";
7
+ import { NewRiskDialog as l, NewTemplateFromProjectDialog as u } from "../create/CreateDialogs.js";
8
+ import { ProjectHeaderActions as d } from "../controls/ProjectControls.js";
9
+ import { ProjectBudgetsSummary as f } from "../budgets/ProjectBudgetsSummary.js";
10
+ import { Bot as p, Calendar as m, CheckSquare as h, FolderKanban as g, LayoutTemplate as _, Route as v, ShieldAlert as y, ShieldCheck as b, Users as x, Zap as S } from "lucide-react";
11
+ import { gql as C } from "@apollo/client";
12
+ import { useQuery as w } from "@apollo/client/react";
13
+ import { jsx as T, jsxs as E } from "react/jsx-runtime";
14
+ import { Badge as D, Button as O, Card as k, CardContent as A, CardHeader as j, CardTitle as M } from "@burdenoff/fe-libs/ui";
15
15
  //#region src/planmagnet/pages/ProjectsProjectDetailPagePage.tsx
16
- var j = x`
16
+ var N = C`
17
17
  query GetProjectDetail($id: ID!) {
18
18
  planmagnetProject(id: $id) {
19
19
  id
@@ -86,51 +86,51 @@ var j = x`
86
86
  }
87
87
  }
88
88
  }
89
- `, M = {
89
+ `, ee = {
90
90
  ACTIVE: "bg-green-100 text-green-800",
91
91
  ON_HOLD: "bg-orange-100 text-orange-800",
92
92
  CANCELLED: "bg-red-100 text-red-800",
93
93
  COMPLETED: "bg-blue-100 text-blue-800",
94
94
  PLANNING: "bg-gray-100 text-gray-800",
95
95
  ARCHIVED: "bg-gray-100 text-gray-800"
96
- }, N = {
96
+ }, P = {
97
97
  CRITICAL: "bg-red-100 text-red-800",
98
98
  HIGH: "bg-orange-100 text-orange-800",
99
99
  MEDIUM: "bg-yellow-100 text-yellow-800",
100
100
  LOW: "bg-blue-100 text-blue-800",
101
101
  NEGLIGIBLE: "bg-gray-100 text-gray-800"
102
- }, P = new Set([
102
+ }, F = new Set([
103
103
  "IDENTIFIED",
104
104
  "ANALYZING",
105
105
  "MITIGATING",
106
106
  "ACCEPTED"
107
107
  ]);
108
- function F() {
109
- let x = ee("projectId"), F = t(), { workspaceId: I } = e(), { data: L, loading: R, error: z } = S(j, {
110
- variables: { id: x },
111
- skip: !x
108
+ function I() {
109
+ let C = a("projectId"), I = t(), { workspaceId: L } = e(), { data: R, loading: z, error: B } = w(N, {
110
+ variables: { id: C },
111
+ skip: !C
112
112
  });
113
- if (!x) return /* @__PURE__ */ C("div", {
113
+ if (!C) return /* @__PURE__ */ T("div", {
114
114
  className: "p-6 text-muted-foreground",
115
115
  children: "No project selected. Open one from the list."
116
116
  });
117
- if (R && !L) return /* @__PURE__ */ C("div", {
117
+ if (z && !R) return /* @__PURE__ */ T("div", {
118
118
  className: "flex items-center justify-center p-12",
119
- children: /* @__PURE__ */ C("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
119
+ children: /* @__PURE__ */ T("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
120
120
  });
121
- if (z) return /* @__PURE__ */ w("div", {
121
+ if (B) return /* @__PURE__ */ E("div", {
122
122
  className: "p-6 text-red-500",
123
- children: ["Error loading project: ", z.message]
123
+ children: ["Error loading project: ", B.message]
124
124
  });
125
- let B = L?.planmagnetProject;
126
- if (!B) return /* @__PURE__ */ C("div", {
125
+ let V = R?.planmagnetProject;
126
+ if (!V) return /* @__PURE__ */ T("div", {
127
127
  className: "p-6 text-muted-foreground",
128
128
  children: "Project not found."
129
129
  });
130
- let V = B.workItems ?? [], H = B.sprints ?? [], U = B.milestones ?? [], W = B.risks ?? [], G = W.filter((e) => P.has(e.status)), K = [...G].sort((e, t) => t.riskScore - e.riskScore).slice(0, 3), q = H.find((e) => e.status === "ACTIVE"), J = H.filter((e) => e.status === "COMPLETED" && e.velocity != null).sort((e, t) => (t.endDate ?? "").localeCompare(e.endDate ?? ""))[0], Y = r(V.map((e) => ({
130
+ let H = V.workItems ?? [], U = V.sprints ?? [], W = V.milestones ?? [], G = V.risks ?? [], K = G.filter((e) => F.has(e.status)), q = [...K].sort((e, t) => t.riskScore - e.riskScore).slice(0, 3), J = U.find((e) => e.status === "ACTIVE"), Y = U.filter((e) => e.status === "COMPLETED" && e.velocity != null).sort((e, t) => (t.endDate ?? "").localeCompare(e.endDate ?? ""))[0], X = r(H.map((e) => ({
131
131
  status: e.status,
132
132
  storyPoints: e.storyPoints
133
- }))), X = V.filter((e) => e.status !== "CANCELLED"), Z = X.filter((e) => e.status === "DONE").length, Q = [...V].sort((e, t) => t.createdAt.localeCompare(e.createdAt)).slice(0, 5), $ = Object.values(V.reduce((e, t) => {
133
+ }))), Z = H.filter((e) => e.status !== "CANCELLED"), Q = Z.filter((e) => e.status === "DONE").length, te = [...H].sort((e, t) => t.createdAt.localeCompare(e.createdAt)).slice(0, 5), $ = Object.values(H.reduce((e, t) => {
134
134
  if (!t.sprint?.team) return e;
135
135
  let n = e[t.sprint.id] ?? {
136
136
  sprint: {
@@ -145,192 +145,202 @@ function F() {
145
145
  title: t.title
146
146
  }), e[t.sprint.id] = n, e;
147
147
  }, {}));
148
- return /* @__PURE__ */ w("div", {
148
+ return /* @__PURE__ */ E("div", {
149
149
  className: "space-y-6 p-6",
150
150
  children: [
151
- /* @__PURE__ */ w("div", {
151
+ /* @__PURE__ */ E("div", {
152
152
  className: "flex items-center justify-between",
153
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("div", {
153
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("div", {
154
154
  className: "flex items-center gap-2",
155
155
  children: [
156
- /* @__PURE__ */ C(h, { className: "h-5 w-5 text-primary" }),
157
- /* @__PURE__ */ C("h1", {
156
+ /* @__PURE__ */ T(g, { className: "h-5 w-5 text-primary" }),
157
+ /* @__PURE__ */ T("h1", {
158
158
  className: "text-2xl font-semibold",
159
- children: B.name
159
+ children: V.name
160
160
  }),
161
- /* @__PURE__ */ C("span", {
162
- className: `text-xs px-2 py-0.5 rounded-full capitalize ${M[B.status] ?? "bg-gray-100"}`,
163
- children: B.status.toLowerCase().replace("_", " ")
161
+ /* @__PURE__ */ T("span", {
162
+ className: `text-xs px-2 py-0.5 rounded-full capitalize ${ee[V.status] ?? "bg-gray-100"}`,
163
+ children: V.status.toLowerCase().replace("_", " ")
164
164
  })
165
165
  ]
166
- }), /* @__PURE__ */ C("p", {
166
+ }), /* @__PURE__ */ T("p", {
167
167
  className: "text-sm text-muted-foreground mt-1",
168
- children: B.description ?? "No description"
169
- })] }), /* @__PURE__ */ w("div", {
168
+ children: V.description ?? "No description"
169
+ })] }), /* @__PURE__ */ E("div", {
170
170
  className: "flex flex-col items-end gap-2",
171
171
  children: [
172
- /* @__PURE__ */ C(u, {
173
- projectId: B.id,
174
- name: B.name,
175
- status: B.status
172
+ /* @__PURE__ */ T(d, {
173
+ projectId: V.id,
174
+ name: V.name,
175
+ status: V.status
176
176
  }),
177
- /* @__PURE__ */ w("div", {
177
+ /* @__PURE__ */ E("div", {
178
178
  className: "flex items-center gap-2",
179
- children: [/* @__PURE__ */ w(E, {
180
- size: "sm",
181
- variant: "outline",
182
- onClick: () => F("/automation/automation-rules-page"),
183
- "data-testid": "project-automation-rules",
184
- children: [/* @__PURE__ */ C(f, { className: "mr-1 h-4 w-4" }), "Automation rules"]
185
- }), /* @__PURE__ */ C(l, {
186
- projectId: B.id,
187
- projectName: B.name,
188
- onCreated: (e) => F(o("/templates/edit-template-page", e)),
189
- trigger: /* @__PURE__ */ w(E, {
179
+ children: [
180
+ /* @__PURE__ */ E(O, {
190
181
  size: "sm",
191
182
  variant: "outline",
192
- "data-testid": "project-save-as-template",
193
- children: [/* @__PURE__ */ C(g, { className: "mr-1 h-4 w-4" }), "Save as template"]
183
+ onClick: () => I("/automation/automation-rules-page"),
184
+ "data-testid": "project-automation-rules",
185
+ children: [/* @__PURE__ */ T(p, { className: "mr-1 h-4 w-4" }), "Automation rules"]
186
+ }),
187
+ /* @__PURE__ */ E(O, {
188
+ size: "sm",
189
+ variant: "outline",
190
+ onClick: () => I(`/projects/quality-gates-page?projectId=${encodeURIComponent(V.id)}`),
191
+ "data-testid": "project-quality-gates",
192
+ children: [/* @__PURE__ */ T(b, { className: "mr-1 h-4 w-4" }), "Quality gates"]
193
+ }),
194
+ /* @__PURE__ */ T(u, {
195
+ projectId: V.id,
196
+ projectName: V.name,
197
+ onCreated: (e) => I(s("/templates/edit-template-page", e)),
198
+ trigger: /* @__PURE__ */ E(O, {
199
+ size: "sm",
200
+ variant: "outline",
201
+ "data-testid": "project-save-as-template",
202
+ children: [/* @__PURE__ */ T(_, { className: "mr-1 h-4 w-4" }), "Save as template"]
203
+ })
194
204
  })
195
- })]
205
+ ]
196
206
  }),
197
- /* @__PURE__ */ C(T, {
207
+ /* @__PURE__ */ T(D, {
198
208
  variant: "outline",
199
209
  className: "capitalize",
200
- children: B.methodology.toLowerCase()
210
+ children: V.methodology.toLowerCase()
201
211
  }),
202
- /* @__PURE__ */ w(E, {
212
+ /* @__PURE__ */ E(O, {
203
213
  size: "sm",
204
214
  variant: "outline",
205
- onClick: () => F(o("/projects/critical-path-page", B.id)),
206
- children: [/* @__PURE__ */ C(_, { className: "mr-1 h-4 w-4" }), "Critical path"]
215
+ onClick: () => I(s("/projects/critical-path-page", V.id)),
216
+ children: [/* @__PURE__ */ T(v, { className: "mr-1 h-4 w-4" }), "Critical path"]
207
217
  })
208
218
  ]
209
219
  })]
210
220
  }),
211
- /* @__PURE__ */ w("div", {
221
+ /* @__PURE__ */ E("div", {
212
222
  className: "grid grid-cols-2 md:grid-cols-4 gap-4",
213
223
  children: [
214
- /* @__PURE__ */ C(D, { children: /* @__PURE__ */ w(O, {
224
+ /* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
215
225
  className: "pt-4",
216
- children: [/* @__PURE__ */ w("div", {
226
+ children: [/* @__PURE__ */ E("div", {
217
227
  className: "flex items-center gap-2 text-muted-foreground text-xs",
218
- children: [/* @__PURE__ */ C(m, { className: "h-4 w-4" }), "Work Items"]
219
- }), /* @__PURE__ */ w("p", {
228
+ children: [/* @__PURE__ */ T(h, { className: "h-4 w-4" }), "Work Items"]
229
+ }), /* @__PURE__ */ E("p", {
220
230
  className: "text-xl font-bold mt-1",
221
231
  children: [
222
- Z,
232
+ Q,
223
233
  "/",
224
- X.length
234
+ Z.length
225
235
  ]
226
236
  })]
227
237
  }) }),
228
- /* @__PURE__ */ C(D, { children: /* @__PURE__ */ w(O, {
238
+ /* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
229
239
  className: "pt-4",
230
- children: [/* @__PURE__ */ w("div", {
240
+ children: [/* @__PURE__ */ E("div", {
231
241
  className: "flex items-center gap-2 text-muted-foreground text-xs",
232
- children: [/* @__PURE__ */ C(b, { className: "h-4 w-4" }), "Sprints"]
233
- }), /* @__PURE__ */ C("p", {
242
+ children: [/* @__PURE__ */ T(S, { className: "h-4 w-4" }), "Sprints"]
243
+ }), /* @__PURE__ */ T("p", {
234
244
  className: "text-xl font-bold mt-1",
235
- children: H.length
245
+ children: U.length
236
246
  })]
237
247
  }) }),
238
- /* @__PURE__ */ C(D, { children: /* @__PURE__ */ w(O, {
248
+ /* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
239
249
  className: "pt-4",
240
- children: [/* @__PURE__ */ w("div", {
250
+ children: [/* @__PURE__ */ E("div", {
241
251
  className: "flex items-center gap-2 text-muted-foreground text-xs",
242
- children: [/* @__PURE__ */ C(p, { className: "h-4 w-4" }), "Milestones"]
243
- }), /* @__PURE__ */ C("p", {
252
+ children: [/* @__PURE__ */ T(m, { className: "h-4 w-4" }), "Milestones"]
253
+ }), /* @__PURE__ */ T("p", {
244
254
  className: "text-xl font-bold mt-1",
245
- children: U.length
255
+ children: W.length
246
256
  })]
247
257
  }) }),
248
- /* @__PURE__ */ C(D, { children: /* @__PURE__ */ w(O, {
258
+ /* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
249
259
  className: "pt-4",
250
- children: [/* @__PURE__ */ w("div", {
260
+ children: [/* @__PURE__ */ E("div", {
251
261
  className: "flex items-center gap-2 text-muted-foreground text-xs",
252
- children: [/* @__PURE__ */ C(y, { className: "h-4 w-4" }), "Owner"]
253
- }), /* @__PURE__ */ C("p", {
262
+ children: [/* @__PURE__ */ T(x, { className: "h-4 w-4" }), "Owner"]
263
+ }), /* @__PURE__ */ T("p", {
254
264
  className: "text-sm font-bold mt-1 truncate",
255
- children: /* @__PURE__ */ C(n, { id: B.ownerId })
265
+ children: /* @__PURE__ */ T(n, { id: V.ownerId })
256
266
  })]
257
267
  }) })
258
268
  ]
259
269
  }),
260
- /* @__PURE__ */ w("div", {
270
+ /* @__PURE__ */ E("div", {
261
271
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
262
- children: [/* @__PURE__ */ w("div", {
272
+ children: [/* @__PURE__ */ E("div", {
263
273
  className: "lg:col-span-2 space-y-6",
264
274
  children: [
265
- /* @__PURE__ */ w(D, { children: [/* @__PURE__ */ C(k, { children: /* @__PURE__ */ C(A, { children: "Timeline" }) }), /* @__PURE__ */ w(O, { children: [
266
- /* @__PURE__ */ w("div", {
275
+ /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ T(M, { children: "Timeline" }) }), /* @__PURE__ */ E(A, { children: [
276
+ /* @__PURE__ */ E("div", {
267
277
  className: "flex justify-between text-sm mb-2",
268
- children: [/* @__PURE__ */ C("span", {
278
+ children: [/* @__PURE__ */ T("span", {
269
279
  className: "text-muted-foreground",
270
280
  children: "Tasks done"
271
- }), /* @__PURE__ */ C("span", {
281
+ }), /* @__PURE__ */ T("span", {
272
282
  className: "font-medium",
273
- children: Y === null ? "No open tasks" : `${Y}%`
283
+ children: X === null ? "No open tasks" : `${X}%`
274
284
  })]
275
285
  }),
276
- /* @__PURE__ */ C("div", {
286
+ /* @__PURE__ */ T("div", {
277
287
  className: "w-full h-4 rounded-full bg-muted overflow-hidden",
278
- children: /* @__PURE__ */ C("div", {
288
+ children: /* @__PURE__ */ T("div", {
279
289
  className: "h-full bg-primary rounded-full",
280
- style: { width: `${Y ?? 0}%` }
290
+ style: { width: `${X ?? 0}%` }
281
291
  })
282
292
  }),
283
- /* @__PURE__ */ w("div", {
293
+ /* @__PURE__ */ E("div", {
284
294
  className: "flex justify-between text-xs text-muted-foreground mt-2",
285
- children: [/* @__PURE__ */ C("span", { children: B.startDate ? new Date(B.startDate).toLocaleDateString() : "Not set" }), /* @__PURE__ */ C("span", { children: B.endDate ? new Date(B.endDate).toLocaleDateString() : "Not set" })]
295
+ children: [/* @__PURE__ */ T("span", { children: V.startDate ? new Date(V.startDate).toLocaleDateString() : "Not set" }), /* @__PURE__ */ T("span", { children: V.endDate ? new Date(V.endDate).toLocaleDateString() : "Not set" })]
286
296
  })
287
297
  ] })] }),
288
- q && /* @__PURE__ */ w(D, { children: [/* @__PURE__ */ C(k, { children: /* @__PURE__ */ w(A, {
298
+ J && /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, {
289
299
  className: "flex items-center gap-2",
290
- children: [/* @__PURE__ */ C(b, { className: "h-4 w-4 text-primary" }), "Active Sprint"]
291
- }) }), /* @__PURE__ */ w(O, {
300
+ children: [/* @__PURE__ */ T(S, { className: "h-4 w-4 text-primary" }), "Active Sprint"]
301
+ }) }), /* @__PURE__ */ E(A, {
292
302
  className: "space-y-3",
293
303
  children: [
294
- /* @__PURE__ */ w("div", {
304
+ /* @__PURE__ */ E("div", {
295
305
  className: "flex justify-between",
296
- children: [/* @__PURE__ */ C("span", {
306
+ children: [/* @__PURE__ */ T("span", {
297
307
  className: "font-medium",
298
- children: q.name
299
- }), /* @__PURE__ */ C(T, { children: "Active" })]
308
+ children: J.name
309
+ }), /* @__PURE__ */ T(D, { children: "Active" })]
300
310
  }),
301
- q.goal && /* @__PURE__ */ C("p", {
311
+ J.goal && /* @__PURE__ */ T("p", {
302
312
  className: "text-sm text-muted-foreground",
303
- children: q.goal
313
+ children: J.goal
304
314
  }),
305
- /* @__PURE__ */ w("div", {
315
+ /* @__PURE__ */ E("div", {
306
316
  className: "grid grid-cols-3 gap-4 text-center",
307
317
  children: [
308
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("p", {
318
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
309
319
  className: "text-lg font-semibold",
310
320
  children: [
311
- q.workItems?.filter((e) => e.status === "DONE").reduce((e, t) => e + (t.storyPoints ?? 0), 0),
321
+ J.workItems?.filter((e) => e.status === "DONE").reduce((e, t) => e + (t.storyPoints ?? 0), 0),
312
322
  "/",
313
- q.workItems?.reduce((e, t) => e + (t.storyPoints ?? 0), 0) ?? 0
323
+ J.workItems?.reduce((e, t) => e + (t.storyPoints ?? 0), 0) ?? 0
314
324
  ]
315
- }), /* @__PURE__ */ C("p", {
325
+ }), /* @__PURE__ */ T("p", {
316
326
  className: "text-xs text-muted-foreground",
317
327
  children: "Points"
318
328
  })] }),
319
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("p", {
329
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
320
330
  className: "text-lg font-semibold",
321
331
  children: [
322
- q.workItems?.filter((e) => e.status === "DONE").length ?? 0,
332
+ J.workItems?.filter((e) => e.status === "DONE").length ?? 0,
323
333
  "/",
324
- q.workItems?.length ?? 0
334
+ J.workItems?.length ?? 0
325
335
  ]
326
- }), /* @__PURE__ */ C("p", {
336
+ }), /* @__PURE__ */ T("p", {
327
337
  className: "text-xs text-muted-foreground",
328
338
  children: "Tasks"
329
339
  })] }),
330
- /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("p", {
340
+ /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
331
341
  className: "text-lg font-semibold",
332
- children: J ? `${J.velocity} pts` : "—"
333
- }), /* @__PURE__ */ C("p", {
342
+ children: Y ? `${Y.velocity} pts` : "—"
343
+ }), /* @__PURE__ */ T("p", {
334
344
  className: "text-xs text-muted-foreground",
335
345
  children: "Velocity of the last sprint"
336
346
  })] })
@@ -338,101 +348,101 @@ function F() {
338
348
  })
339
349
  ]
340
350
  })] }),
341
- /* @__PURE__ */ w(D, { children: [/* @__PURE__ */ C(k, { children: /* @__PURE__ */ w(A, { children: [
351
+ /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, { children: [
342
352
  "Work items (",
343
- V.length,
353
+ H.length,
344
354
  ")",
345
- V.length > 5 ? " · latest 5" : ""
346
- ] }) }), /* @__PURE__ */ w(O, {
355
+ H.length > 5 ? " · latest 5" : ""
356
+ ] }) }), /* @__PURE__ */ E(A, {
347
357
  className: "space-y-2",
348
- children: [Q.map((e) => /* @__PURE__ */ w("div", {
349
- ...s(() => F(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.id)}`), e.key),
350
- className: `flex items-center justify-between border rounded-md p-2.5 ${a}`,
351
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w("p", {
358
+ children: [te.map((e) => /* @__PURE__ */ E("div", {
359
+ ...c(() => I(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.id)}`), e.key),
360
+ className: `flex items-center justify-between border rounded-md p-2.5 ${o}`,
361
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
352
362
  className: "text-sm font-medium",
353
363
  children: [
354
364
  e.key,
355
365
  " ",
356
- /* @__PURE__ */ C("span", {
366
+ /* @__PURE__ */ T("span", {
357
367
  className: "font-normal",
358
368
  children: e.title
359
369
  })
360
370
  ]
361
- }), /* @__PURE__ */ C("div", {
371
+ }), /* @__PURE__ */ T("div", {
362
372
  className: "flex gap-1 mt-1",
363
- children: e.labels.map((e) => /* @__PURE__ */ C("span", {
373
+ children: e.labels.map((e) => /* @__PURE__ */ T("span", {
364
374
  className: "text-[10px] px-1.5 py-0.5 rounded bg-muted",
365
375
  children: e
366
376
  }, e))
367
- })] }), /* @__PURE__ */ w("div", {
377
+ })] }), /* @__PURE__ */ E("div", {
368
378
  className: "flex items-center gap-2",
369
- children: [/* @__PURE__ */ w("span", {
379
+ children: [/* @__PURE__ */ E("span", {
370
380
  className: "text-xs text-muted-foreground",
371
381
  children: [e.storyPoints ?? 0, " pts"]
372
- }), /* @__PURE__ */ C(T, {
382
+ }), /* @__PURE__ */ T(D, {
373
383
  variant: "secondary",
374
384
  className: "capitalize text-xs",
375
385
  children: e.status.toLowerCase().replace("_", " ")
376
386
  })]
377
387
  })]
378
- }, e.id)), V.length === 0 && /* @__PURE__ */ C("p", {
388
+ }, e.id)), H.length === 0 && /* @__PURE__ */ T("p", {
379
389
  className: "text-sm text-muted-foreground text-center py-4",
380
390
  children: "No work items yet."
381
391
  })]
382
392
  })] })
383
393
  ]
384
- }), /* @__PURE__ */ w("div", {
394
+ }), /* @__PURE__ */ E("div", {
385
395
  className: "space-y-6",
386
396
  children: [
387
- /* @__PURE__ */ C(d, {
388
- workspaceId: I,
389
- projectId: B.id
397
+ /* @__PURE__ */ T(f, {
398
+ workspaceId: L,
399
+ projectId: V.id
390
400
  }),
391
- /* @__PURE__ */ w(D, { children: [/* @__PURE__ */ C(k, { children: /* @__PURE__ */ w(A, { children: [
401
+ /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, { children: [
392
402
  "Milestones (",
393
- U.length,
403
+ W.length,
394
404
  ")"
395
- ] }) }), /* @__PURE__ */ w(O, {
405
+ ] }) }), /* @__PURE__ */ E(A, {
396
406
  className: "space-y-3",
397
- children: [U.map((e) => /* @__PURE__ */ w("div", {
407
+ children: [W.map((e) => /* @__PURE__ */ E("div", {
398
408
  className: "border-b pb-2 last:border-0",
399
- children: [/* @__PURE__ */ w("div", {
409
+ children: [/* @__PURE__ */ E("div", {
400
410
  className: "flex justify-between",
401
- children: [/* @__PURE__ */ C("span", {
411
+ children: [/* @__PURE__ */ T("span", {
402
412
  className: "text-sm font-medium",
403
413
  children: e.name
404
- }), /* @__PURE__ */ C(T, {
414
+ }), /* @__PURE__ */ T(D, {
405
415
  variant: "outline",
406
416
  className: "text-xs capitalize",
407
417
  children: e.status.toLowerCase().replace("_", " ")
408
418
  })]
409
- }), /* @__PURE__ */ w("div", {
419
+ }), /* @__PURE__ */ E("div", {
410
420
  className: "flex items-center gap-1 text-xs text-muted-foreground mt-1",
411
- children: [/* @__PURE__ */ C(p, { className: "h-3 w-3" }), e.dueDate ? new Date(e.dueDate).toLocaleDateString() : "No due date"]
421
+ children: [/* @__PURE__ */ T(m, { className: "h-3 w-3" }), e.dueDate ? new Date(e.dueDate).toLocaleDateString() : "No due date"]
412
422
  })]
413
- }, e.id)), U.length === 0 && /* @__PURE__ */ C("p", {
423
+ }, e.id)), W.length === 0 && /* @__PURE__ */ T("p", {
414
424
  className: "text-sm text-muted-foreground text-center py-2",
415
425
  children: "No milestones."
416
426
  })]
417
427
  })] }),
418
- $.length > 0 && /* @__PURE__ */ w(D, {
428
+ $.length > 0 && /* @__PURE__ */ E(k, {
419
429
  "data-testid": "team-sprint-work",
420
- children: [/* @__PURE__ */ C(k, { children: /* @__PURE__ */ w(A, {
430
+ children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, {
421
431
  className: "flex items-center gap-2",
422
- children: [/* @__PURE__ */ C(y, { className: "h-4 w-4" }), "Team sprint work"]
423
- }) }), /* @__PURE__ */ C(O, {
432
+ children: [/* @__PURE__ */ T(x, { className: "h-4 w-4" }), "Team sprint work"]
433
+ }) }), /* @__PURE__ */ T(A, {
424
434
  className: "space-y-3",
425
- children: $.map((e) => /* @__PURE__ */ w("div", {
435
+ children: $.map((e) => /* @__PURE__ */ E("div", {
426
436
  className: "border-b pb-2 last:border-0",
427
- children: [/* @__PURE__ */ C("button", {
437
+ children: [/* @__PURE__ */ T("button", {
428
438
  type: "button",
429
439
  className: "text-sm font-medium hover:underline text-left",
430
- onClick: () => F(o("/projects/planning-detail-page", e.sprint.id)),
440
+ onClick: () => I(s("/projects/planning-detail-page", e.sprint.id)),
431
441
  children: e.sprint.name
432
- }), /* @__PURE__ */ w("button", {
442
+ }), /* @__PURE__ */ E("button", {
433
443
  type: "button",
434
444
  className: "block text-xs text-muted-foreground hover:underline",
435
- onClick: () => F(o("/team/team-detail-page", e.sprint.team.id)),
445
+ onClick: () => I(s("/team/team-detail-page", e.sprint.team.id)),
436
446
  children: [
437
447
  e.items.length,
438
448
  " item",
@@ -445,36 +455,36 @@ function F() {
445
455
  }, e.sprint.id))
446
456
  })]
447
457
  }),
448
- /* @__PURE__ */ w(D, { children: [/* @__PURE__ */ w(k, {
458
+ /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ E(j, {
449
459
  className: "flex flex-row items-center justify-between space-y-0",
450
- children: [/* @__PURE__ */ w(A, {
460
+ children: [/* @__PURE__ */ E(M, {
451
461
  className: "flex items-center gap-2",
452
462
  children: [
453
- /* @__PURE__ */ C(v, { className: "h-4 w-4 text-primary" }),
463
+ /* @__PURE__ */ T(y, { className: "h-4 w-4 text-primary" }),
454
464
  "Risks (",
455
- G.length,
465
+ K.length,
456
466
  " open)"
457
467
  ]
458
- }), /* @__PURE__ */ C(c, {
459
- projectId: B.id,
460
- onCreated: (e) => F(o("/risks/risk-detail-page", e))
468
+ }), /* @__PURE__ */ T(l, {
469
+ projectId: V.id,
470
+ onCreated: (e) => I(s("/risks/risk-detail-page", e))
461
471
  })]
462
- }), /* @__PURE__ */ w(O, {
472
+ }), /* @__PURE__ */ E(A, {
463
473
  className: "space-y-3",
464
474
  children: [
465
- K.map((e) => /* @__PURE__ */ w("div", {
466
- ...s(() => F(o("/risks/risk-detail-page", e.id)), e.title),
467
- className: `border-b pb-2 last:border-0 ${a}`,
468
- children: [/* @__PURE__ */ w("div", {
475
+ q.map((e) => /* @__PURE__ */ E("div", {
476
+ ...c(() => I(s("/risks/risk-detail-page", e.id)), e.title),
477
+ className: `border-b pb-2 last:border-0 ${o}`,
478
+ children: [/* @__PURE__ */ E("div", {
469
479
  className: "flex justify-between gap-2",
470
- children: [/* @__PURE__ */ C("span", {
480
+ children: [/* @__PURE__ */ T("span", {
471
481
  className: "text-sm font-medium truncate",
472
482
  children: e.title
473
- }), /* @__PURE__ */ C("span", {
474
- className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${N[e.severity] ?? "bg-gray-100"}`,
483
+ }), /* @__PURE__ */ T("span", {
484
+ className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${P[e.severity] ?? "bg-gray-100"}`,
475
485
  children: i(e.severity)
476
486
  })]
477
- }), /* @__PURE__ */ w("div", {
487
+ }), /* @__PURE__ */ E("div", {
478
488
  className: "text-xs text-muted-foreground mt-1",
479
489
  children: [
480
490
  "Score ",
@@ -484,75 +494,75 @@ function F() {
484
494
  ]
485
495
  })]
486
496
  }, e.id)),
487
- G.length === 0 && /* @__PURE__ */ C("p", {
497
+ K.length === 0 && /* @__PURE__ */ T("p", {
488
498
  className: "text-sm text-muted-foreground text-center py-2",
489
499
  children: "No open risks."
490
500
  }),
491
- /* @__PURE__ */ w("button", {
501
+ /* @__PURE__ */ E("button", {
492
502
  type: "button",
493
503
  className: "text-xs text-primary hover:underline",
494
- onClick: () => F(`/risks/risk-register-page?projectId=${encodeURIComponent(B.id)}`),
504
+ onClick: () => I(`/risks/risk-register-page?projectId=${encodeURIComponent(V.id)}`),
495
505
  children: [
496
506
  "View risk register (",
497
- W.length,
507
+ G.length,
498
508
  ") →"
499
509
  ]
500
510
  })
501
511
  ]
502
512
  })] }),
503
- /* @__PURE__ */ w(D, { children: [/* @__PURE__ */ C(k, { children: /* @__PURE__ */ C(A, { children: "Details" }) }), /* @__PURE__ */ w(O, {
513
+ /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ T(M, { children: "Details" }) }), /* @__PURE__ */ E(A, {
504
514
  className: "space-y-2 text-sm",
505
515
  children: [
506
- /* @__PURE__ */ w("div", {
516
+ /* @__PURE__ */ E("div", {
507
517
  className: "flex justify-between",
508
- children: [/* @__PURE__ */ C("span", {
518
+ children: [/* @__PURE__ */ T("span", {
509
519
  className: "text-muted-foreground",
510
520
  children: "Owner"
511
- }), /* @__PURE__ */ C("span", { children: /* @__PURE__ */ C(n, { id: B.ownerId }) })]
521
+ }), /* @__PURE__ */ T("span", { children: /* @__PURE__ */ T(n, { id: V.ownerId }) })]
512
522
  }),
513
- /* @__PURE__ */ w("div", {
523
+ /* @__PURE__ */ E("div", {
514
524
  className: "flex justify-between",
515
- children: [/* @__PURE__ */ C("span", {
525
+ children: [/* @__PURE__ */ T("span", {
516
526
  className: "text-muted-foreground",
517
527
  children: "Key"
518
- }), /* @__PURE__ */ C("span", {
528
+ }), /* @__PURE__ */ T("span", {
519
529
  className: "font-mono",
520
- children: B.key
530
+ children: V.key
521
531
  })]
522
532
  }),
523
- /* @__PURE__ */ w("div", {
533
+ /* @__PURE__ */ E("div", {
524
534
  className: "flex justify-between",
525
- children: [/* @__PURE__ */ C("span", {
535
+ children: [/* @__PURE__ */ T("span", {
526
536
  className: "text-muted-foreground",
527
537
  children: "Methodology"
528
- }), /* @__PURE__ */ C("span", {
538
+ }), /* @__PURE__ */ T("span", {
529
539
  className: "capitalize",
530
- children: B.methodology.toLowerCase()
540
+ children: V.methodology.toLowerCase()
531
541
  })]
532
542
  }),
533
- /* @__PURE__ */ w("div", {
543
+ /* @__PURE__ */ E("div", {
534
544
  className: "flex justify-between",
535
- children: [/* @__PURE__ */ C("span", {
545
+ children: [/* @__PURE__ */ T("span", {
536
546
  className: "text-muted-foreground",
537
547
  children: "Program"
538
- }), B.program ? /* @__PURE__ */ C("button", {
548
+ }), V.program ? /* @__PURE__ */ T("button", {
539
549
  type: "button",
540
550
  className: "text-primary hover:underline underline-offset-2",
541
- onClick: () => F(o("/products/program-detail-page", B.program.id)),
542
- children: B.program.name
543
- }) : /* @__PURE__ */ C("span", {
551
+ onClick: () => I(s("/products/program-detail-page", V.program.id)),
552
+ children: V.program.name
553
+ }) : /* @__PURE__ */ T("span", {
544
554
  className: "text-muted-foreground",
545
555
  children: "No program"
546
556
  })]
547
557
  }),
548
- B.tags.length > 0 && /* @__PURE__ */ w("div", {
558
+ V.tags.length > 0 && /* @__PURE__ */ E("div", {
549
559
  className: "flex justify-between items-start",
550
- children: [/* @__PURE__ */ C("span", {
560
+ children: [/* @__PURE__ */ T("span", {
551
561
  className: "text-muted-foreground",
552
562
  children: "Tags"
553
- }), /* @__PURE__ */ C("div", {
563
+ }), /* @__PURE__ */ T("div", {
554
564
  className: "flex gap-1 flex-wrap justify-end",
555
- children: B.tags.map((e) => /* @__PURE__ */ C(T, {
565
+ children: V.tags.map((e) => /* @__PURE__ */ T(D, {
556
566
  variant: "outline",
557
567
  className: "text-xs",
558
568
  children: e
@@ -568,6 +578,6 @@ function F() {
568
578
  });
569
579
  }
570
580
  //#endregion
571
- export { F as ProjectsProjectDetailPagePage };
581
+ export { I as ProjectsProjectDetailPagePage };
572
582
 
573
583
  //# sourceMappingURL=ProjectsProjectDetailPagePage.js.map