@burdenoff/microfe-planmagnet 2026.930.14 → 2026.930.16
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.
- package/dist/planmagnet/PlanMagnetRoot.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoot.js +162 -129
- package/dist/planmagnet/PlanMagnetRoot.js.map +1 -1
- package/dist/planmagnet/PlanMagnetRoutes.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoutes.js +243 -227
- package/dist/planmagnet/PlanMagnetRoutes.js.map +1 -1
- package/dist/planmagnet/comments/RoadmapComments.d.ts +29 -0
- package/dist/planmagnet/comments/RoadmapComments.d.ts.map +1 -0
- package/dist/planmagnet/comments/RoadmapComments.js +310 -0
- package/dist/planmagnet/comments/RoadmapComments.js.map +1 -0
- package/dist/planmagnet/dashboards/DashboardUI.d.ts +79 -0
- package/dist/planmagnet/dashboards/DashboardUI.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/DashboardUI.js +126 -0
- package/dist/planmagnet/dashboards/DashboardUI.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/DeliveryTimelineCard.d.ts +7 -0
- package/dist/planmagnet/dashboards/cards/DeliveryTimelineCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/DeliveryTimelineCard.js +92 -0
- package/dist/planmagnet/dashboards/cards/DeliveryTimelineCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/ObjectivesProgressCard.d.ts +7 -0
- package/dist/planmagnet/dashboards/cards/ObjectivesProgressCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/ObjectivesProgressCard.js +68 -0
- package/dist/planmagnet/dashboards/cards/ObjectivesProgressCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/PortfolioHealthCard.d.ts +5 -0
- package/dist/planmagnet/dashboards/cards/PortfolioHealthCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/PortfolioHealthCard.js +118 -0
- package/dist/planmagnet/dashboards/cards/PortfolioHealthCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/QualityMetricsCard.d.ts +8 -0
- package/dist/planmagnet/dashboards/cards/QualityMetricsCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/QualityMetricsCard.js +94 -0
- package/dist/planmagnet/dashboards/cards/QualityMetricsCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/RiskSeverityCard.d.ts +6 -0
- package/dist/planmagnet/dashboards/cards/RiskSeverityCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/RiskSeverityCard.js +90 -0
- package/dist/planmagnet/dashboards/cards/RiskSeverityCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/RoadmapHorizonCard.d.ts +5 -0
- package/dist/planmagnet/dashboards/cards/RoadmapHorizonCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/RoadmapHorizonCard.js +242 -0
- package/dist/planmagnet/dashboards/cards/RoadmapHorizonCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/SprintCapacityCard.d.ts +5 -0
- package/dist/planmagnet/dashboards/cards/SprintCapacityCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/SprintCapacityCard.js +125 -0
- package/dist/planmagnet/dashboards/cards/SprintCapacityCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/TaskCompletionCard.d.ts +6 -0
- package/dist/planmagnet/dashboards/cards/TaskCompletionCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/TaskCompletionCard.js +85 -0
- package/dist/planmagnet/dashboards/cards/TaskCompletionCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/TeamCapacityCard.d.ts +10 -0
- package/dist/planmagnet/dashboards/cards/TeamCapacityCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/TeamCapacityCard.js +115 -0
- package/dist/planmagnet/dashboards/cards/TeamCapacityCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/TeamOverviewCard.d.ts +5 -0
- package/dist/planmagnet/dashboards/cards/TeamOverviewCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/TeamOverviewCard.js +70 -0
- package/dist/planmagnet/dashboards/cards/TeamOverviewCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/TeamWorkloadCard.d.ts +9 -0
- package/dist/planmagnet/dashboards/cards/TeamWorkloadCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/TeamWorkloadCard.js +373 -0
- package/dist/planmagnet/dashboards/cards/TeamWorkloadCard.js.map +1 -0
- package/dist/planmagnet/dashboards/cards/TimeLoggedCard.d.ts +8 -0
- package/dist/planmagnet/dashboards/cards/TimeLoggedCard.d.ts.map +1 -0
- package/dist/planmagnet/dashboards/cards/TimeLoggedCard.js +247 -0
- package/dist/planmagnet/dashboards/cards/TimeLoggedCard.js.map +1 -0
- package/dist/planmagnet/pages/DashboardsExecutivePagePage.d.ts +8 -0
- package/dist/planmagnet/pages/DashboardsExecutivePagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/DashboardsExecutivePagePage.js +61 -0
- package/dist/planmagnet/pages/DashboardsExecutivePagePage.js.map +1 -0
- package/dist/planmagnet/pages/DashboardsLeadershipPagePage.d.ts +8 -0
- package/dist/planmagnet/pages/DashboardsLeadershipPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/DashboardsLeadershipPagePage.js +62 -0
- package/dist/planmagnet/pages/DashboardsLeadershipPagePage.js.map +1 -0
- package/dist/planmagnet/pages/DashboardsProjectManagerPagePage.d.ts +7 -0
- package/dist/planmagnet/pages/DashboardsProjectManagerPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/DashboardsProjectManagerPagePage.js +117 -0
- package/dist/planmagnet/pages/DashboardsProjectManagerPagePage.js.map +1 -0
- package/dist/planmagnet/pages/DashboardsTeamUtilizationPagePage.d.ts +6 -0
- package/dist/planmagnet/pages/DashboardsTeamUtilizationPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/DashboardsTeamUtilizationPagePage.js +84 -0
- package/dist/planmagnet/pages/DashboardsTeamUtilizationPagePage.js.map +1 -0
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +130 -112
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/analytics/SprintDeliveryCards.d.ts +10 -0
- package/dist/planmagnet/pages/analytics/SprintDeliveryCards.d.ts.map +1 -0
- package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js +219 -0
- package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js.map +1 -0
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.d.ts.map +1 -1
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js +157 -151
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js.map +1 -1
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.d.ts +4 -0
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.d.ts.map +1 -0
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.js +370 -0
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.js.map +1 -0
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.d.ts +4 -0
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.d.ts.map +1 -0
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.js +396 -0
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { PersonName as e } from "../../people/People.js";
|
|
2
|
+
import { DashboardCard as t, cappedSubtitle as n } from "../DashboardUI.js";
|
|
3
|
+
import { ListTodo as r } from "lucide-react";
|
|
4
|
+
import { gql as i } from "@apollo/client";
|
|
5
|
+
import { useQuery as a } from "@apollo/client/react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
|
+
//#region src/planmagnet/dashboards/cards/TeamWorkloadCard.tsx
|
|
9
|
+
var l = 12, u = i`
|
|
10
|
+
query TeamMemberWorkload(
|
|
11
|
+
$workspaceId: ID!
|
|
12
|
+
$m0: String!
|
|
13
|
+
$m1: String!
|
|
14
|
+
$m2: String!
|
|
15
|
+
$m3: String!
|
|
16
|
+
$m4: String!
|
|
17
|
+
$m5: String!
|
|
18
|
+
$m6: String!
|
|
19
|
+
$m7: String!
|
|
20
|
+
$m8: String!
|
|
21
|
+
$m9: String!
|
|
22
|
+
$m10: String!
|
|
23
|
+
$m11: String!
|
|
24
|
+
) {
|
|
25
|
+
m0_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m0 }) {
|
|
26
|
+
total
|
|
27
|
+
blocked
|
|
28
|
+
byStatus {
|
|
29
|
+
status
|
|
30
|
+
count
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
m0_done: planmagnetWorkItems(
|
|
34
|
+
workspaceId: $workspaceId
|
|
35
|
+
filter: { assigneeId: $m0, status: DONE }
|
|
36
|
+
pagination: { first: 50 }
|
|
37
|
+
) {
|
|
38
|
+
totalCount
|
|
39
|
+
items {
|
|
40
|
+
id
|
|
41
|
+
statusSince
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
m1_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m1 }) {
|
|
45
|
+
total
|
|
46
|
+
blocked
|
|
47
|
+
byStatus {
|
|
48
|
+
status
|
|
49
|
+
count
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
m1_done: planmagnetWorkItems(
|
|
53
|
+
workspaceId: $workspaceId
|
|
54
|
+
filter: { assigneeId: $m1, status: DONE }
|
|
55
|
+
pagination: { first: 50 }
|
|
56
|
+
) {
|
|
57
|
+
totalCount
|
|
58
|
+
items {
|
|
59
|
+
id
|
|
60
|
+
statusSince
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
m2_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m2 }) {
|
|
64
|
+
total
|
|
65
|
+
blocked
|
|
66
|
+
byStatus {
|
|
67
|
+
status
|
|
68
|
+
count
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
m2_done: planmagnetWorkItems(
|
|
72
|
+
workspaceId: $workspaceId
|
|
73
|
+
filter: { assigneeId: $m2, status: DONE }
|
|
74
|
+
pagination: { first: 50 }
|
|
75
|
+
) {
|
|
76
|
+
totalCount
|
|
77
|
+
items {
|
|
78
|
+
id
|
|
79
|
+
statusSince
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
m3_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m3 }) {
|
|
83
|
+
total
|
|
84
|
+
blocked
|
|
85
|
+
byStatus {
|
|
86
|
+
status
|
|
87
|
+
count
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
m3_done: planmagnetWorkItems(
|
|
91
|
+
workspaceId: $workspaceId
|
|
92
|
+
filter: { assigneeId: $m3, status: DONE }
|
|
93
|
+
pagination: { first: 50 }
|
|
94
|
+
) {
|
|
95
|
+
totalCount
|
|
96
|
+
items {
|
|
97
|
+
id
|
|
98
|
+
statusSince
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
m4_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m4 }) {
|
|
102
|
+
total
|
|
103
|
+
blocked
|
|
104
|
+
byStatus {
|
|
105
|
+
status
|
|
106
|
+
count
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
m4_done: planmagnetWorkItems(
|
|
110
|
+
workspaceId: $workspaceId
|
|
111
|
+
filter: { assigneeId: $m4, status: DONE }
|
|
112
|
+
pagination: { first: 50 }
|
|
113
|
+
) {
|
|
114
|
+
totalCount
|
|
115
|
+
items {
|
|
116
|
+
id
|
|
117
|
+
statusSince
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
m5_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m5 }) {
|
|
121
|
+
total
|
|
122
|
+
blocked
|
|
123
|
+
byStatus {
|
|
124
|
+
status
|
|
125
|
+
count
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
m5_done: planmagnetWorkItems(
|
|
129
|
+
workspaceId: $workspaceId
|
|
130
|
+
filter: { assigneeId: $m5, status: DONE }
|
|
131
|
+
pagination: { first: 50 }
|
|
132
|
+
) {
|
|
133
|
+
totalCount
|
|
134
|
+
items {
|
|
135
|
+
id
|
|
136
|
+
statusSince
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
m6_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m6 }) {
|
|
140
|
+
total
|
|
141
|
+
blocked
|
|
142
|
+
byStatus {
|
|
143
|
+
status
|
|
144
|
+
count
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
m6_done: planmagnetWorkItems(
|
|
148
|
+
workspaceId: $workspaceId
|
|
149
|
+
filter: { assigneeId: $m6, status: DONE }
|
|
150
|
+
pagination: { first: 50 }
|
|
151
|
+
) {
|
|
152
|
+
totalCount
|
|
153
|
+
items {
|
|
154
|
+
id
|
|
155
|
+
statusSince
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
m7_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m7 }) {
|
|
159
|
+
total
|
|
160
|
+
blocked
|
|
161
|
+
byStatus {
|
|
162
|
+
status
|
|
163
|
+
count
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
m7_done: planmagnetWorkItems(
|
|
167
|
+
workspaceId: $workspaceId
|
|
168
|
+
filter: { assigneeId: $m7, status: DONE }
|
|
169
|
+
pagination: { first: 50 }
|
|
170
|
+
) {
|
|
171
|
+
totalCount
|
|
172
|
+
items {
|
|
173
|
+
id
|
|
174
|
+
statusSince
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
m8_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m8 }) {
|
|
178
|
+
total
|
|
179
|
+
blocked
|
|
180
|
+
byStatus {
|
|
181
|
+
status
|
|
182
|
+
count
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
m8_done: planmagnetWorkItems(
|
|
186
|
+
workspaceId: $workspaceId
|
|
187
|
+
filter: { assigneeId: $m8, status: DONE }
|
|
188
|
+
pagination: { first: 50 }
|
|
189
|
+
) {
|
|
190
|
+
totalCount
|
|
191
|
+
items {
|
|
192
|
+
id
|
|
193
|
+
statusSince
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
m9_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m9 }) {
|
|
197
|
+
total
|
|
198
|
+
blocked
|
|
199
|
+
byStatus {
|
|
200
|
+
status
|
|
201
|
+
count
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
m9_done: planmagnetWorkItems(
|
|
205
|
+
workspaceId: $workspaceId
|
|
206
|
+
filter: { assigneeId: $m9, status: DONE }
|
|
207
|
+
pagination: { first: 50 }
|
|
208
|
+
) {
|
|
209
|
+
totalCount
|
|
210
|
+
items {
|
|
211
|
+
id
|
|
212
|
+
statusSince
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
m10_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m10 }) {
|
|
216
|
+
total
|
|
217
|
+
blocked
|
|
218
|
+
byStatus {
|
|
219
|
+
status
|
|
220
|
+
count
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
m10_done: planmagnetWorkItems(
|
|
224
|
+
workspaceId: $workspaceId
|
|
225
|
+
filter: { assigneeId: $m10, status: DONE }
|
|
226
|
+
pagination: { first: 50 }
|
|
227
|
+
) {
|
|
228
|
+
totalCount
|
|
229
|
+
items {
|
|
230
|
+
id
|
|
231
|
+
statusSince
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
m11_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m11 }) {
|
|
235
|
+
total
|
|
236
|
+
blocked
|
|
237
|
+
byStatus {
|
|
238
|
+
status
|
|
239
|
+
count
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
m11_done: planmagnetWorkItems(
|
|
243
|
+
workspaceId: $workspaceId
|
|
244
|
+
filter: { assigneeId: $m11, status: DONE }
|
|
245
|
+
pagination: { first: 50 }
|
|
246
|
+
) {
|
|
247
|
+
totalCount
|
|
248
|
+
items {
|
|
249
|
+
id
|
|
250
|
+
statusSince
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
`;
|
|
255
|
+
function d(e, t) {
|
|
256
|
+
let n = e?.[t];
|
|
257
|
+
return {
|
|
258
|
+
total: n?.total ?? 0,
|
|
259
|
+
blocked: n?.blocked ?? 0,
|
|
260
|
+
byStatus: n?.byStatus ?? []
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
function f(e, t) {
|
|
264
|
+
let n = e?.[t];
|
|
265
|
+
return {
|
|
266
|
+
totalCount: n?.totalCount ?? 0,
|
|
267
|
+
items: n?.items ?? []
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
function p({ workspaceId: i, memberActorIds: p, sinceIso: m, weeks: h, onDrillDown: g }) {
|
|
271
|
+
let { t: _ } = c(), v = p.slice(0, l), y = Array.from({ length: l }, (e, t) => v[t] ?? ""), { data: b, loading: x, error: S } = a(u, {
|
|
272
|
+
variables: {
|
|
273
|
+
workspaceId: i ?? "",
|
|
274
|
+
m0: y[0],
|
|
275
|
+
m1: y[1],
|
|
276
|
+
m2: y[2],
|
|
277
|
+
m3: y[3],
|
|
278
|
+
m4: y[4],
|
|
279
|
+
m5: y[5],
|
|
280
|
+
m6: y[6],
|
|
281
|
+
m7: y[7],
|
|
282
|
+
m8: y[8],
|
|
283
|
+
m9: y[9],
|
|
284
|
+
m10: y[10],
|
|
285
|
+
m11: y[11]
|
|
286
|
+
},
|
|
287
|
+
skip: !i || v.length === 0
|
|
288
|
+
}), C = v.map((e, t) => {
|
|
289
|
+
let n = d(b, `m${t}_counts`), r = f(b, `m${t}_done`), i = new Map(n.byStatus.map((e) => [e.status, e.count])), a = i.get("CANCELLED") ?? 0, o = i.get("DONE") ?? 0, s = n.total - a - o, c = r.items.filter((e) => !!e.statusSince && e.statusSince >= m).length;
|
|
290
|
+
return {
|
|
291
|
+
actorId: e,
|
|
292
|
+
open: s,
|
|
293
|
+
blocked: n.blocked,
|
|
294
|
+
recentDone: c,
|
|
295
|
+
sampled: r.items.length,
|
|
296
|
+
sampleTotal: r.totalCount
|
|
297
|
+
};
|
|
298
|
+
}), w = C.some((e) => e.sampleTotal > e.sampled);
|
|
299
|
+
return /* @__PURE__ */ o(t, {
|
|
300
|
+
icon: /* @__PURE__ */ o(r, { className: "h-4 w-4" }),
|
|
301
|
+
title: _("planmagnet.dashboards.team.workload.title", "Workload & delivery"),
|
|
302
|
+
definition: _("planmagnet.dashboards.team.workload.definition", "Open work items per member, and items each completed in the last {{weeks}} weeks.", { weeks: h }),
|
|
303
|
+
loading: x && !b,
|
|
304
|
+
error: S,
|
|
305
|
+
empty: p.length === 0,
|
|
306
|
+
emptyMessage: _("planmagnet.dashboards.team.workload.empty", "This team has no members yet."),
|
|
307
|
+
drillDown: {
|
|
308
|
+
label: _("planmagnet.dashboards.team.workload.drillDown", "Open team"),
|
|
309
|
+
onClick: g
|
|
310
|
+
},
|
|
311
|
+
children: /* @__PURE__ */ s("div", {
|
|
312
|
+
className: "space-y-2",
|
|
313
|
+
children: [
|
|
314
|
+
/* @__PURE__ */ o("p", {
|
|
315
|
+
className: "text-xs text-muted-foreground",
|
|
316
|
+
children: n(v.length, p.length, "member(s) shown")
|
|
317
|
+
}),
|
|
318
|
+
/* @__PURE__ */ s("table", {
|
|
319
|
+
className: "w-full text-sm",
|
|
320
|
+
children: [/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ s("tr", {
|
|
321
|
+
className: "text-left text-xs text-muted-foreground",
|
|
322
|
+
children: [
|
|
323
|
+
/* @__PURE__ */ o("th", {
|
|
324
|
+
className: "py-1 pr-2 font-normal",
|
|
325
|
+
children: _("planmagnet.dashboards.team.workload.person", "Person")
|
|
326
|
+
}),
|
|
327
|
+
/* @__PURE__ */ o("th", {
|
|
328
|
+
className: "py-1 pr-2 text-right font-normal",
|
|
329
|
+
children: _("planmagnet.dashboards.team.workload.open", "Open")
|
|
330
|
+
}),
|
|
331
|
+
/* @__PURE__ */ o("th", {
|
|
332
|
+
className: "py-1 pr-2 text-right font-normal",
|
|
333
|
+
children: _("planmagnet.dashboards.team.workload.blocked", "Blocked")
|
|
334
|
+
}),
|
|
335
|
+
/* @__PURE__ */ o("th", {
|
|
336
|
+
className: "py-1 text-right font-normal",
|
|
337
|
+
children: _("planmagnet.dashboards.team.workload.recent", "Done ({{weeks}}w)", { weeks: h })
|
|
338
|
+
})
|
|
339
|
+
]
|
|
340
|
+
}) }), /* @__PURE__ */ o("tbody", { children: C.map((t) => /* @__PURE__ */ s("tr", {
|
|
341
|
+
className: "border-t",
|
|
342
|
+
children: [
|
|
343
|
+
/* @__PURE__ */ o("td", {
|
|
344
|
+
className: "py-1.5 pr-2",
|
|
345
|
+
children: /* @__PURE__ */ o(e, { id: t.actorId })
|
|
346
|
+
}),
|
|
347
|
+
/* @__PURE__ */ o("td", {
|
|
348
|
+
className: "py-1.5 pr-2 text-right tabular-nums",
|
|
349
|
+
children: t.open
|
|
350
|
+
}),
|
|
351
|
+
/* @__PURE__ */ o("td", {
|
|
352
|
+
className: `py-1.5 pr-2 text-right tabular-nums ${t.blocked > 0 ? "text-status-warning-text" : ""}`,
|
|
353
|
+
children: t.blocked
|
|
354
|
+
}),
|
|
355
|
+
/* @__PURE__ */ s("td", {
|
|
356
|
+
className: "py-1.5 text-right tabular-nums",
|
|
357
|
+
children: [t.recentDone, t.sampleTotal > t.sampled ? "*" : ""]
|
|
358
|
+
})
|
|
359
|
+
]
|
|
360
|
+
}, t.actorId)) })]
|
|
361
|
+
}),
|
|
362
|
+
w ? /* @__PURE__ */ o("p", {
|
|
363
|
+
className: "text-xs text-muted-foreground",
|
|
364
|
+
children: _("planmagnet.dashboards.team.workload.sampledNote", "* Measured from the 50 most recently returned Done items — a member who closed more than that in the window may be undercounted.")
|
|
365
|
+
}) : null
|
|
366
|
+
]
|
|
367
|
+
})
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
//#endregion
|
|
371
|
+
export { p as TeamWorkloadCard };
|
|
372
|
+
|
|
373
|
+
//# sourceMappingURL=TeamWorkloadCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamWorkloadCard.js","names":[],"sources":["../../../../src/planmagnet/dashboards/cards/TeamWorkloadCard.tsx"],"sourcesContent":["import { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { ListTodo } from 'lucide-react';\nimport { DashboardCard, cappedSubtitle } from '../DashboardUI';\nimport { PersonName } from '../../people/People';\n\n/**\n * Workload distribution + individual delivery (ANR-28), combined into one table: both bullets read the same\n * per-member data (open work items, items that reached Done), so one card avoids fetching it twice.\n *\n * ONE request for up to `MAX_MEMBERS` team members, via GraphQL aliases — never one request per member.\n * `assigneeId` on `PlanmagnetWorkItemFilter` is a plain nullable String, so an unused slot is padded with\n * `\"\"`, which matches no work item and comes back as a harmless 0/empty rather than a GraphQL error. A\n * member beyond the cap is simply not queried; the card says so rather than silently dropping them.\n *\n * \"Completed in the last {{weeks}} weeks\" reads `WorkItem.statusSince` on the member's DONE items — the\n * schema has no per-member, date-bounded completion count (`planmagnetMyDeliveryTrend` is scoped to the\n * CALLING actor only, never an arbitrary member). `statusSince` is when the item entered DONE, so it is the\n * right field to measure against, but the DONE list itself is capped at 50 items per member and not\n * ordered by recency by the API — a member who closed more than 50 items in the window is undercounted; the\n * card says so per row via the sampled/total note it shows in the table's caption.\n */\nconst MAX_MEMBERS = 12;\n\nconst GET_TEAM_WORKLOAD = gql`\n query TeamMemberWorkload(\n $workspaceId: ID!\n $m0: String!\n $m1: String!\n $m2: String!\n $m3: String!\n $m4: String!\n $m5: String!\n $m6: String!\n $m7: String!\n $m8: String!\n $m9: String!\n $m10: String!\n $m11: String!\n ) {\n m0_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m0 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m0_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m0, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m1_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m1 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m1_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m1, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m2_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m2 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m2_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m2, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m3_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m3 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m3_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m3, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m4_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m4 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m4_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m4, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m5_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m5 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m5_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m5, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m6_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m6 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m6_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m6, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m7_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m7 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m7_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m7, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m8_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m8 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m8_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m8, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m9_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m9 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m9_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m9, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m10_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m10 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m10_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m10, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n m11_counts: planmagnetWorkItemCounts(workspaceId: $workspaceId, filter: { assigneeId: $m11 }) {\n total\n blocked\n byStatus {\n status\n count\n }\n }\n m11_done: planmagnetWorkItems(\n workspaceId: $workspaceId\n filter: { assigneeId: $m11, status: DONE }\n pagination: { first: 50 }\n ) {\n totalCount\n items {\n id\n statusSince\n }\n }\n }\n`;\n\ninterface CountsBlock {\n total: number;\n blocked: number;\n byStatus: { status: string; count: number }[];\n}\ninterface DoneBlock {\n totalCount: number;\n items: { id: string; statusSince: string | null }[];\n}\ntype WorkloadQueryData = Record<string, unknown>;\n\nfunction readCounts(data: WorkloadQueryData | undefined, key: string): CountsBlock {\n const raw = data?.[key] as Partial<CountsBlock> | undefined;\n return { total: raw?.total ?? 0, blocked: raw?.blocked ?? 0, byStatus: raw?.byStatus ?? [] };\n}\nfunction readDone(data: WorkloadQueryData | undefined, key: string): DoneBlock {\n const raw = data?.[key] as Partial<DoneBlock> | undefined;\n return { totalCount: raw?.totalCount ?? 0, items: raw?.items ?? [] };\n}\n\nexport function TeamWorkloadCard({\n workspaceId,\n memberActorIds,\n sinceIso,\n weeks,\n onDrillDown,\n}: {\n workspaceId?: string | null;\n memberActorIds: string[];\n /** Cutoff for \"completed recently\" — a WorkItem's statusSince on/after this counts. */\n sinceIso: string;\n weeks: number;\n onDrillDown: () => void;\n}) {\n const { t } = useI18n();\n const shown = memberActorIds.slice(0, MAX_MEMBERS);\n const slots = Array.from({ length: MAX_MEMBERS }, (_, i) => shown[i] ?? '');\n\n const { data, loading, error } = useQuery<WorkloadQueryData>(GET_TEAM_WORKLOAD, {\n variables: {\n workspaceId: workspaceId ?? '',\n m0: slots[0],\n m1: slots[1],\n m2: slots[2],\n m3: slots[3],\n m4: slots[4],\n m5: slots[5],\n m6: slots[6],\n m7: slots[7],\n m8: slots[8],\n m9: slots[9],\n m10: slots[10],\n m11: slots[11],\n },\n skip: !workspaceId || shown.length === 0,\n });\n\n const rows = shown.map((actorId, i) => {\n const counts = readCounts(data, `m${i}_counts`);\n const done = readDone(data, `m${i}_done`);\n const byStatus = new Map(counts.byStatus.map((s) => [s.status, s.count]));\n const cancelled = byStatus.get('CANCELLED') ?? 0;\n const doneCount = byStatus.get('DONE') ?? 0;\n const open = counts.total - cancelled - doneCount;\n const recentDone = done.items.filter(\n (item) => !!item.statusSince && item.statusSince >= sinceIso\n ).length;\n return {\n actorId,\n open,\n blocked: counts.blocked,\n recentDone,\n sampled: done.items.length,\n sampleTotal: done.totalCount,\n };\n });\n const anySampleCapped = rows.some((r) => r.sampleTotal > r.sampled);\n\n return (\n <DashboardCard\n icon={<ListTodo className=\"h-4 w-4\" />}\n title={t('planmagnet.dashboards.team.workload.title', 'Workload & delivery')}\n definition={t(\n 'planmagnet.dashboards.team.workload.definition',\n 'Open work items per member, and items each completed in the last {{weeks}} weeks.',\n { weeks }\n )}\n loading={loading && !data}\n error={error}\n empty={memberActorIds.length === 0}\n emptyMessage={t('planmagnet.dashboards.team.workload.empty', 'This team has no members yet.')}\n drillDown={{\n label: t('planmagnet.dashboards.team.workload.drillDown', 'Open team'),\n onClick: onDrillDown,\n }}\n >\n <div className=\"space-y-2\">\n <p className=\"text-xs text-muted-foreground\">\n {cappedSubtitle(shown.length, memberActorIds.length, 'member(s) shown')}\n </p>\n <table className=\"w-full text-sm\">\n <thead>\n <tr className=\"text-left text-xs text-muted-foreground\">\n <th className=\"py-1 pr-2 font-normal\">\n {t('planmagnet.dashboards.team.workload.person', 'Person')}\n </th>\n <th className=\"py-1 pr-2 text-right font-normal\">\n {t('planmagnet.dashboards.team.workload.open', 'Open')}\n </th>\n <th className=\"py-1 pr-2 text-right font-normal\">\n {t('planmagnet.dashboards.team.workload.blocked', 'Blocked')}\n </th>\n <th className=\"py-1 text-right font-normal\">\n {t('planmagnet.dashboards.team.workload.recent', 'Done ({{weeks}}w)', { weeks })}\n </th>\n </tr>\n </thead>\n <tbody>\n {rows.map((row) => (\n <tr key={row.actorId} className=\"border-t\">\n <td className=\"py-1.5 pr-2\">\n <PersonName id={row.actorId} />\n </td>\n <td className=\"py-1.5 pr-2 text-right tabular-nums\">{row.open}</td>\n <td\n className={`py-1.5 pr-2 text-right tabular-nums ${row.blocked > 0 ? 'text-status-warning-text' : ''}`}\n >\n {row.blocked}\n </td>\n <td className=\"py-1.5 text-right tabular-nums\">\n {row.recentDone}\n {row.sampleTotal > row.sampled ? '*' : ''}\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n {anySampleCapped ? (\n <p className=\"text-xs text-muted-foreground\">\n {t(\n 'planmagnet.dashboards.team.workload.sampledNote',\n '* Measured from the 50 most recently returned Done items — a member who closed more than that in the window may be undercounted.'\n )}\n </p>\n ) : null}\n </div>\n </DashboardCard>\n );\n}\n"],"mappings":";;;;;;;;AAuBA,IAAM,IAAc,IAEd,IAAoB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkQ7B,SAAS,EAAW,GAAqC,GAA0B;CACjF,IAAM,IAAM,IAAO;AACnB,QAAO;EAAE,OAAO,GAAK,SAAS;EAAG,SAAS,GAAK,WAAW;EAAG,UAAU,GAAK,YAAY,EAAE;EAAE;;AAE9F,SAAS,EAAS,GAAqC,GAAwB;CAC7E,IAAM,IAAM,IAAO;AACnB,QAAO;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AC,KAAD;KAAG,WAAU;eACV,EACC,mDACA,mIACD;KACC,CAAA,GACF;IACA;;EACQ,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function TimeLoggedCard({ workspaceId, memberActorIds, sinceIso, weeks, onDrillDown, }: {
|
|
2
|
+
workspaceId?: string | null;
|
|
3
|
+
memberActorIds: string[];
|
|
4
|
+
sinceIso: string;
|
|
5
|
+
weeks: number;
|
|
6
|
+
onDrillDown: () => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=TimeLoggedCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeLoggedCard.d.ts","sourceRoot":"","sources":["../../../../src/planmagnet/dashboards/cards/TimeLoggedCard.tsx"],"names":[],"mappings":"AAqLA,wBAAgB,cAAc,CAAC,EAC7B,WAAW,EACX,cAAc,EACd,QAAQ,EACR,KAAK,EACL,WAAW,GACZ,EAAE;IACD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,2CA0FA"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { PersonName as e } from "../../people/People.js";
|
|
2
|
+
import { DashboardCard as t, cappedSubtitle as n, formatHours as r } from "../DashboardUI.js";
|
|
3
|
+
import { Clock as i } from "lucide-react";
|
|
4
|
+
import { gql as a } from "@apollo/client";
|
|
5
|
+
import { useQuery as o } from "@apollo/client/react";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
|
+
//#region src/planmagnet/dashboards/cards/TimeLoggedCard.tsx
|
|
9
|
+
var u = 12, d = a`
|
|
10
|
+
query TeamMemberTimeLogged(
|
|
11
|
+
$workspaceId: ID!
|
|
12
|
+
$since: DateTime!
|
|
13
|
+
$m0: String!
|
|
14
|
+
$m1: String!
|
|
15
|
+
$m2: String!
|
|
16
|
+
$m3: String!
|
|
17
|
+
$m4: String!
|
|
18
|
+
$m5: String!
|
|
19
|
+
$m6: String!
|
|
20
|
+
$m7: String!
|
|
21
|
+
$m8: String!
|
|
22
|
+
$m9: String!
|
|
23
|
+
$m10: String!
|
|
24
|
+
$m11: String!
|
|
25
|
+
) {
|
|
26
|
+
m0_time: planmagnetTimeEntries(
|
|
27
|
+
workspaceId: $workspaceId
|
|
28
|
+
filter: { userId: $m0, dateFrom: $since }
|
|
29
|
+
pagination: { first: 100 }
|
|
30
|
+
) {
|
|
31
|
+
totalCount
|
|
32
|
+
items {
|
|
33
|
+
id
|
|
34
|
+
durationMinutes
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
m1_time: planmagnetTimeEntries(
|
|
38
|
+
workspaceId: $workspaceId
|
|
39
|
+
filter: { userId: $m1, dateFrom: $since }
|
|
40
|
+
pagination: { first: 100 }
|
|
41
|
+
) {
|
|
42
|
+
totalCount
|
|
43
|
+
items {
|
|
44
|
+
id
|
|
45
|
+
durationMinutes
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
m2_time: planmagnetTimeEntries(
|
|
49
|
+
workspaceId: $workspaceId
|
|
50
|
+
filter: { userId: $m2, dateFrom: $since }
|
|
51
|
+
pagination: { first: 100 }
|
|
52
|
+
) {
|
|
53
|
+
totalCount
|
|
54
|
+
items {
|
|
55
|
+
id
|
|
56
|
+
durationMinutes
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
m3_time: planmagnetTimeEntries(
|
|
60
|
+
workspaceId: $workspaceId
|
|
61
|
+
filter: { userId: $m3, dateFrom: $since }
|
|
62
|
+
pagination: { first: 100 }
|
|
63
|
+
) {
|
|
64
|
+
totalCount
|
|
65
|
+
items {
|
|
66
|
+
id
|
|
67
|
+
durationMinutes
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
m4_time: planmagnetTimeEntries(
|
|
71
|
+
workspaceId: $workspaceId
|
|
72
|
+
filter: { userId: $m4, dateFrom: $since }
|
|
73
|
+
pagination: { first: 100 }
|
|
74
|
+
) {
|
|
75
|
+
totalCount
|
|
76
|
+
items {
|
|
77
|
+
id
|
|
78
|
+
durationMinutes
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
m5_time: planmagnetTimeEntries(
|
|
82
|
+
workspaceId: $workspaceId
|
|
83
|
+
filter: { userId: $m5, dateFrom: $since }
|
|
84
|
+
pagination: { first: 100 }
|
|
85
|
+
) {
|
|
86
|
+
totalCount
|
|
87
|
+
items {
|
|
88
|
+
id
|
|
89
|
+
durationMinutes
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
m6_time: planmagnetTimeEntries(
|
|
93
|
+
workspaceId: $workspaceId
|
|
94
|
+
filter: { userId: $m6, dateFrom: $since }
|
|
95
|
+
pagination: { first: 100 }
|
|
96
|
+
) {
|
|
97
|
+
totalCount
|
|
98
|
+
items {
|
|
99
|
+
id
|
|
100
|
+
durationMinutes
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
m7_time: planmagnetTimeEntries(
|
|
104
|
+
workspaceId: $workspaceId
|
|
105
|
+
filter: { userId: $m7, dateFrom: $since }
|
|
106
|
+
pagination: { first: 100 }
|
|
107
|
+
) {
|
|
108
|
+
totalCount
|
|
109
|
+
items {
|
|
110
|
+
id
|
|
111
|
+
durationMinutes
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
m8_time: planmagnetTimeEntries(
|
|
115
|
+
workspaceId: $workspaceId
|
|
116
|
+
filter: { userId: $m8, dateFrom: $since }
|
|
117
|
+
pagination: { first: 100 }
|
|
118
|
+
) {
|
|
119
|
+
totalCount
|
|
120
|
+
items {
|
|
121
|
+
id
|
|
122
|
+
durationMinutes
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
m9_time: planmagnetTimeEntries(
|
|
126
|
+
workspaceId: $workspaceId
|
|
127
|
+
filter: { userId: $m9, dateFrom: $since }
|
|
128
|
+
pagination: { first: 100 }
|
|
129
|
+
) {
|
|
130
|
+
totalCount
|
|
131
|
+
items {
|
|
132
|
+
id
|
|
133
|
+
durationMinutes
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
m10_time: planmagnetTimeEntries(
|
|
137
|
+
workspaceId: $workspaceId
|
|
138
|
+
filter: { userId: $m10, dateFrom: $since }
|
|
139
|
+
pagination: { first: 100 }
|
|
140
|
+
) {
|
|
141
|
+
totalCount
|
|
142
|
+
items {
|
|
143
|
+
id
|
|
144
|
+
durationMinutes
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
m11_time: planmagnetTimeEntries(
|
|
148
|
+
workspaceId: $workspaceId
|
|
149
|
+
filter: { userId: $m11, dateFrom: $since }
|
|
150
|
+
pagination: { first: 100 }
|
|
151
|
+
) {
|
|
152
|
+
totalCount
|
|
153
|
+
items {
|
|
154
|
+
id
|
|
155
|
+
durationMinutes
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
`;
|
|
160
|
+
function f(e, t) {
|
|
161
|
+
let n = e?.[t];
|
|
162
|
+
return {
|
|
163
|
+
totalCount: n?.totalCount ?? 0,
|
|
164
|
+
items: n?.items ?? []
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
function p({ workspaceId: a, memberActorIds: p, sinceIso: m, weeks: h, onDrillDown: g }) {
|
|
168
|
+
let { t: _ } = l(), v = p.slice(0, u), y = Array.from({ length: u }, (e, t) => v[t] ?? ""), { data: b, loading: x, error: S } = o(d, {
|
|
169
|
+
variables: {
|
|
170
|
+
workspaceId: a ?? "",
|
|
171
|
+
since: m,
|
|
172
|
+
m0: y[0],
|
|
173
|
+
m1: y[1],
|
|
174
|
+
m2: y[2],
|
|
175
|
+
m3: y[3],
|
|
176
|
+
m4: y[4],
|
|
177
|
+
m5: y[5],
|
|
178
|
+
m6: y[6],
|
|
179
|
+
m7: y[7],
|
|
180
|
+
m8: y[8],
|
|
181
|
+
m9: y[9],
|
|
182
|
+
m10: y[10],
|
|
183
|
+
m11: y[11]
|
|
184
|
+
},
|
|
185
|
+
skip: !a || v.length === 0
|
|
186
|
+
}), C = v.map((e, t) => {
|
|
187
|
+
let n = f(b, `m${t}_time`);
|
|
188
|
+
return {
|
|
189
|
+
actorId: e,
|
|
190
|
+
minutes: n.items.reduce((e, t) => e + t.durationMinutes, 0),
|
|
191
|
+
sampled: n.items.length,
|
|
192
|
+
sampleTotal: n.totalCount
|
|
193
|
+
};
|
|
194
|
+
}), w = C.some((e) => e.sampleTotal > e.sampled);
|
|
195
|
+
return /* @__PURE__ */ s(t, {
|
|
196
|
+
icon: /* @__PURE__ */ s(i, { className: "h-4 w-4" }),
|
|
197
|
+
title: _("planmagnet.dashboards.team.time.title", "Time logged"),
|
|
198
|
+
definition: _("planmagnet.dashboards.team.time.definition", "Hours logged per member in the last {{weeks}} weeks.", { weeks: h }),
|
|
199
|
+
loading: x && !b,
|
|
200
|
+
error: S,
|
|
201
|
+
empty: p.length === 0,
|
|
202
|
+
emptyMessage: _("planmagnet.dashboards.team.time.empty", "This team has no members yet."),
|
|
203
|
+
drillDown: {
|
|
204
|
+
label: _("planmagnet.dashboards.team.time.drillDown", "Open time entries"),
|
|
205
|
+
onClick: g
|
|
206
|
+
},
|
|
207
|
+
children: /* @__PURE__ */ c("div", {
|
|
208
|
+
className: "space-y-2",
|
|
209
|
+
children: [
|
|
210
|
+
/* @__PURE__ */ s("p", {
|
|
211
|
+
className: "text-xs text-muted-foreground",
|
|
212
|
+
children: n(v.length, p.length, "member(s) shown")
|
|
213
|
+
}),
|
|
214
|
+
/* @__PURE__ */ c("table", {
|
|
215
|
+
className: "w-full text-sm",
|
|
216
|
+
children: [/* @__PURE__ */ s("thead", { children: /* @__PURE__ */ c("tr", {
|
|
217
|
+
className: "text-left text-xs text-muted-foreground",
|
|
218
|
+
children: [/* @__PURE__ */ s("th", {
|
|
219
|
+
className: "py-1 pr-2 font-normal",
|
|
220
|
+
children: _("planmagnet.dashboards.team.time.person", "Person")
|
|
221
|
+
}), /* @__PURE__ */ s("th", {
|
|
222
|
+
className: "py-1 text-right font-normal",
|
|
223
|
+
children: _("planmagnet.dashboards.team.time.hours", "Hours ({{weeks}}w)", { weeks: h })
|
|
224
|
+
})]
|
|
225
|
+
}) }), /* @__PURE__ */ s("tbody", { children: C.map((t) => /* @__PURE__ */ c("tr", {
|
|
226
|
+
className: "border-t",
|
|
227
|
+
children: [/* @__PURE__ */ s("td", {
|
|
228
|
+
className: "py-1.5 pr-2",
|
|
229
|
+
children: /* @__PURE__ */ s(e, { id: t.actorId })
|
|
230
|
+
}), /* @__PURE__ */ c("td", {
|
|
231
|
+
className: "py-1.5 text-right tabular-nums",
|
|
232
|
+
children: [r(t.minutes), t.sampleTotal > t.sampled ? "*" : ""]
|
|
233
|
+
})]
|
|
234
|
+
}, t.actorId)) })]
|
|
235
|
+
}),
|
|
236
|
+
w ? /* @__PURE__ */ s("p", {
|
|
237
|
+
className: "text-xs text-muted-foreground",
|
|
238
|
+
children: _("planmagnet.dashboards.team.time.sampledNote", "* Measured from the first 100 entries returned in this window — a member with more may be undercounted.")
|
|
239
|
+
}) : null
|
|
240
|
+
]
|
|
241
|
+
})
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
//#endregion
|
|
245
|
+
export { p as TimeLoggedCard };
|
|
246
|
+
|
|
247
|
+
//# sourceMappingURL=TimeLoggedCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimeLoggedCard.js","names":[],"sources":["../../../../src/planmagnet/dashboards/cards/TimeLoggedCard.tsx"],"sourcesContent":["import { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Clock } from 'lucide-react';\nimport { DashboardCard, cappedSubtitle, formatHours } from '../DashboardUI';\nimport { PersonName } from '../../people/People';\n\n/**\n * Time logged per member (ANR-28) — `planmagnetTimeEntries` is gated on `planmagnet-timetracking`, a\n * DIFFERENT RBAC resource from the workload card's `planmagnet-workitem`, so it is its own query and its\n * own card: a viewer who can see workload but not time entries (or vice versa) sees exactly one of the two\n * cards say \"you do not have access\", never both failing together or one silently hiding the other.\n *\n * Same aliased, ONE-request-for-up-to-12-members technique as `TeamWorkloadCard` — `userId` on\n * `PlanmagnetTimeEntryFilter` is a plain nullable String, so a padded empty slot returns 0 harmlessly.\n */\nconst MAX_MEMBERS = 12;\n\nconst GET_TEAM_TIME_LOGGED = gql`\n query TeamMemberTimeLogged(\n $workspaceId: ID!\n $since: DateTime!\n $m0: String!\n $m1: String!\n $m2: String!\n $m3: String!\n $m4: String!\n $m5: String!\n $m6: String!\n $m7: String!\n $m8: String!\n $m9: String!\n $m10: String!\n $m11: String!\n ) {\n m0_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m0, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m1_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m1, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m2_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m2, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m3_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m3, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m4_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m4, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m5_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m5, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m6_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m6, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m7_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m7, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m8_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m8, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m9_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m9, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m10_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m10, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n m11_time: planmagnetTimeEntries(\n workspaceId: $workspaceId\n filter: { userId: $m11, dateFrom: $since }\n pagination: { first: 100 }\n ) {\n totalCount\n items {\n id\n durationMinutes\n }\n }\n }\n`;\n\ninterface TimeBlock {\n totalCount: number;\n items: { id: string; durationMinutes: number }[];\n}\ntype TimeQueryData = Record<string, unknown>;\n\nfunction readTime(data: TimeQueryData | undefined, key: string): TimeBlock {\n const raw = data?.[key] as Partial<TimeBlock> | undefined;\n return { totalCount: raw?.totalCount ?? 0, items: raw?.items ?? [] };\n}\n\nexport function TimeLoggedCard({\n workspaceId,\n memberActorIds,\n sinceIso,\n weeks,\n onDrillDown,\n}: {\n workspaceId?: string | null;\n memberActorIds: string[];\n sinceIso: string;\n weeks: number;\n onDrillDown: () => void;\n}) {\n const { t } = useI18n();\n const shown = memberActorIds.slice(0, MAX_MEMBERS);\n const slots = Array.from({ length: MAX_MEMBERS }, (_, i) => shown[i] ?? '');\n\n const { data, loading, error } = useQuery<TimeQueryData>(GET_TEAM_TIME_LOGGED, {\n variables: {\n workspaceId: workspaceId ?? '',\n since: sinceIso,\n m0: slots[0],\n m1: slots[1],\n m2: slots[2],\n m3: slots[3],\n m4: slots[4],\n m5: slots[5],\n m6: slots[6],\n m7: slots[7],\n m8: slots[8],\n m9: slots[9],\n m10: slots[10],\n m11: slots[11],\n },\n skip: !workspaceId || shown.length === 0,\n });\n\n const rows = shown.map((actorId, i) => {\n const block = readTime(data, `m${i}_time`);\n const minutes = block.items.reduce((sum, e) => sum + e.durationMinutes, 0);\n return { actorId, minutes, sampled: block.items.length, sampleTotal: block.totalCount };\n });\n const anySampleCapped = rows.some((r) => r.sampleTotal > r.sampled);\n\n return (\n <DashboardCard\n icon={<Clock className=\"h-4 w-4\" />}\n title={t('planmagnet.dashboards.team.time.title', 'Time logged')}\n definition={t(\n 'planmagnet.dashboards.team.time.definition',\n 'Hours logged per member in the last {{weeks}} weeks.',\n { weeks }\n )}\n loading={loading && !data}\n error={error}\n empty={memberActorIds.length === 0}\n emptyMessage={t('planmagnet.dashboards.team.time.empty', 'This team has no members yet.')}\n drillDown={{\n label: t('planmagnet.dashboards.team.time.drillDown', 'Open time entries'),\n onClick: onDrillDown,\n }}\n >\n <div className=\"space-y-2\">\n <p className=\"text-xs text-muted-foreground\">\n {cappedSubtitle(shown.length, memberActorIds.length, 'member(s) shown')}\n </p>\n <table className=\"w-full text-sm\">\n <thead>\n <tr className=\"text-left text-xs text-muted-foreground\">\n <th className=\"py-1 pr-2 font-normal\">\n {t('planmagnet.dashboards.team.time.person', 'Person')}\n </th>\n <th className=\"py-1 text-right font-normal\">\n {t('planmagnet.dashboards.team.time.hours', 'Hours ({{weeks}}w)', { weeks })}\n </th>\n </tr>\n </thead>\n <tbody>\n {rows.map((row) => (\n <tr key={row.actorId} className=\"border-t\">\n <td className=\"py-1.5 pr-2\">\n <PersonName id={row.actorId} />\n </td>\n <td className=\"py-1.5 text-right tabular-nums\">\n {formatHours(row.minutes)}\n {row.sampleTotal > row.sampled ? '*' : ''}\n </td>\n </tr>\n ))}\n </tbody>\n </table>\n {anySampleCapped ? (\n <p className=\"text-xs text-muted-foreground\">\n {t(\n 'planmagnet.dashboards.team.time.sampledNote',\n '* Measured from the first 100 entries returned in this window — a member with more may be undercounted.'\n )}\n </p>\n ) : null}\n </div>\n </DashboardCard>\n );\n}\n"],"mappings":";;;;;;;;AAgBA,IAAM,IAAc,IAEd,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8JhC,SAAS,EAAS,GAAiC,GAAwB;CACzE,IAAM,IAAM,IAAO;AACnB,QAAO;EAAE,YAAY,GAAK,cAAc;EAAG,OAAO,GAAK,SAAS,EAAE;EAAE;;AAGtE,SAAgB,EAAe,EAC7B,gBACA,mBACA,aACA,UACA,kBAOC;CACD,IAAM,EAAE,SAAM,GAAS,EACjB,IAAQ,EAAe,MAAM,GAAG,EAAY,EAC5C,IAAQ,MAAM,KAAK,EAAE,QAAQ,GAAa,GAAG,GAAG,MAAM,EAAM,MAAM,GAAG,EAErE,EAAE,SAAM,YAAS,aAAU,EAAwB,GAAsB;EAC7E,WAAW;GACT,aAAa,KAAe;GAC5B,OAAO;GACP,IAAI,EAAM;GACV,IAAI,EAAM;GACV,IAAI,EAAM;GACV,IAAI,EAAM;GACV,IAAI,EAAM;GACV,IAAI,EAAM;GACV,IAAI,EAAM;GACV,IAAI,EAAM;GACV,IAAI,EAAM;GACV,IAAI,EAAM;GACV,KAAK,EAAM;GACX,KAAK,EAAM;GACZ;EACD,MAAM,CAAC,KAAe,EAAM,WAAW;EACxC,CAAC,EAEI,IAA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