@burdenoff/microfe-planmagnet 2026.930.17 → 2026.930.19

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 (34) 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 +144 -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/DocsDocDetailPagePage.js +1 -1
  28. package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.d.ts.map +1 -1
  29. package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js +140 -125
  30. package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js.map +1 -1
  31. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.d.ts.map +1 -1
  32. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +202 -186
  33. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js.map +1 -1
  34. package/package.json +1 -1
@@ -2,15 +2,17 @@ import { usePlanMagnetNavigate as e } from "../providers/PlanMagnetProvider.js";
2
2
  import { PersonAvatar as t, PersonName as n, initialsOf as r } from "../people/People.js";
3
3
  import { detailPath as i } from "../utils/rowNavigation.js";
4
4
  import { useEntityId as a } from "../hooks/useEntityId.js";
5
- import { SprintLifecycleActions as o, SprintWorkItemsPanel as s } from "../sprints/SprintControls.js";
6
- import { SprintDates as c } from "../sprints/SprintDates.js";
7
- import { BarChart3 as l, FolderKanban as u, Pencil as d, Users as f } from "lucide-react";
8
- import { gql as p } from "@apollo/client";
9
- import { useQuery as m } from "@apollo/client/react";
10
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
11
- import { Badge as _, Button as v, Card as y, CardContent as b, CardHeader as x, CardTitle as S } from "@burdenoff/fe-libs/ui";
5
+ import { combineLiveRefreshModes as o, useLiveRefresh as s } from "../hooks/useLiveRefresh.js";
6
+ import { LiveStatus as c } from "../controls/LiveStatus.js";
7
+ import { SprintLifecycleActions as l, SprintWorkItemsPanel as u } from "../sprints/SprintControls.js";
8
+ import { SprintDates as d } from "../sprints/SprintDates.js";
9
+ import { BarChart3 as f, FolderKanban as p, Pencil as m, Users as h } from "lucide-react";
10
+ import { gql as g } from "@apollo/client";
11
+ import { useQuery as _ } from "@apollo/client/react";
12
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
13
+ import { Badge as b, Button as x, Card as S, CardContent as C, CardHeader as w, CardTitle as T } from "@burdenoff/fe-libs/ui";
12
14
  //#region src/planmagnet/pages/ProjectsPlanningDetailPagePage.tsx
13
- var C = p`
15
+ var E = ["GetSprintDetail", "GetSprintCapacity"], D = g`
14
16
  query GetSprintDetail($id: ID!) {
15
17
  planmagnetSprint(id: $id) {
16
18
  id
@@ -58,7 +60,7 @@ var C = p`
58
60
  }
59
61
  }
60
62
  }
61
- `, w = p`
63
+ `, O = g`
62
64
  query GetSprintCapacity($sprintId: ID!) {
63
65
  planmagnetSprintCapacity(sprintId: $sprintId) {
64
66
  sprintId
@@ -78,171 +80,184 @@ var C = p`
78
80
  }
79
81
  }
