@burdenoff/microfe-planmagnet 2026.930.6 → 2026.930.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/planmagnet/PlanMagnetRoot.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoot.js +132 -108
- package/dist/planmagnet/PlanMagnetRoot.js.map +1 -1
- package/dist/planmagnet/PlanMagnetRoutes.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoutes.js +24 -12
- package/dist/planmagnet/PlanMagnetRoutes.js.map +1 -1
- package/dist/planmagnet/controls/FeatureControls.js +25 -25
- package/dist/planmagnet/controls/Pickers.d.ts +2 -1
- package/dist/planmagnet/controls/Pickers.d.ts.map +1 -1
- package/dist/planmagnet/controls/Pickers.js +133 -102
- package/dist/planmagnet/controls/Pickers.js.map +1 -1
- package/dist/planmagnet/controls/QualityGateControls.d.ts +64 -0
- package/dist/planmagnet/controls/QualityGateControls.d.ts.map +1 -0
- package/dist/planmagnet/controls/QualityGateControls.js +390 -0
- package/dist/planmagnet/controls/QualityGateControls.js.map +1 -0
- package/dist/planmagnet/create/CreateDialogs.d.ts +8 -0
- package/dist/planmagnet/create/CreateDialogs.d.ts.map +1 -1
- package/dist/planmagnet/create/CreateDialogs.js +344 -206
- package/dist/planmagnet/create/CreateDialogs.js.map +1 -1
- package/dist/planmagnet/pages/AiActivityPagePage.d.ts +2 -0
- package/dist/planmagnet/pages/AiActivityPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/AiActivityPagePage.js +249 -0
- package/dist/planmagnet/pages/AiActivityPagePage.js.map +1 -0
- package/dist/planmagnet/pages/AiPlanPagePage.d.ts +2 -0
- package/dist/planmagnet/pages/AiPlanPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/AiPlanPagePage.js +381 -0
- package/dist/planmagnet/pages/AiPlanPagePage.js.map +1 -0
- package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js +4 -4
- package/dist/planmagnet/pages/ProductsEditProductPagePage.js +5 -5
- package/dist/planmagnet/pages/ProductsEditRoadmapPagePage.js +4 -4
- package/dist/planmagnet/pages/ProductsProductDetailPagePage.js +4 -4
- package/dist/planmagnet/pages/ProgramsEditProgramPagePage.js +4 -4
- package/dist/planmagnet/pages/ProjectsBudgetDetailPagePage.js +4 -4
- package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.js +4 -4
- package/dist/planmagnet/pages/ProjectsEditProjectPagePage.js +11 -11
- package/dist/planmagnet/pages/ProjectsPlanningEditPagePage.js +6 -6
- package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +209 -199
- package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.d.ts +2 -0
- package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.js +236 -0
- package/dist/planmagnet/pages/ProjectsQualityGatesPagePage.js.map +1 -0
- package/dist/planmagnet/pages/RisksRiskDetailPagePage.js +5 -5
- package/dist/planmagnet/pages/TasksTimesheetDetailPagePage.js +6 -6
- package/dist/planmagnet/pages/TeamCreateTeamPagePage.js +4 -4
- package/dist/planmagnet/pages/TeamTeamEditPagePage.js +8 -8
- package/dist/planmagnet/pages/TemplatesEditTemplatePagePage.js +7 -7
- package/dist/planmagnet/releases/useReleaseOptions.d.ts +21 -0
- package/dist/planmagnet/releases/useReleaseOptions.d.ts.map +1 -0
- package/dist/planmagnet/releases/useReleaseOptions.js +75 -0
- package/dist/planmagnet/releases/useReleaseOptions.js.map +1 -0
- package/dist/planmagnet/roadmaps/RoadmapControls.js +13 -13
- package/dist/planmagnet/utils/qualityGateCriteria.d.ts +33 -0
- package/dist/planmagnet/utils/qualityGateCriteria.d.ts.map +1 -0
- package/dist/planmagnet/utils/qualityGateCriteria.js +58 -0
- package/dist/planmagnet/utils/qualityGateCriteria.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/PlanMagnetProvider.js";
|
|
2
2
|
import { PersonName as n } from "../people/People.js";
|
|
3
3
|
import { workProgress as r } from "../hooks/useCounts.js";
|
|
4
|
-
import { useEntityId as ee } from "../hooks/useEntityId.js";
|
|
5
4
|
import { enumLabel as i } from "../controls/WorkItemControls.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
5
|
+
import { useEntityId as a } from "../hooks/useEntityId.js";
|
|
6
|
+
import { ROW_LINK_CLASS as o, detailPath as s, rowLinkProps as c } from "../utils/rowNavigation.js";
|
|
7
|
+
import { NewRiskDialog as l, NewTemplateFromProjectDialog as u } from "../create/CreateDialogs.js";
|
|
8
|
+
import { ProjectHeaderActions as d } from "../controls/ProjectControls.js";
|
|
9
|
+
import { ProjectBudgetsSummary as f } from "../budgets/ProjectBudgetsSummary.js";
|
|
10
|
+
import { Bot as p, Calendar as m, CheckSquare as h, FolderKanban as g, LayoutTemplate as _, Route as v, ShieldAlert as y, ShieldCheck as b, Users as x, Zap as S } from "lucide-react";
|
|
11
|
+
import { gql as C } from "@apollo/client";
|
|
12
|
+
import { useQuery as w } from "@apollo/client/react";
|
|
13
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
14
|
+
import { Badge as D, Button as O, Card as k, CardContent as A, CardHeader as j, CardTitle as M } from "@burdenoff/fe-libs/ui";
|
|
15
15
|
//#region src/planmagnet/pages/ProjectsProjectDetailPagePage.tsx
|
|
16
|
-
var
|
|
16
|
+
var N = C`
|
|
17
17
|
query GetProjectDetail($id: ID!) {
|
|
18
18
|
planmagnetProject(id: $id) {
|
|
19
19
|
id
|
|
@@ -86,51 +86,51 @@ var j = x`
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
`,
|
|
89
|
+
`, ee = {
|
|
90
90
|
ACTIVE: "bg-green-100 text-green-800",
|
|
91
91
|
ON_HOLD: "bg-orange-100 text-orange-800",
|
|
92
92
|
CANCELLED: "bg-red-100 text-red-800",
|
|
93
93
|
COMPLETED: "bg-blue-100 text-blue-800",
|
|
94
94
|
PLANNING: "bg-gray-100 text-gray-800",
|
|
95
95
|
ARCHIVED: "bg-gray-100 text-gray-800"
|
|
96
|
-
},
|
|
96
|
+
}, P = {
|
|
97
97
|
CRITICAL: "bg-red-100 text-red-800",
|
|
98
98
|
HIGH: "bg-orange-100 text-orange-800",
|
|
99
99
|
MEDIUM: "bg-yellow-100 text-yellow-800",
|
|
100
100
|
LOW: "bg-blue-100 text-blue-800",
|
|
101
101
|
NEGLIGIBLE: "bg-gray-100 text-gray-800"
|
|
102
|
-
},
|
|
102
|
+
}, F = new Set([
|
|
103
103
|
"IDENTIFIED",
|
|
104
104
|
"ANALYZING",
|
|
105
105
|
"MITIGATING",
|
|
106
106
|
"ACCEPTED"
|
|
107
107
|
]);
|
|
108
|
-
function
|
|
109
|
-
let
|
|
110
|
-
variables: { id:
|
|
111
|
-
skip: !
|
|
108
|
+
function I() {
|
|
109
|
+
let C = a("projectId"), I = t(), { workspaceId: L } = e(), { data: R, loading: z, error: B } = w(N, {
|
|
110
|
+
variables: { id: C },
|
|
111
|
+
skip: !C
|
|
112
112
|
});
|
|
113
|
-
if (!
|
|
113
|
+
if (!C) return /* @__PURE__ */ T("div", {
|
|
114
114
|
className: "p-6 text-muted-foreground",
|
|
115
115
|
children: "No project selected. Open one from the list."
|
|
116
116
|
});
|
|
117
|
-
if (
|
|
117
|
+
if (z && !R) return /* @__PURE__ */ T("div", {
|
|
118
118
|
className: "flex items-center justify-center p-12",
|
|
119
|
-
children: /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ T("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
120
120
|
});
|
|
121
|
-
if (
|
|
121
|
+
if (B) return /* @__PURE__ */ E("div", {
|
|
122
122
|
className: "p-6 text-red-500",
|
|
123
|
-
children: ["Error loading project: ",
|
|
123
|
+
children: ["Error loading project: ", B.message]
|
|
124
124
|
});
|
|
125
|
-
let
|
|
126
|
-
if (!
|
|
125
|
+
let V = R?.planmagnetProject;
|
|
126
|
+
if (!V) return /* @__PURE__ */ T("div", {
|
|
127
127
|
className: "p-6 text-muted-foreground",
|
|
128
128
|
children: "Project not found."
|
|
129
129
|
});
|
|
130
|
-
let
|
|
130
|
+
let H = V.workItems ?? [], U = V.sprints ?? [], W = V.milestones ?? [], G = V.risks ?? [], K = G.filter((e) => F.has(e.status)), q = [...K].sort((e, t) => t.riskScore - e.riskScore).slice(0, 3), J = U.find((e) => e.status === "ACTIVE"), Y = U.filter((e) => e.status === "COMPLETED" && e.velocity != null).sort((e, t) => (t.endDate ?? "").localeCompare(e.endDate ?? ""))[0], X = r(H.map((e) => ({
|
|
131
131
|
status: e.status,
|
|
132
132
|
storyPoints: e.storyPoints
|
|
133
|
-
}))),
|
|
133
|
+
}))), Z = H.filter((e) => e.status !== "CANCELLED"), Q = Z.filter((e) => e.status === "DONE").length, te = [...H].sort((e, t) => t.createdAt.localeCompare(e.createdAt)).slice(0, 5), $ = Object.values(H.reduce((e, t) => {
|
|
134
134
|
if (!t.sprint?.team) return e;
|
|
135
135
|
let n = e[t.sprint.id] ?? {
|
|
136
136
|
sprint: {
|
|
@@ -145,192 +145,202 @@ function F() {
|
|
|
145
145
|
title: t.title
|
|
146
146
|
}), e[t.sprint.id] = n, e;
|
|
147
147
|
}, {}));
|
|
148
|
-
return /* @__PURE__ */
|
|
148
|
+
return /* @__PURE__ */ E("div", {
|
|
149
149
|
className: "space-y-6 p-6",
|
|
150
150
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ E("div", {
|
|
152
152
|
className: "flex items-center justify-between",
|
|
153
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("div", {
|
|
154
154
|
className: "flex items-center gap-2",
|
|
155
155
|
children: [
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
156
|
+
/* @__PURE__ */ T(g, { className: "h-5 w-5 text-primary" }),
|
|
157
|
+
/* @__PURE__ */ T("h1", {
|
|
158
158
|
className: "text-2xl font-semibold",
|
|
159
|
-
children:
|
|
159
|
+
children: V.name
|
|
160
160
|
}),
|
|
161
|
-
/* @__PURE__ */
|
|
162
|
-
className: `text-xs px-2 py-0.5 rounded-full capitalize ${
|
|
163
|
-
children:
|
|
161
|
+
/* @__PURE__ */ T("span", {
|
|
162
|
+
className: `text-xs px-2 py-0.5 rounded-full capitalize ${ee[V.status] ?? "bg-gray-100"}`,
|
|
163
|
+
children: V.status.toLowerCase().replace("_", " ")
|
|
164
164
|
})
|
|
165
165
|
]
|
|
166
|
-
}), /* @__PURE__ */
|
|
166
|
+
}), /* @__PURE__ */ T("p", {
|
|
167
167
|
className: "text-sm text-muted-foreground mt-1",
|
|
168
|
-
children:
|
|
169
|
-
})] }), /* @__PURE__ */
|
|
168
|
+
children: V.description ?? "No description"
|
|
169
|
+
})] }), /* @__PURE__ */ E("div", {
|
|
170
170
|
className: "flex flex-col items-end gap-2",
|
|
171
171
|
children: [
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
projectId:
|
|
174
|
-
name:
|
|
175
|
-
status:
|
|
172
|
+
/* @__PURE__ */ T(d, {
|
|
173
|
+
projectId: V.id,
|
|
174
|
+
name: V.name,
|
|
175
|
+
status: V.status
|
|
176
176
|
}),
|
|
177
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ E("div", {
|
|
178
178
|
className: "flex items-center gap-2",
|
|
179
|
-
children: [
|
|
180
|
-
|
|
181
|
-
variant: "outline",
|
|
182
|
-
onClick: () => F("/automation/automation-rules-page"),
|
|
183
|
-
"data-testid": "project-automation-rules",
|
|
184
|
-
children: [/* @__PURE__ */ C(f, { className: "mr-1 h-4 w-4" }), "Automation rules"]
|
|
185
|
-
}), /* @__PURE__ */ C(l, {
|
|
186
|
-
projectId: B.id,
|
|
187
|
-
projectName: B.name,
|
|
188
|
-
onCreated: (e) => F(o("/templates/edit-template-page", e)),
|
|
189
|
-
trigger: /* @__PURE__ */ w(E, {
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ E(O, {
|
|
190
181
|
size: "sm",
|
|
191
182
|
variant: "outline",
|
|
192
|
-
|
|
193
|
-
|
|
183
|
+
onClick: () => I("/automation/automation-rules-page"),
|
|
184
|
+
"data-testid": "project-automation-rules",
|
|
185
|
+
children: [/* @__PURE__ */ T(p, { className: "mr-1 h-4 w-4" }), "Automation rules"]
|
|
186
|
+
}),
|
|
187
|
+
/* @__PURE__ */ E(O, {
|
|
188
|
+
size: "sm",
|
|
189
|
+
variant: "outline",
|
|
190
|
+
onClick: () => I(`/projects/quality-gates-page?projectId=${encodeURIComponent(V.id)}`),
|
|
191
|
+
"data-testid": "project-quality-gates",
|
|
192
|
+
children: [/* @__PURE__ */ T(b, { className: "mr-1 h-4 w-4" }), "Quality gates"]
|
|
193
|
+
}),
|
|
194
|
+
/* @__PURE__ */ T(u, {
|
|
195
|
+
projectId: V.id,
|
|
196
|
+
projectName: V.name,
|
|
197
|
+
onCreated: (e) => I(s("/templates/edit-template-page", e)),
|
|
198
|
+
trigger: /* @__PURE__ */ E(O, {
|
|
199
|
+
size: "sm",
|
|
200
|
+
variant: "outline",
|
|
201
|
+
"data-testid": "project-save-as-template",
|
|
202
|
+
children: [/* @__PURE__ */ T(_, { className: "mr-1 h-4 w-4" }), "Save as template"]
|
|
203
|
+
})
|
|
194
204
|
})
|
|
195
|
-
|
|
205
|
+
]
|
|
196
206
|
}),
|
|
197
|
-
/* @__PURE__ */
|
|
207
|
+
/* @__PURE__ */ T(D, {
|
|
198
208
|
variant: "outline",
|
|
199
209
|
className: "capitalize",
|
|
200
|
-
children:
|
|
210
|
+
children: V.methodology.toLowerCase()
|
|
201
211
|
}),
|
|
202
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ E(O, {
|
|
203
213
|
size: "sm",
|
|
204
214
|
variant: "outline",
|
|
205
|
-
onClick: () =>
|
|
206
|
-
children: [/* @__PURE__ */
|
|
215
|
+
onClick: () => I(s("/projects/critical-path-page", V.id)),
|
|
216
|
+
children: [/* @__PURE__ */ T(v, { className: "mr-1 h-4 w-4" }), "Critical path"]
|
|
207
217
|
})
|
|
208
218
|
]
|
|
209
219
|
})]
|
|
210
220
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ E("div", {
|
|
212
222
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
213
223
|
children: [
|
|
214
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
|
|
215
225
|
className: "pt-4",
|
|
216
|
-
children: [/* @__PURE__ */
|
|
226
|
+
children: [/* @__PURE__ */ E("div", {
|
|
217
227
|
className: "flex items-center gap-2 text-muted-foreground text-xs",
|
|
218
|
-
children: [/* @__PURE__ */
|
|
219
|
-
}), /* @__PURE__ */
|
|
228
|
+
children: [/* @__PURE__ */ T(h, { className: "h-4 w-4" }), "Work Items"]
|
|
229
|
+
}), /* @__PURE__ */ E("p", {
|
|
220
230
|
className: "text-xl font-bold mt-1",
|
|
221
231
|
children: [
|
|
222
|
-
|
|
232
|
+
Q,
|
|
223
233
|
"/",
|
|
224
|
-
|
|
234
|
+
Z.length
|
|
225
235
|
]
|
|
226
236
|
})]
|
|
227
237
|
}) }),
|
|
228
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
|
|
229
239
|
className: "pt-4",
|
|
230
|
-
children: [/* @__PURE__ */
|
|
240
|
+
children: [/* @__PURE__ */ E("div", {
|
|
231
241
|
className: "flex items-center gap-2 text-muted-foreground text-xs",
|
|
232
|
-
children: [/* @__PURE__ */
|
|
233
|
-
}), /* @__PURE__ */
|
|
242
|
+
children: [/* @__PURE__ */ T(S, { className: "h-4 w-4" }), "Sprints"]
|
|
243
|
+
}), /* @__PURE__ */ T("p", {
|
|
234
244
|
className: "text-xl font-bold mt-1",
|
|
235
|
-
children:
|
|
245
|
+
children: U.length
|
|
236
246
|
})]
|
|
237
247
|
}) }),
|
|
238
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
|
|
239
249
|
className: "pt-4",
|
|
240
|
-
children: [/* @__PURE__ */
|
|
250
|
+
children: [/* @__PURE__ */ E("div", {
|
|
241
251
|
className: "flex items-center gap-2 text-muted-foreground text-xs",
|
|
242
|
-
children: [/* @__PURE__ */
|
|
243
|
-
}), /* @__PURE__ */
|
|
252
|
+
children: [/* @__PURE__ */ T(m, { className: "h-4 w-4" }), "Milestones"]
|
|
253
|
+
}), /* @__PURE__ */ T("p", {
|
|
244
254
|
className: "text-xl font-bold mt-1",
|
|
245
|
-
children:
|
|
255
|
+
children: W.length
|
|
246
256
|
})]
|
|
247
257
|
}) }),
|
|
248
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
|
|
249
259
|
className: "pt-4",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
260
|
+
children: [/* @__PURE__ */ E("div", {
|
|
251
261
|
className: "flex items-center gap-2 text-muted-foreground text-xs",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
253
|
-
}), /* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4" }), "Owner"]
|
|
263
|
+
}), /* @__PURE__ */ T("p", {
|
|
254
264
|
className: "text-sm font-bold mt-1 truncate",
|
|
255
|
-
children: /* @__PURE__ */
|
|
265
|
+
children: /* @__PURE__ */ T(n, { id: V.ownerId })
|
|
256
266
|
})]
|
|
257
267
|
}) })
|
|
258
268
|
]
|
|
259
269
|
}),
|
|
260
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ E("div", {
|
|
261
271
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
272
|
+
children: [/* @__PURE__ */ E("div", {
|
|
263
273
|
className: "lg:col-span-2 space-y-6",
|
|
264
274
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ T(M, { children: "Timeline" }) }), /* @__PURE__ */ E(A, { children: [
|
|
276
|
+
/* @__PURE__ */ E("div", {
|
|
267
277
|
className: "flex justify-between text-sm mb-2",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
278
|
+
children: [/* @__PURE__ */ T("span", {
|
|
269
279
|
className: "text-muted-foreground",
|
|
270
280
|
children: "Tasks done"
|
|
271
|
-
}), /* @__PURE__ */
|
|
281
|
+
}), /* @__PURE__ */ T("span", {
|
|
272
282
|
className: "font-medium",
|
|
273
|
-
children:
|
|
283
|
+
children: X === null ? "No open tasks" : `${X}%`
|
|
274
284
|
})]
|
|
275
285
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
286
|
+
/* @__PURE__ */ T("div", {
|
|
277
287
|
className: "w-full h-4 rounded-full bg-muted overflow-hidden",
|
|
278
|
-
children: /* @__PURE__ */
|
|
288
|
+
children: /* @__PURE__ */ T("div", {
|
|
279
289
|
className: "h-full bg-primary rounded-full",
|
|
280
|
-
style: { width: `${
|
|
290
|
+
style: { width: `${X ?? 0}%` }
|
|
281
291
|
})
|
|
282
292
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ E("div", {
|
|
284
294
|
className: "flex justify-between text-xs text-muted-foreground mt-2",
|
|
285
|
-
children: [/* @__PURE__ */
|
|
295
|
+
children: [/* @__PURE__ */ T("span", { children: V.startDate ? new Date(V.startDate).toLocaleDateString() : "Not set" }), /* @__PURE__ */ T("span", { children: V.endDate ? new Date(V.endDate).toLocaleDateString() : "Not set" })]
|
|
286
296
|
})
|
|
287
297
|
] })] }),
|
|
288
|
-
|
|
298
|
+
J && /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, {
|
|
289
299
|
className: "flex items-center gap-2",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
291
|
-
}) }), /* @__PURE__ */
|
|
300
|
+
children: [/* @__PURE__ */ T(S, { className: "h-4 w-4 text-primary" }), "Active Sprint"]
|
|
301
|
+
}) }), /* @__PURE__ */ E(A, {
|
|
292
302
|
className: "space-y-3",
|
|
293
303
|
children: [
|
|
294
|
-
/* @__PURE__ */
|
|
304
|
+
/* @__PURE__ */ E("div", {
|
|
295
305
|
className: "flex justify-between",
|
|
296
|
-
children: [/* @__PURE__ */
|
|
306
|
+
children: [/* @__PURE__ */ T("span", {
|
|
297
307
|
className: "font-medium",
|
|
298
|
-
children:
|
|
299
|
-
}), /* @__PURE__ */
|
|
308
|
+
children: J.name
|
|
309
|
+
}), /* @__PURE__ */ T(D, { children: "Active" })]
|
|
300
310
|
}),
|
|
301
|
-
|
|
311
|
+
J.goal && /* @__PURE__ */ T("p", {
|
|
302
312
|
className: "text-sm text-muted-foreground",
|
|
303
|
-
children:
|
|
313
|
+
children: J.goal
|
|
304
314
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ E("div", {
|
|
306
316
|
className: "grid grid-cols-3 gap-4 text-center",
|
|
307
317
|
children: [
|
|
308
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
|
|
309
319
|
className: "text-lg font-semibold",
|
|
310
320
|
children: [
|
|
311
|
-
|
|
321
|
+
J.workItems?.filter((e) => e.status === "DONE").reduce((e, t) => e + (t.storyPoints ?? 0), 0),
|
|
312
322
|
"/",
|
|
313
|
-
|
|
323
|
+
J.workItems?.reduce((e, t) => e + (t.storyPoints ?? 0), 0) ?? 0
|
|
314
324
|
]
|
|
315
|
-
}), /* @__PURE__ */
|
|
325
|
+
}), /* @__PURE__ */ T("p", {
|
|
316
326
|
className: "text-xs text-muted-foreground",
|
|
317
327
|
children: "Points"
|
|
318
328
|
})] }),
|
|
319
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
|
|
320
330
|
className: "text-lg font-semibold",
|
|
321
331
|
children: [
|
|
322
|
-
|
|
332
|
+
J.workItems?.filter((e) => e.status === "DONE").length ?? 0,
|
|
323
333
|
"/",
|
|
324
|
-
|
|
334
|
+
J.workItems?.length ?? 0
|
|
325
335
|
]
|
|
326
|
-
}), /* @__PURE__ */
|
|
336
|
+
}), /* @__PURE__ */ T("p", {
|
|
327
337
|
className: "text-xs text-muted-foreground",
|
|
328
338
|
children: "Tasks"
|
|
329
339
|
})] }),
|
|
330
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
331
341
|
className: "text-lg font-semibold",
|
|
332
|
-
children:
|
|
333
|
-
}), /* @__PURE__ */
|
|
342
|
+
children: Y ? `${Y.velocity} pts` : "—"
|
|
343
|
+
}), /* @__PURE__ */ T("p", {
|
|
334
344
|
className: "text-xs text-muted-foreground",
|
|
335
345
|
children: "Velocity of the last sprint"
|
|
336
346
|
})] })
|
|
@@ -338,101 +348,101 @@ function F() {
|
|
|
338
348
|
})
|
|
339
349
|
]
|
|
340
350
|
})] }),
|
|
341
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, { children: [
|
|
342
352
|
"Work items (",
|
|
343
|
-
|
|
353
|
+
H.length,
|
|
344
354
|
")",
|
|
345
|
-
|
|
346
|
-
] }) }), /* @__PURE__ */
|
|
355
|
+
H.length > 5 ? " · latest 5" : ""
|
|
356
|
+
] }) }), /* @__PURE__ */ E(A, {
|
|
347
357
|
className: "space-y-2",
|
|
348
|
-
children: [
|
|
349
|
-
...
|
|
350
|
-
className: `flex items-center justify-between border rounded-md p-2.5 ${
|
|
351
|
-
children: [/* @__PURE__ */
|
|
358
|
+
children: [te.map((e) => /* @__PURE__ */ E("div", {
|
|
359
|
+
...c(() => I(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.id)}`), e.key),
|
|
360
|
+
className: `flex items-center justify-between border rounded-md p-2.5 ${o}`,
|
|
361
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
|
|
352
362
|
className: "text-sm font-medium",
|
|
353
363
|
children: [
|
|
354
364
|
e.key,
|
|
355
365
|
" ",
|
|
356
|
-
/* @__PURE__ */
|
|
366
|
+
/* @__PURE__ */ T("span", {
|
|
357
367
|
className: "font-normal",
|
|
358
368
|
children: e.title
|
|
359
369
|
})
|
|
360
370
|
]
|
|
361
|
-
}), /* @__PURE__ */
|
|
371
|
+
}), /* @__PURE__ */ T("div", {
|
|
362
372
|
className: "flex gap-1 mt-1",
|
|
363
|
-
children: e.labels.map((e) => /* @__PURE__ */
|
|
373
|
+
children: e.labels.map((e) => /* @__PURE__ */ T("span", {
|
|
364
374
|
className: "text-[10px] px-1.5 py-0.5 rounded bg-muted",
|
|
365
375
|
children: e
|
|
366
376
|
}, e))
|
|
367
|
-
})] }), /* @__PURE__ */
|
|
377
|
+
})] }), /* @__PURE__ */ E("div", {
|
|
368
378
|
className: "flex items-center gap-2",
|
|
369
|
-
children: [/* @__PURE__ */
|
|
379
|
+
children: [/* @__PURE__ */ E("span", {
|
|
370
380
|
className: "text-xs text-muted-foreground",
|
|
371
381
|
children: [e.storyPoints ?? 0, " pts"]
|
|
372
|
-
}), /* @__PURE__ */
|
|
382
|
+
}), /* @__PURE__ */ T(D, {
|
|
373
383
|
variant: "secondary",
|
|
374
384
|
className: "capitalize text-xs",
|
|
375
385
|
children: e.status.toLowerCase().replace("_", " ")
|
|
376
386
|
})]
|
|
377
387
|
})]
|
|
378
|
-
}, e.id)),
|
|
388
|
+
}, e.id)), H.length === 0 && /* @__PURE__ */ T("p", {
|
|
379
389
|
className: "text-sm text-muted-foreground text-center py-4",
|
|
380
390
|
children: "No work items yet."
|
|
381
391
|
})]
|
|
382
392
|
})] })
|
|
383
393
|
]
|
|
384
|
-
}), /* @__PURE__ */
|
|
394
|
+
}), /* @__PURE__ */ E("div", {
|
|
385
395
|
className: "space-y-6",
|
|
386
396
|
children: [
|
|
387
|
-
/* @__PURE__ */
|
|
388
|
-
workspaceId:
|
|
389
|
-
projectId:
|
|
397
|
+
/* @__PURE__ */ T(f, {
|
|
398
|
+
workspaceId: L,
|
|
399
|
+
projectId: V.id
|
|
390
400
|
}),
|
|
391
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, { children: [
|
|
392
402
|
"Milestones (",
|
|
393
|
-
|
|
403
|
+
W.length,
|
|
394
404
|
")"
|
|
395
|
-
] }) }), /* @__PURE__ */
|
|
405
|
+
] }) }), /* @__PURE__ */ E(A, {
|
|
396
406
|
className: "space-y-3",
|
|
397
|
-
children: [
|
|
407
|
+
children: [W.map((e) => /* @__PURE__ */ E("div", {
|
|
398
408
|
className: "border-b pb-2 last:border-0",
|
|
399
|
-
children: [/* @__PURE__ */
|
|
409
|
+
children: [/* @__PURE__ */ E("div", {
|
|
400
410
|
className: "flex justify-between",
|
|
401
|
-
children: [/* @__PURE__ */
|
|
411
|
+
children: [/* @__PURE__ */ T("span", {
|
|
402
412
|
className: "text-sm font-medium",
|
|
403
413
|
children: e.name
|
|
404
|
-
}), /* @__PURE__ */
|
|
414
|
+
}), /* @__PURE__ */ T(D, {
|
|
405
415
|
variant: "outline",
|
|
406
416
|
className: "text-xs capitalize",
|
|
407
417
|
children: e.status.toLowerCase().replace("_", " ")
|
|
408
418
|
})]
|
|
409
|
-
}), /* @__PURE__ */
|
|
419
|
+
}), /* @__PURE__ */ E("div", {
|
|
410
420
|
className: "flex items-center gap-1 text-xs text-muted-foreground mt-1",
|
|
411
|
-
children: [/* @__PURE__ */
|
|
421
|
+
children: [/* @__PURE__ */ T(m, { className: "h-3 w-3" }), e.dueDate ? new Date(e.dueDate).toLocaleDateString() : "No due date"]
|
|
412
422
|
})]
|
|
413
|
-
}, e.id)),
|
|
423
|
+
}, e.id)), W.length === 0 && /* @__PURE__ */ T("p", {
|
|
414
424
|
className: "text-sm text-muted-foreground text-center py-2",
|
|
415
425
|
children: "No milestones."
|
|
416
426
|
})]
|
|
417
427
|
})] }),
|
|
418
|
-
$.length > 0 && /* @__PURE__ */
|
|
428
|
+
$.length > 0 && /* @__PURE__ */ E(k, {
|
|
419
429
|
"data-testid": "team-sprint-work",
|
|
420
|
-
children: [/* @__PURE__ */
|
|
430
|
+
children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, {
|
|
421
431
|
className: "flex items-center gap-2",
|
|
422
|
-
children: [/* @__PURE__ */
|
|
423
|
-
}) }), /* @__PURE__ */
|
|
432
|
+
children: [/* @__PURE__ */ T(x, { className: "h-4 w-4" }), "Team sprint work"]
|
|
433
|
+
}) }), /* @__PURE__ */ T(A, {
|
|
424
434
|
className: "space-y-3",
|
|
425
|
-
children: $.map((e) => /* @__PURE__ */
|
|
435
|
+
children: $.map((e) => /* @__PURE__ */ E("div", {
|
|
426
436
|
className: "border-b pb-2 last:border-0",
|
|
427
|
-
children: [/* @__PURE__ */
|
|
437
|
+
children: [/* @__PURE__ */ T("button", {
|
|
428
438
|
type: "button",
|
|
429
439
|
className: "text-sm font-medium hover:underline text-left",
|
|
430
|
-
onClick: () =>
|
|
440
|
+
onClick: () => I(s("/projects/planning-detail-page", e.sprint.id)),
|
|
431
441
|
children: e.sprint.name
|
|
432
|
-
}), /* @__PURE__ */
|
|
442
|
+
}), /* @__PURE__ */ E("button", {
|
|
433
443
|
type: "button",
|
|
434
444
|
className: "block text-xs text-muted-foreground hover:underline",
|
|
435
|
-
onClick: () =>
|
|
445
|
+
onClick: () => I(s("/team/team-detail-page", e.sprint.team.id)),
|
|
436
446
|
children: [
|
|
437
447
|
e.items.length,
|
|
438
448
|
" item",
|
|
@@ -445,36 +455,36 @@ function F() {
|
|
|
445
455
|
}, e.sprint.id))
|
|
446
456
|
})]
|
|
447
457
|
}),
|
|
448
|
-
/* @__PURE__ */
|
|
458
|
+
/* @__PURE__ */ E(k, { children: [/* @__PURE__ */ E(j, {
|
|
449
459
|
className: "flex flex-row items-center justify-between space-y-0",
|
|
450
|
-
children: [/* @__PURE__ */
|
|
460
|
+
children: [/* @__PURE__ */ E(M, {
|
|
451
461
|
className: "flex items-center gap-2",
|
|
452
462
|
children: [
|
|
453
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ T(y, { className: "h-4 w-4 text-primary" }),
|
|
454
464
|
"Risks (",
|
|
455
|
-
|
|
465
|
+
K.length,
|
|
456
466
|
" open)"
|
|
457
467
|
]
|
|
458
|
-
}), /* @__PURE__ */
|
|
459
|
-
projectId:
|
|
460
|
-
onCreated: (e) =>
|
|
468
|
+
}), /* @__PURE__ */ T(l, {
|
|
469
|
+
projectId: V.id,
|
|
470
|
+
onCreated: (e) => I(s("/risks/risk-detail-page", e))
|
|
461
471
|
})]
|
|
462
|
-
}), /* @__PURE__ */
|
|
472
|
+
}), /* @__PURE__ */ E(A, {
|
|
463
473
|
className: "space-y-3",
|
|
464
474
|
children: [
|
|
465
|
-
|
|
466
|
-
...
|
|
467
|
-
className: `border-b pb-2 last:border-0 ${
|
|
468
|
-
children: [/* @__PURE__ */
|
|
475
|
+
q.map((e) => /* @__PURE__ */ E("div", {
|
|
476
|
+
...c(() => I(s("/risks/risk-detail-page", e.id)), e.title),
|
|
477
|
+
className: `border-b pb-2 last:border-0 ${o}`,
|
|
478
|
+
children: [/* @__PURE__ */ E("div", {
|
|
469
479
|
className: "flex justify-between gap-2",
|
|
470
|
-
children: [/* @__PURE__ */
|
|
480
|
+
children: [/* @__PURE__ */ T("span", {
|
|
471
481
|
className: "text-sm font-medium truncate",
|
|
472
482
|
children: e.title
|
|
473
|
-
}), /* @__PURE__ */
|
|
474
|
-
className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${
|
|
483
|
+
}), /* @__PURE__ */ T("span", {
|
|
484
|
+
className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${P[e.severity] ?? "bg-gray-100"}`,
|
|
475
485
|
children: i(e.severity)
|
|
476
486
|
})]
|
|
477
|
-
}), /* @__PURE__ */
|
|
487
|
+
}), /* @__PURE__ */ E("div", {
|
|
478
488
|
className: "text-xs text-muted-foreground mt-1",
|
|
479
489
|
children: [
|
|
480
490
|
"Score ",
|
|
@@ -484,75 +494,75 @@ function F() {
|
|
|
484
494
|
]
|
|
485
495
|
})]
|
|
486
496
|
}, e.id)),
|
|
487
|
-
|
|
497
|
+
K.length === 0 && /* @__PURE__ */ T("p", {
|
|
488
498
|
className: "text-sm text-muted-foreground text-center py-2",
|
|
489
499
|
children: "No open risks."
|
|
490
500
|
}),
|
|
491
|
-
/* @__PURE__ */
|
|
501
|
+
/* @__PURE__ */ E("button", {
|
|
492
502
|
type: "button",
|
|
493
503
|
className: "text-xs text-primary hover:underline",
|
|
494
|
-
onClick: () =>
|
|
504
|
+
onClick: () => I(`/risks/risk-register-page?projectId=${encodeURIComponent(V.id)}`),
|
|
495
505
|
children: [
|
|
496
506
|
"View risk register (",
|
|
497
|
-
|
|
507
|
+
G.length,
|
|
498
508
|
") →"
|
|
499
509
|
]
|
|
500
510
|
})
|
|
501
511
|
]
|
|
502
512
|
})] }),
|
|
503
|
-
/* @__PURE__ */
|
|
513
|
+
/* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ T(M, { children: "Details" }) }), /* @__PURE__ */ E(A, {
|
|
504
514
|
className: "space-y-2 text-sm",
|
|
505
515
|
children: [
|
|
506
|
-
/* @__PURE__ */
|
|
516
|
+
/* @__PURE__ */ E("div", {
|
|
507
517
|
className: "flex justify-between",
|
|
508
|
-
children: [/* @__PURE__ */
|
|
518
|
+
children: [/* @__PURE__ */ T("span", {
|
|
509
519
|
className: "text-muted-foreground",
|
|
510
520
|
children: "Owner"
|
|
511
|
-
}), /* @__PURE__ */
|
|
521
|
+
}), /* @__PURE__ */ T("span", { children: /* @__PURE__ */ T(n, { id: V.ownerId }) })]
|
|
512
522
|
}),
|
|
513
|
-
/* @__PURE__ */
|
|
523
|
+
/* @__PURE__ */ E("div", {
|
|
514
524
|
className: "flex justify-between",
|
|
515
|
-
children: [/* @__PURE__ */
|
|
525
|
+
children: [/* @__PURE__ */ T("span", {
|
|
516
526
|
className: "text-muted-foreground",
|
|
517
527
|
children: "Key"
|
|
518
|
-
}), /* @__PURE__ */
|
|
528
|
+
}), /* @__PURE__ */ T("span", {
|
|
519
529
|
className: "font-mono",
|
|
520
|
-
children:
|
|
530
|
+
children: V.key
|
|
521
531
|
})]
|
|
522
532
|
}),
|
|
523
|
-
/* @__PURE__ */
|
|
533
|
+
/* @__PURE__ */ E("div", {
|
|
524
534
|
className: "flex justify-between",
|
|
525
|
-
children: [/* @__PURE__ */
|
|
535
|
+
children: [/* @__PURE__ */ T("span", {
|
|
526
536
|
className: "text-muted-foreground",
|
|
527
537
|
children: "Methodology"
|
|
528
|
-
}), /* @__PURE__ */
|
|
538
|
+
}), /* @__PURE__ */ T("span", {
|
|
529
539
|
className: "capitalize",
|
|
530
|
-
children:
|
|
540
|
+
children: V.methodology.toLowerCase()
|
|
531
541
|
})]
|
|
532
542
|
}),
|
|
533
|
-
/* @__PURE__ */
|
|
543
|
+
/* @__PURE__ */ E("div", {
|
|
534
544
|
className: "flex justify-between",
|
|
535
|
-
children: [/* @__PURE__ */
|
|
545
|
+
children: [/* @__PURE__ */ T("span", {
|
|
536
546
|
className: "text-muted-foreground",
|
|
537
547
|
children: "Program"
|
|
538
|
-
}),
|
|
548
|
+
}), V.program ? /* @__PURE__ */ T("button", {
|
|
539
549
|
type: "button",
|
|
540
550
|
className: "text-primary hover:underline underline-offset-2",
|
|
541
|
-
onClick: () =>
|
|
542
|
-
children:
|
|
543
|
-
}) : /* @__PURE__ */
|
|
551
|
+
onClick: () => I(s("/products/program-detail-page", V.program.id)),
|
|
552
|
+
children: V.program.name
|
|
553
|
+
}) : /* @__PURE__ */ T("span", {
|
|
544
554
|
className: "text-muted-foreground",
|
|
545
555
|
children: "No program"
|
|
546
556
|
})]
|
|
547
557
|
}),
|
|
548
|
-
|
|
558
|
+
V.tags.length > 0 && /* @__PURE__ */ E("div", {
|
|
549
559
|
className: "flex justify-between items-start",
|
|
550
|
-
children: [/* @__PURE__ */
|
|
560
|
+
children: [/* @__PURE__ */ T("span", {
|
|
551
561
|
className: "text-muted-foreground",
|
|
552
562
|
children: "Tags"
|
|
553
|
-
}), /* @__PURE__ */
|
|
563
|
+
}), /* @__PURE__ */ T("div", {
|
|
554
564
|
className: "flex gap-1 flex-wrap justify-end",
|
|
555
|
-
children:
|
|
565
|
+
children: V.tags.map((e) => /* @__PURE__ */ T(D, {
|
|
556
566
|
variant: "outline",
|
|
557
567
|
className: "text-xs",
|
|
558
568
|
children: e
|
|
@@ -568,6 +578,6 @@ function F() {
|
|
|
568
578
|
});
|
|
569
579
|
}
|
|
570
580
|
//#endregion
|
|
571
|
-
export {
|
|
581
|
+
export { I as ProjectsProjectDetailPagePage };
|
|
572
582
|
|
|
573
583
|
//# sourceMappingURL=ProjectsProjectDetailPagePage.js.map
|