@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
|
@@ -3,13 +3,14 @@ import { PersonName as t } from "../people/People.js";
|
|
|
3
3
|
import { useEntityId as n } from "../hooks/useEntityId.js";
|
|
4
4
|
import { detailPath as r } from "../utils/rowNavigation.js";
|
|
5
5
|
import { MilestoneHeaderActions as i } from "../controls/MilestoneControls.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
6
|
+
import { MilestoneProgressBar as a, MilestoneWorkItemsCard as o } from "../milestones/MilestoneControls.js";
|
|
7
|
+
import { Calendar as s, FolderKanban as c, Target as l, User as u } from "lucide-react";
|
|
8
|
+
import { gql as d } from "@apollo/client";
|
|
9
|
+
import { useQuery as f } from "@apollo/client/react";
|
|
10
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
+
import { Badge as h, Card as g, CardContent as _, CardHeader as v, CardTitle as y } from "@burdenoff/fe-libs/ui";
|
|
11
12
|
//#region src/planmagnet/pages/ProjectsMilestoneDetailPagePage.tsx
|
|
12
|
-
var
|
|
13
|
+
var b = d`
|
|
13
14
|
query GetMilestonesForDetail($id: ID!) {
|
|
14
15
|
planmagnetMilestone(id: $id) {
|
|
15
16
|
id
|
|
@@ -22,152 +23,178 @@ var v = l`
|
|
|
22
23
|
}
|
|
23
24
|
status
|
|
24
25
|
dueDate
|
|
26
|
+
isOverdue
|
|
25
27
|
ownerId
|
|
26
28
|
createdAt
|
|
27
29
|
completedAt
|
|
30
|
+
workItemProgress {
|
|
31
|
+
total
|
|
32
|
+
done
|
|
33
|
+
cancelled
|
|
34
|
+
open
|
|
35
|
+
percentComplete
|
|
36
|
+
}
|
|
28
37
|
}
|
|
29
38
|
}
|
|
30
39
|
`;
|
|
31
|
-
function
|
|
32
|
-
let
|
|
33
|
-
variables: { id:
|
|
34
|
-
skip: !
|
|
40
|
+
function x() {
|
|
41
|
+
let d = n("milestoneId"), x = e(), { data: S, loading: C, error: w } = f(b, {
|
|
42
|
+
variables: { id: d },
|
|
43
|
+
skip: !d
|
|
35
44
|
});
|
|
36
|
-
if (!
|
|
45
|
+
if (!d) return /* @__PURE__ */ p("div", {
|
|
37
46
|
className: "p-6 text-muted-foreground",
|
|
38
47
|
children: "No milestone selected. Open one from the list."
|
|
39
48
|
});
|
|
40
|
-
if (
|
|
49
|
+
if (C && !S) return /* @__PURE__ */ p("div", {
|
|
41
50
|
className: "flex items-center justify-center p-12",
|
|
42
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ p("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
43
52
|
});
|
|
44
|
-
if (
|
|
53
|
+
if (w) return /* @__PURE__ */ m("div", {
|
|
45
54
|
className: "p-6 text-red-500",
|
|
46
|
-
children: ["Error loading milestone: ",
|
|
55
|
+
children: ["Error loading milestone: ", w.message]
|
|
47
56
|
});
|
|
48
|
-
let
|
|
49
|
-
if (!
|
|
57
|
+
let T = S?.planmagnetMilestone;
|
|
58
|
+
if (!T) return /* @__PURE__ */ p("div", {
|
|
50
59
|
className: "p-6 text-muted-foreground",
|
|
51
60
|
children: "Milestone not found."
|
|
52
61
|
});
|
|
53
|
-
let
|
|
54
|
-
return /* @__PURE__ */
|
|
62
|
+
let E = T.status === "COMPLETED";
|
|
63
|
+
return /* @__PURE__ */ m("div", {
|
|
55
64
|
className: "space-y-6 p-6",
|
|
56
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ m("div", {
|
|
57
66
|
className: "flex items-center justify-between",
|
|
58
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ m("div", {
|
|
59
68
|
className: "flex items-center gap-3",
|
|
60
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ p(l, { className: "h-6 w-6 text-primary" }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
|
|
61
70
|
className: "text-2xl font-semibold",
|
|
62
|
-
children:
|
|
63
|
-
}), /* @__PURE__ */
|
|
71
|
+
children: T.name
|
|
72
|
+
}), /* @__PURE__ */ m("p", {
|
|
64
73
|
className: "text-sm text-muted-foreground",
|
|
65
|
-
children: ["Project: ",
|
|
74
|
+
children: ["Project: ", T.project?.name ?? "not available"]
|
|
66
75
|
})] })]
|
|
67
|
-
}), /* @__PURE__ */
|
|
68
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ p(i, { milestone: T })]
|
|
77
|
+
}), /* @__PURE__ */ m("div", {
|
|
69
78
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
70
|
-
children: [/* @__PURE__ */
|
|
79
|
+
children: [/* @__PURE__ */ m("div", {
|
|
71
80
|
className: "lg:col-span-2 space-y-6",
|
|
72
|
-
children: [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ m(g, { children: [/* @__PURE__ */ p(v, { children: /* @__PURE__ */ p(y, { children: "Overview" }) }), /* @__PURE__ */ m(_, {
|
|
83
|
+
className: "space-y-4",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ p("p", {
|
|
86
|
+
className: "text-sm",
|
|
87
|
+
children: T.description ?? "No description provided."
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ m("div", {
|
|
90
|
+
className: "flex justify-between text-sm mb-2",
|
|
91
|
+
children: [/* @__PURE__ */ p("span", {
|
|
92
|
+
className: "text-muted-foreground",
|
|
93
|
+
children: "Status"
|
|
94
|
+
}), /* @__PURE__ */ m("span", {
|
|
95
|
+
className: "flex items-center gap-2",
|
|
96
|
+
children: [T.isOverdue && /* @__PURE__ */ p(h, {
|
|
97
|
+
variant: "destructive",
|
|
98
|
+
"data-testid": "milestone-overdue",
|
|
99
|
+
children: "Overdue"
|
|
100
|
+
}), /* @__PURE__ */ p(h, {
|
|
101
|
+
variant: E ? "default" : "secondary",
|
|
102
|
+
className: "capitalize",
|
|
103
|
+
children: T.status.toLowerCase().replace("_", " ")
|
|
104
|
+
})]
|
|
105
|
+
})]
|
|
106
|
+
}) }),
|
|
107
|
+
T.workItemProgress && /* @__PURE__ */ p(a, { progress: T.workItemProgress })
|
|
108
|
+
]
|
|
109
|
+
})] }),
|
|
110
|
+
/* @__PURE__ */ m(g, { children: [/* @__PURE__ */ p(v, { children: /* @__PURE__ */ p(y, { children: "Timeline" }) }), /* @__PURE__ */ p(_, { children: /* @__PURE__ */ m("div", {
|
|
111
|
+
className: "grid grid-cols-2 gap-4 text-center",
|
|
112
|
+
children: [/* @__PURE__ */ m("div", {
|
|
113
|
+
className: "p-4 bg-muted rounded-md",
|
|
114
|
+
children: [/* @__PURE__ */ p("p", {
|
|
115
|
+
className: "text-sm font-bold",
|
|
116
|
+
children: T.dueDate ? new Date(T.dueDate).toLocaleDateString() : "—"
|
|
117
|
+
}), /* @__PURE__ */ p("p", {
|
|
118
|
+
className: "text-xs text-muted-foreground",
|
|
119
|
+
children: "Due Date"
|
|
120
|
+
})]
|
|
121
|
+
}), /* @__PURE__ */ m("div", {
|
|
122
|
+
className: "p-4 bg-muted rounded-md",
|
|
123
|
+
children: [/* @__PURE__ */ p("p", {
|
|
124
|
+
className: "text-sm font-bold",
|
|
125
|
+
children: T.completedAt ? new Date(T.completedAt).toLocaleDateString() : "—"
|
|
126
|
+
}), /* @__PURE__ */ p("p", {
|
|
127
|
+
className: "text-xs text-muted-foreground",
|
|
128
|
+
children: "Completed"
|
|
129
|
+
})]
|
|
107
130
|
})]
|
|
108
|
-
})]
|
|
109
|
-
|
|
110
|
-
|
|
131
|
+
}) })] }),
|
|
132
|
+
/* @__PURE__ */ p(o, {
|
|
133
|
+
milestoneId: T.id,
|
|
134
|
+
projectId: T.projectId
|
|
135
|
+
})
|
|
136
|
+
]
|
|
137
|
+
}), /* @__PURE__ */ m(g, { children: [/* @__PURE__ */ p(v, { children: /* @__PURE__ */ p(y, { children: "Details" }) }), /* @__PURE__ */ m(_, {
|
|
111
138
|
className: "space-y-3 text-sm",
|
|
112
139
|
children: [
|
|
113
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ m("div", {
|
|
114
141
|
className: "flex items-center gap-2",
|
|
115
142
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ p(s, { className: "h-4 w-4 text-muted-foreground" }),
|
|
144
|
+
/* @__PURE__ */ p("span", {
|
|
118
145
|
className: "text-muted-foreground",
|
|
119
146
|
children: "Due:"
|
|
120
147
|
}),
|
|
121
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ p("span", {
|
|
122
149
|
className: "font-medium",
|
|
123
|
-
children:
|
|
150
|
+
children: T.dueDate ? new Date(T.dueDate).toLocaleDateString() : "Not set"
|
|
124
151
|
})
|
|
125
152
|
]
|
|
126
153
|
}),
|
|
127
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ m("div", {
|
|
128
155
|
className: "flex items-center gap-2",
|
|
129
156
|
children: [
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ p(c, { className: "h-4 w-4 text-muted-foreground" }),
|
|
158
|
+
/* @__PURE__ */ p("span", {
|
|
132
159
|
className: "text-muted-foreground",
|
|
133
160
|
children: "Project:"
|
|
134
161
|
}),
|
|
135
|
-
|
|
162
|
+
T.project ? /* @__PURE__ */ p("button", {
|
|
136
163
|
type: "button",
|
|
137
164
|
className: "font-medium text-primary hover:underline",
|
|
138
|
-
onClick: () =>
|
|
139
|
-
children:
|
|
140
|
-
}) : /* @__PURE__ */
|
|
165
|
+
onClick: () => x(r("/projects/project-detail-page", T.project.id)),
|
|
166
|
+
children: T.project.name
|
|
167
|
+
}) : /* @__PURE__ */ p("span", {
|
|
141
168
|
className: "text-muted-foreground",
|
|
142
169
|
children: "not available"
|
|
143
170
|
})
|
|
144
171
|
]
|
|
145
172
|
}),
|
|
146
|
-
|
|
173
|
+
T.ownerId && /* @__PURE__ */ m("div", {
|
|
147
174
|
className: "flex items-center gap-2",
|
|
148
175
|
children: [
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ p(u, { className: "h-4 w-4 text-muted-foreground" }),
|
|
177
|
+
/* @__PURE__ */ p("span", {
|
|
151
178
|
className: "text-muted-foreground",
|
|
152
179
|
children: "Owner:"
|
|
153
180
|
}),
|
|
154
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ p("span", {
|
|
155
182
|
className: "font-medium",
|
|
156
|
-
children: /* @__PURE__ */
|
|
183
|
+
children: /* @__PURE__ */ p(t, { id: T.ownerId })
|
|
157
184
|
})
|
|
158
185
|
]
|
|
159
186
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ m("div", {
|
|
161
188
|
className: "flex items-center gap-2",
|
|
162
189
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ p(s, { className: "h-4 w-4 text-muted-foreground" }),
|
|
191
|
+
/* @__PURE__ */ p("span", {
|
|
165
192
|
className: "text-muted-foreground",
|
|
166
193
|
children: "Created:"
|
|
167
194
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ p("span", {
|
|
169
196
|
className: "font-medium",
|
|
170
|
-
children:
|
|
197
|
+
children: T.createdAt ? new Date(T.createdAt).toLocaleDateString() : "—"
|
|
171
198
|
})
|
|
172
199
|
]
|
|
173
200
|
})
|
|
@@ -177,6 +204,6 @@ function y() {
|
|
|
177
204
|
});
|
|
178
205
|
}
|
|
179
206
|
//#endregion
|
|
180
|
-
export {
|
|
207
|
+
export { x as ProjectsMilestoneDetailPagePage };
|
|
181
208
|
|
|
182
209
|
//# sourceMappingURL=ProjectsMilestoneDetailPagePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectsMilestoneDetailPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/ProjectsMilestoneDetailPagePage.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 } from '@burdenoff/fe-libs/ui';\nimport { Target, Calendar, FolderKanban, User } from 'lucide-react';\nimport { useEntityId } from '../hooks/useEntityId';\nimport { PersonName } from '../people/People';\nimport { MilestoneHeaderActions } from '../controls/MilestoneControls';\nimport { usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { detailPath } from '../utils/rowNavigation';\n\nconst GET_MILESTONES_FOR_DETAIL = gql`\n query GetMilestonesForDetail($id: ID!) {\n planmagnetMilestone(id: $id) {\n id\n name\n description\n projectId\n project {\n id\n name\n }\n status\n dueDate\n ownerId\n createdAt\n completedAt\n }\n }\n`;\n\nexport function ProjectsMilestoneDetailPagePage() {\n const milestoneId = useEntityId('milestoneId');\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_MILESTONES_FOR_DETAIL, {\n variables: { id: milestoneId },\n skip: !milestoneId,\n });\n\n if (!milestoneId)\n return (\n <div className=\"p-6 text-muted-foreground\">\n No milestone selected. Open one from the list.\n </div>\n );\n // Only before the first load: a refetch must not blank the page (it\n // unmounts every component on it and loses their state).\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 milestone: {error.message}</div>;\n\n const ms = data?.planmagnetMilestone;\n if (!ms) return <div className=\"p-6 text-muted-foreground\">Milestone not found.</div>;\n\n const isCompleted = ms.status === 'COMPLETED';\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-3\">\n <Target className=\"h-6 w-6 text-primary\" />\n <div>\n <h1 className=\"text-2xl font-semibold\">{ms.name}</h1>\n <p className=\"text-sm text-muted-foreground\">\n Project: {ms.project?.name ?? 'not available'}\n </p>\n </div>\n </div>\n {/* Status, Edit and Delete (BOFF-7953): the milestone could never move past Pending. */}\n <MilestoneHeaderActions milestone={ms} />\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>Overview</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <p className=\"text-sm\">{ms.description ?? 'No description provided.'}</p>\n <div>\n <div className=\"flex justify-between text-sm mb-2\">\n <span className=\"text-muted-foreground\">Status</span>\n <Badge variant={isCompleted ? 'default' : 'secondary'} className=\"capitalize\">\n {ms.status.toLowerCase().replace('_', ' ')}\n </Badge>\n </div>\n </div>\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>Timeline</CardTitle>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-2 gap-4 text-center\">\n <div className=\"p-4 bg-muted rounded-md\">\n <p className=\"text-sm font-bold\">\n {ms.dueDate ? new Date(ms.dueDate).toLocaleDateString() : '—'}\n </p>\n <p className=\"text-xs text-muted-foreground\">Due Date</p>\n </div>\n <div className=\"p-4 bg-muted rounded-md\">\n <p className=\"text-sm font-bold\">\n {ms.completedAt ? new Date(ms.completedAt).toLocaleDateString() : '—'}\n </p>\n <p className=\"text-xs text-muted-foreground\">Completed</p>\n </div>\n </div>\n </CardContent>\n </Card>\n </div>\n <Card>\n <CardHeader>\n <CardTitle>Details</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3 text-sm\">\n <div className=\"flex items-center gap-2\">\n <Calendar className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Due:</span>\n <span className=\"font-medium\">\n {ms.dueDate ? new Date(ms.dueDate).toLocaleDateString() : 'Not set'}\n </span>\n </div>\n <div className=\"flex items-center gap-2\">\n <FolderKanban className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Project:</span>\n {/* The project's name, linked — this printed the raw project UUID (BOFF-7949). */}\n {ms.project ? (\n <button\n type=\"button\"\n className=\"font-medium text-primary hover:underline\"\n onClick={() =>\n navigate(detailPath('/projects/project-detail-page', ms.project.id))\n }\n >\n {ms.project.name}\n </button>\n ) : (\n <span className=\"text-muted-foreground\">not available</span>\n )}\n </div>\n {ms.ownerId && (\n <div className=\"flex items-center gap-2\">\n <User className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Owner:</span>\n <span className=\"font-medium\">\n <PersonName id={ms.ownerId} />\n </span>\n </div>\n )}\n <div className=\"flex items-center gap-2\">\n <Calendar className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Created:</span>\n <span className=\"font-medium\">\n {ms.createdAt ? new Date(ms.createdAt).toLocaleDateString() : '—'}\n </span>\n </div>\n </CardContent>\n </Card>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAYA,IAAM,IAA4B,CAAG;;;;;;;;;;;;;;;;;;;AAoBrC,SAAgB,IAAkC;CAChD,IAAM,IAAc,EAAY,cAAc,EACxC,IAAW,GAAuB,EAElC,EACJ,SACA,YACA,aAGA,EAA8B,GAA2B;EACvD,WAAW,EAAE,IAAI,GAAa;EAC9B,MAAM,CAAC;EACR,CAAC;AAEJ,KAAI,CAAC,EACH,QACE,kBAAC,OAAD;EAAK,WAAU;YAA4B;EAErC,CAAA;AAIV,KAAI,KAAW,CAAC,EACd,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,OAAD,EAAK,WAAU,kFAAmF,CAAA;EAC9F,CAAA;AAEV,KAAI,EACF,QAAO,kBAAC,OAAD;EAAK,WAAU;YAAf,CAAkC,6BAA0B,EAAM,QAAc;;CAEzF,IAAM,IAAK,GAAM;AACjB,KAAI,CAAC,EAAI,QAAO,kBAAC,OAAD;EAAK,WAAU;YAA4B;EAA0B,CAAA;CAErF,IAAM,IAAc,EAAG,WAAW;AAElC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,GAAD,EAAQ,WAAU,wBAAyB,CAAA,EAC3C,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;KAAI,WAAU;eAA0B,EAAG;KAAU,CAAA,EACrD,kBAAC,KAAD;KAAG,WAAU;eAAb,CAA6C,aACjC,EAAG,SAAS,QAAQ,gBAC5B;OACA,EAAA,CAAA,CACF;OAEN,kBAAC,GAAD,EAAwB,WAAW,GAAM,CAAA,CACrC;MACN,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAA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AD;IAAa,WAAU;cAAvB;KACE,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,GAAD,EAAU,WAAU,iCAAkC,CAAA;OACtD,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAW,CAAA;OACnD,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAG,UAAU,IAAI,KAAK,EAAG,QAAQ,CAAC,oBAAoB,GAAG;QACrD,CAAA;OACH;;KACN,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,GAAD,EAAc,WAAU,iCAAkC,CAAA;OAC1D,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAe,CAAA;OAEtD,EAAG,UACF,kBAAC,UAAD;QACE,MAAK;QACL,WAAU;QACV,eACE,EAAS,EAAW,iCAAiC,EAAG,QAAQ,GAAG,CAAC;kBAGrE,EAAG,QAAQ;QACL,CAAA,GAET,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAoB,CAAA;OAE1D;;KACL,EAAG,WACF,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,GAAD,EAAM,WAAU,iCAAkC,CAAA;OAClD,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAa,CAAA;OACrD,kBAAC,QAAD;QAAM,WAAU;kBACd,kBAAC,GAAD,EAAY,IAAI,EAAG,SAAW,CAAA;QACzB,CAAA;OACH;;KAER,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,GAAD,EAAU,WAAU,iCAAkC,CAAA;OACtD,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAe,CAAA;OACvD,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAG,YAAY,IAAI,KAAK,EAAG,UAAU,CAAC,oBAAoB,GAAG;QACzD,CAAA;OACH;;KACM;MACT,EAAA,CAAA,CACH;KACF"}
|
|
1
|
+
{"version":3,"file":"ProjectsMilestoneDetailPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/ProjectsMilestoneDetailPagePage.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 } from '@burdenoff/fe-libs/ui';\nimport { Target, Calendar, FolderKanban, User } from 'lucide-react';\nimport { useEntityId } from '../hooks/useEntityId';\nimport { PersonName } from '../people/People';\nimport { MilestoneHeaderActions } from '../controls/MilestoneControls';\nimport { MilestoneProgressBar, MilestoneWorkItemsCard } from '../milestones/MilestoneControls';\nimport { usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { detailPath } from '../utils/rowNavigation';\n\nconst GET_MILESTONES_FOR_DETAIL = gql`\n query GetMilestonesForDetail($id: ID!) {\n planmagnetMilestone(id: $id) {\n id\n name\n description\n projectId\n project {\n id\n name\n }\n status\n dueDate\n isOverdue\n ownerId\n createdAt\n completedAt\n workItemProgress {\n total\n done\n cancelled\n open\n percentComplete\n }\n }\n }\n`;\n\nexport function ProjectsMilestoneDetailPagePage() {\n const milestoneId = useEntityId('milestoneId');\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_MILESTONES_FOR_DETAIL, {\n variables: { id: milestoneId },\n skip: !milestoneId,\n });\n\n if (!milestoneId)\n return (\n <div className=\"p-6 text-muted-foreground\">\n No milestone selected. Open one from the list.\n </div>\n );\n // Only before the first load: a refetch must not blank the page (it\n // unmounts every component on it and loses their state).\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 milestone: {error.message}</div>;\n\n const ms = data?.planmagnetMilestone;\n if (!ms) return <div className=\"p-6 text-muted-foreground\">Milestone not found.</div>;\n\n const isCompleted = ms.status === 'COMPLETED';\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-3\">\n <Target className=\"h-6 w-6 text-primary\" />\n <div>\n <h1 className=\"text-2xl font-semibold\">{ms.name}</h1>\n <p className=\"text-sm text-muted-foreground\">\n Project: {ms.project?.name ?? 'not available'}\n </p>\n </div>\n </div>\n {/* Status, Edit and Delete (BOFF-7953): the milestone could never move past Pending. */}\n <MilestoneHeaderActions milestone={ms} />\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>Overview</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <p className=\"text-sm\">{ms.description ?? 'No description provided.'}</p>\n <div>\n <div className=\"flex justify-between text-sm mb-2\">\n <span className=\"text-muted-foreground\">Status</span>\n <span className=\"flex items-center gap-2\">\n {ms.isOverdue && (\n <Badge variant=\"destructive\" data-testid=\"milestone-overdue\">\n Overdue\n </Badge>\n )}\n <Badge variant={isCompleted ? 'default' : 'secondary'} className=\"capitalize\">\n {ms.status.toLowerCase().replace('_', ' ')}\n </Badge>\n </span>\n </div>\n </div>\n {/* PDM-22: counted by the server over the items grouped under this milestone. */}\n {ms.workItemProgress && <MilestoneProgressBar progress={ms.workItemProgress} />}\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <CardTitle>Timeline</CardTitle>\n </CardHeader>\n <CardContent>\n <div className=\"grid grid-cols-2 gap-4 text-center\">\n <div className=\"p-4 bg-muted rounded-md\">\n <p className=\"text-sm font-bold\">\n {ms.dueDate ? new Date(ms.dueDate).toLocaleDateString() : '—'}\n </p>\n <p className=\"text-xs text-muted-foreground\">Due Date</p>\n </div>\n <div className=\"p-4 bg-muted rounded-md\">\n <p className=\"text-sm font-bold\">\n {ms.completedAt ? new Date(ms.completedAt).toLocaleDateString() : '—'}\n </p>\n <p className=\"text-xs text-muted-foreground\">Completed</p>\n </div>\n </div>\n </CardContent>\n </Card>\n <MilestoneWorkItemsCard milestoneId={ms.id} projectId={ms.projectId} />\n </div>\n <Card>\n <CardHeader>\n <CardTitle>Details</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3 text-sm\">\n <div className=\"flex items-center gap-2\">\n <Calendar className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Due:</span>\n <span className=\"font-medium\">\n {ms.dueDate ? new Date(ms.dueDate).toLocaleDateString() : 'Not set'}\n </span>\n </div>\n <div className=\"flex items-center gap-2\">\n <FolderKanban className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Project:</span>\n {/* The project's name, linked — this printed the raw project UUID (BOFF-7949). */}\n {ms.project ? (\n <button\n type=\"button\"\n className=\"font-medium text-primary hover:underline\"\n onClick={() =>\n navigate(detailPath('/projects/project-detail-page', ms.project.id))\n }\n >\n {ms.project.name}\n </button>\n ) : (\n <span className=\"text-muted-foreground\">not available</span>\n )}\n </div>\n {ms.ownerId && (\n <div className=\"flex items-center gap-2\">\n <User className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Owner:</span>\n <span className=\"font-medium\">\n <PersonName id={ms.ownerId} />\n </span>\n </div>\n )}\n <div className=\"flex items-center gap-2\">\n <Calendar className=\"h-4 w-4 text-muted-foreground\" />\n <span className=\"text-muted-foreground\">Created:</span>\n <span className=\"font-medium\">\n {ms.createdAt ? new Date(ms.createdAt).toLocaleDateString() : '—'}\n </span>\n </div>\n </CardContent>\n </Card>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAaA,IAAM,IAA4B,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BrC,SAAgB,IAAkC;CAChD,IAAM,IAAc,EAAY,cAAc,EACxC,IAAW,GAAuB,EAElC,EACJ,SACA,YACA,aAGA,EAA8B,GAA2B;EACvD,WAAW,EAAE,IAAI,GAAa;EAC9B,MAAM,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;OACtD,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAW,CAAA;OACnD,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAG,UAAU,IAAI,KAAK,EAAG,QAAQ,CAAC,oBAAoB,GAAG;QACrD,CAAA;OACH;;KACN,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,GAAD,EAAc,WAAU,iCAAkC,CAAA;OAC1D,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAe,CAAA;OAEtD,EAAG,UACF,kBAAC,UAAD;QACE,MAAK;QACL,WAAU;QACV,eACE,EAAS,EAAW,iCAAiC,EAAG,QAAQ,GAAG,CAAC;kBAGrE,EAAG,QAAQ;QACL,CAAA,GAET,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAoB,CAAA;OAE1D;;KACL,EAAG,WACF,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,GAAD,EAAM,WAAU,iCAAkC,CAAA;OAClD,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAa,CAAA;OACrD,kBAAC,QAAD;QAAM,WAAU;kBACd,kBAAC,GAAD,EAAY,IAAI,EAAG,SAAW,CAAA;QACzB,CAAA;OACH;;KAER,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,kBAAC,GAAD,EAAU,WAAU,iCAAkC,CAAA;OACtD,kBAAC,QAAD;QAAM,WAAU;kBAAwB;QAAe,CAAA;OACvD,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAG,YAAY,IAAI,KAAK,EAAG,UAAU,CAAC,oBAAoB,GAAG;QACzD,CAAA;OACH;;KACM;MACT,EAAA,CAAA,CACH;KACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectsMilestonesPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/ProjectsMilestonesPagePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProjectsMilestonesPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/ProjectsMilestonesPagePage.tsx"],"names":[],"mappings":"AA4DA,wBAAgB,0BAA0B,4CAuIzC"}
|
|
@@ -2,14 +2,15 @@ import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/Pla
|
|
|
2
2
|
import { PersonName as n } from "../people/People.js";
|
|
3
3
|
import { detailPath as r, rowLinkProps as i } from "../utils/rowNavigation.js";
|
|
4
4
|
import { NewMilestoneDialog as a } from "../create/CreateDialogs.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { MilestoneProgressBar as o } from "../milestones/MilestoneControls.js";
|
|
6
|
+
import { useState as s } from "react";
|
|
7
|
+
import { Calendar as c, Target as l, User as u } from "lucide-react";
|
|
8
|
+
import { gql as d } from "@apollo/client";
|
|
9
|
+
import { useQuery as f } from "@apollo/client/react";
|
|
10
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
11
|
+
import { Badge as h, Card as g, CardContent as _, CardHeader as v, CardTitle as y } from "@burdenoff/fe-libs/ui";
|
|
11
12
|
//#region src/planmagnet/pages/ProjectsMilestonesPagePage.tsx
|
|
12
|
-
var
|
|
13
|
+
var b = d`
|
|
13
14
|
query GetMilestones($workspaceId: ID!, $filter: PlanmagnetMilestoneFilter) {
|
|
14
15
|
planmagnetMilestones(workspaceId: $workspaceId, filter: $filter, pagination: { first: 100 }) {
|
|
15
16
|
items {
|
|
@@ -23,19 +24,27 @@ var v = u`
|
|
|
23
24
|
}
|
|
24
25
|
status
|
|
25
26
|
dueDate
|
|
27
|
+
isOverdue
|
|
26
28
|
ownerId
|
|
27
29
|
createdAt
|
|
30
|
+
workItemProgress {
|
|
31
|
+
total
|
|
32
|
+
done
|
|
33
|
+
cancelled
|
|
34
|
+
open
|
|
35
|
+
percentComplete
|
|
36
|
+
}
|
|
28
37
|
}
|
|
29
38
|
totalCount
|
|
30
39
|
}
|
|
31
40
|
}
|
|
32
|
-
`,
|
|
41
|
+
`, x = {
|
|
33
42
|
PENDING: "bg-gray-100 text-gray-800",
|
|
34
43
|
IN_PROGRESS: "bg-blue-100 text-blue-800",
|
|
35
44
|
COMPLETED: "bg-green-100 text-green-800",
|
|
36
45
|
MISSED: "bg-red-100 text-red-800",
|
|
37
46
|
CANCELLED: "bg-red-100 text-red-800"
|
|
38
|
-
},
|
|
47
|
+
}, S = [
|
|
39
48
|
"all",
|
|
40
49
|
"PENDING",
|
|
41
50
|
"IN_PROGRESS",
|
|
@@ -43,76 +52,85 @@ var v = u`
|
|
|
43
52
|
"MISSED",
|
|
44
53
|
"CANCELLED"
|
|
45
54
|
];
|
|
46
|
-
function
|
|
47
|
-
let { workspaceId:
|
|
48
|
-
workspaceId:
|
|
49
|
-
filter:
|
|
55
|
+
function C() {
|
|
56
|
+
let { workspaceId: d } = e(), C = t(), [w, T] = s("all"), { data: E, loading: D, error: O } = f(b, { variables: {
|
|
57
|
+
workspaceId: d ?? "default",
|
|
58
|
+
filter: w === "all" ? void 0 : { status: w }
|
|
50
59
|
} });
|
|
51
|
-
if (
|
|
60
|
+
if (D && !E) return /* @__PURE__ */ p("div", {
|
|
52
61
|
className: "flex items-center justify-center p-12",
|
|
53
|
-
children: /* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ p("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
54
63
|
});
|
|
55
|
-
let
|
|
56
|
-
return /* @__PURE__ */
|
|
64
|
+
let k = E?.planmagnetMilestones?.items ?? [], A = E?.planmagnetMilestones?.totalCount ?? 0;
|
|
65
|
+
return /* @__PURE__ */ m("div", {
|
|
57
66
|
className: "space-y-6 p-6",
|
|
58
67
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ m("div", {
|
|
60
69
|
className: "flex items-center justify-between",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
|
|
62
71
|
className: "text-2xl font-semibold",
|
|
63
72
|
children: "Milestones"
|
|
64
|
-
}), /* @__PURE__ */
|
|
73
|
+
}), /* @__PURE__ */ p("p", {
|
|
65
74
|
className: "text-sm text-muted-foreground",
|
|
66
|
-
children:
|
|
67
|
-
})] }), /* @__PURE__ */
|
|
75
|
+
children: w === "all" ? `${A} milestones across all projects` : `${A} ${w.toLowerCase().replace("_", " ")} milestones`
|
|
76
|
+
})] }), /* @__PURE__ */ p(a, { onCreated: (e) => C(r("/projects/milestone-detail-page", e)) })]
|
|
68
77
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ p("div", {
|
|
70
79
|
className: "flex gap-1",
|
|
71
|
-
children:
|
|
72
|
-
onClick: () =>
|
|
73
|
-
className: `px-3 py-1.5 text-sm rounded-md capitalize ${
|
|
80
|
+
children: S.map((e) => /* @__PURE__ */ p("button", {
|
|
81
|
+
onClick: () => T(e),
|
|
82
|
+
className: `px-3 py-1.5 text-sm rounded-md capitalize ${w === e ? "bg-primary text-primary-foreground" : "text-muted-foreground hover:bg-muted"}`,
|
|
74
83
|
children: e === "all" ? "All" : e.toLowerCase().replace("_", " ")
|
|
75
84
|
}, e))
|
|
76
85
|
}),
|
|
77
|
-
|
|
86
|
+
O && /* @__PURE__ */ m("div", {
|
|
78
87
|
role: "alert",
|
|
79
88
|
className: "rounded-md border border-destructive/40 p-4 text-sm text-destructive",
|
|
80
|
-
children: ["Milestones could not be loaded: ",
|
|
89
|
+
children: ["Milestones could not be loaded: ", O.message]
|
|
81
90
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ p("div", {
|
|
83
92
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
84
|
-
children:
|
|
85
|
-
...i(() =>
|
|
86
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: k.map((e) => /* @__PURE__ */ m(g, {
|
|
94
|
+
...i(() => C(r("/projects/milestone-detail-page", e.id)), e.name),
|
|
95
|
+
children: [/* @__PURE__ */ p(v, {
|
|
87
96
|
className: "pb-2",
|
|
88
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ m("div", {
|
|
89
98
|
className: "flex items-center justify-between",
|
|
90
|
-
children: [/* @__PURE__ */
|
|
99
|
+
children: [/* @__PURE__ */ m(y, {
|
|
91
100
|
className: "text-base flex items-center gap-2",
|
|
92
|
-
children: [/* @__PURE__ */
|
|
93
|
-
}), /* @__PURE__ */
|
|
94
|
-
className: `text-xs px-2 py-0.5 rounded-full capitalize ${
|
|
101
|
+
children: [/* @__PURE__ */ p(l, { className: "h-4 w-4 text-primary" }), e.name]
|
|
102
|
+
}), /* @__PURE__ */ p("span", {
|
|
103
|
+
className: `text-xs px-2 py-0.5 rounded-full capitalize ${x[e.status] ?? "bg-gray-100"}`,
|
|
95
104
|
children: e.status.toLowerCase().replace("_", " ")
|
|
96
105
|
})]
|
|
97
106
|
})
|
|
98
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ m(_, {
|
|
99
108
|
className: "space-y-3",
|
|
100
109
|
children: [
|
|
101
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ p("p", {
|
|
102
111
|
className: "text-sm text-muted-foreground",
|
|
103
112
|
children: e.description ?? "No description"
|
|
104
113
|
}),
|
|
105
|
-
/* @__PURE__ */ p(
|
|
114
|
+
e.workItemProgress && /* @__PURE__ */ p(o, { progress: e.workItemProgress }),
|
|
115
|
+
/* @__PURE__ */ m("div", {
|
|
106
116
|
className: "flex gap-3 text-xs text-muted-foreground",
|
|
107
|
-
children: [
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
117
|
+
children: [
|
|
118
|
+
/* @__PURE__ */ m("span", {
|
|
119
|
+
className: "flex items-center gap-1",
|
|
120
|
+
children: [/* @__PURE__ */ p(c, { className: "h-3 w-3" }), e.dueDate ? new Date(e.dueDate).toLocaleDateString() : "No due date"]
|
|
121
|
+
}),
|
|
122
|
+
e.isOverdue && /* @__PURE__ */ p(h, {
|
|
123
|
+
variant: "destructive",
|
|
124
|
+
"data-testid": "milestone-overdue",
|
|
125
|
+
children: "Overdue"
|
|
126
|
+
}),
|
|
127
|
+
e.ownerId && /* @__PURE__ */ m("span", {
|
|
128
|
+
className: "flex items-center gap-1",
|
|
129
|
+
children: [/* @__PURE__ */ p(u, { className: "h-3 w-3" }), /* @__PURE__ */ p(n, { id: e.ownerId })]
|
|
130
|
+
})
|
|
131
|
+
]
|
|
114
132
|
}),
|
|
115
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ m("div", {
|
|
116
134
|
className: "text-xs text-muted-foreground",
|
|
117
135
|
children: ["Project: ", e.project?.name ?? "not available"]
|
|
118
136
|
})
|
|
@@ -120,7 +138,7 @@ function x() {
|
|
|
120
138
|
})]
|
|
121
139
|
}, e.id))
|
|
122
140
|
}),
|
|
123
|
-
!
|
|
141
|
+
!O && k.length === 0 && /* @__PURE__ */ p("p", {
|
|
124
142
|
className: "text-center text-muted-foreground py-8",
|
|
125
143
|
children: "No milestones found."
|
|
126
144
|
})
|
|
@@ -128,6 +146,6 @@ function x() {
|
|
|
128
146
|
});
|
|
129
147
|
}
|
|
130
148
|
//#endregion
|
|
131
|
-
export {
|
|
149
|
+
export { C as ProjectsMilestonesPagePage };
|
|
132
150
|
|
|
133
151
|
//# sourceMappingURL=ProjectsMilestonesPagePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProjectsMilestonesPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/ProjectsMilestonesPagePage.tsx"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport { useState } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Card, CardContent, CardHeader, CardTitle, Badge } from '@burdenoff/fe-libs/ui';\nimport { Target, Calendar, User } from 'lucide-react';\nimport { usePlanMagnet, usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { rowLinkProps, detailPath } from '../utils/rowNavigation';\nimport { PersonName } from '../people/People';\nimport { NewMilestoneDialog } from '../create/CreateDialogs';\n\nconst GET_MILESTONES = gql`\n query GetMilestones($workspaceId: ID!, $filter: PlanmagnetMilestoneFilter) {\n planmagnetMilestones(workspaceId: $workspaceId, filter: $filter, pagination: { first: 100 }) {\n items {\n id\n name\n description\n projectId\n project {\n id\n name\n }\n status\n dueDate\n ownerId\n createdAt\n }\n totalCount\n }\n }\n`;\n\nconst statusColor: Record<string, string> = {\n PENDING: 'bg-gray-100 text-gray-800',\n IN_PROGRESS: 'bg-blue-100 text-blue-800',\n COMPLETED: 'bg-green-100 text-green-800',\n MISSED: 'bg-red-100 text-red-800',\n CANCELLED: 'bg-red-100 text-red-800',\n};\n\nconst milestoneStatuses = [\n 'all',\n 'PENDING',\n 'IN_PROGRESS',\n 'COMPLETED',\n 'MISSED',\n 'CANCELLED',\n] as const;\n\nexport function ProjectsMilestonesPagePage() {\n const { workspaceId } = usePlanMagnet();\n const navigate = usePlanMagnetNavigate();\n const [filter, setFilter] = useState<string>('all');\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_MILESTONES, {\n variables: {\n workspaceId: workspaceId ?? 'default',\n filter: filter !== 'all' ? { status: filter } : undefined,\n },\n });\n\n // Only before the first load: a refetch after a create must not blank the page.\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 // A failed load is shown INSIDE the list area: an early return here replaced the whole page, so the status tabs\n // and New Milestone vanished and a failing tab could not be left (BOFF-7942).\n\n const milestones = data?.planmagnetMilestones?.items ?? [];\n const totalCount = data?.planmagnetMilestones?.totalCount ?? 0;\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\">Milestones</h1>\n <p className=\"text-sm text-muted-foreground\">\n {/* The count follows the tab: it is the filtered total, so do not call it \"all\". */}\n {filter === 'all'\n ? `${totalCount} milestones across all projects`\n : `${totalCount} ${filter.toLowerCase().replace('_', ' ')} milestones`}\n </p>\n </div>\n <NewMilestoneDialog\n onCreated={(id) => navigate(detailPath('/projects/milestone-detail-page', id))}\n />\n </div>\n <div className=\"flex gap-1\">\n {milestoneStatuses.map((s) => (\n <button\n key={s}\n onClick={() => setFilter(s)}\n className={`px-3 py-1.5 text-sm rounded-md capitalize ${filter === s ? 'bg-primary text-primary-foreground' : 'text-muted-foreground hover:bg-muted'}`}\n >\n {s === 'all' ? 'All' : s.toLowerCase().replace('_', ' ')}\n </button>\n ))}\n </div>\n {error && (\n <div\n role=\"alert\"\n className=\"rounded-md border border-destructive/40 p-4 text-sm text-destructive\"\n >\n Milestones could not be loaded: {error.message}\n </div>\n )}\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {milestones.map(\n (ms: {\n id: string;\n name: string;\n description: string | null;\n projectId: string;\n project: { id: string; name: string } | null;\n status: string;\n dueDate: string | null;\n ownerId: string | null;\n }) => (\n <Card\n key={ms.id}\n {...rowLinkProps(\n () => navigate(detailPath('/projects/milestone-detail-page', ms.id)),\n ms.name\n )}\n >\n <CardHeader className=\"pb-2\">\n <div className=\"flex items-center justify-between\">\n <CardTitle className=\"text-base flex items-center gap-2\">\n <Target className=\"h-4 w-4 text-primary\" />\n {ms.name}\n </CardTitle>\n <span\n className={`text-xs px-2 py-0.5 rounded-full capitalize ${statusColor[ms.status] ?? 'bg-gray-100'}`}\n >\n {ms.status.toLowerCase().replace('_', ' ')}\n </span>\n </div>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n <p className=\"text-sm text-muted-foreground\">\n {ms.description ?? 'No description'}\n </p>\n <div className=\"flex gap-3 text-xs text-muted-foreground\">\n <span className=\"flex items-center gap-1\">\n <Calendar className=\"h-3 w-3\" />\n {ms.dueDate ? new Date(ms.dueDate).toLocaleDateString() : 'No due date'}\n </span>\n {ms.ownerId && (\n <span className=\"flex items-center gap-1\">\n <User className=\"h-3 w-3\" />\n <PersonName id={ms.ownerId} />\n </span>\n )}\n </div>\n <div className=\"text-xs text-muted-foreground\">\n Project: {ms.project?.name ?? 'not available'}\n </div>\n </CardContent>\n </Card>\n )\n )}\n </div>\n {!error && milestones.length === 0 && (\n <p className=\"text-center text-muted-foreground py-8\">No milestones found.</p>\n )}\n </div>\n );\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProjectsMilestonesPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/ProjectsMilestonesPagePage.tsx"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport { useState } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Card, CardContent, CardHeader, CardTitle, Badge } from '@burdenoff/fe-libs/ui';\nimport { Target, Calendar, User } from 'lucide-react';\nimport { usePlanMagnet, usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { rowLinkProps, detailPath } from '../utils/rowNavigation';\nimport { PersonName } from '../people/People';\nimport { NewMilestoneDialog } from '../create/CreateDialogs';\nimport { type MilestoneProgress, MilestoneProgressBar } from '../milestones/MilestoneControls';\n\nconst GET_MILESTONES = gql`\n query GetMilestones($workspaceId: ID!, $filter: PlanmagnetMilestoneFilter) {\n planmagnetMilestones(workspaceId: $workspaceId, filter: $filter, pagination: { first: 100 }) {\n items {\n id\n name\n description\n projectId\n project {\n id\n name\n }\n status\n dueDate\n isOverdue\n ownerId\n createdAt\n workItemProgress {\n total\n done\n cancelled\n open\n percentComplete\n }\n }\n totalCount\n }\n }\n`;\n\nconst statusColor: Record<string, string> = {\n PENDING: 'bg-gray-100 text-gray-800',\n IN_PROGRESS: 'bg-blue-100 text-blue-800',\n COMPLETED: 'bg-green-100 text-green-800',\n MISSED: 'bg-red-100 text-red-800',\n CANCELLED: 'bg-red-100 text-red-800',\n};\n\nconst milestoneStatuses = [\n 'all',\n 'PENDING',\n 'IN_PROGRESS',\n 'COMPLETED',\n 'MISSED',\n 'CANCELLED',\n] as const;\n\nexport function ProjectsMilestonesPagePage() {\n const { workspaceId } = usePlanMagnet();\n const navigate = usePlanMagnetNavigate();\n const [filter, setFilter] = useState<string>('all');\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_MILESTONES, {\n variables: {\n workspaceId: workspaceId ?? 'default',\n filter: filter !== 'all' ? { status: filter } : undefined,\n },\n });\n\n // Only before the first load: a refetch after a create must not blank the page.\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 // A failed load is shown INSIDE the list area: an early return here replaced the whole page, so the status tabs\n // and New Milestone vanished and a failing tab could not be left (BOFF-7942).\n\n const milestones = data?.planmagnetMilestones?.items ?? [];\n const totalCount = data?.planmagnetMilestones?.totalCount ?? 0;\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\">Milestones</h1>\n <p className=\"text-sm text-muted-foreground\">\n {/* The count follows the tab: it is the filtered total, so do not call it \"all\". */}\n {filter === 'all'\n ? `${totalCount} milestones across all projects`\n : `${totalCount} ${filter.toLowerCase().replace('_', ' ')} milestones`}\n </p>\n </div>\n <NewMilestoneDialog\n onCreated={(id) => navigate(detailPath('/projects/milestone-detail-page', id))}\n />\n </div>\n <div className=\"flex gap-1\">\n {milestoneStatuses.map((s) => (\n <button\n key={s}\n onClick={() => setFilter(s)}\n className={`px-3 py-1.5 text-sm rounded-md capitalize ${filter === s ? 'bg-primary text-primary-foreground' : 'text-muted-foreground hover:bg-muted'}`}\n >\n {s === 'all' ? 'All' : s.toLowerCase().replace('_', ' ')}\n </button>\n ))}\n </div>\n {error && (\n <div\n role=\"alert\"\n className=\"rounded-md border border-destructive/40 p-4 text-sm text-destructive\"\n >\n Milestones could not be loaded: {error.message}\n </div>\n )}\n <div className=\"grid grid-cols-1 md:grid-cols-2 gap-4\">\n {milestones.map(\n (ms: {\n id: string;\n name: string;\n description: string | null;\n projectId: string;\n project: { id: string; name: string } | null;\n status: string;\n dueDate: string | null;\n isOverdue: boolean;\n ownerId: string | null;\n workItemProgress: MilestoneProgress | null;\n }) => (\n <Card\n key={ms.id}\n {...rowLinkProps(\n () => navigate(detailPath('/projects/milestone-detail-page', ms.id)),\n ms.name\n )}\n >\n <CardHeader className=\"pb-2\">\n <div className=\"flex items-center justify-between\">\n <CardTitle className=\"text-base flex items-center gap-2\">\n <Target className=\"h-4 w-4 text-primary\" />\n {ms.name}\n </CardTitle>\n <span\n className={`text-xs px-2 py-0.5 rounded-full capitalize ${statusColor[ms.status] ?? 'bg-gray-100'}`}\n >\n {ms.status.toLowerCase().replace('_', ' ')}\n </span>\n </div>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n <p className=\"text-sm text-muted-foreground\">\n {ms.description ?? 'No description'}\n </p>\n {ms.workItemProgress && <MilestoneProgressBar progress={ms.workItemProgress} />}\n <div className=\"flex gap-3 text-xs text-muted-foreground\">\n <span className=\"flex items-center gap-1\">\n <Calendar className=\"h-3 w-3\" />\n {ms.dueDate ? new Date(ms.dueDate).toLocaleDateString() : 'No due date'}\n </span>\n {ms.isOverdue && (\n <Badge variant=\"destructive\" data-testid=\"milestone-overdue\">\n Overdue\n </Badge>\n )}\n {ms.ownerId && (\n <span className=\"flex items-center gap-1\">\n <User className=\"h-3 w-3\" />\n <PersonName id={ms.ownerId} />\n </span>\n )}\n </div>\n <div className=\"text-xs text-muted-foreground\">\n Project: {ms.project?.name ?? 'not available'}\n </div>\n </CardContent>\n </Card>\n )\n )}\n </div>\n {!error && milestones.length === 0 && (\n <p className=\"text-center text-muted-foreground py-8\">No milestones found.</p>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAaA,IAAM,IAAiB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BpB,IAAsC;CAC1C,SAAS;CACT,aAAa;CACb,WAAW;CACX,QAAQ;CACR,WAAW;CACZ,EAEK,IAAoB;CACxB;CACA;CACA;CACA;CACA;CACA;CACD;AAED,SAAgB,IAA6B;CAC3C,IAAM,EAAE,mBAAgB,GAAe,EACjC,IAAW,GAAuB,EAClC,CAAC,GAAQ,KAAa,EAAiB,MAAM,EAE7C,EACJ,SACA,YACA,aAGA,EAA8B,GAAgB,EAC5C,WAAW;EACT,aAAa,KAAe;EAC5B,QAAQ,MAAW,QAA6B,KAAA,IAArB,EAAE,QAAQ,GAAQ;EAC9C,EACF,CAAC;AAGJ,KAAI,KAAW,CAAC,EACd,QACE,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,OAAD,EAAK,WAAU,kFAAmF,CAAA;EAC9F,CAAA;CAKV,IAAM,IAAa,GAAM,sBAAsB,SAAS,EAAE,EACpD,IAAa,GAAM,sBAAsB,cAAc;AAE7D,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GACE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,MAAD;KAAI,WAAU;eAAyB;KAAe,CAAA,EACtD,kBAAC,KAAD;KAAG,WAAU;eAEV,MAAW,QACR,GAAG,EAAW,mCACd,GAAG,EAAW,GAAG,EAAO,aAAa,CAAC,QAAQ,KAAK,IAAI,CAAC;KAC1D,CAAA,CACA,EAAA,CAAA,EACN,kBAAC,GAAD,EACE,YAAY,MAAO,EAAS,EAAW,mCAAmC,EAAG,CAAC,EAC9E,CAAA,CACE;;GACN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;oBAAhB,CACE,kBAAC,GAAD,EAAM,WAAU,WAAY,CAAA,EAC5B,kBAAC,GAAD,EAAY,IAAI,EAAG,SAAW,CAAA,CACzB;;SAEL;;OACN,kBAAC,OAAD;QAAK,WAAU;kBAAf,CAA+C,aACnC,EAAG,SAAS,QAAQ,gBAC1B;;OACM;QACT;OA7CA,EAAG,GA6CH,CAEV;IACG,CAAA;GACL,CAAC,KAAS,EAAW,WAAW,KAC/B,kBAAC,KAAD;IAAG,WAAU;cAAyC;IAAwB,CAAA;GAE5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TasksCreateTaskPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/TasksCreateTaskPagePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TasksCreateTaskPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/TasksCreateTaskPagePage.tsx"],"names":[],"mappings":"AAuEA,wBAAgB,uBAAuB,4CA+VtC"}
|