@burdenoff/microfe-planmagnet 2026.930.1 → 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/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 +59 -59
- 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 +114 -95
- 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 +57 -48
- 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/sprints/SprintControls.d.ts.map +1 -1
- package/dist/planmagnet/sprints/SprintControls.js +239 -243
- 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
|
|
@@ -26,156 +27,174 @@ var v = l`
|
|
|
26
27
|
ownerId
|
|
27
28
|
createdAt
|
|
28
29
|
completedAt
|
|
30
|
+
workItemProgress {
|
|
31
|
+
total
|
|
32
|
+
done
|
|
33
|
+
cancelled
|
|
34
|
+
open
|
|
35
|
+
percentComplete
|
|
36
|
+
}
|
|
29
37
|
}
|
|
30
38
|
}
|
|
31
39
|
`;
|
|
32
|
-
function
|
|
33
|
-
let
|
|
34
|
-
variables: { id:
|
|
35
|
-
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
|
|
36
44
|
});
|
|
37
|
-
if (!
|
|
45
|
+
if (!d) return /* @__PURE__ */ p("div", {
|
|
38
46
|
className: "p-6 text-muted-foreground",
|
|
39
47
|
children: "No milestone selected. Open one from the list."
|
|
40
48
|
});
|
|
41
|
-
if (
|
|
49
|
+
if (C && !S) return /* @__PURE__ */ p("div", {
|
|
42
50
|
className: "flex items-center justify-center p-12",
|
|
43
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ p("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
44
52
|
});
|
|
45
|
-
if (
|
|
53
|
+
if (w) return /* @__PURE__ */ m("div", {
|
|
46
54
|
className: "p-6 text-red-500",
|
|
47
|
-
children: ["Error loading milestone: ",
|
|
55
|
+
children: ["Error loading milestone: ", w.message]
|
|
48
56
|
});
|
|
49
|
-
let
|
|
50
|
-
if (!
|
|
57
|
+
let T = S?.planmagnetMilestone;
|
|
58
|
+
if (!T) return /* @__PURE__ */ p("div", {
|
|
51
59
|
className: "p-6 text-muted-foreground",
|
|
52
60
|
children: "Milestone not found."
|
|
53
61
|
});
|
|
54
|
-
let
|
|
55
|
-
return /* @__PURE__ */
|
|
62
|
+
let E = T.status === "COMPLETED";
|
|
63
|
+
return /* @__PURE__ */ m("div", {
|
|
56
64
|
className: "space-y-6 p-6",
|
|
57
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ m("div", {
|
|
58
66
|
className: "flex items-center justify-between",
|
|
59
|
-
children: [/* @__PURE__ */
|
|
67
|
+
children: [/* @__PURE__ */ m("div", {
|
|
60
68
|
className: "flex items-center gap-3",
|
|
61
|
-
children: [/* @__PURE__ */
|
|
69
|
+
children: [/* @__PURE__ */ p(l, { className: "h-6 w-6 text-primary" }), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
|
|
62
70
|
className: "text-2xl font-semibold",
|
|
63
|
-
children:
|
|
64
|
-
}), /* @__PURE__ */
|
|
71
|
+
children: T.name
|
|
72
|
+
}), /* @__PURE__ */ m("p", {
|
|
65
73
|
className: "text-sm text-muted-foreground",
|
|
66
|
-
children: ["Project: ",
|
|
74
|
+
children: ["Project: ", T.project?.name ?? "not available"]
|
|
67
75
|
})] })]
|
|
68
|
-
}), /* @__PURE__ */
|
|
69
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ p(i, { milestone: T })]
|
|
77
|
+
}), /* @__PURE__ */ m("div", {
|
|
70
78
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
71
|
-
children: [/* @__PURE__ */
|
|
79
|
+
children: [/* @__PURE__ */ m("div", {
|
|
72
80
|
className: "lg:col-span-2 space-y-6",
|
|
73
|
-
children: [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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"
|
|
93
129
|
})]
|
|
94
130
|
})]
|
|
95
|
-
}) })]
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
children: C.dueDate ? new Date(C.dueDate).toLocaleDateString() : "—"
|
|
103
|
-
}), /* @__PURE__ */ d("p", {
|
|
104
|
-
className: "text-xs text-muted-foreground",
|
|
105
|
-
children: "Due Date"
|
|
106
|
-
})]
|
|
107
|
-
}), /* @__PURE__ */ f("div", {
|
|
108
|
-
className: "p-4 bg-muted rounded-md",
|
|
109
|
-
children: [/* @__PURE__ */ d("p", {
|
|
110
|
-
className: "text-sm font-bold",
|
|
111
|
-
children: C.completedAt ? new Date(C.completedAt).toLocaleDateString() : "—"
|
|
112
|
-
}), /* @__PURE__ */ d("p", {
|
|
113
|
-
className: "text-xs text-muted-foreground",
|
|
114
|
-
children: "Completed"
|
|
115
|
-
})]
|
|
116
|
-
})]
|
|
117
|
-
}) })] })]
|
|
118
|
-
}), /* @__PURE__ */ f(m, { children: [/* @__PURE__ */ d(g, { children: /* @__PURE__ */ d(_, { children: "Details" }) }), /* @__PURE__ */ f(h, {
|
|
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(_, {
|
|
119
138
|
className: "space-y-3 text-sm",
|
|
120
139
|
children: [
|
|
121
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ m("div", {
|
|
122
141
|
className: "flex items-center gap-2",
|
|
123
142
|
children: [
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ p(s, { className: "h-4 w-4 text-muted-foreground" }),
|
|
144
|
+
/* @__PURE__ */ p("span", {
|
|
126
145
|
className: "text-muted-foreground",
|
|
127
146
|
children: "Due:"
|
|
128
147
|
}),
|
|
129
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ p("span", {
|
|
130
149
|
className: "font-medium",
|
|
131
|
-
children:
|
|
150
|
+
children: T.dueDate ? new Date(T.dueDate).toLocaleDateString() : "Not set"
|
|
132
151
|
})
|
|
133
152
|
]
|
|
134
153
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ m("div", {
|
|
136
155
|
className: "flex items-center gap-2",
|
|
137
156
|
children: [
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ p(c, { className: "h-4 w-4 text-muted-foreground" }),
|
|
158
|
+
/* @__PURE__ */ p("span", {
|
|
140
159
|
className: "text-muted-foreground",
|
|
141
160
|
children: "Project:"
|
|
142
161
|
}),
|
|
143
|
-
|
|
162
|
+
T.project ? /* @__PURE__ */ p("button", {
|
|
144
163
|
type: "button",
|
|
145
164
|
className: "font-medium text-primary hover:underline",
|
|
146
|
-
onClick: () =>
|
|
147
|
-
children:
|
|
148
|
-
}) : /* @__PURE__ */
|
|
165
|
+
onClick: () => x(r("/projects/project-detail-page", T.project.id)),
|
|
166
|
+
children: T.project.name
|
|
167
|
+
}) : /* @__PURE__ */ p("span", {
|
|
149
168
|
className: "text-muted-foreground",
|
|
150
169
|
children: "not available"
|
|
151
170
|
})
|
|
152
171
|
]
|
|
153
172
|
}),
|
|
154
|
-
|
|
173
|
+
T.ownerId && /* @__PURE__ */ m("div", {
|
|
155
174
|
className: "flex items-center gap-2",
|
|
156
175
|
children: [
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ p(u, { className: "h-4 w-4 text-muted-foreground" }),
|
|
177
|
+
/* @__PURE__ */ p("span", {
|
|
159
178
|
className: "text-muted-foreground",
|
|
160
179
|
children: "Owner:"
|
|
161
180
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ p("span", {
|
|
163
182
|
className: "font-medium",
|
|
164
|
-
children: /* @__PURE__ */
|
|
183
|
+
children: /* @__PURE__ */ p(t, { id: T.ownerId })
|
|
165
184
|
})
|
|
166
185
|
]
|
|
167
186
|
}),
|
|
168
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ m("div", {
|
|
169
188
|
className: "flex items-center gap-2",
|
|
170
189
|
children: [
|
|
171
|
-
/* @__PURE__ */
|
|
172
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ p(s, { className: "h-4 w-4 text-muted-foreground" }),
|
|
191
|
+
/* @__PURE__ */ p("span", {
|
|
173
192
|
className: "text-muted-foreground",
|
|
174
193
|
children: "Created:"
|
|
175
194
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ p("span", {
|
|
177
196
|
className: "font-medium",
|
|
178
|
-
children:
|
|
197
|
+
children: T.createdAt ? new Date(T.createdAt).toLocaleDateString() : "—"
|
|
179
198
|
})
|
|
180
199
|
]
|
|
181
200
|
})
|
|
@@ -185,6 +204,6 @@ function y() {
|
|
|
185
204
|
});
|
|
186
205
|
}
|
|
187
206
|
//#endregion
|
|
188
|
-
export {
|
|
207
|
+
export { x as ProjectsMilestoneDetailPagePage };
|
|
189
208
|
|
|
190
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 isOverdue\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 <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 </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;;;;;;;;;;;;;;;;;;;;AAqBrC,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,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ACd,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,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,G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ACE,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 {
|
|
@@ -26,17 +27,24 @@ var y = u`
|
|
|
26
27
|
isOverdue
|
|
27
28
|
ownerId
|
|
28
29
|
createdAt
|
|
30
|
+
workItemProgress {
|
|
31
|
+
total
|
|
32
|
+
done
|
|
33
|
+
cancelled
|
|
34
|
+
open
|
|
35
|
+
percentComplete
|
|
36
|
+
}
|
|
29
37
|
}
|
|
30
38
|
totalCount
|
|
31
39
|
}
|
|
32
40
|
}
|
|
33
|
-
`,
|
|
41
|
+
`, x = {
|
|
34
42
|
PENDING: "bg-gray-100 text-gray-800",
|
|
35
43
|
IN_PROGRESS: "bg-blue-100 text-blue-800",
|
|
36
44
|
COMPLETED: "bg-green-100 text-green-800",
|
|
37
45
|
MISSED: "bg-red-100 text-red-800",
|
|
38
46
|
CANCELLED: "bg-red-100 text-red-800"
|
|
39
|
-
},
|
|
47
|
+
}, S = [
|
|
40
48
|
"all",
|
|
41
49
|
"PENDING",
|
|
42
50
|
"IN_PROGRESS",
|
|
@@ -44,84 +52,85 @@ var y = u`
|
|
|
44
52
|
"MISSED",
|
|
45
53
|
"CANCELLED"
|
|
46
54
|
];
|
|
47
|
-
function
|
|
48
|
-
let { workspaceId:
|
|
49
|
-
workspaceId:
|
|
50
|
-
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 }
|
|
51
59
|
} });
|
|
52
|
-
if (
|
|
60
|
+
if (D && !E) return /* @__PURE__ */ p("div", {
|
|
53
61
|
className: "flex items-center justify-center p-12",
|
|
54
|
-
children: /* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ p("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
55
63
|
});
|
|
56
|
-
let
|
|
57
|
-
return /* @__PURE__ */
|
|
64
|
+
let k = E?.planmagnetMilestones?.items ?? [], A = E?.planmagnetMilestones?.totalCount ?? 0;
|
|
65
|
+
return /* @__PURE__ */ m("div", {
|
|
58
66
|
className: "space-y-6 p-6",
|
|
59
67
|
children: [
|
|
60
|
-
/* @__PURE__ */
|
|
68
|
+
/* @__PURE__ */ m("div", {
|
|
61
69
|
className: "flex items-center justify-between",
|
|
62
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ m("div", { children: [/* @__PURE__ */ p("h1", {
|
|
63
71
|
className: "text-2xl font-semibold",
|
|
64
72
|
children: "Milestones"
|
|
65
|
-
}), /* @__PURE__ */
|
|
73
|
+
}), /* @__PURE__ */ p("p", {
|
|
66
74
|
className: "text-sm text-muted-foreground",
|
|
67
|
-
children:
|
|
68
|
-
})] }), /* @__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)) })]
|
|
69
77
|
}),
|
|
70
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ p("div", {
|
|
71
79
|
className: "flex gap-1",
|
|
72
|
-
children:
|
|
73
|
-
onClick: () =>
|
|
74
|
-
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"}`,
|
|
75
83
|
children: e === "all" ? "All" : e.toLowerCase().replace("_", " ")
|
|
76
84
|
}, e))
|
|
77
85
|
}),
|
|
78
|
-
|
|
86
|
+
O && /* @__PURE__ */ m("div", {
|
|
79
87
|
role: "alert",
|
|
80
88
|
className: "rounded-md border border-destructive/40 p-4 text-sm text-destructive",
|
|
81
|
-
children: ["Milestones could not be loaded: ",
|
|
89
|
+
children: ["Milestones could not be loaded: ", O.message]
|
|
82
90
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ p("div", {
|
|
84
92
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
85
|
-
children:
|
|
86
|
-
...i(() =>
|
|
87
|
-
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, {
|
|
88
96
|
className: "pb-2",
|
|
89
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ m("div", {
|
|
90
98
|
className: "flex items-center justify-between",
|
|
91
|
-
children: [/* @__PURE__ */
|
|
99
|
+
children: [/* @__PURE__ */ m(y, {
|
|
92
100
|
className: "text-base flex items-center gap-2",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
94
|
-
}), /* @__PURE__ */
|
|
95
|
-
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"}`,
|
|
96
104
|
children: e.status.toLowerCase().replace("_", " ")
|
|
97
105
|
})]
|
|
98
106
|
})
|
|
99
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ m(_, {
|
|
100
108
|
className: "space-y-3",
|
|
101
109
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ p("p", {
|
|
103
111
|
className: "text-sm text-muted-foreground",
|
|
104
112
|
children: e.description ?? "No description"
|
|
105
113
|
}),
|
|
106
|
-
/* @__PURE__ */ p(
|
|
114
|
+
e.workItemProgress && /* @__PURE__ */ p(o, { progress: e.workItemProgress }),
|
|
115
|
+
/* @__PURE__ */ m("div", {
|
|
107
116
|
className: "flex gap-3 text-xs text-muted-foreground",
|
|
108
117
|
children: [
|
|
109
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ m("span", {
|
|
110
119
|
className: "flex items-center gap-1",
|
|
111
|
-
children: [/* @__PURE__ */
|
|
120
|
+
children: [/* @__PURE__ */ p(c, { className: "h-3 w-3" }), e.dueDate ? new Date(e.dueDate).toLocaleDateString() : "No due date"]
|
|
112
121
|
}),
|
|
113
|
-
e.isOverdue && /* @__PURE__ */
|
|
122
|
+
e.isOverdue && /* @__PURE__ */ p(h, {
|
|
114
123
|
variant: "destructive",
|
|
115
124
|
"data-testid": "milestone-overdue",
|
|
116
125
|
children: "Overdue"
|
|
117
126
|
}),
|
|
118
|
-
e.ownerId && /* @__PURE__ */
|
|
127
|
+
e.ownerId && /* @__PURE__ */ m("span", {
|
|
119
128
|
className: "flex items-center gap-1",
|
|
120
|
-
children: [/* @__PURE__ */
|
|
129
|
+
children: [/* @__PURE__ */ p(u, { className: "h-3 w-3" }), /* @__PURE__ */ p(n, { id: e.ownerId })]
|
|
121
130
|
})
|
|
122
131
|
]
|
|
123
132
|
}),
|
|
124
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ m("div", {
|
|
125
134
|
className: "text-xs text-muted-foreground",
|
|
126
135
|
children: ["Project: ", e.project?.name ?? "not available"]
|
|
127
136
|
})
|
|
@@ -129,7 +138,7 @@ function S() {
|
|
|
129
138
|
})]
|
|
130
139
|
}, e.id))
|
|
131
140
|
}),
|
|
132
|
-
!
|
|
141
|
+
!O && k.length === 0 && /* @__PURE__ */ p("p", {
|
|
133
142
|
className: "text-center text-muted-foreground py-8",
|
|
134
143
|
children: "No milestones found."
|
|
135
144
|
})
|
|
@@ -137,6 +146,6 @@ function S() {
|
|
|
137
146
|
});
|
|
138
147
|
}
|
|
139
148
|
//#endregion
|
|
140
|
-
export {
|
|
149
|
+
export { C as ProjectsMilestonesPagePage };
|
|
141
150
|
|
|
142
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 isOverdue\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 isOverdue: boolean;\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.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":"
|
|
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,kBAA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AG,WAAW;kBAEnF,EAAG,OAAO,aAAa,CAAC,QAAQ,KAAK,IAAI;QACrC,CAAA,CACH;;MACK,CAAA,EACb,kBAAC,GAAD;MAAa,WAAU;gBAAvB;OACE,kBAAC,KAAD;QAAG,WAAU;kBACV,EAAG,eAAe;QACjB,CAAA;OACH,EAAG,oBAAoB,kBAAC,GAAD,EAAsB,UAAU,EAAG,kBAAoB,CAAA;OAC/E,kBAAC,OAAD;QAAK,WAAU;kBAAf;SACE,kBAAC,QAAD;UAAM,WAAU;oBAAhB,CACE,kBAAC,GAAD,EAAU,WAAU,WAAY,CAAA,EAC/B,EAAG,UAAU,IAAI,KAAK,EAAG,QAAQ,CAAC,oBAAoB,GAAG,cACrD;;SACN,EAAG,aACF,kBAAC,GAAD;UAAO,SAAQ;UAAc,eAAY;oBAAoB;UAErD,CAAA;SAET,EAAG,WACF,kBAAC,QAAD;UAAM,WAAU;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"}
|