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