@burdenoff/microfe-planmagnet 2026.1031.1 → 2026.1101.1

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 (36) hide show
  1. package/dist/generated/global-types.d.ts +307 -2
  2. package/dist/generated/wspace-types.d.ts +1333 -9
  3. package/dist/planmagnet/PlanMagnetRoot.js +111 -117
  4. package/dist/planmagnet/controls/FeatureTriage.d.ts +2 -2
  5. package/dist/planmagnet/dependency/DependencyPanel.js +1 -1
  6. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +17 -17
  7. package/dist/planmagnet/pages/DashboardDashboardPagePage.js +6 -6
  8. package/dist/planmagnet/pages/GoalsCreateObjectivePagePage.js +1 -1
  9. package/dist/planmagnet/pages/GoalsGoalsPagePage.js +6 -6
  10. package/dist/planmagnet/pages/GoalsObjectiveDetailPagePage.js +5 -5
  11. package/dist/planmagnet/pages/ProductsFeatureAnalyticsPagePage.js +9 -9
  12. package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.js +16 -13
  13. package/dist/planmagnet/pages/ProductsFeaturesPagePage.js +10 -10
  14. package/dist/planmagnet/pages/ProductsProductsPagePage.js +3 -3
  15. package/dist/planmagnet/pages/ProductsReleaseDetailPagePage.js +9 -9
  16. package/dist/planmagnet/pages/ProductsReleasesPagePage.js +9 -9
  17. package/dist/planmagnet/pages/ProductsRoadmapAnalyticsPagePage.js +15 -15
  18. package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +7 -7
  19. package/dist/planmagnet/pages/ProjectsActiveProjectsPagePage.js +1 -1
  20. package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.js +1 -1
  21. package/dist/planmagnet/pages/ProjectsCustomFieldsPagePage.js +1 -1
  22. package/dist/planmagnet/pages/ProjectsGanttPagePage.js +1 -1
  23. package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js +13 -10
  24. package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js +6 -6
  25. package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js +3 -3
  26. package/dist/planmagnet/pages/ProjectsPlanningPagePage.js +8 -8
  27. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +26 -23
  28. package/dist/planmagnet/pages/ProjectsProjectsPagePage.js +8 -8
  29. package/dist/planmagnet/pages/RisksRiskDetailPagePage.js +7 -7
  30. package/dist/planmagnet/pages/RisksRiskRegisterPagePage.js +13 -13
  31. package/dist/planmagnet/pages/SprintsStartSprintPagePage.js +1 -1
  32. package/dist/planmagnet/pages/TasksTaskDetailPagePage.js +5 -5
  33. package/dist/planmagnet/pages/TasksTasksPagePage.js +16 -16
  34. package/dist/planmagnet/pages/TeamTeamDetailPagePage.js +6 -6
  35. package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js +5 -5
  36. package/package.json +1 -1
@@ -63,7 +63,7 @@ function _() {
63
63
  })]
64
64
  }),
65
65
  x && /* @__PURE__ */ l("div", {
66
- className: "p-6 text-red-500",
66
+ className: "p-6 text-status-error-text",
67
67
  children: ["Error: ", x.message]
68
68
  }),
