@burdenoff/microfe-planmagnet 2026.930.15 → 2026.930.17

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.
Files changed (40) hide show
  1. package/dist/planmagnet/comments/CommentThread.d.ts +44 -0
  2. package/dist/planmagnet/comments/CommentThread.d.ts.map +1 -0
  3. package/dist/planmagnet/comments/CommentThread.js +513 -0
  4. package/dist/planmagnet/comments/CommentThread.js.map +1 -0
  5. package/dist/planmagnet/comments/MentionComposer.d.ts +25 -0
  6. package/dist/planmagnet/comments/MentionComposer.d.ts.map +1 -0
  7. package/dist/planmagnet/comments/MentionComposer.js +148 -0
  8. package/dist/planmagnet/comments/MentionComposer.js.map +1 -0
  9. package/dist/planmagnet/comments/RoadmapComments.d.ts +29 -0
  10. package/dist/planmagnet/comments/RoadmapComments.d.ts.map +1 -0
  11. package/dist/planmagnet/comments/RoadmapComments.js +310 -0
  12. package/dist/planmagnet/comments/RoadmapComments.js.map +1 -0
  13. package/dist/planmagnet/comments/TargetComments.d.ts +7 -0
  14. package/dist/planmagnet/comments/TargetComments.d.ts.map +1 -0
  15. package/dist/planmagnet/comments/TargetComments.js +207 -0
  16. package/dist/planmagnet/comments/TargetComments.js.map +1 -0
  17. package/dist/planmagnet/comments/WorkItemComments.d.ts.map +1 -1
  18. package/dist/planmagnet/comments/WorkItemComments.js +68 -216
  19. package/dist/planmagnet/comments/WorkItemComments.js.map +1 -1
  20. package/dist/planmagnet/pages/DocsDocDetailPagePage.d.ts.map +1 -1
  21. package/dist/planmagnet/pages/DocsDocDetailPagePage.js +74 -72
  22. package/dist/planmagnet/pages/DocsDocDetailPagePage.js.map +1 -1
  23. package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.d.ts.map +1 -1
  24. package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +130 -112
  25. package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js.map +1 -1
  26. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.d.ts.map +1 -1
  27. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +76 -74
  28. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js.map +1 -1
  29. package/dist/planmagnet/roadmaps/RoadmapNowNextLater.d.ts.map +1 -1
  30. package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js +157 -151
  31. package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js.map +1 -1
  32. package/dist/planmagnet/roadmaps/RoadmapReviewPanel.d.ts +4 -0
  33. package/dist/planmagnet/roadmaps/RoadmapReviewPanel.d.ts.map +1 -0
  34. package/dist/planmagnet/roadmaps/RoadmapReviewPanel.js +370 -0
  35. package/dist/planmagnet/roadmaps/RoadmapReviewPanel.js.map +1 -0
  36. package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.d.ts +4 -0
  37. package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.d.ts.map +1 -0
  38. package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.js +396 -0
  39. package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.js.map +1 -0
  40. package/package.json +1 -1
@@ -4,6 +4,7 @@ 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
6
  import { useEntityId as c } from "../hooks/useEntityId.js";
7
+ import { ProjectComments as ee } from "../comments/TargetComments.js";
7
8
  import { NewRiskDialog as l, NewTemplateFromProjectDialog as u } from "../create/CreateDialogs.js";
8
9
  import { ProjectHeaderActions as d } from "../controls/ProjectControls.js";
9
10
  import { ProjectBudgetsSummary as f } from "../budgets/ProjectBudgetsSummary.js";