80
82
  `;
81
- function T() {
82
- let p = a("sprintId"), T = e(), { data: E, loading: D, error: O } = m(C, {
83
- variables: { id: p },
84
- skip: !p
85
- }), { data: k } = m(w, {
86
- variables: { sprintId: p },
87
- skip: !p
88
- });
89
- if (!p) return /* @__PURE__ */ h("div", {
83
+ function k() {
84
+ let g = a("sprintId"), k = e(), { data: A, loading: j, error: M } = _(D, {
85
+ variables: { id: g },
86
+ skip: !g
87
+ }), { data: N } = _(O, {
88
+ variables: { sprintId: g },
89
+ skip: !g
90
+ }), P = A?.planmagnetSprint?.projectId ?? null, F = s({
91
+ kind: "sprint",
92
+ sprintId: g,
93
+ projectId: P,
94
+ queries: E
95
+ }), I = s({
96
+ kind: "workItem",
97
+ projectId: P,
98
+ enabled: !!P,
99
+ queries: E
100
+ }), L = o(F.mode, I.mode);
101
+ if (!g) return /* @__PURE__ */ v("div", {
90
102
  className: "p-6 text-muted-foreground",
91
103
  children: "No planning session selected. Open one from the list."
92
104
  });
93
- if (D && !E) return /* @__PURE__ */ h("div", {
105
+ if (j && !A) return /* @__PURE__ */ v("div", {
94
106
  className: "flex items-center justify-center p-12",
95
- children: /* @__PURE__ */ h("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
107
+ children: /* @__PURE__ */ v("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
96
108
  });
97
- if (O) return /* @__PURE__ */ g("div", {
109
+ if (M) return /* @__PURE__ */ y("div", {
98
110
  className: "p-6 text-red-500",
99
- children: ["Error loading planning session: ", O.message]
111
+ children: ["Error loading planning session: ", M.message]
100
112
  });
101
- let A = E?.planmagnetSprint;
102
- if (!A) return /* @__PURE__ */ h("div", {
113
+ let R = A?.planmagnetSprint;
114
+ if (!R) return /* @__PURE__ */ v("div", {
103
115
  className: "p-6 text-muted-foreground",
104
116
  children: "Planning session not found."
105
117
  });
106
- let j = k?.planmagnetSprintCapacity, M = {};
107
- for (let e of j?.members ?? []) M[e.actorId] = {
118
+ let z = N?.planmagnetSprintCapacity, B = {};
119
+ for (let e of z?.members ?? []) B[e.actorId] = {
108
120
  employeeName: e.employeeName,
109
121
  allocatedHours: e.allocatedHours,
110
122
  billableHours: e.billableHours,
111
123
  utilizationPercent: e.utilizationPercent
112
124
  };
113
- let N = A.workItems ?? [], P = N.reduce((e, t) => e + (t.storyPoints ?? 0), 0);
114
- N.filter((e) => e.status === "DONE").reduce((e, t) => e + (t.storyPoints ?? 0), 0);
115
- let F = A.capacity ?? null, I = F && F > 0 ? Math.round(P / F * 100) : null, L = F == null ? null : Math.max(0, F - P), R = [...new Set(N.map((e) => e.assigneeId).filter(Boolean))], z = A.team?.projects ?? [], B = A.team ? z.map((e) => e.id) : A.projectId ? [A.projectId] : [], V = A.team ? Object.fromEntries(z.map((e) => [e.id, e.name])) : void 0;
116
- return /* @__PURE__ */ g("div", {
125
+ let V = R.workItems ?? [], H = V.reduce((e, t) => e + (t.storyPoints ?? 0), 0);
126
+ V.filter((e) => e.status === "DONE").reduce((e, t) => e + (t.storyPoints ?? 0), 0);
127
+ let U = R.capacity ?? null, W = U && U > 0 ? Math.round(H / U * 100) : null, G = U == null ? null : Math.max(0, U - H), K = [...new Set(V.map((e) => e.assigneeId).filter(Boolean))], q = R.team?.projects ?? [], J = R.team ? q.map((e) => e.id) : R.projectId ? [R.projectId] : [], Y = R.team ? Object.fromEntries(q.map((e) => [e.id, e.name])) : void 0;
128
+ return /* @__PURE__ */ y("div", {
117
129
  className: "space-y-6 p-6",
118
- children: [/* @__PURE__ */ g("div", {
130
+ children: [/* @__PURE__ */ y("div", {
119
131
  className: "flex items-center justify-between",
120
- children: [/* @__PURE__ */ g("div", { children: [
121
- /* @__PURE__ */ h("h1", {
122
- className: "text-2xl font-semibold",
123
- children: A.name
132
+ children: [/* @__PURE__ */ y("div", { children: [
133
+ /* @__PURE__ */ y("div", {
134
+ className: "flex items-center gap-3",
135
+ children: [/* @__PURE__ */ v("h1", {
136
+ className: "text-2xl font-semibold",
137
+ children: R.name
138
+ }), /* @__PURE__ */ v(c, { mode: L })]
124
139
  }),
125
- /* @__PURE__ */ h("p", {
140
+ /* @__PURE__ */ v("p", {
126
141
  className: "text-sm text-muted-foreground",
127
- children: A.team ? `Team: ${A.team.name}` : A.project?.name ?? "Unknown project"
142
+ children: R.team ? `Team: ${R.team.name}` : R.project?.name ?? "Unknown project"
128
143
  }),
129
- /* @__PURE__ */ h("div", {
144
+ /* @__PURE__ */ v("div", {
130
145
  className: "mt-1",
131
- children: /* @__PURE__ */ h(c, { sprint: A })
146
+ children: /* @__PURE__ */ v(d, { sprint: R })
132
147
  })
133
- ] }), /* @__PURE__ */ g("div", {
148
+ ] }), /* @__PURE__ */ y("div", {
134
149
  className: "flex items-start gap-3",
135
150
  children: [
136
- /* @__PURE__ */ h(_, {
151
+ /* @__PURE__ */ v(b, {
137
152
  className: "capitalize",
138
- children: A.status.toLowerCase().replace("_", " ")
153
+ children: R.status.toLowerCase().replace("_", " ")
139
154
  }),
140
- A.status !== "COMPLETED" && A.status !== "CANCELLED" && /* @__PURE__ */ g(v, {
155
+ R.status !== "COMPLETED" && R.status !== "CANCELLED" && /* @__PURE__ */ y(x, {
141
156
  size: "sm",
142
157
  variant: "outline",
143
- onClick: () => T(i("/projects/planning-edit-page", A.id)),
158
+ onClick: () => k(i("/projects/planning-edit-page", R.id)),
144
159
  "data-testid": "sprint-edit",
145
- children: [/* @__PURE__ */ h(d, { className: "mr-1 h-4 w-4" }), " Edit"]
160
+ children: [/* @__PURE__ */ v(m, { className: "mr-1 h-4 w-4" }), " Edit"]
146
161
  }),
147
- /* @__PURE__ */ h(o, {
148
- sprintId: A.id,
149
- sprintName: A.name,
150
- status: A.status
162
+ /* @__PURE__ */ v(l, {
163
+ sprintId: R.id,
164
+ sprintName: R.name,
165
+ status: R.status
151
166
  })
152
167
  ]
153
168
  })]
154
- }), /* @__PURE__ */ g("div", {
169
+ }), /* @__PURE__ */ y("div", {
155
170
  className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
156
- children: [/* @__PURE__ */ g("div", {
171
+ children: [/* @__PURE__ */ y("div", {
157
172
  className: "lg:col-span-2 space-y-6",
158
173
  children: [
159
- /* @__PURE__ */ g(y, { children: [/* @__PURE__ */ h(x, { children: /* @__PURE__ */ h(S, { children: "Capacity Allocation" }) }), /* @__PURE__ */ g(b, {
174
+ /* @__PURE__ */ y(S, { children: [/* @__PURE__ */ v(w, { children: /* @__PURE__ */ v(T, { children: "Capacity Allocation" }) }), /* @__PURE__ */ y(C, {
160
175
  className: "space-y-4",
161
- children: [/* @__PURE__ */ g("div", {
176
+ children: [/* @__PURE__ */ y("div", {
162
177
  className: "grid grid-cols-3 gap-4 text-center",
163
178
  children: [
164
- /* @__PURE__ */ g("div", {
179
+ /* @__PURE__ */ y("div", {
165
180
  className: "p-4 bg-muted rounded-md",
166
- children: [/* @__PURE__ */ h("p", {
181
+ children: [/* @__PURE__ */ v("p", {
167
182
  className: "text-2xl font-bold",
168
- children: F ?? "—"
169
- }), /* @__PURE__ */ h("p", {
183
+ children: U ?? "—"
184
+ }), /* @__PURE__ */ v("p", {
170
185
  className: "text-xs text-muted-foreground",
171
- children: F == null ? "No capacity set" : "Capacity"
186
+ children: U == null ? "No capacity set" : "Capacity"
172
187
  })]
173
188
  }),
174
- /* @__PURE__ */ g("div", {
189
+ /* @__PURE__ */ y("div", {
175
190
  className: "p-4 bg-primary/10 rounded-md",
176
- children: [/* @__PURE__ */ h("p", {
191
+ children: [/* @__PURE__ */ v("p", {
177
192
  className: "text-2xl font-bold text-primary",
178
- children: P
179
- }), /* @__PURE__ */ h("p", {
193
+ children: H
194
+ }), /* @__PURE__ */ v("p", {
180
195
  className: "text-xs text-muted-foreground",
181
196
  children: "Allocated"
182
197
  })]
183
198
  }),
184
- /* @__PURE__ */ g("div", {
199
+ /* @__PURE__ */ y("div", {
185
200
  className: "p-4 bg-muted rounded-md",
186
- children: [/* @__PURE__ */ h("p", {
201
+ children: [/* @__PURE__ */ v("p", {
187
202
  className: "text-2xl font-bold",
188
- children: L ?? "—"
189
- }), /* @__PURE__ */ h("p", {
203
+ children: G ?? "—"
204
+ }), /* @__PURE__ */ v("p", {
190
205
  className: "text-xs text-muted-foreground",
191
206
  children: "Remaining"
192
207
  })]
193
208
  })
194
209
  ]
195
- }), I === null ? /* @__PURE__ */ h("p", {
210
+ }), W === null ? /* @__PURE__ */ v("p", {
196
211
  className: "text-sm text-muted-foreground",
197
212
  children: "Set a capacity on the sprint to see its utilisation."
198
- }) : /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ g("div", {
213
+ }) : /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y("div", {
199
214
  className: "flex justify-between text-sm mb-2",
200
- children: [/* @__PURE__ */ h("span", {
215
+ children: [/* @__PURE__ */ v("span", {
201
216
  className: "text-muted-foreground",
202
217
  children: "Utilization"
203
- }), /* @__PURE__ */ g("span", {
218
+ }), /* @__PURE__ */ y("span", {
204
219
  className: "font-medium",
205
- children: [I, "%"]
220
+ children: [W, "%"]
206
221
  })]
207
- }), /* @__PURE__ */ h("div", {
222
+ }), /* @__PURE__ */ v("div", {
208
223
  className: "w-full h-4 rounded-full bg-muted overflow-hidden",
209
- children: /* @__PURE__ */ h("div", {
210
- className: `h-full rounded-full ${I > 90 ? "bg-destructive" : "bg-success"}`,
211
- style: { width: `${Math.min(I, 100)}%` }
224
+ children: /* @__PURE__ */ v("div", {
225
+ className: `h-full rounded-full ${W > 90 ? "bg-destructive" : "bg-success"}`,
226
+ style: { width: `${Math.min(W, 100)}%` }
212
227
  })
213
228
  })] })]
214
229
  })] }),
215
- /* @__PURE__ */ g(y, { children: [/* @__PURE__ */ h(x, { children: /* @__PURE__ */ h(S, { children: "Work Items" }) }), /* @__PURE__ */ h(b, { children: /* @__PURE__ */ h(s, {
216
- sprintId: A.id,
217
- eligibleProjectIds: B,
218
- projectNames: V,
219
- status: A.status,
220
- items: N
230
+ /* @__PURE__ */ y(S, { children: [/* @__PURE__ */ v(w, { children: /* @__PURE__ */ v(T, { children: "Work Items" }) }), /* @__PURE__ */ v(C, { children: /* @__PURE__ */ v(u, {
231
+ sprintId: R.id,
232
+ eligibleProjectIds: J,
233
+ projectNames: Y,
234
+ status: R.status,
235
+ items: V
221
236
  }) })] }),
222
- /* @__PURE__ */ g(y, { children: [/* @__PURE__ */ h(x, { children: /* @__PURE__ */ g(S, { children: [
237
+ /* @__PURE__ */ y(S, { children: [/* @__PURE__ */ v(w, { children: /* @__PURE__ */ y(T, { children: [
223
238
  "Team Members (",
224
- R.length,
239
+ K.length,
225
240
  ")"
226
- ] }) }), /* @__PURE__ */ g(b, { children: [
227
- /* @__PURE__ */ g("div", {
241
+ ] }) }), /* @__PURE__ */ y(C, { children: [
242
+ /* @__PURE__ */ y("div", {
228
243
  className: "grid grid-cols-2 gap-3",
229
- children: [R.map((e) => {
230
- let i = M[e];
231
- return /* @__PURE__ */ g("div", {
244
+ children: [K.map((e) => {
245
+ let i = B[e];
246
+ return /* @__PURE__ */ y("div", {
232
247
  className: "flex items-center gap-2 border rounded-md p-2.5",
233
- children: [i?.employeeName ? /* @__PURE__ */ h("span", {
248
+ children: [i?.employeeName ? /* @__PURE__ */ v("span", {
234
249
  className: "h-8 w-8 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium text-primary",
235
250
  title: i.employeeName,
236
251
  children: r(i.employeeName) || "?"
237
- }) : /* @__PURE__ */ h(t, {
252
+ }) : /* @__PURE__ */ v(t, {
238
253
  id: e,
239
254
  className: "h-8 w-8 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium text-primary"
240
- }), /* @__PURE__ */ g("div", {
255
+ }), /* @__PURE__ */ y("div", {
241
256
  className: "min-w-0",
242
- children: [/* @__PURE__ */ h("span", {
257
+ children: [/* @__PURE__ */ v("span", {
243
258
  className: "text-sm truncate block",
244
- children: i?.employeeName ?? /* @__PURE__ */ h(n, { id: e })
245
- }), i && /* @__PURE__ */ g("span", {
259
+ children: i?.employeeName ?? /* @__PURE__ */ v(n, { id: e })
260
+ }), i && /* @__PURE__ */ y("span", {
246
261
  className: "text-xs text-muted-foreground",
247
262
  children: [
248
263
  i.allocatedHours,
@@ -254,88 +269,88 @@ function T() {
254
269
  })]
255
270
  })]
256
271
  }, e);
257
- }), R.length === 0 && /* @__PURE__ */ h("p", {
272
+ }), K.length === 0 && /* @__PURE__ */ v("p", {
258
273
  className: "text-sm text-muted-foreground col-span-2 text-center py-4",
259
274
  children: "No team members assigned."
260
275
  })]
261
276
  }),
262
- j?.crewfoundryUnavailable && R.length > 0 && /* @__PURE__ */ h("p", {
277
+ z?.crewfoundryUnavailable && K.length > 0 && /* @__PURE__ */ v("p", {
263
278
  className: "text-xs text-muted-foreground mt-3 border-t pt-3",
264
279
  children: "Workforce allocation from CrewFoundry is unavailable for this workspace — no CrewFoundry module provisioned yet."
265
280
  }),
266
- !j?.crewfoundryUnavailable && (j?.unmatchedAssigneeIds?.length ?? 0) > 0 && /* @__PURE__ */ g("p", {
281
+ !z?.crewfoundryUnavailable && (z?.unmatchedAssigneeIds?.length ?? 0) > 0 && /* @__PURE__ */ y("p", {
267
282
  className: "text-xs text-muted-foreground mt-3 border-t pt-3",
268
- children: [j.unmatchedAssigneeIds.length, " assignee(s) have no matching CrewFoundry employee record — allocation hours shown only for matched employees."]
283
+ children: [z.unmatchedAssigneeIds.length, " assignee(s) have no matching CrewFoundry employee record — allocation hours shown only for matched employees."]
269
284
  })
270
285
  ] })] })
271
286
  ]
272
- }), /* @__PURE__ */ g(y, { children: [/* @__PURE__ */ h(x, { children: /* @__PURE__ */ h(S, { children: "Session Info" }) }), /* @__PURE__ */ g(b, {
287
+ }), /* @__PURE__ */ y(S, { children: [/* @__PURE__ */ v(w, { children: /* @__PURE__ */ v(T, { children: "Session Info" }) }), /* @__PURE__ */ y(C, {
273
288
  className: "space-y-3 text-sm",
274
289
  children: [
275
- /* @__PURE__ */ g("div", {
290
+ /* @__PURE__ */ y("div", {
276
291
  className: "flex items-center gap-2",
277
292
  children: [
278
- A.team ? /* @__PURE__ */ h(f, { className: "h-4 w-4 text-muted-foreground" }) : /* @__PURE__ */ h(u, { className: "h-4 w-4 text-muted-foreground" }),
279
- /* @__PURE__ */ h("span", {
293
+ R.team ? /* @__PURE__ */ v(h, { className: "h-4 w-4 text-muted-foreground" }) : /* @__PURE__ */ v(p, { className: "h-4 w-4 text-muted-foreground" }),
294
+ /* @__PURE__ */ v("span", {
280
295
  className: "text-muted-foreground",
281
- children: A.team ? "Team:" : "Project:"
296
+ children: R.team ? "Team:" : "Project:"
282
297
  }),
283
- /* @__PURE__ */ h("span", {
298
+ /* @__PURE__ */ v("span", {
284
299
  className: "font-medium",
285
- children: A.team ? A.team.name : A.project?.name ?? "Unknown project"
300
+ children: R.team ? R.team.name : R.project?.name ?? "Unknown project"
286
301
  })
287
302
  ]
288
303
  }),
289
- /* @__PURE__ */ g("div", {
304
+ /* @__PURE__ */ y("div", {
290
305
  className: "flex items-center gap-2",
291
306
  children: [
292
- /* @__PURE__ */ h(f, { className: "h-4 w-4 text-muted-foreground" }),
293
- /* @__PURE__ */ h("span", {
307
+ /* @__PURE__ */ v(h, { className: "h-4 w-4 text-muted-foreground" }),
308
+ /* @__PURE__ */ v("span", {
294
309
  className: "text-muted-foreground",
295
310
  children: "Assignees:"
296
311
  }),
297
- /* @__PURE__ */ h("span", {
312
+ /* @__PURE__ */ v("span", {
298
313
  className: "font-medium",
299
- children: R.length
314
+ children: K.length
300
315
  })
301
316
  ]
302
317
  }),
303
- /* @__PURE__ */ g("div", {
318
+ /* @__PURE__ */ y("div", {
304
319
  className: "flex items-center gap-2",
305
320
  children: [
306
- /* @__PURE__ */ h(l, { className: "h-4 w-4 text-muted-foreground" }),
307
- /* @__PURE__ */ h("span", {
321
+ /* @__PURE__ */ v(f, { className: "h-4 w-4 text-muted-foreground" }),
322
+ /* @__PURE__ */ v("span", {
308
323
  className: "text-muted-foreground",
309
324
  children: "Capacity:"
310
325
  }),
311
- /* @__PURE__ */ h("span", {
326
+ /* @__PURE__ */ v("span", {
312
327
  className: "font-medium",
313
- children: F == null ? "not set" : `${F} pts`
328
+ children: U == null ? "not set" : `${U} pts`
314
329
  })
315
330
  ]
316
331
  }),
317
- A.velocity != null && /* @__PURE__ */ g("div", {
332
+ R.velocity != null && /* @__PURE__ */ y("div", {
318
333
  className: "flex items-center gap-2",
319
334
  children: [
320
- /* @__PURE__ */ h(l, { className: "h-4 w-4 text-muted-foreground" }),
321
- /* @__PURE__ */ h("span", {
335
+ /* @__PURE__ */ v(f, { className: "h-4 w-4 text-muted-foreground" }),
336
+ /* @__PURE__ */ v("span", {
322
337
  className: "text-muted-foreground",
323
338
  children: "Velocity:"
324
339
  }),
325
- /* @__PURE__ */ g("span", {
340
+ /* @__PURE__ */ y("span", {
326
341
  className: "font-medium",
327
- children: [A.velocity, " pts"]
342
+ children: [R.velocity, " pts"]
328
343
  })
329
344
  ]
330
345
  }),
331
- A.goal && /* @__PURE__ */ g("div", {
346
+ R.goal && /* @__PURE__ */ y("div", {
332
347
  className: "border-t pt-3 mt-3",
333
- children: [/* @__PURE__ */ h("p", {
348
+ children: [/* @__PURE__ */ v("p", {
334
349
  className: "text-muted-foreground text-xs mb-1",
335
350
  children: "Goal"
336
- }), /* @__PURE__ */ h("p", {
351
+ }), /* @__PURE__ */ v("p", {
337
352
  className: "text-sm",
338
- children: A.goal
353
+ children: R.goal
339
354
  })]
340
355
  })
341
356
  ]
@@ -344,6 +359,6 @@ function T() {
344
359
  });
345
360
  }
346
361
  //#endregion
347
- export { T as ProjectsPlanningDetailPagePage };
362
+ export { k as ProjectsPlanningDetailPagePage };
348
363
 
349
364
  //# sourceMappingURL=ProjectsPlanningDetailPagePage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectsPlanningDetailPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/ProjectsPlanningDetailPagePage.tsx"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Card, CardContent, CardHeader, CardTitle, Badge, Button } from '@burdenoff/fe-libs/ui';\nimport { Users, BarChart3, FolderKanban, Pencil } from 'lucide-react';\nimport { useEntityId } from '../hooks/useEntityId';\nimport { usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { detailPath } from '../utils/rowNavigation';\nimport { PersonAvatar, PersonName, initialsOf } from '../people/People';\nimport { SprintLifecycleActions, SprintWorkItemsPanel } from '../sprints/SprintControls';\nimport { SprintDates } from '../sprints/SprintDates';\n\nconst GET_SPRINT_DETAIL = gql`\n query GetSprintDetail($id: ID!) {\n planmagnetSprint(id: $id) {\n id\n name\n projectId\n project {\n id\n name\n }\n teamId\n team {\n id\n name\n projects {\n id\n name\n }\n }\n status\n startDate\n endDate\n startedAt\n completedAt\n baselineStartDate\n baselineEndDate\n planChanges {\n field\n fromValue\n toValue\n sprintStatus\n changedBy\n changedAt\n }\n goal\n capacity\n velocity\n workItems {\n id\n key\n title\n status\n storyPoints\n assigneeId\n priority\n }\n }\n }\n`;\n\n// Real cross-layer CrewFoundry workforce capacity (BOFF-4444). Fails open on\n// the backend — an unreachable/unprovisioned CrewFoundry never blocks this\n// page, it just yields crewfoundryUnavailable: true, handled below.\nconst GET_SPRINT_CAPACITY = gql`\n query GetSprintCapacity($sprintId: ID!) {\n planmagnetSprintCapacity(sprintId: $sprintId) {\n sprintId\n crewfoundryUnavailable\n unmatchedAssigneeIds\n members {\n actorId\n employeeName\n department\n position\n allocatedHours\n billableHours\n utilizationPercent\n assignedStoryPoints\n assignedWorkItemCount\n }\n }\n }\n`;\n\nexport function ProjectsPlanningDetailPagePage() {\n const sprintId = useEntityId('sprintId');\n const navigate = usePlanMagnetNavigate();\n\n const {\n data,\n loading,\n error,\n } = // eslint-disable-next-line @typescript-eslint/no-explicit-any\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n useQuery<Record<string, any>>(GET_SPRINT_DETAIL, {\n variables: { id: sprintId },\n skip: !sprintId,\n });\n\n // Real cross-layer CrewFoundry capacity (BOFF-4444) — called unconditionally\n // (with `skip`) to keep hook order stable across the loading/error/loaded\n // renders above.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const { data: capacityData } = useQuery<Record<string, any>>(GET_SPRINT_CAPACITY, {\n variables: { sprintId },\n skip: !sprintId,\n });\n\n if (!sprintId)\n return (\n <div className=\"p-6 text-muted-foreground\">\n No planning session selected. Open one from the list.\n </div>\n );\n // Only before the first load: a refetch after a sprint action must not blank\n // the page (it unmounted the controls mid-action).\n if (loading && !data)\n return (\n <div className=\"flex items-center justify-center p-12\">\n <div className=\"animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full\" />\n </div>\n );\n if (error)\n return <div className=\"p-6 text-red-500\">Error loading planning session: {error.message}</div>;\n\n const sprint = data?.planmagnetSprint;\n if (!sprint) return <div className=\"p-6 text-muted-foreground\">Planning session not found.</div>;\n\n const capacity = capacityData?.planmagnetSprintCapacity;\n const allocationByAssignee: Record<\n string,\n {\n employeeName: string;\n allocatedHours: number;\n billableHours: number;\n utilizationPercent: number | null;\n }\n > = {};\n for (const member of capacity?.members ?? []) {\n allocationByAssignee[member.actorId] = {\n employeeName: member.employeeName,\n allocatedHours: member.allocatedHours,\n billableHours: member.billableHours,\n utilizationPercent: member.utilizationPercent,\n };\n }\n\n const workItems = sprint.workItems ?? [];\n const totalPoints = workItems.reduce(\n (sum: number, wi: { storyPoints: number | null }) => sum + (wi.storyPoints ?? 0),\n 0\n );\n const completedPoints = workItems\n .filter((wi: { status: string }) => wi.status === 'DONE')\n .reduce((sum: number, wi: { storyPoints: number | null }) => sum + (wi.storyPoints ?? 0), 0);\n // No capacity set means \"not planned\", not \"full\": this used to take the allocated points as the capacity and show\n // 100% utilisation in red, while the list showed no capacity for the same sprint (BOFF-7974).\n const sprintCapacity: number | null = sprint.capacity ?? null;\n const capPct =\n sprintCapacity && sprintCapacity > 0 ? Math.round((totalPoints / sprintCapacity) * 100) : null;\n const remaining = sprintCapacity == null ? null : Math.max(0, sprintCapacity - totalPoints);\n\n // Derive unique assignees from work items\n const uniqueAssignees = [\n ...new Set(\n workItems\n .map((wi: { assigneeId: string | null }) => wi.assigneeId)\n .filter(Boolean) as string[]\n ),\n ];\n\n // A sprint's scope is PROJECT xor TEAM (BOFF-8044). A team sprint has no `project` — showing\n // \"Unknown project\" for it (BOFF-8044 review) was wrong on the one page a user lands on right\n // after creating a team sprint. Its eligible work items are the team's own live member\n // projects, never the whole workspace (see SprintWorkItemsPanel/AddWorkItemsDialog).\n const teamProjects: { id: string; name: string }[] = sprint.team?.projects ?? [];\n const eligibleProjectIds = sprint.team\n ? teamProjects.map((p) => p.id)\n : sprint.projectId\n ? [sprint.projectId]\n : [];\n const projectNames = sprint.team\n ? Object.fromEntries(teamProjects.map((p) => [p.id, p.name]))\n : undefined;\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div>\n <h1 className=\"text-2xl font-semibold\">{sprint.name}</h1>\n <p className=\"text-sm text-muted-foreground\">\n {sprint.team\n ? `Team: ${sprint.team.name}`\n : (sprint.project?.name ?? 'Unknown project')}\n </p>\n <div className=\"mt-1\">\n <SprintDates sprint={sprint} />\n </div>\n </div>\n <div className=\"flex items-start gap-3\">\n <Badge className=\"capitalize\">{sprint.status.toLowerCase().replace('_', ' ')}</Badge>\n {/* The edit page existed but nothing linked to it, so a sprint's\n name, planned dates, goal and capacity could not be changed from\n the UI (BOFF-7954). Finished sprints are not edited here. */}\n {sprint.status !== 'COMPLETED' && sprint.status !== 'CANCELLED' && (\n <Button\n size=\"sm\"\n variant=\"outline\"\n onClick={() => navigate(detailPath('/projects/planning-edit-page', sprint.id))}\n data-testid=\"sprint-edit\"\n >\n <Pencil className=\"mr-1 h-4 w-4\" /> Edit\n </Button>\n )}\n <SprintLifecycleActions\n sprintId={sprint.id}\n sprintName={sprint.name}\n status={sprint.status}\n />\n </div>\n </div>\n <div className=\"grid grid-cols-1 lg:grid-cols-3 gap-6\">\n <div className=\"lg:col-span-2 space-y-6\">\n <Card>\n <CardHeader>\n <CardTitle>Capacity Allocation</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <div className=\"grid grid-cols-3 gap-4 text-center\">\n <div className=\"p-4 bg-muted rounded-md\">\n <p className=\"text-2xl font-bold\">{sprintCapacity ?? '—'}</p>\n <p className=\"text-xs text-muted-foreground\">\n {sprintCapacity == null ? 'No capacity set' : 'Capacity'}\n </p>\n </div>\n <div className=\"p-4 bg-primary/10 rounded-md\">\n <p className=\"text-2xl font-bold text-primary\">{totalPoints}</p>\n <p className=\"text-xs text-muted-foreground\">Allocated</p>\n </div>\n <div className=\"p-4 bg-muted rounded-md\">\n <p className=\"text-2xl font-bold\">{remaining ?? '—'}</p>\n <p className=\"text-xs text-muted-foreground\">Remaining</p>\n </div>\n </div>\n {capPct !== null ? (\n <div>\n <div className=\"flex justify-between text-sm mb-2\">\n <span className=\"text-muted-foreground\">Utilization</span>\n <span className=\"font-medium\">{capPct}%</span>\n </div>\n <div className=\"w-full h-4 rounded-full bg-muted overflow-hidden\">\n <div\n className={`h-full rounded-full ${capPct > 90 ? 'bg-destructive' : 'bg-success'}`}\n style={{ width: `${Math.min(capPct, 100)}%` }}\n />\n </div>\n </div>\n ) : (\n <p className=\"text-sm text-muted-foreground\">\n Set a capacity on the sprint to see its utilisation.\n </p>\n )}\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>Work Items</CardTitle>\n </CardHeader>\n <CardContent>\n <SprintWorkItemsPanel\n sprintId={sprint.id}\n eligibleProjectIds={eligibleProjectIds}\n projectNames={projectNames}\n status={sprint.status}\n items={workItems}\n />\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>Team Members ({uniqueAssignees.length})</CardTitle>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-2 gap-3\">\n {uniqueAssignees.map((assigneeId: string) => {\n const workforce = allocationByAssignee[assigneeId];\n return (\n <div\n key={assigneeId}\n className=\"flex items-center gap-2 border rounded-md p-2.5\"\n >\n {/* Initials from the name shown next to them, not from the UUID (BOFF-8000). */}\n {workforce?.employeeName ? (\n <span\n className=\"h-8 w-8 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium text-primary\"\n title={workforce.employeeName}\n >\n {initialsOf(workforce.employeeName) || '?'}\n </span>\n ) : (\n <PersonAvatar\n id={assigneeId}\n className=\"h-8 w-8 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium text-primary\"\n />\n )}\n <div className=\"min-w-0\">\n <span className=\"text-sm truncate block\">\n {workforce?.employeeName ?? <PersonName id={assigneeId} />}\n </span>\n {workforce && (\n <span className=\"text-xs text-muted-foreground\">\n {workforce.allocatedHours}h allocated ({workforce.billableHours}h\n billable)\n {workforce.utilizationPercent != null &&\n ` · ${workforce.utilizationPercent}% util`}\n </span>\n )}\n </div>\n </div>\n );\n })}\n {uniqueAssignees.length === 0 && (\n <p className=\"text-sm text-muted-foreground col-span-2 text-center py-4\">\n No team members assigned.\n </p>\n )}\n </div>\n {/* Real cross-layer CrewFoundry workforce allocation (BOFF-4444). */}\n {capacity?.crewfoundryUnavailable && uniqueAssignees.length > 0 && (\n <p className=\"text-xs text-muted-foreground mt-3 border-t pt-3\">\n Workforce allocation from CrewFoundry is unavailable for this workspace — no\n CrewFoundry module provisioned yet.\n </p>\n )}\n {!capacity?.crewfoundryUnavailable &&\n (capacity?.unmatchedAssigneeIds?.length ?? 0) > 0 && (\n <p className=\"text-xs text-muted-foreground mt-3 border-t pt-3\">\n {capacity.unmatchedAssigneeIds.length} assignee(s) have no matching CrewFoundry\n employee record — allocation hours shown only for matched employees.\n </p>\n )}\n </CardContent>\n </Card>\n </div>\n <Card>\n <CardHeader>\n <CardTitle>Session Info</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3 text-sm\">\n <div className=\"flex items-center gap-2\">\n {sprint.team ? (\n <Users className=\"h-4 w-4 text-muted-foreground\" />\n ) : (\n <FolderKanban className=\"h-4 w-4 text-muted-foreground\" />\n )}\n <span className=\"text-muted-foreground\">{sprint.team ? 'Team:' : 'Project:'}</span>\n <span className=\"font-medium\">\n {sprint.team ? sprint.team.name : (sprint.project?.name ?? 'Unknown project')}\n </span>\n </div>\n <div className=\"flex items-center gap-2\">\n <Users className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Assignees:</span>\n <span className=\"font-medium\">{uniqueAssignees.length}</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <BarChart3 className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Capacity:</span>\n <span className=\"font-medium\">\n {sprintCapacity == null ? 'not set' : `${sprintCapacity} pts`}\n </span>\n </div>\n {sprint.velocity != null && (\n <div className=\"flex items-center gap-2\">\n <BarChart3 className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Velocity:</span>\n <span className=\"font-medium\">{sprint.velocity} pts</span>\n </div>\n )}\n {sprint.goal && (\n <div className=\"border-t pt-3 mt-3\">\n <p className=\"text-muted-foreground text-xs mb-1\">Goal</p>\n <p className=\"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AgB,CAAA;OACxD,kBAAC,QAAD;QAAM,WAAU;kBAAhB,CAA+B,EAAO,UAAS,OAAW;;OACtD;;KAEP,EAAO,QACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBAAqC;OAAQ,CAAA,EAC1D,kBAAC,KAAD;OAAG,WAAU;iBAAW,EAAO;OAAS,CAAA,CACpC;;KAEI;MACT,EAAA,CAAA,CACH;KACF"}
1
+ {"version":3,"file":"ProjectsPlanningDetailPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/ProjectsPlanningDetailPagePage.tsx"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Card, CardContent, CardHeader, CardTitle, Badge, Button } from '@burdenoff/fe-libs/ui';\nimport { Users, BarChart3, FolderKanban, Pencil } from 'lucide-react';\nimport { useEntityId } from '../hooks/useEntityId';\nimport { usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { detailPath } from '../utils/rowNavigation';\nimport { PersonAvatar, PersonName, initialsOf } from '../people/People';\nimport { SprintLifecycleActions, SprintWorkItemsPanel } from '../sprints/SprintControls';\nimport { SprintDates } from '../sprints/SprintDates';\nimport { useLiveRefresh, combineLiveRefreshModes } from '../hooks/useLiveRefresh';\nimport { LiveStatus } from '../controls/LiveStatus';\n\n/** Every query this page's own numbers depend on. */\nconst SPRINT_DETAIL_QUERIES = ['GetSprintDetail', 'GetSprintCapacity'];\n\nconst GET_SPRINT_DETAIL = gql`\n query GetSprintDetail($id: ID!) {\n planmagnetSprint(id: $id) {\n id\n name\n projectId\n project {\n id\n name\n }\n teamId\n team {\n id\n name\n projects {\n id\n name\n }\n }\n status\n startDate\n endDate\n startedAt\n completedAt\n baselineStartDate\n baselineEndDate\n planChanges {\n field\n fromValue\n toValue\n sprintStatus\n changedBy\n changedAt\n }\n goal\n capacity\n velocity\n workItems {\n id\n key\n title\n status\n storyPoints\n assigneeId\n priority\n }\n }\n }\n`;\n\n// Real cross-layer CrewFoundry workforce capacity (BOFF-4444). Fails open on\n// the backend — an unreachable/unprovisioned CrewFoundry never blocks this\n// page, it just yields crewfoundryUnavailable: true, handled below.\nconst GET_SPRINT_CAPACITY = gql`\n query GetSprintCapacity($sprintId: ID!) {\n planmagnetSprintCapacity(sprintId: $sprintId) {\n sprintId\n crewfoundryUnavailable\n unmatchedAssigneeIds\n members {\n actorId\n employeeName\n department\n position\n allocatedHours\n billableHours\n utilizationPercent\n assignedStoryPoints\n assignedWorkItemCount\n }\n }\n }\n`;\n\nexport function ProjectsPlanningDetailPagePage() {\n const sprintId = useEntityId('sprintId');\n const navigate = usePlanMagnetNavigate();\n\n const {\n data,\n loading,\n error,\n } = // eslint-disable-next-line @typescript-eslint/no-explicit-any\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n useQuery<Record<string, any>>(GET_SPRINT_DETAIL, {\n variables: { id: sprintId },\n skip: !sprintId,\n });\n\n // Real cross-layer CrewFoundry capacity (BOFF-4444) — called unconditionally\n // (with `skip`) to keep hook order stable across the loading/error/loaded\n // renders above.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const { data: capacityData } = useQuery<Record<string, any>>(GET_SPRINT_CAPACITY, {\n variables: { sprintId },\n skip: !sprintId,\n });\n\n // Live updates (PDM-21/PDM-11): the sprint itself (status, dates, goal, capacity, its work item list) and —\n // once the sprint's project is known — that project's work items (a card's status/points changing without\n // ever being added or removed from the sprint). A team-scoped sprint has no `projectId` (BOFF-8044); the\n // work item stream simply stays off rather than falling back to every project's events.\n const sprintProjectId = data?.planmagnetSprint?.projectId ?? null;\n const sprintLive = useLiveRefresh({\n kind: 'sprint',\n sprintId,\n projectId: sprintProjectId,\n queries: SPRINT_DETAIL_QUERIES,\n });\n const workItemLive = useLiveRefresh({\n kind: 'workItem',\n projectId: sprintProjectId,\n enabled: Boolean(sprintProjectId),\n queries: SPRINT_DETAIL_QUERIES,\n });\n const liveMode = combineLiveRefreshModes(sprintLive.mode, workItemLive.mode);\n\n if (!sprintId)\n return (\n <div className=\"p-6 text-muted-foreground\">\n No planning session selected. Open one from the list.\n </div>\n );\n // Only before the first load: a refetch after a sprint action must not blank\n // the page (it unmounted the controls mid-action).\n if (loading && !data)\n return (\n <div className=\"flex items-center justify-center p-12\">\n <div className=\"animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full\" />\n </div>\n );\n if (error)\n return <div className=\"p-6 text-red-500\">Error loading planning session: {error.message}</div>;\n\n const sprint = data?.planmagnetSprint;\n if (!sprint) return <div className=\"p-6 text-muted-foreground\">Planning session not found.</div>;\n\n const capacity = capacityData?.planmagnetSprintCapacity;\n const allocationByAssignee: Record<\n string,\n {\n employeeName: string;\n allocatedHours: number;\n billableHours: number;\n utilizationPercent: number | null;\n }\n > = {};\n for (const member of capacity?.members ?? []) {\n allocationByAssignee[member.actorId] = {\n employeeName: member.employeeName,\n allocatedHours: member.allocatedHours,\n billableHours: member.billableHours,\n utilizationPercent: member.utilizationPercent,\n };\n }\n\n const workItems = sprint.workItems ?? [];\n const totalPoints = workItems.reduce(\n (sum: number, wi: { storyPoints: number | null }) => sum + (wi.storyPoints ?? 0),\n 0\n );\n const completedPoints = workItems\n .filter((wi: { status: string }) => wi.status === 'DONE')\n .reduce((sum: number, wi: { storyPoints: number | null }) => sum + (wi.storyPoints ?? 0), 0);\n // No capacity set means \"not planned\", not \"full\": this used to take the allocated points as the capacity and show\n // 100% utilisation in red, while the list showed no capacity for the same sprint (BOFF-7974).\n const sprintCapacity: number | null = sprint.capacity ?? null;\n const capPct =\n sprintCapacity && sprintCapacity > 0 ? Math.round((totalPoints / sprintCapacity) * 100) : null;\n const remaining = sprintCapacity == null ? null : Math.max(0, sprintCapacity - totalPoints);\n\n // Derive unique assignees from work items\n const uniqueAssignees = [\n ...new Set(\n workItems\n .map((wi: { assigneeId: string | null }) => wi.assigneeId)\n .filter(Boolean) as string[]\n ),\n ];\n\n // A sprint's scope is PROJECT xor TEAM (BOFF-8044). A team sprint has no `project` — showing\n // \"Unknown project\" for it (BOFF-8044 review) was wrong on the one page a user lands on right\n // after creating a team sprint. Its eligible work items are the team's own live member\n // projects, never the whole workspace (see SprintWorkItemsPanel/AddWorkItemsDialog).\n const teamProjects: { id: string; name: string }[] = sprint.team?.projects ?? [];\n const eligibleProjectIds = sprint.team\n ? teamProjects.map((p) => p.id)\n : sprint.projectId\n ? [sprint.projectId]\n : [];\n const projectNames = sprint.team\n ? Object.fromEntries(teamProjects.map((p) => [p.id, p.name]))\n : undefined;\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div>\n <div className=\"flex items-center gap-3\">\n <h1 className=\"text-2xl font-semibold\">{sprint.name}</h1>\n <LiveStatus mode={liveMode} />\n </div>\n <p className=\"text-sm text-muted-foreground\">\n {sprint.team\n ? `Team: ${sprint.team.name}`\n : (sprint.project?.name ?? 'Unknown project')}\n </p>\n <div className=\"mt-1\">\n <SprintDates sprint={sprint} />\n </div>\n </div>\n <div className=\"flex items-start gap-3\">\n <Badge className=\"capitalize\">{sprint.status.toLowerCase().replace('_', ' ')}</Badge>\n {/* The edit page existed but nothing linked to it, so a sprint's\n name, planned dates, goal and capacity could not be changed from\n the UI (BOFF-7954). Finished sprints are not edited here. */}\n {sprint.status !== 'COMPLETED' && sprint.status !== 'CANCELLED' && (\n <Button\n size=\"sm\"\n variant=\"outline\"\n onClick={() => navigate(detailPath('/projects/planning-edit-page', sprint.id))}\n data-testid=\"sprint-edit\"\n >\n <Pencil className=\"mr-1 h-4 w-4\" /> Edit\n </Button>\n )}\n <SprintLifecycleActions\n sprintId={sprint.id}\n sprintName={sprint.name}\n status={sprint.status}\n />\n </div>\n </div>\n <div className=\"grid grid-cols-1 lg:grid-cols-3 gap-6\">\n <div className=\"lg:col-span-2 space-y-6\">\n <Card>\n <CardHeader>\n <CardTitle>Capacity Allocation</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <div className=\"grid grid-cols-3 gap-4 text-center\">\n <div className=\"p-4 bg-muted rounded-md\">\n <p className=\"text-2xl font-bold\">{sprintCapacity ?? '—'}</p>\n <p className=\"text-xs text-muted-foreground\">\n {sprintCapacity == null ? 'No capacity set' : 'Capacity'}\n </p>\n </div>\n <div className=\"p-4 bg-primary/10 rounded-md\">\n <p className=\"text-2xl font-bold text-primary\">{totalPoints}</p>\n <p className=\"text-xs text-muted-foreground\">Allocated</p>\n </div>\n <div className=\"p-4 bg-muted rounded-md\">\n <p className=\"text-2xl font-bold\">{remaining ?? '—'}</p>\n <p className=\"text-xs text-muted-foreground\">Remaining</p>\n </div>\n </div>\n {capPct !== null ? (\n <div>\n <div className=\"flex justify-between text-sm mb-2\">\n <span className=\"text-muted-foreground\">Utilization</span>\n <span className=\"font-medium\">{capPct}%</span>\n </div>\n <div className=\"w-full h-4 rounded-full bg-muted overflow-hidden\">\n <div\n className={`h-full rounded-full ${capPct > 90 ? 'bg-destructive' : 'bg-success'}`}\n style={{ width: `${Math.min(capPct, 100)}%` }}\n />\n </div>\n </div>\n ) : (\n <p className=\"text-sm text-muted-foreground\">\n Set a capacity on the sprint to see its utilisation.\n </p>\n )}\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>Work Items</CardTitle>\n </CardHeader>\n <CardContent>\n <SprintWorkItemsPanel\n sprintId={sprint.id}\n eligibleProjectIds={eligibleProjectIds}\n projectNames={projectNames}\n status={sprint.status}\n items={workItems}\n />\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>Team Members ({uniqueAssignees.length})</CardTitle>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-2 gap-3\">\n {uniqueAssignees.map((assigneeId: string) => {\n const workforce = allocationByAssignee[assigneeId];\n return (\n <div\n key={assigneeId}\n className=\"flex items-center gap-2 border rounded-md p-2.5\"\n >\n {/* Initials from the name shown next to them, not from the UUID (BOFF-8000). */}\n {workforce?.employeeName ? (\n <span\n className=\"h-8 w-8 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium text-primary\"\n title={workforce.employeeName}\n >\n {initialsOf(workforce.employeeName) || '?'}\n </span>\n ) : (\n <PersonAvatar\n id={assigneeId}\n className=\"h-8 w-8 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium text-primary\"\n />\n )}\n <div className=\"min-w-0\">\n <span className=\"text-sm truncate block\">\n {workforce?.employeeName ?? <PersonName id={assigneeId} />}\n </span>\n {workforce && (\n <span className=\"text-xs text-muted-foreground\">\n {workforce.allocatedHours}h allocated ({workforce.billableHours}h\n billable)\n {workforce.utilizationPercent != null &&\n ` · ${workforce.utilizationPercent}% util`}\n </span>\n )}\n </div>\n </div>\n );\n })}\n {uniqueAssignees.length === 0 && (\n <p className=\"text-sm text-muted-foreground col-span-2 text-center py-4\">\n No team members assigned.\n </p>\n )}\n </div>\n {/* Real cross-layer CrewFoundry workforce allocation (BOFF-4444). */}\n {capacity?.crewfoundryUnavailable && uniqueAssignees.length > 0 && (\n <p className=\"text-xs text-muted-foreground mt-3 border-t pt-3\">\n Workforce allocation from CrewFoundry is unavailable for this workspace — no\n CrewFoundry module provisioned yet.\n </p>\n )}\n {!capacity?.crewfoundryUnavailable &&\n (capacity?.unmatchedAssigneeIds?.length ?? 0) > 0 && (\n <p className=\"text-xs text-muted-foreground mt-3 border-t pt-3\">\n {capacity.unmatchedAssigneeIds.length} assignee(s) have no matching CrewFoundry\n employee record — allocation hours shown only for matched employees.\n </p>\n )}\n </CardContent>\n </Card>\n </div>\n <Card>\n <CardHeader>\n <CardTitle>Session Info</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3 text-sm\">\n <div className=\"flex items-center gap-2\">\n {sprint.team ? (\n <Users className=\"h-4 w-4 text-muted-foreground\" />\n ) : (\n <FolderKanban className=\"h-4 w-4 text-muted-foreground\" />\n )}\n <span className=\"text-muted-foreground\">{sprint.team ? 'Team:' : 'Project:'}</span>\n <span className=\"font-medium\">\n {sprint.team ? sprint.team.name : (sprint.project?.name ?? 'Unknown project')}\n </span>\n </div>\n <div className=\"flex items-center gap-2\">\n <Users className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Assignees:</span>\n <span className=\"font-medium\">{uniqueAssignees.length}</span>\n </div>\n <div className=\"flex items-center gap-2\">\n <BarChart3 className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Capacity:</span>\n <span className=\"font-medium\">\n {sprintCapacity == null ? 'not set' : `${sprintCapacity} pts`}\n </span>\n </div>\n {sprint.velocity != null && (\n <div className=\"flex items-center gap-2\">\n <BarChart3 className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Velocity:</span>\n <span className=\"font-medium\">{sprint.velocity} pts</span>\n </div>\n )}\n {sprint.goal && (\n <div className=\"border-t pt-3 mt-3\">\n <p className=\"text-muted-foreground text-xs mb-1\">Goal</p>\n <p className=\"text-sm\">{sprint.goal}</p>\n </div>\n )}\n </CardContent>\n </Card>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAgBA,IAAM,IAAwB,CAAC,mBAAmB,oBAAoB,EAEhE,IAAoB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDvB,IAAsB,CAAG;;;;;;;;;;;;;;;;;;;;AAqB/B,SAAgB,IAAiC;CAC/C,IAAM,IAAW,EAAY,WAAW,EAClC,IAAW,GAAuB,EAElC,EACJ,SACA,YACA,aAGA,EAA8B,GAAmB;EAC/C,WAAW,EAAE,IAAI,GAAU;EAC3B,MAAM,CAAC;EACR,CAAC,EAME,EAAE,MAAM,MAAiB,EAA8B,GAAqB;EAChF,WAAW,EAAE,aAAU;EACvB,MAAM,CAAC;EACR,CAAC,EAMI,IAAkB,GAAM,kBAAkB,aAAa,MACvD,IAAa,EAAe;EAChC,MAAM;EACN;EACA,WAAW;EACX,SAAS;EACV,CAAC,EACI,IAAe,EA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-1 +1 @@
1
- {"version":3,"file":"ProjectsProjectDetailPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/ProjectsProjectDetailPagePage.tsx"],"names":[],"mappings":"AAyHA,wBAAgB,6BAA6B,4CA8iB5C"}
1
+ {"version":3,"file":"ProjectsProjectDetailPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/ProjectsProjectDetailPagePage.tsx"],"names":[],"mappings":"AAiIA,wBAAgB,6BAA6B,4CAmkB5C"}