69
69
  /* @__PURE__ */ l(d, { children: [/* @__PURE__ */ c(p, { children: /* @__PURE__ */ l(m, {
@@ -27,10 +27,10 @@ var _ = c`
27
27
  }
28
28
  }
29
29
  `, v = {
30
- DRAFT: "bg-gray-100 text-gray-800",
31
- ACTIVE: "bg-blue-100 text-blue-800",
32
- COMPLETED: "bg-green-100 text-green-800",
33
- CANCELLED: "bg-red-100 text-red-800"
30
+ DRAFT: "bg-bg-muted text-text-primary",
31
+ ACTIVE: "bg-status-info-subtle text-status-info-text",
32
+ COMPLETED: "bg-status-success-subtle text-status-success-text",
33
+ CANCELLED: "bg-status-error-subtle text-status-error-text"
34
34
  }, y = [
35
35
  "all",
36
36
  "DRAFT",
@@ -67,7 +67,7 @@ function x() {
67
67
  children: /* @__PURE__ */ u("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
68
68
  });
69
69
  if (E) return /* @__PURE__ */ d("div", {
70
- className: "p-6 text-red-500",
70
+ className: "p-6 text-status-error-text",
71
71
  children: ["Error loading objectives: ", E.message]
72
72
  });
73
73
  let D = w?.planmagnetObjectives?.items ?? [], O = w?.planmagnetObjectives?.totalCount ?? 0;
@@ -109,7 +109,7 @@ function x() {
109
109
  className: "text-base flex items-center gap-2",
110
110
  children: [/* @__PURE__ */ u(a, { className: "h-4 w-4 text-primary" }), e.title]
111
111
  }), /* @__PURE__ */ u("span", {
112
- className: `text-xs px-2 py-0.5 rounded-full capitalize ${v[e.status] ?? "bg-gray-100"}`,
112
+ className: `text-xs px-2 py-0.5 rounded-full capitalize ${v[e.status] ?? "bg-bg-muted"}`,
113
113
  children: e.status.toLowerCase()
114
114
  })]
115
115
  })
@@ -77,10 +77,10 @@ var D = h`
77
77
  planmagnetDeleteObjective(id: $id)
78
78
  }
79
79
  `, M = {
80
- NOT_STARTED: "bg-gray-100 text-gray-800",
81
- IN_PROGRESS: "bg-blue-100 text-blue-800",
82
- AT_RISK: "bg-orange-100 text-orange-800",
83
- COMPLETED: "bg-green-100 text-green-800"
80
+ NOT_STARTED: "bg-bg-muted text-text-primary",
81
+ IN_PROGRESS: "bg-status-info-subtle text-status-info-text",
82
+ AT_RISK: "bg-status-warning-subtle text-status-warning-text",
83
+ COMPLETED: "bg-status-success-subtle text-status-success-text"
84
84
  };
85
85
  function N({ progress: e }) {
86
86
  return /* @__PURE__ */ v("div", {
@@ -250,7 +250,7 @@ function F() {
250
250
  children: /* @__PURE__ */ v("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
251
251
  });
252
252
  if (B) return /* @__PURE__ */ y("div", {
253
- className: "p-6 text-red-500",
253
+ className: "p-6 text-status-error-text",
254
254
  children: ["Error: ", B.message]
255
255
  });
256
256
  let J = R?.planmagnetObjective;
@@ -106,7 +106,7 @@ function v() {
106
106
  children: S.voteCount
107
107
  }),
108
108
  /* @__PURE__ */ f("p", {
109
- className: "text-xs text-green-600 mt-1",
109
+ className: "text-xs text-status-success-text mt-1",
110
110
  children: [
111
111
  "Rank #",
112
112
  S.voteRank,
@@ -208,14 +208,14 @@ function v() {
208
208
  className: "w-full h-2 rounded-full bg-muted overflow-hidden",
209
209
  children: /* @__PURE__ */ d("div", {
210
210
  className: `h-full rounded-full ${{
211
- SUBMITTED: "bg-gray-400",
212
- UNDER_REVIEW: "bg-yellow-400",
213
- PLANNED: "bg-blue-400",
214
- IN_PROGRESS: "bg-purple-400",
215
- COMPLETED: "bg-green-400",
216
- DECLINED: "bg-red-400",
217
- DUPLICATE: "bg-orange-400"
218
- }[e] ?? "bg-gray-300"}`,
211
+ SUBMITTED: "bg-border-strong",
212
+ UNDER_REVIEW: "bg-status-warning",
213
+ PLANNED: "bg-status-info",
214
+ IN_PROGRESS: "bg-chart-3",
215
+ COMPLETED: "bg-status-success",
216
+ DECLINED: "bg-status-error",
217
+ DUPLICATE: "bg-status-warning"
218
+ }[e] ?? "bg-border-strong"}`,
219
219
  style: { width: `${r}%` }
220
220
  })
221
221
  })] }, e);
@@ -155,15 +155,18 @@ function N() {
155
155
  className: "font-medium",
156
156
  children: "Duplicate of "
157
157
  }),
158
- B.duplicateOf ? /* @__PURE__ */ T("button", {
159
- type: "button",
160
- className: "text-primary underline-offset-2 hover:underline",
161
- onClick: () => P(r("/products/feature-detail-page", B.duplicateOf.id)),
162
- children: B.duplicateOf.title
163
- }) : /* @__PURE__ */ T("span", {
164
- className: "text-muted-foreground",
165
- children: "a request that has since been deleted"
166
- }),
158
+ (() => {
159
+ let e = B.duplicateOf;
160
+ return e ? /* @__PURE__ */ T("button", {
161
+ type: "button",
162
+ className: "text-primary underline-offset-2 hover:underline",
163
+ onClick: () => P(r("/products/feature-detail-page", e.id)),
164
+ children: e.title
165
+ }) : /* @__PURE__ */ T("span", {
166
+ className: "text-muted-foreground",
167
+ children: "a request that has since been deleted"
168
+ });
169
+ })(),
167
170
  " ",
168
171
  "— its votes were moved there."
169
172
  ]
@@ -189,7 +192,7 @@ function N() {
189
192
  /* @__PURE__ */ T(O, { children: /* @__PURE__ */ E(k, {
190
193
  className: "pt-4 text-center",
191
194
  children: [
192
- /* @__PURE__ */ T(b, { className: "h-5 w-5 mx-auto text-green-500" }),
195
+ /* @__PURE__ */ T(b, { className: "h-5 w-5 mx-auto text-status-success-text" }),
193
196
  /* @__PURE__ */ T("p", {
194
197
  className: "text-2xl font-bold mt-1",
195
198
  children: B.voteCount
@@ -203,7 +206,7 @@ function N() {
203
206
  /* @__PURE__ */ T(O, { children: /* @__PURE__ */ E(k, {
204
207
  className: "pt-4 text-center",
205
208
  children: [
206
- /* @__PURE__ */ T(v, { className: "h-5 w-5 mx-auto text-yellow-500" }),
209
+ /* @__PURE__ */ T(v, { className: "h-5 w-5 mx-auto text-status-warning-text" }),
207
210
  /* @__PURE__ */ T("p", {
208
211
  className: "text-2xl font-bold mt-1",
209
212
  children: B.businessValue ?? 0
@@ -217,7 +220,7 @@ function N() {
217
220
  /* @__PURE__ */ T(O, { children: /* @__PURE__ */ E(k, {
218
221
  className: "pt-4 text-center",
219
222
  children: [
220
- /* @__PURE__ */ T(_, { className: "h-5 w-5 mx-auto text-blue-500" }),
223
+ /* @__PURE__ */ T(_, { className: "h-5 w-5 mx-auto text-status-info-text" }),
221
224
  /* @__PURE__ */ T("p", {
222
225
  className: "text-2xl font-bold mt-1",
223
226
  children: H.length
@@ -258,7 +261,7 @@ function N() {
258
261
  children: e.comment
259
262
  })] }), /* @__PURE__ */ E("div", {
260
263
  className: "flex items-center gap-1",
261
- children: [/* @__PURE__ */ T(b, { className: "h-3 w-3 text-green-500" }), /* @__PURE__ */ T("span", {
264
+ children: [/* @__PURE__ */ T(b, { className: "h-3 w-3 text-status-success-text" }), /* @__PURE__ */ T("span", {
262
265
  className: "text-sm font-bold",
263
266
  children: e.weight
264
267
  })]
@@ -55,13 +55,13 @@ var A = S`
55
55
  }
56
56
  }
57
57
  `, j = {
58
- SUBMITTED: "bg-gray-100 text-gray-800",
59
- UNDER_REVIEW: "bg-yellow-100 text-yellow-800",
60
- PLANNED: "bg-blue-100 text-blue-800",
61
- IN_PROGRESS: "bg-purple-100 text-purple-800",
62
- COMPLETED: "bg-green-100 text-green-800",
63
- DECLINED: "bg-red-100 text-red-800",
64
- DUPLICATE: "bg-orange-100 text-orange-800"
58
+ SUBMITTED: "bg-bg-muted text-text-primary",
59
+ UNDER_REVIEW: "bg-status-warning-subtle text-status-warning-text",
60
+ PLANNED: "bg-status-info-subtle text-status-info-text",
61
+ IN_PROGRESS: "bg-bg-muted text-chart-3",
62
+ COMPLETED: "bg-status-success-subtle text-status-success-text",
63
+ DECLINED: "bg-status-error-subtle text-status-error-text",
64
+ DUPLICATE: "bg-status-warning-subtle text-status-warning-text"
65
65
  };
66
66
  function M() {
67
67
  let S = t(), { workspaceId: M } = e(), [N, P] = _("all"), [F] = _(() => Date.now()), [I, L] = _("NEWEST"), [R, z] = _(!1), [B, V] = _(""), [H, U] = _(""), [W, G] = _(""), K = i(), q = {
@@ -290,7 +290,7 @@ function M() {
290
290
  children: e.title
291
291
  }),
292
292
  /* @__PURE__ */ w("span", {
293
- className: `text-[10px] px-1.5 py-0.5 rounded-full capitalize ${j[e.status] ?? "bg-gray-100"}`,
293
+ className: `text-[10px] px-1.5 py-0.5 rounded-full capitalize ${j[e.status] ?? "bg-bg-muted"}`,
294
294
  children: e.status.toLowerCase().replace("_", " ")
295
295
  }),
296
296
  /* @__PURE__ */ w(m, {
@@ -352,7 +352,7 @@ function M() {
352
352
  className: "text-center",
353
353
  children: [/* @__PURE__ */ T("div", {
354
354
  className: "flex items-center gap-1",
355
- children: [/* @__PURE__ */ w(x, { className: "h-3 w-3 text-green-500" }), /* @__PURE__ */ w("span", {
355
+ children: [/* @__PURE__ */ w(x, { className: "h-3 w-3 text-status-success-text" }), /* @__PURE__ */ w("span", {
356
356
  className: "text-sm font-bold",
357
357
  children: e.voteCount
358
358
  })]
@@ -365,7 +365,7 @@ function M() {
365
365
  className: "text-center",
366
366
  children: [/* @__PURE__ */ T("div", {
367
367
  className: "flex items-center gap-1",
368
- children: [/* @__PURE__ */ w(ie, { className: "h-3 w-3 text-yellow-500" }), /* @__PURE__ */ w("span", {
368
+ children: [/* @__PURE__ */ w(ie, { className: "h-3 w-3 text-status-warning-text" }), /* @__PURE__ */ w("span", {
369
369
  className: "text-sm font-bold",
370
370
  children: e.businessValue ?? 0
371
371
  })]
@@ -106,19 +106,19 @@ function E() {
106
106
  label: D("planmagnet.products.metrics.totalProducts", "Total Products"),
107
107
  val: P,
108
108
  icon: d,
109
- color: "text-blue-500"
109
+ color: "text-status-info-text"
110
110
  },
111
111
  {
112
112
  label: D("planmagnet.products.metrics.roadmaps", "Linked roadmaps"),
113
113
  val: N.reduce((e, t) => e + t.roadmaps.length, 0),
114
114
  icon: u,
115
- color: "text-green-500"
115
+ color: "text-status-success-text"
116
116
  },
117
117
  {
118
118
  label: D("planmagnet.products.metrics.releases", "Linked releases"),
119
119
  val: N.reduce((e, t) => e + t.releases.length, 0),
120
120
  icon: c,
121
- color: "text-purple-500"
121
+ color: "text-chart-3"
122
122
  }
123
123
  ].map((e) => /* @__PURE__ */ g(b, { children: /* @__PURE__ */ g(x, {
124
124
  className: "pt-6",
@@ -43,13 +43,13 @@ var w = m`
43
43
  }
44
44
  }
45
45
  `, T = {
46
- DRAFT: "bg-gray-100 text-gray-800",
47
- PLANNING: "bg-yellow-100 text-yellow-800",
48
- IN_PROGRESS: "bg-blue-100 text-blue-800",
49
- READY: "bg-orange-100 text-orange-800",
50
- RELEASED: "bg-green-100 text-green-800",
51
- CANCELLED: "bg-red-100 text-red-800",
52
- ROLLED_BACK: "bg-red-100 text-red-800"
46
+ DRAFT: "bg-bg-muted text-text-primary",
47
+ PLANNING: "bg-status-warning-subtle text-status-warning-text",
48
+ IN_PROGRESS: "bg-status-info-subtle text-status-info-text",
49
+ READY: "bg-status-warning-subtle text-status-warning-text",
50
+ RELEASED: "bg-status-success-subtle text-status-success-text",
51
+ CANCELLED: "bg-status-error-subtle text-status-error-text",
52
+ ROLLED_BACK: "bg-status-error-subtle text-status-error-text"
53
53
  };
54
54
  function E() {
55
55
  let { workspaceId: m } = e(), E = p().id ?? "", { data: D, loading: O, error: k } = h(w, {
@@ -83,7 +83,7 @@ function E() {
83
83
  children: A.version
84
84
  }),
85
85
  /* @__PURE__ */ g("span", {
86
- className: `text-xs px-2 py-0.5 rounded-full capitalize ${T[A.status] ?? "bg-gray-100"}`,
86
+ className: `text-xs px-2 py-0.5 rounded-full capitalize ${T[A.status] ?? "bg-bg-muted"}`,
87
87
  children: A.status.toLowerCase().replace("_", " ")
88
88
  })
89
89
  ]
@@ -198,7 +198,7 @@ function E() {
198
198
  }), A.releasedAt && /* @__PURE__ */ _("div", {
199
199
  className: "flex items-center gap-2",
200
200
  children: [
201
- /* @__PURE__ */ g(u, { className: "h-4 w-4 text-green-500" }),
201
+ /* @__PURE__ */ g(u, { className: "h-4 w-4 text-status-success-text" }),
202
202
  /* @__PURE__ */ g("span", {
203
203
  className: "text-muted-foreground",
204
204
  children: "Released:"
@@ -46,13 +46,13 @@ var y = u`
46
46
  "ROLLED_BACK",
47
47
  "CANCELLED"
48
48
  ], x = {
49
- DRAFT: "bg-gray-100 text-gray-800",
50
- PLANNING: "bg-yellow-100 text-yellow-800",
51
- IN_PROGRESS: "bg-blue-100 text-blue-800",
52
- READY: "bg-orange-100 text-orange-800",
53
- RELEASED: "bg-green-100 text-green-800",
54
- CANCELLED: "bg-red-100 text-red-800",
55
- ROLLED_BACK: "bg-red-100 text-red-800"
49
+ DRAFT: "bg-bg-muted text-text-primary",
50
+ PLANNING: "bg-status-warning-subtle text-status-warning-text",
51
+ IN_PROGRESS: "bg-status-info-subtle text-status-info-text",
52
+ READY: "bg-status-warning-subtle text-status-warning-text",
53
+ RELEASED: "bg-status-success-subtle text-status-success-text",
54
+ CANCELLED: "bg-status-error-subtle text-status-error-text",
55
+ ROLLED_BACK: "bg-status-error-subtle text-status-error-text"
56
56
  };
57
57
  function S() {
58
58
  let { workspaceId: u } = e(), S = t(), [C, w] = o("all"), { data: T, loading: E, error: D } = d(y, {
@@ -108,7 +108,7 @@ function S() {
108
108
  children: e.version
109
109
  })
110
110
  }), /* @__PURE__ */ f("span", {
111
- className: `text-xs px-2 py-0.5 rounded-full capitalize ${x[e.status] ?? "bg-gray-100"}`,
111
+ className: `text-xs px-2 py-0.5 rounded-full capitalize ${x[e.status] ?? "bg-bg-muted"}`,
112
112
  children: e.status.toLowerCase().replace("_", " ")
113
113
  })]
114
114
  }), /* @__PURE__ */ f(v, {
@@ -129,7 +129,7 @@ function S() {
129
129
  children: [
130
130
  /* @__PURE__ */ f(l, { className: "h-3.5 w-3.5" }),
131
131
  "Owner: ",
132
- /* @__PURE__ */ f(n, { id: e.ownerId })
132
+ e.ownerId ? /* @__PURE__ */ f(n, { id: e.ownerId }) : "—"
133
133
  ]
134
134
  }), /* @__PURE__ */ p("div", {
135
135
  className: "flex items-center gap-1 text-muted-foreground",
@@ -256,13 +256,13 @@ function w() {
256
256
  className: "w-full h-2 rounded-full bg-muted overflow-hidden",
257
257
  children: /* @__PURE__ */ h("div", {
258
258
  className: `h-full rounded-full ${{
259
- TODO: "bg-gray-400",
260
- PLANNED: "bg-yellow-400",
261
- IN_PROGRESS: "bg-blue-400",
262
- BLOCKED: "bg-red-400",
263
- DONE: "bg-green-400",
264
- COMPLETED: "bg-green-400"
265
- }[e] ?? "bg-gray-300"}`,
259
+ TODO: "bg-border-strong",
260
+ PLANNED: "bg-status-warning",
261
+ IN_PROGRESS: "bg-status-info",
262
+ BLOCKED: "bg-status-error",
263
+ DONE: "bg-status-success",
264
+ COMPLETED: "bg-status-success"
265
+ }[e] ?? "bg-border-strong"}`,
266
266
  style: { width: `${r}%` }
267
267
  })
268
268
  })] }, e);
@@ -296,13 +296,13 @@ function w() {
296
296
  className: "w-full h-2 rounded-full bg-muted overflow-hidden",
297
297
  children: /* @__PURE__ */ h("div", {
298
298
  className: `h-full rounded-full ${{
299
- SUBMITTED: "bg-gray-400",
300
- UNDER_REVIEW: "bg-yellow-400",
301
- PLANNED: "bg-blue-400",
302
- IN_PROGRESS: "bg-purple-400",
303
- COMPLETED: "bg-green-400",
304
- DECLINED: "bg-red-400"
305
- }[e] ?? "bg-gray-300"}`,
299
+ SUBMITTED: "bg-border-strong",
300
+ UNDER_REVIEW: "bg-status-warning",
301
+ PLANNED: "bg-status-info",
302
+ IN_PROGRESS: "bg-chart-3",
303
+ COMPLETED: "bg-status-success",
304
+ DECLINED: "bg-status-error"
305
+ }[e] ?? "bg-border-strong"}`,
306
306
  style: { width: `${r}%` }
307
307
  })
308
308
  })] }, e);
