@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.
- package/dist/generated/global-types.d.ts +1164 -14
- package/dist/generated/wspace-types.d.ts +1333 -9
- package/dist/planmagnet/PlanMagnetRoot.js +111 -117
- package/dist/planmagnet/automation/AutomationExecutionsPanel.d.ts +2 -0
- package/dist/planmagnet/automation/AutomationExecutionsPanel.js +26 -14
- package/dist/planmagnet/automation/AutomationRuleFields.d.ts +3 -2
- package/dist/planmagnet/automation/AutomationRuleFields.js +120 -117
- package/dist/planmagnet/automation/WorkflowSelect.d.ts +5 -0
- package/dist/planmagnet/automation/WorkflowSelect.js +74 -0
- package/dist/planmagnet/automation/automationRuleTypes.d.ts +16 -10
- package/dist/planmagnet/automation/automationRuleTypes.js +38 -32
- package/dist/planmagnet/controls/AutomationRuleControls.d.ts +3 -1
- package/dist/planmagnet/controls/AutomationRuleControls.js +23 -23
- package/dist/planmagnet/controls/FeatureTriage.d.ts +2 -2
- package/dist/planmagnet/dependency/DependencyPanel.js +1 -1
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +17 -17
- package/dist/planmagnet/pages/AutomationAutomationRuleDetailPagePage.js +80 -79
- package/dist/planmagnet/pages/DashboardDashboardPagePage.js +6 -6
- package/dist/planmagnet/pages/GoalsCreateObjectivePagePage.js +1 -1
- package/dist/planmagnet/pages/GoalsGoalsPagePage.js +6 -6
- package/dist/planmagnet/pages/GoalsObjectiveDetailPagePage.js +5 -5
- package/dist/planmagnet/pages/ProductsFeatureAnalyticsPagePage.js +9 -9
- package/dist/planmagnet/pages/ProductsFeatureDetailPagePage.js +16 -13
- package/dist/planmagnet/pages/ProductsFeaturesPagePage.js +10 -10
- package/dist/planmagnet/pages/ProductsProductsPagePage.js +3 -3
- package/dist/planmagnet/pages/ProductsReleaseDetailPagePage.js +9 -9
- package/dist/planmagnet/pages/ProductsReleasesPagePage.js +9 -9
- package/dist/planmagnet/pages/ProductsRoadmapAnalyticsPagePage.js +15 -15
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +7 -7
- package/dist/planmagnet/pages/ProjectsActiveProjectsPagePage.js +1 -1
- package/dist/planmagnet/pages/ProjectsCriticalPathPagePage.js +1 -1
- package/dist/planmagnet/pages/ProjectsCustomFieldsPagePage.js +1 -1
- package/dist/planmagnet/pages/ProjectsGanttPagePage.js +1 -1
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js +13 -10
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js +6 -6
- package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js +3 -3
- package/dist/planmagnet/pages/ProjectsPlanningPagePage.js +8 -8
- package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +26 -23
- package/dist/planmagnet/pages/ProjectsProjectsPagePage.js +8 -8
- package/dist/planmagnet/pages/RisksRiskDetailPagePage.js +7 -7
- package/dist/planmagnet/pages/RisksRiskRegisterPagePage.js +13 -13
- package/dist/planmagnet/pages/SprintsStartSprintPagePage.js +1 -1
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.js +5 -5
- package/dist/planmagnet/pages/TasksTasksPagePage.js +16 -16
- package/dist/planmagnet/pages/TeamTeamDetailPagePage.js +6 -6
- package/dist/planmagnet/pages/analytics/SprintDeliveryCards.js +5 -5
- 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,
|
|
7
|
-
import { AUTOMATION_RULE_QUERIES as
|
|
8
|
-
import { AutomationExecutionsPanel as
|
|
9
|
-
import { AutomationRuleFields as
|
|
10
|
-
import { useState as
|
|
11
|
-
import { Bot as
|
|
12
|
-
import { gql as
|
|
13
|
-
import { useMutation as
|
|
14
|
-
import { jsx as
|
|
15
|
-
import { Button as
|
|
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
|
|
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
|
-
`,
|
|
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
|
|
49
|
-
let t =
|
|
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:
|
|
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
|
|
62
|
-
return e.triggerType === "SCHEDULE" ?
|
|
61
|
+
function L(e) {
|
|
62
|
+
return e.triggerType === "SCHEDULE" ? p(e.scheduleStatuses, e.scheduleNotUpdatedForDays) ?? null : u(e.conditions) ?? null;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
65
|
-
let
|
|
66
|
-
variables: { id:
|
|
67
|
-
skip: !
|
|
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
|
-
}), [
|
|
70
|
-
if (
|
|
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 (
|
|
74
|
+
if (p && !f) return /* @__PURE__ */ D("div", {
|
|
75
75
|
className: "flex items-center justify-center p-12",
|
|
76
|
-
children: /* @__PURE__ */
|
|
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 (
|
|
78
|
+
if (w) return /* @__PURE__ */ O("div", {
|
|
79
79
|
className: "p-6 text-destructive",
|
|
80
|
-
children: ["Automation rule could not be loaded: ",
|
|
80
|
+
children: ["Automation rule could not be loaded: ", w.message]
|
|
81
81
|
});
|
|
82
|
-
if (!
|
|
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
|
|
87
|
-
if (
|
|
88
|
-
|
|
89
|
-
let e =
|
|
90
|
-
|
|
91
|
-
let a =
|
|
92
|
-
JSON.stringify(a) !== JSON.stringify(
|
|
93
|
-
let o =
|
|
94
|
-
if (JSON.stringify(o) !== JSON.stringify(
|
|
95
|
-
|
|
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(
|
|
100
|
-
id:
|
|
99
|
+
await r(R({ variables: {
|
|
100
|
+
id: W.id,
|
|
101
101
|
input: i
|
|
102
|
-
} })),
|
|
102
|
+
} })), U(!0);
|
|
103
103
|
} catch (e) {
|
|
104
|
-
|
|
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__ */
|
|
107
|
+
return /* @__PURE__ */ O("div", {
|
|
108
108
|
className: "space-y-6 p-6 max-w-3xl",
|
|
109
109
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ O("div", {
|
|
111
111
|
className: "flex flex-wrap items-start justify-between gap-3",
|
|
112
|
-
children: [/* @__PURE__ */
|
|
112
|
+
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h1", {
|
|
113
113
|
className: "text-2xl font-semibold",
|
|
114
|
-
children:
|
|
115
|
-
}), /* @__PURE__ */
|
|
114
|
+
children: W.name
|
|
115
|
+
}), /* @__PURE__ */ D("p", {
|
|
116
116
|
className: "text-sm text-muted-foreground",
|
|
117
|
-
children:
|
|
118
|
-
})] }), /* @__PURE__ */
|
|
117
|
+
children: W.project?.name ?? "Unknown project"
|
|
118
|
+
})] }), /* @__PURE__ */ D("div", {
|
|
119
119
|
className: "flex flex-col items-end gap-2",
|
|
120
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ O("div", {
|
|
121
121
|
className: "flex items-center gap-2",
|
|
122
122
|
children: [
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
ruleId:
|
|
125
|
-
projectId:
|
|
123
|
+
/* @__PURE__ */ D(_, {
|
|
124
|
+
ruleId: W.id,
|
|
125
|
+
projectId: W.projectId ?? void 0,
|
|
126
|
+
needsWorkItem: !s(o(W.actions))
|
|
126
127
|
}),
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
ruleId:
|
|
129
|
-
status:
|
|
128
|
+
/* @__PURE__ */ D(g, {
|
|
129
|
+
ruleId: W.id,
|
|
130
|
+
status: W.status
|
|
130
131
|
}),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
ruleId:
|
|
133
|
-
name:
|
|
132
|
+
/* @__PURE__ */ D(h, {
|
|
133
|
+
ruleId: W.id,
|
|
134
|
+
name: W.name
|
|
134
135
|
})
|
|
135
136
|
]
|
|
136
137
|
})
|
|
137
138
|
})]
|
|
138
139
|
}),
|
|
139
|
-
|
|
140
|
-
|
|
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__ */
|
|
145
|
+
/* @__PURE__ */ O(A, { children: [/* @__PURE__ */ D(M, { children: /* @__PURE__ */ O(N, {
|
|
145
146
|
className: "flex items-center gap-2",
|
|
146
|
-
children: [/* @__PURE__ */
|
|
147
|
-
}) }), /* @__PURE__ */
|
|
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__ */
|
|
150
|
-
form:
|
|
150
|
+
children: [/* @__PURE__ */ D(y, {
|
|
151
|
+
form: G,
|
|
151
152
|
onChange: (e) => {
|
|
152
|
-
|
|
153
|
+
K(e), U(!1);
|
|
153
154
|
},
|
|
154
155
|
projectLocked: !0
|
|
155
|
-
}), /* @__PURE__ */
|
|
156
|
+
}), /* @__PURE__ */ D("div", {
|
|
156
157
|
className: "flex justify-end",
|
|
157
|
-
children: /* @__PURE__ */
|
|
158
|
+
children: /* @__PURE__ */ O(k, {
|
|
158
159
|
size: "sm",
|
|
159
|
-
onClick: () => void
|
|
160
|
-
disabled:
|
|
161
|
-
title:
|
|
160
|
+
onClick: () => void X(),
|
|
161
|
+
disabled: z || !!Y,
|
|
162
|
+
title: Y ?? void 0,
|
|
162
163
|
"data-testid": "automation-save",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
164
|
+
children: [/* @__PURE__ */ D(C, { className: "mr-1 h-4 w-4" }), z ? "Saving…" : "Save changes"]
|
|
164
165
|
})
|
|
165
166
|
})]
|
|
166
167
|
})] }),
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
+
/* @__PURE__ */ O(A, { children: [/* @__PURE__ */ D(M, { children: /* @__PURE__ */ O(N, {
|
|
168
169
|
className: "flex items-center gap-2",
|
|
169
|
-
children: [/* @__PURE__ */
|
|
170
|
-
}) }), /* @__PURE__ */
|
|
171
|
-
workspaceId:
|
|
172
|
-
ruleId:
|
|
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 {
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
31
|
-
ACTIVE: "bg-
|
|
32
|
-
COMPLETED: "bg-
|
|
33
|
-
CANCELLED: "bg-
|
|
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-
|
|
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-
|
|
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-
|
|
81
|
-
IN_PROGRESS: "bg-
|
|
82
|
-
AT_RISK: "bg-
|
|
83
|
-
COMPLETED: "bg-
|
|
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-
|
|
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-
|
|
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-
|
|
212
|
-
UNDER_REVIEW: "bg-
|
|
213
|
-
PLANNED: "bg-
|
|
214
|
-
IN_PROGRESS: "bg-
|
|
215
|
-
COMPLETED: "bg-
|
|
216
|
-
DECLINED: "bg-
|
|
217
|
-
DUPLICATE: "bg-
|
|
218
|
-
}[e] ?? "bg-
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
59
|
-
UNDER_REVIEW: "bg-
|
|
60
|
-
PLANNED: "bg-
|
|
61
|
-
IN_PROGRESS: "bg-
|
|
62
|
-
COMPLETED: "bg-
|
|
63
|
-
DECLINED: "bg-
|
|
64
|
-
DUPLICATE: "bg-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
47
|
-
PLANNING: "bg-
|
|
48
|
-
IN_PROGRESS: "bg-
|
|
49
|
-
READY: "bg-
|
|
50
|
-
RELEASED: "bg-
|
|
51
|
-
CANCELLED: "bg-
|
|
52
|
-
ROLLED_BACK: "bg-
|
|
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-
|
|
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-
|
|
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-
|
|
50
|
-
PLANNING: "bg-
|
|
51
|
-
IN_PROGRESS: "bg-
|
|
52
|
-
READY: "bg-
|
|
53
|
-
RELEASED: "bg-
|
|
54
|
-
CANCELLED: "bg-
|
|
55
|
-
ROLLED_BACK: "bg-
|
|
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-
|
|
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",
|