@burdenoff/microfe-planmagnet 2026.930.16 → 2026.930.18

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