@@ -346,7 +346,7 @@ function w() {
346
346
  className: "text-xs text-muted-foreground",
347
347
  children: ["Due: ", e.endDate ? new Date(e.endDate).toLocaleDateString() : "N/A"]
348
348
  })] }), /* @__PURE__ */ h("span", {
349
- className: "text-xs px-2 py-0.5 rounded-full bg-red-100 text-red-800 capitalize",
349
+ className: "text-xs px-2 py-0.5 rounded-full bg-status-error-subtle text-status-error-text capitalize",
350
350
  children: e.status.toLowerCase().replace("_", " ")
351
351
  })]
352
352
  }, e.id))
@@ -63,12 +63,12 @@ var M = ["GetRoadmapDetailPage"], N = S`
63
63
  }
64
64
  }
65
65
  `, P = (e) => e === "timeline" || e === "nnl", F = {
66
- TODO: "bg-gray-100 text-gray-800",
67
- IN_PROGRESS: "bg-blue-100 text-blue-800",
68
- DONE: "bg-green-100 text-green-800",
69
- COMPLETED: "bg-green-100 text-green-800",
70
- BLOCKED: "bg-red-100 text-red-800",
71
- PLANNED: "bg-yellow-100 text-yellow-800"
66
+ TODO: "bg-bg-muted text-text-primary",
67
+ IN_PROGRESS: "bg-status-info-subtle text-status-info-text",
68
+ DONE: "bg-status-success-subtle text-status-success-text",
69
+ COMPLETED: "bg-status-success-subtle text-status-success-text",
70
+ BLOCKED: "bg-status-error-subtle text-status-error-text",
71
+ PLANNED: "bg-status-warning-subtle text-status-warning-text"
72
72
  };
