@burdenoff/microfe-planmagnet 2026.928.11 → 2026.930.2
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/generated/global-types.d.ts +43 -1
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/planmagnet/milestones/MilestoneControls.d.ts +41 -0
- package/dist/planmagnet/milestones/MilestoneControls.d.ts.map +1 -0
- package/dist/planmagnet/milestones/MilestoneControls.js +420 -0
- package/dist/planmagnet/milestones/MilestoneControls.js.map +1 -0
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +60 -57
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js +116 -89
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js +68 -50
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.js +151 -134
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TasksEditTaskPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TasksEditTaskPagePage.js +149 -126
- package/dist/planmagnet/pages/TasksEditTaskPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.js +150 -137
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TeamTeamPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TeamTeamPagePage.js +57 -23
- package/dist/planmagnet/pages/TeamTeamPagePage.js.map +1 -1
- package/dist/planmagnet/sprints/SprintControls.d.ts.map +1 -1
- package/dist/planmagnet/sprints/SprintControls.js +312 -179
- package/dist/planmagnet/sprints/SprintControls.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export interface MilestoneOption {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
status: string;
|
|
5
|
+
}
|
|
6
|
+
/** The milestones of one project, for a picker. Cancelled ones are left out unless one is the current value. */
|
|
7
|
+
export declare function useProjectMilestones(projectId: string | null | undefined, currentId?: string | null): {
|
|
8
|
+
options: MilestoneOption[];
|
|
9
|
+
loading: boolean;
|
|
10
|
+
error: import('@apollo/client').ErrorLike | undefined;
|
|
11
|
+
};
|
|
12
|
+
/** A form field: pick one of the project's milestones, or none. */
|
|
13
|
+
export declare function MilestoneSelect({ id, projectId, value, onChange, }: {
|
|
14
|
+
id: string;
|
|
15
|
+
projectId: string | null | undefined;
|
|
16
|
+
value: string;
|
|
17
|
+
onChange: (milestoneId: string) => void;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
/** The task detail's inline milestone control: saves on change and shows a refusal below itself. */
|
|
20
|
+
export declare function WorkItemMilestoneSelect({ workItemId, projectId, milestoneId, }: {
|
|
21
|
+
workItemId: string;
|
|
22
|
+
projectId: string;
|
|
23
|
+
milestoneId: string | null;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export interface MilestoneProgress {
|
|
26
|
+
total: number;
|
|
27
|
+
done: number;
|
|
28
|
+
cancelled: number;
|
|
29
|
+
open: number;
|
|
30
|
+
percentComplete: number | null;
|
|
31
|
+
}
|
|
32
|
+
/** "3 of 5 done" with a bar. Cancelled items are shown but do not count towards the percentage (server rule). */
|
|
33
|
+
export declare function MilestoneProgressBar({ progress }: {
|
|
34
|
+
progress: MilestoneProgress;
|
|
35
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
/** The milestone detail's list of grouped work items: add from the milestone's project, or take one out. */
|
|
37
|
+
export declare function MilestoneWorkItemsCard({ milestoneId, projectId, }: {
|
|
38
|
+
milestoneId: string;
|
|
39
|
+
projectId: string;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
//# sourceMappingURL=MilestoneControls.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MilestoneControls.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/milestones/MilestoneControls.tsx"],"names":[],"mappings":"AA6GA,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,gHAAgH;AAChH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;;;;EAmC1B;AAKD,mEAAmE;AACnE,wBAAgB,eAAe,CAAC,EAC9B,EAAE,EACF,SAAS,EACT,KAAK,EACL,QAAQ,GACT,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC,2CAsBA;AAED,oGAAoG;AACpG,wBAAgB,uBAAuB,CAAC,EACtC,UAAU,EACV,SAAS,EACT,WAAW,GACZ,EAAE;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B,2CAuCA;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,iHAAiH;AACjH,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,2CA0BjF;AAWD,4GAA4G;AAC5G,wBAAgB,sBAAsB,CAAC,EACrC,WAAW,EACX,SAAS,GACV,EAAE;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,2CAkPA"}
|
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/PlanMagnetProvider.js";
|
|
2
|
+
import { throwOnError as n } from "../utils/mutationResult.js";
|
|
3
|
+
import { ErrorLine as r } from "../controls/ConfirmButton.js";
|
|
4
|
+
import { useDeferredValue as i, useEffect as a, useState as o } from "react";
|
|
5
|
+
import { Plus as s, X as c } from "lucide-react";
|
|
6
|
+
import { gql as l } from "@apollo/client";
|
|
7
|
+
import { useMutation as u, useQuery as d } from "@apollo/client/react";
|
|
8
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
9
|
+
import { Badge as m, Button as h, Card as g, CardContent as _, CardHeader as v, CardTitle as y, Input as b } from "@burdenoff/fe-libs/ui";
|
|
10
|
+
//#region src/planmagnet/milestones/MilestoneControls.tsx
|
|
11
|
+
var x = l`
|
|
12
|
+
query MilestoneOptions(
|
|
13
|
+
$workspaceId: ID!
|
|
14
|
+
$filter: PlanmagnetMilestoneFilter
|
|
15
|
+
$pagination: PlanmagnetPaginationInput
|
|
16
|
+
) {
|
|
17
|
+
planmagnetMilestones(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {
|
|
18
|
+
items {
|
|
19
|
+
id
|
|
20
|
+
name
|
|
21
|
+
status
|
|
22
|
+
}
|
|
23
|
+
pageInfo {
|
|
24
|
+
hasNextPage
|
|
25
|
+
endCursor
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
`, S = 500, C = 50, w = l`
|
|
30
|
+
query MilestoneWorkItems(
|
|
31
|
+
$workspaceId: ID!
|
|
32
|
+
$filter: PlanmagnetWorkItemFilter
|
|
33
|
+
$pagination: PlanmagnetPaginationInput
|
|
34
|
+
) {
|
|
35
|
+
planmagnetWorkItems(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {
|
|
36
|
+
items {
|
|
37
|
+
id
|
|
38
|
+
key
|
|
39
|
+
title
|
|
40
|
+
status
|
|
41
|
+
type
|
|
42
|
+
priority
|
|
43
|
+
}
|
|
44
|
+
pageInfo {
|
|
45
|
+
hasNextPage
|
|
46
|
+
endCursor
|
|
47
|
+
}
|
|
48
|
+
totalCount
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
`, T = l`
|
|
52
|
+
query MilestoneWorkItemCandidates($workspaceId: ID!, $filter: PlanmagnetWorkItemFilter) {
|
|
53
|
+
planmagnetWorkItems(workspaceId: $workspaceId, filter: $filter, pagination: { first: 20 }) {
|
|
54
|
+
items {
|
|
55
|
+
id
|
|
56
|
+
key
|
|
57
|
+
title
|
|
58
|
+
status
|
|
59
|
+
milestone {
|
|
60
|
+
id
|
|
61
|
+
name
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
totalCount
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
`, E = l`
|
|
68
|
+
mutation WorkItemSetMilestone($id: ID!, $input: PlanmagnetUpdateWorkItemInput!) {
|
|
69
|
+
planmagnetUpdateWorkItem(id: $id, input: $input) {
|
|
70
|
+
id
|
|
71
|
+
milestoneId
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
`, D = [
|
|
75
|
+
"GetWorkItemDetail",
|
|
76
|
+
"WorkItemActivity",
|
|
77
|
+
"GetWorkItems",
|
|
78
|
+
"MilestoneWorkItems",
|
|
79
|
+
"MilestoneWorkItemCandidates",
|
|
80
|
+
"GetMilestonesForDetail",
|
|
81
|
+
"GetMilestones"
|
|
82
|
+
];
|
|
83
|
+
function O(t, n) {
|
|
84
|
+
let { workspaceId: r } = e(), { data: i, loading: o, error: s, fetchMore: c } = d(x, {
|
|
85
|
+
variables: {
|
|
86
|
+
workspaceId: r,
|
|
87
|
+
filter: { projectId: t },
|
|
88
|
+
pagination: { first: 100 }
|
|
89
|
+
},
|
|
90
|
+
skip: !r || !t
|
|
91
|
+
}), l = i?.planmagnetMilestones.items ?? [], u = i?.planmagnetMilestones.pageInfo.hasNextPage ?? !1, f = i?.planmagnetMilestones.pageInfo.endCursor ?? null;
|
|
92
|
+
return a(() => {
|
|
93
|
+
!u || !f || l.length >= S || c({
|
|
94
|
+
variables: { pagination: {
|
|
95
|
+
first: 100,
|
|
96
|
+
after: f
|
|
97
|
+
} },
|
|
98
|
+
updateQuery: (e, { fetchMoreResult: t }) => ({ planmagnetMilestones: {
|
|
99
|
+
...t.planmagnetMilestones,
|
|
100
|
+
items: [...e.planmagnetMilestones.items, ...t.planmagnetMilestones.items]
|
|
101
|
+
} })
|
|
102
|
+
}).catch(() => {});
|
|
103
|
+
}, [
|
|
104
|
+
u,
|
|
105
|
+
f,
|
|
106
|
+
l.length,
|
|
107
|
+
c
|
|
108
|
+
]), {
|
|
109
|
+
options: l.filter((e) => e.status !== "CANCELLED" || e.id === n),
|
|
110
|
+
loading: o && !i,
|
|
111
|
+
error: s
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
var k = "mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm disabled:opacity-60";
|
|
115
|
+
function A({ id: e, projectId: t, value: n, onChange: r }) {
|
|
116
|
+
let { options: i, loading: a } = O(t, n);
|
|
117
|
+
return /* @__PURE__ */ p("select", {
|
|
118
|
+
id: e,
|
|
119
|
+
"data-testid": "task-milestone",
|
|
120
|
+
className: k,
|
|
121
|
+
value: n,
|
|
122
|
+
disabled: !t,
|
|
123
|
+
onChange: (e) => r(e.target.value),
|
|
124
|
+
children: [/* @__PURE__ */ f("option", {
|
|
125
|
+
value: "",
|
|
126
|
+
children: a ? "Loading milestones…" : "No milestone"
|
|
127
|
+
}), i.map((e) => /* @__PURE__ */ p("option", {
|
|
128
|
+
value: e.id,
|
|
129
|
+
children: [e.name, e.status === "COMPLETED" || e.status === "CANCELLED" ? ` (${e.status.toLowerCase()})` : ""]
|
|
130
|
+
}, e.id))]
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function j({ workItemId: e, projectId: t, milestoneId: i }) {
|
|
134
|
+
let { options: a, loading: s } = O(t, i), [c, l] = u(E, {
|
|
135
|
+
refetchQueries: D,
|
|
136
|
+
awaitRefetchQueries: !0
|
|
137
|
+
}), [d, m] = o(null), h = async (t) => {
|
|
138
|
+
m(null);
|
|
139
|
+
try {
|
|
140
|
+
await n(c({ variables: {
|
|
141
|
+
id: e,
|
|
142
|
+
input: { milestoneId: t || null }
|
|
143
|
+
} }));
|
|
144
|
+
} catch (e) {
|
|
145
|
+
m(e instanceof Error ? e.message : "The milestone could not be changed.");
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
return /* @__PURE__ */ p("div", {
|
|
149
|
+
className: "flex flex-col items-end gap-1",
|
|
150
|
+
children: [/* @__PURE__ */ p("select", {
|
|
151
|
+
"aria-label": "Milestone",
|
|
152
|
+
"data-testid": "task-milestone",
|
|
153
|
+
className: "rounded-md border border-input bg-background px-2 py-1 text-sm disabled:opacity-60 max-w-[12rem]",
|
|
154
|
+
value: i ?? "",
|
|
155
|
+
disabled: l.loading,
|
|
156
|
+
onChange: (e) => {
|
|
157
|
+
e.target.value !== (i ?? "") && h(e.target.value);
|
|
158
|
+
},
|
|
159
|
+
children: [/* @__PURE__ */ f("option", {
|
|
160
|
+
value: "",
|
|
161
|
+
children: s ? "Loading…" : "No milestone"
|
|
162
|
+
}), a.map((e) => /* @__PURE__ */ f("option", {
|
|
163
|
+
value: e.id,
|
|
164
|
+
children: e.name
|
|
165
|
+
}, e.id))]
|
|
166
|
+
}), d && /* @__PURE__ */ f(r, { message: d })]
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
function M({ progress: e }) {
|
|
170
|
+
if (e.total === 0) return /* @__PURE__ */ f("p", {
|
|
171
|
+
className: "text-xs text-muted-foreground",
|
|
172
|
+
children: "No work items grouped under it yet."
|
|
173
|
+
});
|
|
174
|
+
let t = e.total - e.cancelled;
|
|
175
|
+
return /* @__PURE__ */ p("div", {
|
|
176
|
+
className: "space-y-1",
|
|
177
|
+
"data-testid": "milestone-progress",
|
|
178
|
+
children: [/* @__PURE__ */ p("div", {
|
|
179
|
+
className: "flex justify-between text-xs text-muted-foreground",
|
|
180
|
+
children: [/* @__PURE__ */ p("span", { children: [
|
|
181
|
+
e.done,
|
|
182
|
+
" of ",
|
|
183
|
+
t,
|
|
184
|
+
" done",
|
|
185
|
+
e.cancelled > 0 ? ` · ${e.cancelled} cancelled` : ""
|
|
186
|
+
] }), e.percentComplete != null && /* @__PURE__ */ p("span", { children: [e.percentComplete, "%"] })]
|
|
187
|
+
}), /* @__PURE__ */ f("div", {
|
|
188
|
+
className: "h-2 w-full overflow-hidden rounded-full bg-muted",
|
|
189
|
+
role: "progressbar",
|
|
190
|
+
"aria-label": "Work items done",
|
|
191
|
+
"aria-valuemin": 0,
|
|
192
|
+
"aria-valuemax": 100,
|
|
193
|
+
"aria-valuenow": e.percentComplete ?? 0,
|
|
194
|
+
children: /* @__PURE__ */ f("div", {
|
|
195
|
+
className: "h-full bg-primary",
|
|
196
|
+
style: { width: `${e.percentComplete ?? 0}%` }
|
|
197
|
+
})
|
|
198
|
+
})]
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
function N({ milestoneId: r, projectId: a }) {
|
|
202
|
+
let { workspaceId: l } = e(), x = t(), [S, O] = o(!1), [k, A] = o(""), [j, M] = o(null), N = i(k.trim()), P = d(w, {
|
|
203
|
+
variables: {
|
|
204
|
+
workspaceId: l,
|
|
205
|
+
filter: { milestoneId: r },
|
|
206
|
+
pagination: { first: C }
|
|
207
|
+
},
|
|
208
|
+
skip: !l
|
|
209
|
+
}), F = P.data?.planmagnetWorkItems.items ?? [], I = P.data?.planmagnetWorkItems.totalCount ?? 0, L = P.data?.planmagnetWorkItems.pageInfo.hasNextPage ?? !1, [R, z] = o(!1), B = async () => {
|
|
210
|
+
let e = P.data?.planmagnetWorkItems.pageInfo.endCursor;
|
|
211
|
+
if (e) {
|
|
212
|
+
z(!0), M(null);
|
|
213
|
+
try {
|
|
214
|
+
await P.fetchMore({
|
|
215
|
+
variables: { pagination: {
|
|
216
|
+
first: C,
|
|
217
|
+
after: e
|
|
218
|
+
} },
|
|
219
|
+
updateQuery: (e, { fetchMoreResult: t }) => ({ planmagnetWorkItems: {
|
|
220
|
+
...t.planmagnetWorkItems,
|
|
221
|
+
items: [...e.planmagnetWorkItems.items, ...t.planmagnetWorkItems.items]
|
|
222
|
+
} })
|
|
223
|
+
});
|
|
224
|
+
} catch (e) {
|
|
225
|
+
M(e instanceof Error ? e.message : "More work items could not be loaded.");
|
|
226
|
+
} finally {
|
|
227
|
+
z(!1);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}, V = d(T, {
|
|
231
|
+
variables: {
|
|
232
|
+
workspaceId: l,
|
|
233
|
+
filter: {
|
|
234
|
+
projectId: a,
|
|
235
|
+
excludeIds: F.map((e) => e.id),
|
|
236
|
+
...N ? { search: N } : {}
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
skip: !S || !l
|
|
240
|
+
}), H = V.data?.planmagnetWorkItems.items ?? [], U = (V.data?.planmagnetWorkItems.totalCount ?? 0) - H.length, [W, G] = u(E, {
|
|
241
|
+
refetchQueries: D,
|
|
242
|
+
awaitRefetchQueries: !0
|
|
243
|
+
}), K = async (e, t, r) => {
|
|
244
|
+
M(null);
|
|
245
|
+
try {
|
|
246
|
+
await n(W({ variables: {
|
|
247
|
+
id: e,
|
|
248
|
+
input: { milestoneId: t }
|
|
249
|
+
} }));
|
|
250
|
+
} catch (e) {
|
|
251
|
+
M(e instanceof Error ? e.message : r);
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
return /* @__PURE__ */ p(g, {
|
|
255
|
+
"data-testid": "milestone-work-items",
|
|
256
|
+
children: [/* @__PURE__ */ p(v, {
|
|
257
|
+
className: "flex flex-row items-center justify-between space-y-0",
|
|
258
|
+
children: [/* @__PURE__ */ p(y, { children: [
|
|
259
|
+
"Work Items (",
|
|
260
|
+
I,
|
|
261
|
+
")"
|
|
262
|
+
] }), !S && /* @__PURE__ */ p(h, {
|
|
263
|
+
size: "sm",
|
|
264
|
+
variant: "outline",
|
|
265
|
+
onClick: () => O(!0),
|
|
266
|
+
"data-testid": "milestone-items-add",
|
|
267
|
+
children: [/* @__PURE__ */ f(s, { className: "mr-1 h-4 w-4" }), " Add work items"]
|
|
268
|
+
})]
|
|
269
|
+
}), /* @__PURE__ */ p(_, {
|
|
270
|
+
className: "space-y-2",
|
|
271
|
+
children: [
|
|
272
|
+
j && /* @__PURE__ */ f("p", {
|
|
273
|
+
role: "alert",
|
|
274
|
+
className: "text-sm text-destructive",
|
|
275
|
+
children: j
|
|
276
|
+
}),
|
|
277
|
+
P.loading && !P.data && /* @__PURE__ */ f("p", {
|
|
278
|
+
className: "text-sm text-muted-foreground",
|
|
279
|
+
children: "Loading…"
|
|
280
|
+
}),
|
|
281
|
+
P.error && /* @__PURE__ */ p("p", {
|
|
282
|
+
role: "alert",
|
|
283
|
+
className: "text-sm text-destructive",
|
|
284
|
+
children: ["Work items could not be loaded: ", P.error.message]
|
|
285
|
+
}),
|
|
286
|
+
P.data && F.length === 0 && /* @__PURE__ */ f("p", {
|
|
287
|
+
className: "text-sm text-muted-foreground",
|
|
288
|
+
children: "No work items are grouped under this milestone yet."
|
|
289
|
+
}),
|
|
290
|
+
F.map((e) => /* @__PURE__ */ p("div", {
|
|
291
|
+
className: "flex items-center justify-between gap-2 rounded-md border p-3",
|
|
292
|
+
"data-testid": "milestone-item",
|
|
293
|
+
children: [/* @__PURE__ */ p("button", {
|
|
294
|
+
type: "button",
|
|
295
|
+
className: "min-w-0 text-left",
|
|
296
|
+
onClick: () => x(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.id)}`),
|
|
297
|
+
children: [/* @__PURE__ */ p("p", {
|
|
298
|
+
className: "truncate text-sm font-medium hover:underline",
|
|
299
|
+
children: [
|
|
300
|
+
/* @__PURE__ */ f("span", {
|
|
301
|
+
className: "text-muted-foreground",
|
|
302
|
+
children: e.key
|
|
303
|
+
}),
|
|
304
|
+
" ",
|
|
305
|
+
e.title
|
|
306
|
+
]
|
|
307
|
+
}), /* @__PURE__ */ p("p", {
|
|
308
|
+
className: "text-xs capitalize text-muted-foreground",
|
|
309
|
+
children: [
|
|
310
|
+
e.type.toLowerCase().replace("_", " "),
|
|
311
|
+
" · ",
|
|
312
|
+
e.priority.toLowerCase(),
|
|
313
|
+
" ",
|
|
314
|
+
"priority"
|
|
315
|
+
]
|
|
316
|
+
})]
|
|
317
|
+
}), /* @__PURE__ */ p("span", {
|
|
318
|
+
className: "flex shrink-0 items-center gap-1",
|
|
319
|
+
children: [/* @__PURE__ */ f(m, {
|
|
320
|
+
variant: "outline",
|
|
321
|
+
className: "text-xs capitalize",
|
|
322
|
+
children: e.status.toLowerCase().replace("_", " ")
|
|
323
|
+
}), /* @__PURE__ */ f(h, {
|
|
324
|
+
size: "icon",
|
|
325
|
+
variant: "ghost",
|
|
326
|
+
"aria-label": `Take ${e.title} out of this milestone`,
|
|
327
|
+
disabled: G.loading,
|
|
328
|
+
onClick: () => K(e.id, null, "The work item could not be taken out."),
|
|
329
|
+
children: /* @__PURE__ */ f(c, { className: "h-4 w-4" })
|
|
330
|
+
})]
|
|
331
|
+
})]
|
|
332
|
+
}, e.id)),
|
|
333
|
+
L && /* @__PURE__ */ f(h, {
|
|
334
|
+
size: "sm",
|
|
335
|
+
variant: "ghost",
|
|
336
|
+
className: "w-full",
|
|
337
|
+
disabled: R,
|
|
338
|
+
onClick: () => void B(),
|
|
339
|
+
"data-testid": "milestone-items-more",
|
|
340
|
+
children: R ? "Loading…" : `Show more (${F.length} of ${I})`
|
|
341
|
+
}),
|
|
342
|
+
S && /* @__PURE__ */ p("div", {
|
|
343
|
+
className: "space-y-2 border-t pt-3",
|
|
344
|
+
children: [
|
|
345
|
+
/* @__PURE__ */ p("div", {
|
|
346
|
+
className: "flex gap-2",
|
|
347
|
+
children: [/* @__PURE__ */ f(b, {
|
|
348
|
+
"aria-label": "Find work items in this milestone's project",
|
|
349
|
+
placeholder: "Find work items in this project",
|
|
350
|
+
value: k,
|
|
351
|
+
onChange: (e) => A(e.target.value)
|
|
352
|
+
}), /* @__PURE__ */ f(h, {
|
|
353
|
+
size: "sm",
|
|
354
|
+
variant: "ghost",
|
|
355
|
+
onClick: () => {
|
|
356
|
+
O(!1), A("");
|
|
357
|
+
},
|
|
358
|
+
children: "Done"
|
|
359
|
+
})]
|
|
360
|
+
}),
|
|
361
|
+
V.loading && !V.data && /* @__PURE__ */ f("p", {
|
|
362
|
+
className: "text-sm text-muted-foreground",
|
|
363
|
+
children: "Loading…"
|
|
364
|
+
}),
|
|
365
|
+
V.error && /* @__PURE__ */ p("p", {
|
|
366
|
+
role: "alert",
|
|
367
|
+
className: "text-sm text-destructive",
|
|
368
|
+
children: ["Work items could not be loaded: ", V.error.message]
|
|
369
|
+
}),
|
|
370
|
+
V.data && H.length === 0 && /* @__PURE__ */ f("p", {
|
|
371
|
+
className: "text-sm text-muted-foreground",
|
|
372
|
+
children: N ? "No other work items match." : "Every work item in this project is already under this milestone."
|
|
373
|
+
}),
|
|
374
|
+
U > 0 && /* @__PURE__ */ p("p", {
|
|
375
|
+
className: "text-xs text-muted-foreground",
|
|
376
|
+
children: [U, " more — type a key or title to narrow the list."]
|
|
377
|
+
}),
|
|
378
|
+
/* @__PURE__ */ f("ul", {
|
|
379
|
+
className: "space-y-1",
|
|
380
|
+
children: H.map((e) => /* @__PURE__ */ p("li", {
|
|
381
|
+
className: "flex items-center justify-between gap-2 text-sm",
|
|
382
|
+
children: [/* @__PURE__ */ p("span", {
|
|
383
|
+
className: "min-w-0 truncate",
|
|
384
|
+
children: [
|
|
385
|
+
/* @__PURE__ */ f("span", {
|
|
386
|
+
className: "text-muted-foreground",
|
|
387
|
+
children: e.key
|
|
388
|
+
}),
|
|
389
|
+
" ",
|
|
390
|
+
e.title,
|
|
391
|
+
e.milestone && /* @__PURE__ */ p("span", {
|
|
392
|
+
className: "text-xs text-muted-foreground",
|
|
393
|
+
children: [
|
|
394
|
+
" ",
|
|
395
|
+
"· in ",
|
|
396
|
+
e.milestone.name
|
|
397
|
+
]
|
|
398
|
+
})
|
|
399
|
+
]
|
|
400
|
+
}), /* @__PURE__ */ f(h, {
|
|
401
|
+
size: "sm",
|
|
402
|
+
variant: "outline",
|
|
403
|
+
className: "h-7 shrink-0 text-xs",
|
|
404
|
+
disabled: G.loading,
|
|
405
|
+
"data-testid": "milestone-item-candidate-add",
|
|
406
|
+
onClick: () => K(e.id, r, "The work item could not be added."),
|
|
407
|
+
children: e.milestone ? "Move here" : "Add"
|
|
408
|
+
})]
|
|
409
|
+
}, e.id))
|
|
410
|
+
})
|
|
411
|
+
]
|
|
412
|
+
})
|
|
413
|
+
]
|
|
414
|
+
})]
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
//#endregion
|
|
418
|
+
export { M as MilestoneProgressBar, A as MilestoneSelect, N as MilestoneWorkItemsCard, j as WorkItemMilestoneSelect };
|
|
419
|
+
|
|
420
|
+
//# sourceMappingURL=MilestoneControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MilestoneControls.js","names":[],"sources":["../../../src/planmagnet/milestones/MilestoneControls.tsx"],"sourcesContent":["import { useDeferredValue, useEffect, useState } from 'react';\nimport { gql } from '@apollo/client';\nimport { useMutation, useQuery } from '@apollo/client/react';\nimport {\n Badge,\n Button,\n Card,\n CardContent,\n CardHeader,\n CardTitle,\n Input,\n} from '@burdenoff/fe-libs/ui';\nimport { Plus, X } from 'lucide-react';\nimport { ErrorLine } from '../controls/ConfirmButton';\nimport { usePlanMagnet, usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { throwOnError } from '../utils/mutationResult';\n\n/**\n * Work items grouped under a milestone (PDM-22). The service accepts only a milestone of the item's own project and\n * refuses anything else with a reason, which every control here shows. Progress is counted by the server\n * (Milestone.workItemProgress), never from the page of items the browser happens to hold.\n */\n\nconst PROJECT_MILESTONES = gql`\n query MilestoneOptions(\n $workspaceId: ID!\n $filter: PlanmagnetMilestoneFilter\n $pagination: PlanmagnetPaginationInput\n ) {\n planmagnetMilestones(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {\n items {\n id\n name\n status\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n`;\n\n/** A project's milestones are read page by page up to this many, so a picker never silently stops at the first 100. */\nconst MAX_MILESTONE_OPTIONS = 500;\n\nconst MILESTONE_ITEMS_PAGE = 50;\nconst MILESTONE_WORK_ITEMS = gql`\n query MilestoneWorkItems(\n $workspaceId: ID!\n $filter: PlanmagnetWorkItemFilter\n $pagination: PlanmagnetPaginationInput\n ) {\n planmagnetWorkItems(workspaceId: $workspaceId, filter: $filter, pagination: $pagination) {\n items {\n id\n key\n title\n status\n type\n priority\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n totalCount\n }\n }\n`;\n\nconst CANDIDATES = gql`\n query MilestoneWorkItemCandidates($workspaceId: ID!, $filter: PlanmagnetWorkItemFilter) {\n planmagnetWorkItems(workspaceId: $workspaceId, filter: $filter, pagination: { first: 20 }) {\n items {\n id\n key\n title\n status\n milestone {\n id\n name\n }\n }\n totalCount\n }\n }\n`;\n\nconst SET_MILESTONE = gql`\n mutation WorkItemSetMilestone($id: ID!, $input: PlanmagnetUpdateWorkItemInput!) {\n planmagnetUpdateWorkItem(id: $id, input: $input) {\n id\n milestoneId\n }\n }\n`;\n\n/** Every query that shows which milestone an item is in, or a milestone's items and progress. */\nconst MILESTONE_QUERIES = [\n 'GetWorkItemDetail',\n 'WorkItemActivity',\n 'GetWorkItems',\n 'MilestoneWorkItems',\n 'MilestoneWorkItemCandidates',\n 'GetMilestonesForDetail',\n 'GetMilestones',\n];\n\nexport interface MilestoneOption {\n id: string;\n name: string;\n status: string;\n}\n\n/** The milestones of one project, for a picker. Cancelled ones are left out unless one is the current value. */\nexport function useProjectMilestones(\n projectId: string | null | undefined,\n currentId?: string | null\n) {\n const { workspaceId } = usePlanMagnet();\n const { data, loading, error, fetchMore } = useQuery<{\n planmagnetMilestones: {\n items: MilestoneOption[];\n pageInfo: { hasNextPage: boolean; endCursor: string | null };\n };\n }>(PROJECT_MILESTONES, {\n variables: { workspaceId, filter: { projectId }, pagination: { first: 100 } },\n skip: !workspaceId || !projectId,\n });\n const loaded = data?.planmagnetMilestones.items ?? [];\n const hasNextPage = data?.planmagnetMilestones.pageInfo.hasNextPage ?? false;\n const endCursor = data?.planmagnetMilestones.pageInfo.endCursor ?? null;\n // Read the remaining pages of a project past 100 milestones, appending by cursor, up to the cap.\n useEffect(() => {\n if (!hasNextPage || !endCursor || loaded.length >= MAX_MILESTONE_OPTIONS) return;\n fetchMore({\n variables: { pagination: { first: 100, after: endCursor } },\n updateQuery: (prev, { fetchMoreResult }) => ({\n planmagnetMilestones: {\n ...fetchMoreResult.planmagnetMilestones,\n items: [\n ...prev.planmagnetMilestones.items,\n ...fetchMoreResult.planmagnetMilestones.items,\n ],\n },\n }),\n }).catch(() => {\n // A failed extra page leaves the milestones already loaded usable.\n });\n }, [hasNextPage, endCursor, loaded.length, fetchMore]);\n const options = loaded.filter((m) => m.status !== 'CANCELLED' || m.id === currentId);\n return { options, loading: loading && !data, error };\n}\n\nconst selectClass =\n 'mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm disabled:opacity-60';\n\n/** A form field: pick one of the project's milestones, or none. */\nexport function MilestoneSelect({\n id,\n projectId,\n value,\n onChange,\n}: {\n id: string;\n projectId: string | null | undefined;\n value: string;\n onChange: (milestoneId: string) => void;\n}) {\n const { options, loading } = useProjectMilestones(projectId, value);\n return (\n <select\n id={id}\n data-testid=\"task-milestone\"\n className={selectClass}\n value={value}\n disabled={!projectId}\n onChange={(e) => onChange(e.target.value)}\n >\n <option value=\"\">{loading ? 'Loading milestones…' : 'No milestone'}</option>\n {options.map((m) => (\n <option key={m.id} value={m.id}>\n {m.name}\n {m.status === 'COMPLETED' || m.status === 'CANCELLED'\n ? ` (${m.status.toLowerCase()})`\n : ''}\n </option>\n ))}\n </select>\n );\n}\n\n/** The task detail's inline milestone control: saves on change and shows a refusal below itself. */\nexport function WorkItemMilestoneSelect({\n workItemId,\n projectId,\n milestoneId,\n}: {\n workItemId: string;\n projectId: string;\n milestoneId: string | null;\n}) {\n const { options, loading } = useProjectMilestones(projectId, milestoneId);\n const [update, state] = useMutation(SET_MILESTONE, {\n refetchQueries: MILESTONE_QUERIES,\n awaitRefetchQueries: true,\n });\n const [error, setError] = useState<string | null>(null);\n const save = async (next: string) => {\n setError(null);\n try {\n await throwOnError(\n update({ variables: { id: workItemId, input: { milestoneId: next || null } } })\n );\n } catch (e) {\n setError(e instanceof Error ? e.message : 'The milestone could not be changed.');\n }\n };\n return (\n <div className=\"flex flex-col items-end gap-1\">\n <select\n aria-label=\"Milestone\"\n data-testid=\"task-milestone\"\n className=\"rounded-md border border-input bg-background px-2 py-1 text-sm disabled:opacity-60 max-w-[12rem]\"\n value={milestoneId ?? ''}\n disabled={state.loading}\n onChange={(e) => {\n if (e.target.value !== (milestoneId ?? '')) void save(e.target.value);\n }}\n >\n <option value=\"\">{loading ? 'Loading…' : 'No milestone'}</option>\n {options.map((m) => (\n <option key={m.id} value={m.id}>\n {m.name}\n </option>\n ))}\n </select>\n {error && <ErrorLine message={error} />}\n </div>\n );\n}\n\nexport interface MilestoneProgress {\n total: number;\n done: number;\n cancelled: number;\n open: number;\n percentComplete: number | null;\n}\n\n/** \"3 of 5 done\" with a bar. Cancelled items are shown but do not count towards the percentage (server rule). */\nexport function MilestoneProgressBar({ progress }: { progress: MilestoneProgress }) {\n if (progress.total === 0) {\n return <p className=\"text-xs text-muted-foreground\">No work items grouped under it yet.</p>;\n }\n const counted = progress.total - progress.cancelled;\n return (\n <div className=\"space-y-1\" data-testid=\"milestone-progress\">\n <div className=\"flex justify-between text-xs text-muted-foreground\">\n <span>\n {progress.done} of {counted} done\n {progress.cancelled > 0 ? ` · ${progress.cancelled} cancelled` : ''}\n </span>\n {progress.percentComplete != null && <span>{progress.percentComplete}%</span>}\n </div>\n <div\n className=\"h-2 w-full overflow-hidden rounded-full bg-muted\"\n role=\"progressbar\"\n aria-label=\"Work items done\"\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={progress.percentComplete ?? 0}\n >\n <div className=\"h-full bg-primary\" style={{ width: `${progress.percentComplete ?? 0}%` }} />\n </div>\n </div>\n );\n}\n\ninterface MilestoneWorkItem {\n id: string;\n key: string;\n title: string;\n status: string;\n type: string;\n priority: string;\n}\n\n/** The milestone detail's list of grouped work items: add from the milestone's project, or take one out. */\nexport function MilestoneWorkItemsCard({\n milestoneId,\n projectId,\n}: {\n milestoneId: string;\n projectId: string;\n}) {\n const { workspaceId } = usePlanMagnet();\n const navigate = usePlanMagnetNavigate();\n const [adding, setAdding] = useState(false);\n const [search, setSearch] = useState('');\n const [error, setError] = useState<string | null>(null);\n const term = useDeferredValue(search.trim());\n\n const grouped = useQuery<{\n planmagnetWorkItems: {\n items: MilestoneWorkItem[];\n pageInfo: { hasNextPage: boolean; endCursor: string | null };\n totalCount: number;\n };\n }>(MILESTONE_WORK_ITEMS, {\n variables: {\n workspaceId,\n filter: { milestoneId },\n pagination: { first: MILESTONE_ITEMS_PAGE },\n },\n skip: !workspaceId,\n });\n const items = grouped.data?.planmagnetWorkItems.items ?? [];\n const total = grouped.data?.planmagnetWorkItems.totalCount ?? 0;\n const hasMore = grouped.data?.planmagnetWorkItems.pageInfo.hasNextPage ?? false;\n const [loadingMore, setLoadingMore] = useState(false);\n // Every grouped item is reachable (and removable) here: the next page is appended by cursor.\n const loadMore = async () => {\n const after = grouped.data?.planmagnetWorkItems.pageInfo.endCursor;\n if (!after) return;\n setLoadingMore(true);\n setError(null);\n try {\n await grouped.fetchMore({\n variables: { pagination: { first: MILESTONE_ITEMS_PAGE, after } },\n updateQuery: (prev, { fetchMoreResult }) => ({\n planmagnetWorkItems: {\n ...fetchMoreResult.planmagnetWorkItems,\n items: [\n ...prev.planmagnetWorkItems.items,\n ...fetchMoreResult.planmagnetWorkItems.items,\n ],\n },\n }),\n });\n } catch (e) {\n setError(e instanceof Error ? e.message : 'More work items could not be loaded.');\n } finally {\n setLoadingMore(false);\n }\n };\n\n const candidates = useQuery<{\n planmagnetWorkItems: {\n items: {\n id: string;\n key: string;\n title: string;\n status: string;\n milestone: { id: string; name: string } | null;\n }[];\n totalCount: number;\n };\n }>(CANDIDATES, {\n // Items already here are excluded on the server, so a full page of them never reads as \"nothing to add\".\n variables: {\n workspaceId,\n filter: { projectId, excludeIds: items.map((i) => i.id), ...(term ? { search: term } : {}) },\n },\n skip: !adding || !workspaceId,\n });\n const offered = candidates.data?.planmagnetWorkItems.items ?? [];\n const moreCandidates = (candidates.data?.planmagnetWorkItems.totalCount ?? 0) - offered.length;\n\n const [update, updateState] = useMutation(SET_MILESTONE, {\n refetchQueries: MILESTONE_QUERIES,\n awaitRefetchQueries: true,\n });\n const setMilestone = async (workItemId: string, next: string | null, fallback: string) => {\n setError(null);\n try {\n await throwOnError(update({ variables: { id: workItemId, input: { milestoneId: next } } }));\n } catch (e) {\n setError(e instanceof Error ? e.message : fallback);\n }\n };\n\n return (\n <Card data-testid=\"milestone-work-items\">\n <CardHeader className=\"flex flex-row items-center justify-between space-y-0\">\n <CardTitle>Work Items ({total})</CardTitle>\n {!adding && (\n <Button\n size=\"sm\"\n variant=\"outline\"\n onClick={() => setAdding(true)}\n data-testid=\"milestone-items-add\"\n >\n <Plus className=\"mr-1 h-4 w-4\" /> Add work items\n </Button>\n )}\n </CardHeader>\n <CardContent className=\"space-y-2\">\n {error && (\n <p role=\"alert\" className=\"text-sm text-destructive\">\n {error}\n </p>\n )}\n {grouped.loading && !grouped.data && (\n <p className=\"text-sm text-muted-foreground\">Loading…</p>\n )}\n {grouped.error && (\n <p role=\"alert\" className=\"text-sm text-destructive\">\n Work items could not be loaded: {grouped.error.message}\n </p>\n )}\n {grouped.data && items.length === 0 && (\n <p className=\"text-sm text-muted-foreground\">\n No work items are grouped under this milestone yet.\n </p>\n )}\n {items.map((item) => (\n <div\n key={item.id}\n className=\"flex items-center justify-between gap-2 rounded-md border p-3\"\n data-testid=\"milestone-item\"\n >\n <button\n type=\"button\"\n className=\"min-w-0 text-left\"\n onClick={() =>\n navigate(`/tasks/task-detail-page?taskId=${encodeURIComponent(item.id)}`)\n }\n >\n <p className=\"truncate text-sm font-medium hover:underline\">\n <span className=\"text-muted-foreground\">{item.key}</span> {item.title}\n </p>\n <p className=\"text-xs capitalize text-muted-foreground\">\n {item.type.toLowerCase().replace('_', ' ')} · {item.priority.toLowerCase()}{' '}\n priority\n </p>\n </button>\n <span className=\"flex shrink-0 items-center gap-1\">\n <Badge variant=\"outline\" className=\"text-xs capitalize\">\n {item.status.toLowerCase().replace('_', ' ')}\n </Badge>\n <Button\n size=\"icon\"\n variant=\"ghost\"\n aria-label={`Take ${item.title} out of this milestone`}\n disabled={updateState.loading}\n onClick={() => setMilestone(item.id, null, 'The work item could not be taken out.')}\n >\n <X className=\"h-4 w-4\" />\n </Button>\n </span>\n </div>\n ))}\n {hasMore && (\n <Button\n size=\"sm\"\n variant=\"ghost\"\n className=\"w-full\"\n disabled={loadingMore}\n onClick={() => void loadMore()}\n data-testid=\"milestone-items-more\"\n >\n {loadingMore ? 'Loading…' : `Show more (${items.length} of ${total})`}\n </Button>\n )}\n {adding && (\n <div className=\"space-y-2 border-t pt-3\">\n <div className=\"flex gap-2\">\n <Input\n aria-label=\"Find work items in this milestone's project\"\n placeholder=\"Find work items in this project\"\n value={search}\n onChange={(e) => setSearch(e.target.value)}\n />\n <Button\n size=\"sm\"\n variant=\"ghost\"\n onClick={() => {\n setAdding(false);\n setSearch('');\n }}\n >\n Done\n </Button>\n </div>\n {candidates.loading && !candidates.data && (\n <p className=\"text-sm text-muted-foreground\">Loading…</p>\n )}\n {candidates.error && (\n <p role=\"alert\" className=\"text-sm text-destructive\">\n Work items could not be loaded: {candidates.error.message}\n </p>\n )}\n {candidates.data && offered.length === 0 && (\n <p className=\"text-sm text-muted-foreground\">\n {term\n ? 'No other work items match.'\n : 'Every work item in this project is already under this milestone.'}\n </p>\n )}\n {moreCandidates > 0 && (\n <p className=\"text-xs text-muted-foreground\">\n {moreCandidates} more — type a key or title to narrow the list.\n </p>\n )}\n <ul className=\"space-y-1\">\n {offered.map((c) => (\n <li key={c.id} className=\"flex items-center justify-between gap-2 text-sm\">\n <span className=\"min-w-0 truncate\">\n <span className=\"text-muted-foreground\">{c.key}</span> {c.title}\n {c.milestone && (\n <span className=\"text-xs text-muted-foreground\">\n {' '}\n · in {c.milestone.name}\n </span>\n )}\n </span>\n <Button\n size=\"sm\"\n variant=\"outline\"\n className=\"h-7 shrink-0 text-xs\"\n disabled={updateState.loading}\n data-testid=\"milestone-item-candidate-add\"\n onClick={() =>\n setMilestone(c.id, milestoneId, 'The work item could not be added.')\n }\n >\n {c.milestone ? 'Move here' : 'Add'}\n </Button>\n </li>\n ))}\n </ul>\n </div>\n )}\n </CardContent>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;AAuBA,IAAM,IAAqB,CAAG;;;;;;;;;;;;;;;;;;GAqBxB,IAAwB,KAExB,IAAuB,IACvB,IAAuB,CAAG;;;;;;;;;;;;;;;;;;;;;;GAwB1B,IAAa,CAAG;;;;;;;;;;;;;;;;GAkBhB,IAAgB,CAAG;;;;;;;GAUnB,IAAoB;CACxB;CACA;CACA;CACA;CACA;CACA;C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yticsAnalyticsPagePage.tsx"],"names":[],"mappings":"AA6QA,wBAAgB,0BAA0B,
|
|
1
|
+
{"version":3,"file":"AnalyticsAnalyticsPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/AnalyticsAnalyticsPagePage.tsx"],"names":[],"mappings":"AA6QA,wBAAgB,0BAA0B,4CA6fzC"}
|