@@ -86,27 +87,27 @@ var N = C`
86
87
  }
87
88
  }
88
89
  }
89
- `, ee = {
90
+ `, P = {
90
91
  ACTIVE: "bg-green-100 text-green-800",
91
92
  ON_HOLD: "bg-orange-100 text-orange-800",
92
93
  CANCELLED: "bg-red-100 text-red-800",
93
94
  COMPLETED: "bg-blue-100 text-blue-800",
94
95
  PLANNING: "bg-gray-100 text-gray-800",
95
96
  ARCHIVED: "bg-gray-100 text-gray-800"
96
- }, P = {
97
+ }, F = {
97
98
  CRITICAL: "bg-red-100 text-red-800",
98
99
  HIGH: "bg-orange-100 text-orange-800",
99
100
  MEDIUM: "bg-yellow-100 text-yellow-800",
100
101
  LOW: "bg-blue-100 text-blue-800",
101
102
  NEGLIGIBLE: "bg-gray-100 text-gray-800"
102
- }, F = new Set([
103
+ }, I = new Set([
103
104
  "IDENTIFIED",
104
105
  "ANALYZING",
105
106
  "MITIGATING",
106
107
  "ACCEPTED"
107
108
  ]);
108
- function I() {
109
- let C = c("projectId"), I = t(), { workspaceId: L } = e(), { data: R, loading: z, error: B } = w(N, {
109
+ function L() {
110
+ let C = c("projectId"), L = t(), { workspaceId: R } = e(), { data: z, loading: B, error: V } = w(N, {
110
111
  variables: { id: C },
111
112
  skip: !C
112
113
  });
@@ -114,23 +115,23 @@ function I() {
114
115
  className: "p-6 text-muted-foreground",
115
116
  children: "No project selected. Open one from the list."
116
117
  });
117
- if (z && !R) return /* @__PURE__ */ T("div", {
118
+ if (B && !z) return /* @__PURE__ */ T("div", {
118
119
  className: "flex items-center justify-center p-12",
119
120
  children: /* @__PURE__ */ T("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
120
121
  });
121
- if (B) return /* @__PURE__ */ E("div", {
122
+ if (V) return /* @__PURE__ */ E("div", {
122
123
  className: "p-6 text-red-500",
123
- children: ["Error loading project: ", B.message]
124
+ children: ["Error loading project: ", V.message]
124
125
  });
125
- let V = R?.planmagnetProject;
126
- if (!V) return /* @__PURE__ */ T("div", {
126
+ let H = z?.planmagnetProject;
127
+ if (!H) return /* @__PURE__ */ T("div", {
127
128
  className: "p-6 text-muted-foreground",
128
129
  children: "Project not found."
129
130
  });
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
+ let U = H.workItems ?? [], W = H.sprints ?? [], G = H.milestones ?? [], K = H.risks ?? [], q = K.filter((e) => I.has(e.status)), J = [...q].sort((e, t) => t.riskScore - e.riskScore).slice(0, 3), Y = W.find((e) => e.status === "ACTIVE"), X = W.filter((e) => e.status === "COMPLETED" && e.velocity != null).sort((e, t) => (t.endDate ?? "").localeCompare(e.endDate ?? ""))[0], Z = r(U.map((e) => ({
131
132
  status: e.status,
132
133
  storyPoints: e.storyPoints
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
+ }))), Q = U.filter((e) => e.status !== "CANCELLED"), te = Q.filter((e) => e.status === "DONE").length, ne = [...U].sort((e, t) => t.createdAt.localeCompare(e.createdAt)).slice(0, 5), $ = Object.values(U.reduce((e, t) => {
134
135
  if (!t.sprint?.team) return e;
135
136
  let n = e[t.sprint.id] ?? {
136
137
  sprint: {
@@ -156,23 +157,23 @@ function I() {
156
157
  /* @__PURE__ */ T(g, { className: "h-5 w-5 text-primary" }),
157
158
  /* @__PURE__ */ T("h1", {
158
159
  className: "text-2xl font-semibold",
159
- children: V.name
160
+ children: H.name
160
161
  }),
161
162
  /* @__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("_", " ")
163
+ className: `text-xs px-2 py-0.5 rounded-full capitalize ${P[H.status] ?? "bg-gray-100"}`,
164
+ children: H.status.toLowerCase().replace("_", " ")
164
165
  })
165
166
  ]
166
167
  }), /* @__PURE__ */ T("p", {
167
168
  className: "text-sm text-muted-foreground mt-1",
168
- children: V.description ?? "No description"
169
+ children: H.description ?? "No description"
169
170
  })] }), /* @__PURE__ */ E("div", {
170
171
  className: "flex flex-col items-end gap-2",
171
172
  children: [
172
173
  /* @__PURE__ */ T(d, {
173
- projectId: V.id,
174
- name: V.name,
175
- status: V.status
174
+ projectId: H.id,
175
+ name: H.name,
176
+ status: H.status
176
177
  }),
177
178
  /* @__PURE__ */ E("div", {
178
179
  className: "flex items-center gap-2",
@@ -180,21 +181,21 @@ function I() {
180
181
  /* @__PURE__ */ E(O, {
181
182
  size: "sm",
182
183
  variant: "outline",
183
- onClick: () => I("/automation/automation-rules-page"),
184
+ onClick: () => L("/automation/automation-rules-page"),
184
185
  "data-testid": "project-automation-rules",
185
186
  children: [/* @__PURE__ */ T(p, { className: "mr-1 h-4 w-4" }), "Automation rules"]
186
187
  }),
187
188
  /* @__PURE__ */ E(O, {
188
189
  size: "sm",
189
190
  variant: "outline",
190
- onClick: () => I(`/projects/quality-gates-page?projectId=${encodeURIComponent(V.id)}`),
191
+ onClick: () => L(`/projects/quality-gates-page?projectId=${encodeURIComponent(H.id)}`),
191
192
  "data-testid": "project-quality-gates",
192
193
  children: [/* @__PURE__ */ T(b, { className: "mr-1 h-4 w-4" }), "Quality gates"]
193
194
  }),
194
195
  /* @__PURE__ */ T(u, {
195
- projectId: V.id,
196
- projectName: V.name,
197
- onCreated: (e) => I(o("/templates/edit-template-page", e)),
196
+ projectId: H.id,
197
+ projectName: H.name,
198
+ onCreated: (e) => L(o("/templates/edit-template-page", e)),
198
199
  trigger: /* @__PURE__ */ E(O, {
199
200
  size: "sm",
200
201
  variant: "outline",
@@ -207,12 +208,12 @@ function I() {
207
208
  /* @__PURE__ */ T(D, {
208
209
  variant: "outline",
209
210
  className: "capitalize",
210
- children: V.methodology.toLowerCase()
211
+ children: H.methodology.toLowerCase()
211
212
  }),
212
213
  /* @__PURE__ */ E(O, {
213
214
  size: "sm",
214
215
  variant: "outline",
215
- onClick: () => I(o("/projects/critical-path-page", V.id)),
216
+ onClick: () => L(o("/projects/critical-path-page", H.id)),
216
217
  children: [/* @__PURE__ */ T(v, { className: "mr-1 h-4 w-4" }), "Critical path"]
217
218
  })
218
219
  ]
@@ -229,9 +230,9 @@ function I() {
229
230
  }), /* @__PURE__ */ E("p", {
230
231
  className: "text-xl font-bold mt-1",
231
232
  children: [
232
- Q,
233
+ te,
233
234
  "/",
234
- Z.length
235
+ Q.length
235
236
  ]
236
237
  })]
237
238
  }) }),
@@ -242,7 +243,7 @@ function I() {
242
243
  children: [/* @__PURE__ */ T(S, { className: "h-4 w-4" }), "Sprints"]
243
244
  }), /* @__PURE__ */ T("p", {
244
245
  className: "text-xl font-bold mt-1",
245
- children: U.length
246
+ children: W.length
246
247
  })]
247
248
  }) }),
248
249
  /* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
@@ -252,7 +253,7 @@ function I() {
252
253
  children: [/* @__PURE__ */ T(m, { className: "h-4 w-4" }), "Milestones"]
253
254
  }), /* @__PURE__ */ T("p", {
254
255
  className: "text-xl font-bold mt-1",
255
- children: W.length
256
+ children: G.length
256
257
  })]
257
258
  }) }),
258
259
  /* @__PURE__ */ T(k, { children: /* @__PURE__ */ E(A, {
@@ -262,7 +263,7 @@ function I() {
262
263
  children: [/* @__PURE__ */ T(x, { className: "h-4 w-4" }), "Owner"]
263
264
  }), /* @__PURE__ */ T("p", {
264
265
  className: "text-sm font-bold mt-1 truncate",
265
- children: /* @__PURE__ */ T(n, { id: V.ownerId })
266
+ children: /* @__PURE__ */ T(n, { id: H.ownerId })
266
267
  })]
267
268
  }) })
268
269
  ]
@@ -280,22 +281,22 @@ function I() {
280
281
  children: "Tasks done"
281
282
  }), /* @__PURE__ */ T("span", {
282
283
  className: "font-medium",
283
- children: X === null ? "No open tasks" : `${X}%`
284
+ children: Z === null ? "No open tasks" : `${Z}%`
284
285
  })]
285
286
  }),
286
287
  /* @__PURE__ */ T("div", {
287
288
  className: "w-full h-4 rounded-full bg-muted overflow-hidden",
288
289
  children: /* @__PURE__ */ T("div", {
289
290
  className: "h-full bg-primary rounded-full",
290
- style: { width: `${X ?? 0}%` }
291
+ style: { width: `${Z ?? 0}%` }
291
292
  })
292
293
  }),
293
294
  /* @__PURE__ */ E("div", {
294
295
  className: "flex justify-between text-xs text-muted-foreground mt-2",
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" })]
296
+ children: [/* @__PURE__ */ T("span", { children: H.startDate ? new Date(H.startDate).toLocaleDateString() : "Not set" }), /* @__PURE__ */ T("span", { children: H.endDate ? new Date(H.endDate).toLocaleDateString() : "Not set" })]
296
297
  })
297
298
  ] })] }),
298
- J && /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, {
299
+ Y && /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, {
299
300
  className: "flex items-center gap-2",
300
301
  children: [/* @__PURE__ */ T(S, { className: "h-4 w-4 text-primary" }), "Active Sprint"]
301
302
  }) }), /* @__PURE__ */ E(A, {
@@ -305,12 +306,12 @@ function I() {
305
306
  className: "flex justify-between",
306
307
  children: [/* @__PURE__ */ T("span", {
307
308
  className: "font-medium",
308
- children: J.name
309
+ children: Y.name
309
310
  }), /* @__PURE__ */ T(D, { children: "Active" })]
310
311
  }),
311
- J.goal && /* @__PURE__ */ T("p", {
312
+ Y.goal && /* @__PURE__ */ T("p", {
312
313
  className: "text-sm text-muted-foreground",
313
- children: J.goal
314
+ children: Y.goal
314
315
  }),
315
316
  /* @__PURE__ */ E("div", {
316
317
  className: "grid grid-cols-3 gap-4 text-center",
@@ -318,9 +319,9 @@ function I() {
318
319
  /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
319
320
  className: "text-lg font-semibold",
320
321
  children: [
321
- J.workItems?.filter((e) => e.status === "DONE").reduce((e, t) => e + (t.storyPoints ?? 0), 0),
322
+ Y.workItems?.filter((e) => e.status === "DONE").reduce((e, t) => e + (t.storyPoints ?? 0), 0),
322
323
  "/",
323
- J.workItems?.reduce((e, t) => e + (t.storyPoints ?? 0), 0) ?? 0
324
+ Y.workItems?.reduce((e, t) => e + (t.storyPoints ?? 0), 0) ?? 0
324
325
  ]
325
326
  }), /* @__PURE__ */ T("p", {
326
327
  className: "text-xs text-muted-foreground",
@@ -329,9 +330,9 @@ function I() {
329
330
  /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
330
331
  className: "text-lg font-semibold",
331
332
  children: [
332
- J.workItems?.filter((e) => e.status === "DONE").length ?? 0,
333
+ Y.workItems?.filter((e) => e.status === "DONE").length ?? 0,
333
334
  "/",
334
- J.workItems?.length ?? 0
335
+ Y.workItems?.length ?? 0
335
336
  ]
336
337
  }), /* @__PURE__ */ T("p", {
337
338
  className: "text-xs text-muted-foreground",
@@ -339,7 +340,7 @@ function I() {
339
340
  })] }),
340
341
  /* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
341
342
  className: "text-lg font-semibold",
342
- children: Y ? `${Y.velocity} pts` : "—"
343
+ children: X ? `${X.velocity} pts` : "—"
343
344
  }), /* @__PURE__ */ T("p", {
344
345
  className: "text-xs text-muted-foreground",
345
346
  children: "Velocity of the last sprint"
@@ -350,13 +351,13 @@ function I() {
350
351
  })] }),
351
352
  /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, { children: [
352
353
  "Work items (",
353
- H.length,
354
+ U.length,
354
355
  ")",
355
- H.length > 5 ? " · latest 5" : ""
356
+ U.length > 5 ? " · latest 5" : ""
356
357
  ] }) }), /* @__PURE__ */ E(A, {
357
358
  className: "space-y-2",
358
- children: [te.map((e) => /* @__PURE__ */ E("div", {
359
- ...s(() => I(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.id)}`), e.key),
359
+ children: [ne.map((e) => /* @__PURE__ */ E("div", {
360
+ ...s(() => L(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.id)}`), e.key),
360
361
  className: `flex items-center justify-between border rounded-md p-2.5 ${a}`,
361
362
  children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
362
363
  className: "text-sm font-medium",
@@ -385,26 +386,27 @@ function I() {
385
386
  children: e.status.toLowerCase().replace("_", " ")
386
387
  })]
387
388
  })]
388
- }, e.id)), H.length === 0 && /* @__PURE__ */ T("p", {
389
+ }, e.id)), U.length === 0 && /* @__PURE__ */ T("p", {
389
390
  className: "text-sm text-muted-foreground text-center py-4",
390
391
  children: "No work items yet."
391
392
  })]
392
- })] })
393
+ })] }),
394
+ /* @__PURE__ */ T(ee, { projectId: H.id })
393
395
  ]
394
396
  }), /* @__PURE__ */ E("div", {
395
397
  className: "space-y-6",
396
398
  children: [
397
399
  /* @__PURE__ */ T(f, {
398
- workspaceId: L,
399
- projectId: V.id
400
+ workspaceId: R,
401
+ projectId: H.id
400
402
  }),
401
403
  /* @__PURE__ */ E(k, { children: [/* @__PURE__ */ T(j, { children: /* @__PURE__ */ E(M, { children: [
402
404
  "Milestones (",
403
- W.length,
405
+ G.length,
404
406
  ")"
405
407
  ] }) }), /* @__PURE__ */ E(A, {
406
408
  className: "space-y-3",
407
- children: [W.map((e) => /* @__PURE__ */ E("div", {
409
+ children: [G.map((e) => /* @__PURE__ */ E("div", {
408
410
  className: "border-b pb-2 last:border-0",
409
411
  children: [/* @__PURE__ */ E("div", {
410
412
  className: "flex justify-between",
@@ -420,7 +422,7 @@ function I() {
420
422
  className: "flex items-center gap-1 text-xs text-muted-foreground mt-1",
421
423
  children: [/* @__PURE__ */ T(m, { className: "h-3 w-3" }), e.dueDate ? new Date(e.dueDate).toLocaleDateString() : "No due date"]
422
424
  })]
423
- }, e.id)), W.length === 0 && /* @__PURE__ */ T("p", {
425
+ }, e.id)), G.length === 0 && /* @__PURE__ */ T("p", {
424
426
  className: "text-sm text-muted-foreground text-center py-2",
425
427
  children: "No milestones."
426
428
  })]
@@ -437,12 +439,12 @@ function I() {
437
439
  children: [/* @__PURE__ */ T("button", {
438
440
  type: "button",
439
441
  className: "text-sm font-medium hover:underline text-left",
440
- onClick: () => I(o("/projects/planning-detail-page", e.sprint.id)),
442
+ onClick: () => L(o("/projects/planning-detail-page", e.sprint.id)),
441
443
  children: e.sprint.name
442
444
  }), /* @__PURE__ */ E("button", {
443
445
  type: "button",
444
446
  className: "block text-xs text-muted-foreground hover:underline",
445
- onClick: () => I(o("/team/team-detail-page", e.sprint.team.id)),
447
+ onClick: () => L(o("/team/team-detail-page", e.sprint.team.id)),
446
448
  children: [
447
449
  e.items.length,
448
450
  " item",
@@ -462,18 +464,18 @@ function I() {
462
464
  children: [
463
465
  /* @__PURE__ */ T(y, { className: "h-4 w-4 text-primary" }),
464
466
  "Risks (",
465
- K.length,
467
+ q.length,
466
468
  " open)"
467
469
  ]
468
470
  }), /* @__PURE__ */ T(l, {
469
- projectId: V.id,
470
- onCreated: (e) => I(o("/risks/risk-detail-page", e))
471
+ projectId: H.id,
472
+ onCreated: (e) => L(o("/risks/risk-detail-page", e))
471
473
  })]
472
474
  }), /* @__PURE__ */ E(A, {
473
475
  className: "space-y-3",
474
476
  children: [
475
- q.map((e) => /* @__PURE__ */ E("div", {
476
- ...s(() => I(o("/risks/risk-detail-page", e.id)), e.title),
477
+ J.map((e) => /* @__PURE__ */ E("div", {
478
+ ...s(() => L(o("/risks/risk-detail-page", e.id)), e.title),
477
479
  className: `border-b pb-2 last:border-0 ${a}`,
478
480
  children: [/* @__PURE__ */ E("div", {
479
481
  className: "flex justify-between gap-2",
@@ -481,7 +483,7 @@ function I() {
481
483
  className: "text-sm font-medium truncate",
482
484
  children: e.title
483
485
  }), /* @__PURE__ */ T("span", {
484
- className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${P[e.severity] ?? "bg-gray-100"}`,
486
+ className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${F[e.severity] ?? "bg-gray-100"}`,
485
487
  children: i(e.severity)
486
488
  })]
487
489
  }), /* @__PURE__ */ E("div", {
@@ -494,17 +496,17 @@ function I() {
494
496
  ]
495
497
  })]
496
498
  }, e.id)),
497
- K.length === 0 && /* @__PURE__ */ T("p", {
499
+ q.length === 0 && /* @__PURE__ */ T("p", {
498
500
  className: "text-sm text-muted-foreground text-center py-2",
499
501
  children: "No open risks."
500
502
  }),
501
503
  /* @__PURE__ */ E("button", {
502
504
  type: "button",
503
505
  className: "text-xs text-primary hover:underline",
504
- onClick: () => I(`/risks/risk-register-page?projectId=${encodeURIComponent(V.id)}`),
506
+ onClick: () => L(`/risks/risk-register-page?projectId=${encodeURIComponent(H.id)}`),
505
507
  children: [
506
508
  "View risk register (",
507
- G.length,
509
+ K.length,
508
510
  ") →"
509
511
  ]
510
512
  })
@@ -518,7 +520,7 @@ function I() {
518
520
  children: [/* @__PURE__ */ T("span", {
519
521
  className: "text-muted-foreground",
520
522
  children: "Owner"
521
- }), /* @__PURE__ */ T("span", { children: /* @__PURE__ */ T(n, { id: V.ownerId }) })]
523
+ }), /* @__PURE__ */ T("span", { children: /* @__PURE__ */ T(n, { id: H.ownerId }) })]
522
524
  }),
523
525
  /* @__PURE__ */ E("div", {
524
526
  className: "flex justify-between",
@@ -527,7 +529,7 @@ function I() {
527
529
  children: "Key"
528
530
  }), /* @__PURE__ */ T("span", {
529
531
  className: "font-mono",
530
- children: V.key
532
+ children: H.key
531
533
  })]
532
534
  }),
533
535
  /* @__PURE__ */ E("div", {
@@ -537,7 +539,7 @@ function I() {
537
539
  children: "Methodology"
538
540
  }), /* @__PURE__ */ T("span", {
539
541
  className: "capitalize",
540
- children: V.methodology.toLowerCase()
542
+ children: H.methodology.toLowerCase()
541
543
  })]
542
544
  }),
543
545
  /* @__PURE__ */ E("div", {
@@ -545,24 +547,24 @@ function I() {
545
547
  children: [/* @__PURE__ */ T("span", {
546
548
  className: "text-muted-foreground",
547
549
  children: "Program"
548
- }), V.program ? /* @__PURE__ */ T("button", {
550
+ }), H.program ? /* @__PURE__ */ T("button", {
549
551
  type: "button",
550
552
  className: "text-primary hover:underline underline-offset-2",
551
- onClick: () => I(o("/products/program-detail-page", V.program.id)),
552
- children: V.program.name
553
+ onClick: () => L(o("/products/program-detail-page", H.program.id)),
554
+ children: H.program.name
553
555
  }) : /* @__PURE__ */ T("span", {
554
556
  className: "text-muted-foreground",
555
557
  children: "No program"
556
558
  })]
557
559
  }),
558
- V.tags.length > 0 && /* @__PURE__ */ E("div", {
560
+ H.tags.length > 0 && /* @__PURE__ */ E("div", {
559
561
  className: "flex justify-between items-start",
560
562
  children: [/* @__PURE__ */ T("span", {
561
563
  className: "text-muted-foreground",
562
564
  children: "Tags"
563
565
  }), /* @__PURE__ */ T("div", {
564
566
  className: "flex gap-1 flex-wrap justify-end",
565
- children: V.tags.map((e) => /* @__PURE__ */ T(D, {
567
+ children: H.tags.map((e) => /* @__PURE__ */ T(D, {
566
568
  variant: "outline",
567
569
  className: "text-xs",
568
570
  children: e
@@ -578,6 +580,6 @@ function I() {
578
580
  });
579
581
  }
580
582
  //#endregion
581
- export { I as ProjectsProjectDetailPagePage };
583
+ export { L as ProjectsProjectDetailPagePage };
582
584
 
583
585
  //# sourceMappingURL=ProjectsProjectDetailPagePage.js.map