73
73
  function I() {
74
74
  let { workspaceId: S } = e(), I = x().id ?? "", L = t(), R = c("ROADMAP", I || null), [z, B] = y(!1), V = a({
@@ -313,7 +313,7 @@ function I() {
313
313
  style: { backgroundColor: e.color }
314
314
  }),
315
315
  /* @__PURE__ */ w("span", {
316
- className: `text-xs px-2 py-0.5 rounded-full capitalize ${F[e.status] ?? "bg-gray-100"}`,
316
+ className: `text-xs px-2 py-0.5 rounded-full capitalize ${F[e.status] ?? "bg-bg-muted"}`,
317
317
  children: e.status.toLowerCase().replace("_", " ")
318
318
  }),
319
319
  /* @__PURE__ */ w(d, {
@@ -38,7 +38,7 @@ function g() {
38
38
  children: /* @__PURE__ */ c("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
39
39
  });
40
40
  if (y) return /* @__PURE__ */ l("div", {
41
- className: "p-6 text-red-500",
41
+ className: "p-6 text-status-error-text",
42
42
  children: ["Error loading active projects: ", y.message]
43
43
  });
44
44
  let b = _?.planmagnetProjects?.items ?? [];
@@ -138,7 +138,7 @@ function D() {
138
138
  children: /* @__PURE__ */ h("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
139
139
  });
140
140
  if (F) return /* @__PURE__ */ g("div", {
141
- className: "p-6 text-red-500",
141
+ className: "p-6 text-status-error-text",
142
142
  children: ["Error computing critical path: ", F.message]
143
143
  });
144
144
  let X = N?.planmagnetCriticalPath.slack ?? {}, te = N?.planmagnetCriticalPath.totalDurationMinutes ?? 0, Z = N?.planmagnetDependencyCycles ?? [], Q = I?.planmagnetProject?.name, $ = [...U?.planmagnetWorkItems.items ?? []].sort((e, t) => (X[e.id] ?? 0) - (X[t.id] ?? 0));
@@ -53,7 +53,7 @@ function W() {
53
53
  children: /* @__PURE__ */ E(y, { className: "h-8 w-8 animate-spin text-muted-foreground" })
54
54
  });
55
55
  if (s) return /* @__PURE__ */ D("div", {
56
- className: "p-6 text-red-500",
56
+ className: "p-6 text-status-error-text",
57
57
  children: ["Error: ", s.message]
58
58
  });
59
59
  let l = [...a?.planmagnetCustomFieldDefinitions.items ?? []].sort((e, t) => e.sortOrder - t.sortOrder || e.name.localeCompare(t.name));
@@ -76,7 +76,7 @@ function _() {
76
76
  children: /* @__PURE__ */ d("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
77
77
  });
78
78
  if (O) return /* @__PURE__ */ f("div", {
79
- className: "p-6 text-red-500",
79
+ className: "p-6 text-status-error-text",
80
80
  "data-testid": "gantt-page",
81
81
  children: ["Error loading the project's work items: ", O.message]
82
82
  });
@@ -51,7 +51,7 @@ function x() {
51
51
  children: /* @__PURE__ */ p("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
52
52
  });
53
53
  if (w) return /* @__PURE__ */ m("div", {
54
- className: "p-6 text-red-500",
54
+ className: "p-6 text-status-error-text",
55
55
  children: ["Error loading milestone: ", w.message]
56
56
  });
57
57
  let T = S?.planmagnetMilestone;
@@ -159,15 +159,18 @@ function x() {
159
159
  className: "text-muted-foreground",
160
160
  children: "Project:"
161
161
  }),
162
- T.project ? /* @__PURE__ */ p("button", {
163
- type: "button",
164
- className: "font-medium text-primary hover:underline",
165
- onClick: () => x(n("/projects/project-detail-page", T.project.id)),
166
- children: T.project.name
167
- }) : /* @__PURE__ */ p("span", {
168
- className: "text-muted-foreground",
169
- children: "not available"
170
- })
162
+ (() => {
163
+ let e = T.project;
164
+ return e ? /* @__PURE__ */ p("button", {
165
+ type: "button",
166
+ className: "font-medium text-primary hover:underline",
167
+ onClick: () => x(n("/projects/project-detail-page", e.id)),
168
+ children: e.name
169
+ }) : /* @__PURE__ */ p("span", {
170
+ className: "text-muted-foreground",
171
+ children: "not available"
172
+ });
173
+ })()
171
174
  ]
172
175
  }),
