@burdenoff/microfe-planmagnet 2026.1014.2 → 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 (47) hide show
  1. package/dist/generated/global-types.d.ts +1164 -14
  2. package/dist/generated/wspace-types.d.ts +1333 -9
  3. package/dist/planmagnet/PlanMagnetRoot.js +111 -117
  4. package/dist/planmagnet/automation/AutomationExecutionsPanel.d.ts +2 -0
  5. package/dist/planmagnet/automation/AutomationExecutionsPanel.js +26 -14
  6. package/dist/planmagnet/automation/AutomationRuleFields.d.ts +3 -2
  7. package/dist/planmagnet/automation/AutomationRuleFields.js +120 -117
  8. package/dist/planmagnet/automation/WorkflowSelect.d.ts +5 -0
  9. package/dist/planmagnet/automation/WorkflowSelect.js +74 -0
  10. package/dist/planmagnet/automation/automationRuleTypes.d.ts +16 -10
  11. package/dist/planmagnet/automation/automationRuleTypes.js +38 -32
  12. package/dist/planmagnet/controls/AutomationRuleControls.d.ts +3 -1
  13. package/dist/planmagnet/controls/AutomationRuleControls.js +23 -23
  14. package/dist/planmagnet/controls/FeatureTriage.d.ts +2 -2
  15. package/dist/planmagnet/dependency/DependencyPanel.js +1 -1
  16. package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +17 -17
  17. package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js +80 -79
  18. package/dist/planmagnet/pages/DashboardDashboardPagePage.js +6 -6
  19. package/dist/planmagnet/pages/GoalsCreateObjectivePagePage.js +1 -1
  20. package/dist/planmagnet/pages/GoalsGoalsPagePage.js +6 -6
  21. package/dist/planmagnet/pages/GoalsObjectiveDetailPagePage.js +5 -5
  22. package/dist/planmagnet/pages/ProductsFeatureAnalyticsPagePage.js +9 -9
  23. package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.js +16 -13
  24. package/dist/planmagnet/pages/ProductsFeaturesPagePage.js +10 -10
  25. package/dist/planmagnet/pages/ProductsProductsPagePage.js +3 -3
  26. package/dist/planmagnet/pages/ProductsReleaseDetailPagePage.js +9 -9
  27. package/dist/planmagnet/pages/ProductsReleasesPagePage.js +9 -9
  28. package/dist/planmagnet/pages/ProductsRoadmapAnalyticsPagePage.js +15 -15
  29. package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +7 -7
  30. package/dist/planmagnet/pages/ProjectsActiveProjectsPagePage.js +1 -1
  31. package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.js +1 -1
  32. package/dist/planmagnet/pages/ProjectsCustomFieldsPagePage.js +1 -1
  33. package/dist/planmagnet/pages/ProjectsGanttPagePage.js +1 -1
  34. package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js +13 -10
  35. package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js +6 -6
  36. package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js +3 -3
  37. package/dist/planmagnet/pages/ProjectsPlanningPagePage.js +8 -8
  38. package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +26 -23
  39. package/dist/planmagnet/pages/ProjectsProjectsPagePage.js +8 -8
  40. package/dist/planmagnet/pages/RisksRiskDetailPagePage.js +7 -7
  41. package/dist/planmagnet/pages/RisksRiskRegisterPagePage.js +13 -13
  42. package/dist/planmagnet/pages/SprintsStartSprintPagePage.js +1 -1
  43. package/dist/planmagnet/pages/TasksTaskDetailPagePage.js +5 -5
  44. package/dist/planmagnet/pages/TasksTasksPagePage.js +16 -16
  45. package/dist/planmagnet/pages/TeamTeamDetailPagePage.js +6 -6
  46. package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js +5 -5
  47. package/package.json +1 -1
@@ -3,18 +3,18 @@ import { isForbidden as t, mutationErrorMessage as n } from "../utils/graphqlErr
3
3
  import { throwOnError as r } from "../utils/mutationResult.js";
4
4
  import { ErrorLine as i } from "../controls/ConfirmButton.js";
5
5
  import { useEntityId as a } from "../hooks/useEntityId.js";
