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