173
176
  T.ownerId && /* @__PURE__ */ m("div", {
@@ -40,11 +40,11 @@ var S = p`
40
40
  }
41
41
  }
42
42
  `, C = {
43
- PENDING: "bg-gray-100 text-gray-800",
44
- IN_PROGRESS: "bg-blue-100 text-blue-800",
45
- COMPLETED: "bg-green-100 text-green-800",
46
- MISSED: "bg-red-100 text-red-800",
47
- CANCELLED: "bg-red-100 text-red-800"
43
+ PENDING: "bg-bg-muted text-text-primary",
44
+ IN_PROGRESS: "bg-status-info-subtle text-status-info-text",
45
+ COMPLETED: "bg-status-success-subtle text-status-success-text",
46
+ MISSED: "bg-status-error-subtle text-status-error-text",
47
+ CANCELLED: "bg-status-error-subtle text-status-error-text"
48
48
  }, w = [
49
49
  "all",
50
50
  "PENDING",
@@ -101,7 +101,7 @@ function T() {
101
101
  className: "text-base flex items-center gap-2",
102
102
  children: [/* @__PURE__ */ h(d, { className: "h-4 w-4 text-primary" }), e.name]
103
103
  }), /* @__PURE__ */ h("span", {
104
- className: `text-xs px-2 py-0.5 rounded-full capitalize ${C[e.status] ?? "bg-gray-100"}`,
104
+ className: `text-xs px-2 py-0.5 rounded-full capitalize ${C[e.status] ?? "bg-bg-muted"}`,
105
105
  children: e.status.toLowerCase().replace("_", " ")
106
106
  })]
107
107
  })