6
- import { actionsFromApi as o, actionsToApi as s, conditionsFromApi as c, conditionsToApi as l, saveBlockReason as u, scheduleConditionsFromApi as d, scheduleConditionsToApi as f } from "../automation/automationRuleTypes.js";
7
- import { AUTOMATION_RULE_QUERIES as p, AutomationRuleDeleteButton as m, AutomationRuleStatusSwitch as h, RunAutomationRuleDialog as g } from "../controls/AutomationRuleControls.js";
8
- import { AutomationExecutionsPanel as _ } from "../automation/AutomationExecutionsPanel.js";
9
- import { AutomationRuleFields as v } from "../automation/AutomationRuleFields.js";
10
- import { useState as y } from "react";
11
- import { Bot as b, History as x, Save as S } from "lucide-react";
12
- import { gql as C } from "@apollo/client";
13
- import { useMutation as w, useQuery as T } from "@apollo/client/react";
14
- import { jsx as E, jsxs as D } from "react/jsx-runtime";
15
- import { Button as O, Card as k, CardContent as A, CardHeader as j, CardTitle as M } from "@burdenoff/fe-libs/ui";
6
+ import { actionsFromApi as o, actionsNeedNoWorkItem as s, actionsToApi as c, conditionsFromApi as l, conditionsToApi as u, saveBlockReason as d, scheduleConditionsFromApi as f, scheduleConditionsToApi as p } from "../automation/automationRuleTypes.js";
7
+ import { AUTOMATION_RULE_QUERIES as m, AutomationRuleDeleteButton as h, AutomationRuleStatusSwitch as g, RunAutomationRuleDialog as _ } from "../controls/AutomationRuleControls.js";
8
+ import { AutomationExecutionsPanel as v } from "../automation/AutomationExecutionsPanel.js";
9
+ import { AutomationRuleFields as y } from "../automation/AutomationRuleFields.js";
10
+ import { useState as b } from "react";
11
+ import { Bot as x, History as S, Save as C } from "lucide-react";
12
+ import { gql as w } from "@apollo/client";
13
+ import { useMutation as T, useQuery as E } from "@apollo/client/react";
14
+ import { jsx as D, jsxs as O } from "react/jsx-runtime";
15
+ import { Button as k, Card as A, CardContent as j, CardHeader as M, CardTitle as N } from "@burdenoff/fe-libs/ui";
16
16
  //#region src/planmagnet/pages/AutomationAutomationRuleDetailPagePage.tsx
17
- var N = C`
17
+ var P = w`
18
18
  query GetAutomationRule($id: ID!) {
19
19
  planmagnetAutomationRule(id: $id) {
20
20
  id
@@ -33,7 +33,7 @@ var N = C`
33
33
  }
34
34
  }
35
35
  }
36
- `, P = C`
36
+ `, F = w`
37
37
  mutation UpdateAutomationRule($id: ID!, $input: PlanmagnetUpdateAutomationRuleInput!) {
38
38
  planmagnetUpdateAutomationRule(id: $id, input: $input) {
39
39
  id
@@ -45,134 +45,135 @@ var N = C`
45
45
  }
46
46
  }
47
47
  `;
48
- function F(e) {
49
- let t = d(e.conditions);
48
+ function I(e) {
49
+ let t = f(e.conditions);
50
50
  return {
51
51
  name: e.name,
52
52
  description: e.description ?? "",
53
53
  projectId: e.projectId ?? "",
54
54
  triggerType: e.triggerType,
55
- conditions: c(e.conditions),
55
+ conditions: l(e.conditions),
56
56
  scheduleStatuses: t.statuses,
57
57
  scheduleNotUpdatedForDays: t.days,
58
58
  actions: o(e.actions)
59
59
  };
60
60
  }
61
- function I(e) {
62
- return e.triggerType === "SCHEDULE" ? f(e.scheduleStatuses, e.scheduleNotUpdatedForDays) ?? null : l(e.conditions) ?? null;
61
+ function L(e) {
62
+ return e.triggerType === "SCHEDULE" ? p(e.scheduleStatuses, e.scheduleNotUpdatedForDays) ?? null : u(e.conditions) ?? null;
63
63
  }
64
- function L() {
65
- let o = a(), { workspaceId: c } = e(), { data: l, loading: d, error: f } = T(N, {
66
- variables: { id: o ?? "" },
67
- skip: !o,
64
+ function R() {
65
+ let l = a(), { workspaceId: u } = e(), { data: f, loading: p, error: w } = E(P, {
66
+ variables: { id: l ?? "" },
67
+ skip: !l,
68
68
  fetchPolicy: "cache-and-network"
69
- }), [C, { loading: L }] = w(P, { refetchQueries: p }), [R, z] = y(null), [B, V] = y(!1), H = l?.planmagnetAutomationRule ?? null, [U, W] = y(null), [G, K] = y(null);
70
- if (H && G !== H.id && (K(H.id), W(F(H))), !o) return /* @__PURE__ */ E("div", {
69
+ }), [R, { loading: z }] = T(F, { refetchQueries: m }), [B, V] = b(null), [H, U] = b(!1), W = f?.planmagnetAutomationRule ?? null, [G, K] = b(null), [q, J] = b(null);
70
+ if (W && q !== W.id && (J(W.id), K(I(W))), !l) return /* @__PURE__ */ D("div", {
71
71
  className: "p-6 text-muted-foreground",
72
72
  children: "No rule selected. Open one from the list."
73
73
  });
74
- if (d && !l) return /* @__PURE__ */ E("div", {
74
+ if (p && !f) return /* @__PURE__ */ D("div", {
75
75
  className: "flex items-center justify-center p-12",
76
- children: /* @__PURE__ */ E("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
76
+ children: /* @__PURE__ */ D("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
77
77
  });
78
- if (f) return /* @__PURE__ */ D("div", {
78
+ if (w) return /* @__PURE__ */ O("div", {
79
79
  className: "p-6 text-destructive",
80
- children: ["Automation rule could not be loaded: ", f.message]
80
+ children: ["Automation rule could not be loaded: ", w.message]
81
81
  });
82
- if (!H || !U) return /* @__PURE__ */ E("div", {
82
+ if (!W || !G) return /* @__PURE__ */ D("div", {
83
83
  className: "p-6 text-muted-foreground",
84
84
  children: "Automation rule not found."
85
85
  });
86
- let q = u(U), J = async () => {
87
- if (q) return;
88
- z(null), V(!1);
89
- let e = F(H), i = {};
90
- U.name.trim() !== e.name && (i.name = U.name.trim()), U.description.trim() !== e.description.trim() && (i.description = U.description.trim() || null), U.triggerType !== e.triggerType && (i.triggerType = U.triggerType);
91
- let a = I(U);
92
- JSON.stringify(a) !== JSON.stringify(I(e)) && (i.conditions = a);
93
- let o = s(U.actions);
94
- if (JSON.stringify(o) !== JSON.stringify(s(e.actions)) && (i.actions = o), Object.keys(i).length === 0) {
95
- V(!0);
86
+ let Y = d(G), X = async () => {
87
+ if (Y) return;
88
+ V(null), U(!1);
89
+ let e = I(W), i = {};
90
+ G.name.trim() !== e.name && (i.name = G.name.trim()), G.description.trim() !== e.description.trim() && (i.description = G.description.trim() || null), G.triggerType !== e.triggerType && (i.triggerType = G.triggerType);
91
+ let a = L(G);
92
+ JSON.stringify(a) !== JSON.stringify(L(e)) && (i.conditions = a);
93
+ let o = c(G.actions);
94
+ if (JSON.stringify(o) !== JSON.stringify(c(e.actions)) && (i.actions = o), Object.keys(i).length === 0) {
95
+ U(!0);
96
96
  return;
97
97
  }
98
98
  try {
99
- await r(C({ variables: {
100
- id: H.id,
99
+ await r(R({ variables: {
100
+ id: W.id,
101
101
  input: i
102
- } })), V(!0);
102
+ } })), U(!0);
103
103
  } catch (e) {
104
- z(t(e) ? "Your role can view automation rules but not change them." : n(e, "The rule could not be saved."));
104
+ V(t(e) ? "Your role can view automation rules but not change them." : n(e, "The rule could not be saved."));
105
105
  }
106
106
  };
107
- return /* @__PURE__ */ D("div", {
107
+ return /* @__PURE__ */ O("div", {
108
108
  className: "space-y-6 p-6 max-w-3xl",
109
109
  children: [
110
- /* @__PURE__ */ D("div", {
110
+ /* @__PURE__ */ O("div", {
111
111
  className: "flex flex-wrap items-start justify-between gap-3",
112
- children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h1", {
112
+ children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h1", {
113
113
  className: "text-2xl font-semibold",
114
- children: H.name
115
- }), /* @__PURE__ */ E("p", {
114
+ children: W.name
115
+ }), /* @__PURE__ */ D("p", {
116
116
  className: "text-sm text-muted-foreground",
117
- children: H.project?.name ?? "Unknown project"
118
- })] }), /* @__PURE__ */ E("div", {
117
+ children: W.project?.name ?? "Unknown project"
118
+ })] }), /* @__PURE__ */ D("div", {
119
119
  className: "flex flex-col items-end gap-2",
120
- children: /* @__PURE__ */ D("div", {
120
+ children: /* @__PURE__ */ O("div", {
121
121
  className: "flex items-center gap-2",
122
122
  children: [
123
- /* @__PURE__ */ E(g, {
124
- ruleId: H.id,
125
- projectId: H.projectId ?? void 0
123
+ /* @__PURE__ */ D(_, {
124
+ ruleId: W.id,
125
+ projectId: W.projectId ?? void 0,
126
+ needsWorkItem: !s(o(W.actions))
126
127
  }),
127
- /* @__PURE__ */ E(h, {
128
- ruleId: H.id,
129
- status: H.status
128
+ /* @__PURE__ */ D(g, {
129
+ ruleId: W.id,
130
+ status: W.status
130
131
  }),
131
- /* @__PURE__ */ E(m, {
132
- ruleId: H.id,
133
- name: H.name
132
+ /* @__PURE__ */ D(h, {
133
+ ruleId: W.id,
134
+ name: W.name
134
135
  })
135
136
  ]
136
137
  })
137
138
  })]
138
139
  }),
139
- R && /* @__PURE__ */ E(i, { message: R }),
140
- B && !R && /* @__PURE__ */ E("p", {
140
+ B && /* @__PURE__ */ D(i, { message: B }),
141
+ H && !B && /* @__PURE__ */ D("p", {
141
142
  className: "text-sm text-muted-foreground",
142
143
  children: "Saved."
143
144
  }),
144
- /* @__PURE__ */ D(k, { children: [/* @__PURE__ */ E(j, { children: /* @__PURE__ */ D(M, {
145
+ /* @__PURE__ */ O(A, { children: [/* @__PURE__ */ D(M, { children: /* @__PURE__ */ O(N, {
145
146
  className: "flex items-center gap-2",
146
- children: [/* @__PURE__ */ E(b, { className: "h-4 w-4" }), "Rule details"]
147
- }) }), /* @__PURE__ */ D(A, {
147
+ children: [/* @__PURE__ */ D(x, { className: "h-4 w-4" }), "Rule details"]
148
+ }) }), /* @__PURE__ */ O(j, {
148
149
  className: "space-y-4",
149
- children: [/* @__PURE__ */ E(v, {
150
- form: U,
150
+ children: [/* @__PURE__ */ D(y, {
151
+ form: G,
151
152
  onChange: (e) => {
152
- W(e), V(!1);
153
+ K(e), U(!1);
153
154
  },
154
155
  projectLocked: !0
155
- }), /* @__PURE__ */ E("div", {
156
+ }), /* @__PURE__ */ D("div", {
156
157
  className: "flex justify-end",
157
- children: /* @__PURE__ */ D(O, {
158
+ children: /* @__PURE__ */ O(k, {
158
159
  size: "sm",
159
- onClick: () => void J(),
160
- disabled: L || !!q,
161
- title: q ?? void 0,
160
+ onClick: () => void X(),
161
+ disabled: z || !!Y,
162
+ title: Y ?? void 0,
162
163
  "data-testid": "automation-save",
163
- children: [/* @__PURE__ */ E(S, { className: "mr-1 h-4 w-4" }), L ? "Saving…" : "Save changes"]
164
+ children: [/* @__PURE__ */ D(C, { className: "mr-1 h-4 w-4" }), z ? "Saving…" : "Save changes"]
164
165
  })
165
166
  })]
166
167
  })] }),
167
- /* @__PURE__ */ D(k, { children: [/* @__PURE__ */ E(j, { children: /* @__PURE__ */ D(M, {
168
+ /* @__PURE__ */ O(A, { children: [/* @__PURE__ */ D(M, { children: /* @__PURE__ */ O(N, {
168
169
  className: "flex items-center gap-2",
169
- children: [/* @__PURE__ */ E(x, { className: "h-4 w-4" }), "Recent executions"]
170
- }) }), /* @__PURE__ */ E(A, { children: /* @__PURE__ */ E(_, {
171
- workspaceId: c,
172
- ruleId: H.id
170
+ children: [/* @__PURE__ */ D(S, { className: "h-4 w-4" }), "Recent executions"]
171
+ }) }), /* @__PURE__ */ D(j, { children: /* @__PURE__ */ D(v, {
172
+ workspaceId: u,
173
+ ruleId: W.id
173
174
  }) })] })
174
175
  ]
175
176
  });
176
177
  }
177
178
  //#endregion
178
- export { L as AutomationAutomationRuleDetailPagePage };
179
+ export { R as AutomationAutomationRuleDetailPagePage };
@@ -134,7 +134,7 @@ function I() {
134
134
  children: /* @__PURE__ */ E("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
135
135
  });
136
136
  if (z) return /* @__PURE__ */ D("div", {
137
- className: "p-6 text-red-500",
137
+ className: "p-6 text-status-error-text",
138
138
  children: [
139
139
  I("planmagnet.dashboard.errorLoading", "Error loading dashboard"),
140
140
  ": ",
@@ -205,7 +205,7 @@ function I() {
205
205
  className: "lg:col-span-8",
206
206
  children: [/* @__PURE__ */ E(j, { children: /* @__PURE__ */ D(M, {
207
207
  className: "flex items-center gap-2 text-base",
208
- children: [/* @__PURE__ */ E(S, { className: "h-5 w-5 text-blue-500" }), I("planmagnet.dashboard.activeSprints.title", "Active Sprints")]
208
+ children: [/* @__PURE__ */ E(S, { className: "h-5 w-5 text-status-info-text" }), I("planmagnet.dashboard.activeSprints.title", "Active Sprints")]
209
209
  }) }), /* @__PURE__ */ D(A, {
210
210
  className: "space-y-4",
211
211
  children: [K.map((e) => {
@@ -275,7 +275,7 @@ function I() {
275
275
  className: "lg:col-span-4 space-y-6",
276
276
  children: [G.length > 0 && /* @__PURE__ */ D(k, { children: [/* @__PURE__ */ E(j, { children: /* @__PURE__ */ D(M, {
277
277
  className: "flex items-center gap-2 text-base",
278
- children: [/* @__PURE__ */ E(m, { className: "h-5 w-5 text-orange-500" }), I("planmagnet.dashboard.onHoldProjects.title", "On-Hold Projects")]
278
+ children: [/* @__PURE__ */ E(m, { className: "h-5 w-5 text-status-warning-text" }), I("planmagnet.dashboard.onHoldProjects.title", "On-Hold Projects")]
279
279
  }) }), /* @__PURE__ */ E(A, {
280
280
  className: "space-y-3",
281
281
  children: G.map((e) => /* @__PURE__ */ D("div", {
@@ -290,7 +290,7 @@ function I() {
290
290
  }, e.id))
291
291
  })] }), /* @__PURE__ */ D(k, { children: [/* @__PURE__ */ E(j, { children: /* @__PURE__ */ D(M, {
292
292
  className: "flex items-center gap-2 text-base",
293
- children: [/* @__PURE__ */ E(g, { className: "h-5 w-5 text-green-500" }), I("planmagnet.dashboard.upcomingMilestones.title", "Upcoming Milestones")]
293
+ children: [/* @__PURE__ */ E(g, { className: "h-5 w-5 text-status-success-text" }), I("planmagnet.dashboard.upcomingMilestones.title", "Upcoming Milestones")]
294
294
  }) }), /* @__PURE__ */ D(A, {
295
295
  className: "space-y-3",
296
296
  children: [q.map((e) => /* @__PURE__ */ D("div", {
@@ -337,7 +337,7 @@ function I() {
337
337
  className: "grid gap-6 lg:grid-cols-2",
338
338
  children: [/* @__PURE__ */ D(k, { children: [/* @__PURE__ */ E(j, { children: /* @__PURE__ */ D(M, {
339
339
  className: "flex items-center gap-2 text-base",
340
- children: [/* @__PURE__ */ E(_, { className: "h-5 w-5 text-purple-500" }), I("planmagnet.dashboard.recentWorkItems.title", "Recent Work Items")]
340
+ children: [/* @__PURE__ */ E(_, { className: "h-5 w-5 text-chart-3" }), I("planmagnet.dashboard.recentWorkItems.title", "Recent Work Items")]
341
341
  }) }), /* @__PURE__ */ D(A, {
342
342
  className: "space-y-3",
343
343
  children: [J.map((e) => /* @__PURE__ */ D("div", {
@@ -381,7 +381,7 @@ function I() {
381
381
  })]
382
382
  })] }), /* @__PURE__ */ D(k, { children: [/* @__PURE__ */ E(j, { children: /* @__PURE__ */ D(M, {
383
383
  className: "flex items-center gap-2 text-base",
384
- children: [/* @__PURE__ */ E(v, { className: "h-5 w-5 text-cyan-500" }), I("planmagnet.dashboard.projectStatus.title", "Project Status")]
384
+ children: [/* @__PURE__ */ E(v, { className: "h-5 w-5 text-chart-1" }), I("planmagnet.dashboard.projectStatus.title", "Project Status")]
385
385
  }) }), /* @__PURE__ */ D(A, {
386
386
  className: "space-y-3",
387
387
  children: [W.map((e) => /* @__PURE__ */ D("div", {
@@ -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",