@@ -113,7 +113,7 @@ function N() {
113
113
  children: /* @__PURE__ */ S("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
114
114
  });
115
115
  if (R) return /* @__PURE__ */ C("div", {
116
- className: "p-6 text-red-500",
116
+ className: "p-6 text-status-error-text",
117
117
  children: ["Error loading planning session: ", R.message]
118
118
  });
119
119
  let W = I?.planmagnetSprint;
@@ -167,7 +167,7 @@ function N() {
167
167
  "data-testid": "sprint-edit",
168
168
  children: [/* @__PURE__ */ S(v, { className: "mr-1 h-4 w-4" }), " Edit"]
169
169
  }),
170
- !W.team && /* @__PURE__ */ S(h, {
170
+ !W.team && W.projectId && /* @__PURE__ */ S(h, {
171
171
  projectId: W.projectId,
172
172
  sprintId: W.id,
173
173
  startDate: W.startDate,
@@ -301,7 +301,7 @@ function N() {
301
301
  "data-testid": "sprint-capacity-crewfoundry-unavailable",
302
302
  children: F("planmagnet.sprints.capacity.crewfoundryUnavailable", "CrewFoundry is temporarily unavailable, so workforce allocation and skills can’t be shown right now. Try again shortly.")
303
303
  }),
304
- !G?.crewfoundryUnavailable && (G?.unmatchedCount ?? 0) > 0 && /* @__PURE__ */ C("p", {
304
+ G && !G.crewfoundryUnavailable && G.unmatchedCount > 0 && /* @__PURE__ */ C("p", {
305
305
  className: "text-xs text-muted-foreground mt-3 border-t pt-3",
306
306
  "data-testid": "sprint-capacity-unmatched",
307
307
  children: [
@@ -40,11 +40,11 @@ var b = u`
40
40
  }
41
41
  }
42
42
  `, x = {
43
- PLANNING: "bg-blue-100 text-blue-800",
44
- ACTIVE: "bg-green-100 text-green-800",
45
- REVIEW: "bg-purple-100 text-purple-800",
46
- COMPLETED: "bg-gray-100 text-gray-800",
47
- CANCELLED: "bg-red-100 text-red-800"
43
+ PLANNING: "bg-status-info-subtle text-status-info-text",
44
+ ACTIVE: "bg-status-success-subtle text-status-success-text",
45
+ REVIEW: "bg-bg-muted text-chart-3",
46
+ COMPLETED: "bg-bg-muted text-text-primary",
47
+ CANCELLED: "bg-status-error-subtle text-status-error-text"
48
48
  };
49
49
  function S() {
50
50
  let { workspaceId: u } = e(), S = t(), [C, w] = o(""), { data: T, loading: E, error: D } = d(b, { variables: {
@@ -56,7 +56,7 @@ function S() {
56
56
  children: /* @__PURE__ */ p("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
57
57
  });
58
58
  if (D) return /* @__PURE__ */ m("div", {
59
- className: "p-6 text-red-500",
59
+ className: "p-6 text-status-error-text",
60
60
  children: ["Error loading planning sessions: ", D.message]
61
61
  });
62
62
  let O = T?.planmagnetSprints?.items ?? [];
@@ -105,7 +105,7 @@ function S() {
105
105
  /* @__PURE__ */ m("div", {
106
106
  className: "flex gap-2",
107
107
  children: [/* @__PURE__ */ p("span", {
108
- className: `text-xs px-2 py-0.5 rounded-full capitalize ${x[e.status] ?? "bg-gray-100"}`,
108
+ className: `text-xs px-2 py-0.5 rounded-full capitalize ${x[e.status] ?? "bg-bg-muted"}`,
109
109
  children: e.status.toLowerCase().replace("_", " ")
110
110
  }), /* @__PURE__ */ p("span", {
111
111
  className: "text-xs text-muted-foreground flex items-center gap-1",
@@ -152,7 +152,7 @@ function S() {
152
152
  }), /* @__PURE__ */ p("div", {
153
153
  className: "w-full h-2 rounded-full bg-muted overflow-hidden",
154
154
  children: /* @__PURE__ */ p("div", {
155
- className: `h-full rounded-full ${a > 90 ? "bg-red-400" : "bg-primary"}`,
155
+ className: `h-full rounded-full ${a > 90 ? "bg-status-error" : "bg-primary"}`,
156
156
  style: { width: `${Math.min(a, 100)}%` }
157
157
  })
158
158
  })] })