@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
|
@@ -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-
|
|
260
|
-
PLANNED: "bg-
|
|
261
|
-
IN_PROGRESS: "bg-
|
|
262
|
-
BLOCKED: "bg-
|
|
263
|
-
DONE: "bg-
|
|
264
|
-
COMPLETED: "bg-
|
|
265
|
-
}[e] ?? "bg-
|
|
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-
|
|
300
|
-
UNDER_REVIEW: "bg-
|
|
301
|
-
PLANNED: "bg-
|
|
302
|
-
IN_PROGRESS: "bg-
|
|
303
|
-
COMPLETED: "bg-
|
|
304
|
-
DECLINED: "bg-
|
|
305
|
-
}[e] ?? "bg-
|
|
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-
|
|
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-
|
|
67
|
-
IN_PROGRESS: "bg-
|
|
68
|
-
DONE: "bg-
|
|
69
|
-
COMPLETED: "bg-
|
|
70
|
-
BLOCKED: "bg-
|
|
71
|
-
PLANNED: "bg-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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-
|
|
44
|
-
IN_PROGRESS: "bg-
|
|
45
|
-
COMPLETED: "bg-
|
|
46
|
-
MISSED: "bg-
|
|
47
|
-
CANCELLED: "bg-
|
|
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-
|
|
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-
|
|
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
|
|
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-
|
|
44
|
-
ACTIVE: "bg-
|
|
45
|
-
REVIEW: "bg-
|
|
46
|
-
COMPLETED: "bg-
|
|
47
|
-
CANCELLED: "bg-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
})] })
|
|
@@ -97,18 +97,18 @@ var M = ["GetProjectDetail"], N = C`
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
`, P = {
|
|
100
|
-
ACTIVE: "bg-
|
|
101
|
-
ON_HOLD: "bg-
|
|
102
|
-
CANCELLED: "bg-
|
|
103
|
-
COMPLETED: "bg-
|
|
104
|
-
PLANNING: "bg-
|
|
105
|
-
ARCHIVED: "bg-
|
|
100
|
+
ACTIVE: "bg-status-success-subtle text-status-success-text",
|
|
101
|
+
ON_HOLD: "bg-status-warning-subtle text-status-warning-text",
|
|
102
|
+
CANCELLED: "bg-status-error-subtle text-status-error-text",
|
|
103
|
+
COMPLETED: "bg-status-info-subtle text-status-info-text",
|
|
104
|
+
PLANNING: "bg-bg-muted text-text-primary",
|
|
105
|
+
ARCHIVED: "bg-bg-muted text-text-primary"
|
|
106
106
|
}, F = {
|
|
107
|
-
CRITICAL: "bg-
|
|
108
|
-
HIGH: "bg-
|
|
109
|
-
MEDIUM: "bg-
|
|
110
|
-
LOW: "bg-
|
|
111
|
-
NEGLIGIBLE: "bg-
|
|
107
|
+
CRITICAL: "bg-status-error-subtle text-status-error-text",
|
|
108
|
+
HIGH: "bg-status-warning-subtle text-status-warning-text",
|
|
109
|
+
MEDIUM: "bg-status-warning-subtle text-status-warning-text",
|
|
110
|
+
LOW: "bg-status-info-subtle text-status-info-text",
|
|
111
|
+
NEGLIGIBLE: "bg-bg-muted text-text-primary"
|
|
112
112
|
}, I = new Set([
|
|
113
113
|
"IDENTIFIED",
|
|
114
114
|
"ANALYZING",
|
|
@@ -142,7 +142,7 @@ function L() {
|
|
|
142
142
|
children: /* @__PURE__ */ w("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
143
143
|
});
|
|
144
144
|
if (V) return /* @__PURE__ */ T("div", {
|
|
145
|
-
className: "p-6 text-
|
|
145
|
+
className: "p-6 text-status-error-text",
|
|
146
146
|
children: ["Error loading project: ", V.message]
|
|
147
147
|
});
|
|
148
148
|
let U = z?.planmagnetProject;
|
|
@@ -183,7 +183,7 @@ function L() {
|
|
|
183
183
|
children: U.name
|
|
184
184
|
}),
|
|
185
185
|
/* @__PURE__ */ w("span", {
|
|
186
|
-
className: `text-xs px-2 py-0.5 rounded-full capitalize ${P[U.status] ?? "bg-
|
|
186
|
+
className: `text-xs px-2 py-0.5 rounded-full capitalize ${P[U.status] ?? "bg-bg-muted"}`,
|
|
187
187
|
children: U.status.toLowerCase().replace("_", " ")
|
|
188
188
|
}),
|
|
189
189
|
/* @__PURE__ */ w(c, { mode: he })
|
|
@@ -537,7 +537,7 @@ function L() {
|
|
|
537
537
|
className: "text-sm font-medium truncate",
|
|
538
538
|
children: e.title
|
|
539
539
|
}), /* @__PURE__ */ w("span", {
|
|
540
|
-
className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${F[e.severity] ?? "bg-
|
|
540
|
+
className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${F[e.severity] ?? "bg-bg-muted"}`,
|
|
541
541
|
children: r(e.severity)
|
|
542
542
|
})]
|
|
543
543
|
}), /* @__PURE__ */ T("div", {
|
|
@@ -601,15 +601,18 @@ function L() {
|
|
|
601
601
|
children: [/* @__PURE__ */ w("span", {
|
|
602
602
|
className: "text-muted-foreground",
|
|
603
603
|
children: "Program"
|
|
604
|
-
}),
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
604
|
+
}), (() => {
|
|
605
|
+
let e = U.program;
|
|
606
|
+
return e ? /* @__PURE__ */ w("button", {
|
|
607
|
+
type: "button",
|
|
608
|
+
className: "text-primary hover:underline underline-offset-2",
|
|
609
|
+
onClick: () => L(a("/products/program-detail-page", e.id)),
|
|
610
|
+
children: e.name
|
|
611
|
+
}) : /* @__PURE__ */ w("span", {
|
|
612
|
+
className: "text-muted-foreground",
|
|
613
|
+
children: "No program"
|
|
614
|
+
});
|
|
615
|
+
})()]
|
|
613
616
|
}),
|
|
614
617
|
U.tags.length > 0 && /* @__PURE__ */ T("div", {
|
|
615
618
|
className: "flex justify-between items-start",
|
|
@@ -29,12 +29,12 @@ var w = p`
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
`, T = {
|
|
32
|
-
SCRUM: "bg-
|
|
33
|
-
KANBAN: "bg-
|
|
34
|
-
WATERFALL: "bg-
|
|
35
|
-
HYBRID: "bg-
|
|
36
|
-
AGILE: "bg-
|
|
37
|
-
CUSTOM: "bg-
|
|
32
|
+
SCRUM: "bg-status-info-subtle text-status-info-text",
|
|
33
|
+
KANBAN: "bg-bg-muted text-chart-3",
|
|
34
|
+
WATERFALL: "bg-bg-muted text-text-primary",
|
|
35
|
+
HYBRID: "bg-bg-muted text-chart-2",
|
|
36
|
+
AGILE: "bg-bg-muted text-chart-12",
|
|
37
|
+
CUSTOM: "bg-status-warning-subtle text-status-warning-text"
|
|
38
38
|
}, E = (e) => e === "ACTIVE" ? "default" : "secondary";
|
|
39
39
|
function D() {
|
|
40
40
|
let p = t(), { workspaceId: D } = e(), { t: O } = C(), { data: k, loading: A, error: j } = m(w, { variables: { workspaceId: D ?? "default" } }), M = i();
|
|
@@ -43,7 +43,7 @@ function D() {
|
|
|
43
43
|
children: /* @__PURE__ */ h("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
44
44
|
});
|
|
45
45
|
if (j) return /* @__PURE__ */ g("div", {
|
|
46
|
-
className: "p-6 text-
|
|
46
|
+
className: "p-6 text-status-error-text",
|
|
47
47
|
children: [
|
|
48
48
|
O("planmagnet.projects.errorLoading", "Error loading projects"),
|
|
49
49
|
": ",
|
|
@@ -146,7 +146,7 @@ function D() {
|
|
|
146
146
|
className: "capitalize",
|
|
147
147
|
children: e.status.toLowerCase().replace("_", " ")
|
|
148
148
|
}), /* @__PURE__ */ h("span", {
|
|
149
|
-
className: `text-xs px-2 py-0.5 rounded-full capitalize ${T[e.methodology] ?? "bg-
|
|
149
|
+
className: `text-xs px-2 py-0.5 rounded-full capitalize ${T[e.methodology] ?? "bg-bg-muted"}`,
|
|
150
150
|
children: e.methodology.toLowerCase()
|
|
151
151
|
})]
|
|
152
152
|
}),
|
|
@@ -38,11 +38,11 @@ var b = d`
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
`, x = {
|
|
41
|
-
CRITICAL: "bg-
|
|
42
|
-
HIGH: "bg-
|
|
43
|
-
MEDIUM: "bg-
|
|
44
|
-
LOW: "bg-
|
|
45
|
-
NEGLIGIBLE: "bg-
|
|
41
|
+
CRITICAL: "bg-status-error-subtle text-status-error-text",
|
|
42
|
+
HIGH: "bg-status-warning-subtle text-status-warning-text",
|
|
43
|
+
MEDIUM: "bg-status-warning-subtle text-status-warning-text",
|
|
44
|
+
LOW: "bg-status-info-subtle text-status-info-text",
|
|
45
|
+
NEGLIGIBLE: "bg-bg-muted text-text-primary"
|
|
46
46
|
}, S = 12;
|
|
47
47
|
function C() {
|
|
48
48
|
let d = i(), C = e(), { data: w, loading: T, error: E } = f(b, {
|
|
@@ -58,7 +58,7 @@ function C() {
|
|
|
58
58
|
children: /* @__PURE__ */ p("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
59
59
|
});
|
|
60
60
|
if (E) return /* @__PURE__ */ m("div", {
|
|
61
|
-
className: "p-6 text-
|
|
61
|
+
className: "p-6 text-status-error-text",
|
|
62
62
|
children: ["Error loading risk: ", E.message]
|
|
63
63
|
});
|
|
64
64
|
let D = w?.planmagnetRisk;
|
|
@@ -74,7 +74,7 @@ function C() {
|
|
|
74
74
|
className: "text-2xl font-semibold",
|
|
75
75
|
children: D.title
|
|
76
76
|
}), /* @__PURE__ */ p("span", {
|
|
77
|
-
className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${x[D.severity] ?? "bg-
|
|
77
|
+
className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${x[D.severity] ?? "bg-bg-muted"}`,
|
|
78
78
|
children: n(D.severity)
|
|
79
79
|
})]
|
|
80
80
|
}), /* @__PURE__ */ m("p", {
|
|
@@ -44,18 +44,18 @@ var S = m`
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
`, w = {
|
|
47
|
-
CRITICAL: "bg-
|
|
48
|
-
HIGH: "bg-
|
|
49
|
-
MEDIUM: "bg-
|
|
50
|
-
LOW: "bg-
|
|
51
|
-
NEGLIGIBLE: "bg-
|
|
47
|
+
CRITICAL: "bg-status-error-subtle text-status-error-text",
|
|
48
|
+
HIGH: "bg-status-warning-subtle text-status-warning-text",
|
|
49
|
+
MEDIUM: "bg-status-warning-subtle text-status-warning-text",
|
|
50
|
+
LOW: "bg-status-info-subtle text-status-info-text",
|
|
51
|
+
NEGLIGIBLE: "bg-bg-muted text-text-primary"
|
|
52
52
|
}, T = {
|
|
53
|
-
IDENTIFIED: "bg-
|
|
54
|
-
ANALYZING: "bg-
|
|
55
|
-
MITIGATING: "bg-
|
|
56
|
-
ACCEPTED: "bg-
|
|
57
|
-
RESOLVED: "bg-
|
|
58
|
-
CLOSED: "bg-
|
|
53
|
+
IDENTIFIED: "bg-bg-muted text-text-primary",
|
|
54
|
+
ANALYZING: "bg-status-info-subtle text-status-info-text",
|
|
55
|
+
MITIGATING: "bg-status-warning-subtle text-status-warning-text",
|
|
56
|
+
ACCEPTED: "bg-bg-muted text-chart-3",
|
|
57
|
+
RESOLVED: "bg-status-success-subtle text-status-success-text",
|
|
58
|
+
CLOSED: "bg-bg-muted text-text-muted"
|
|
59
59
|
}, E = ["all", ...o];
|
|
60
60
|
function D() {
|
|
61
61
|
let { workspaceId: o } = e(), m = t(), [D] = p(), O = D.get("projectId") ?? void 0, [k, A] = l("all"), [j, M] = l("all"), N = {};
|
|
@@ -131,7 +131,7 @@ function D() {
|
|
|
131
131
|
className: "text-base",
|
|
132
132
|
children: e.title
|
|
133
133
|
}), /* @__PURE__ */ g("span", {
|
|
134
|
-
className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${w[e.severity] ?? "bg-
|
|
134
|
+
className: `text-xs px-2 py-0.5 rounded-full shrink-0 ${w[e.severity] ?? "bg-bg-muted"}`,
|
|
135
135
|
children: r(e.severity)
|
|
136
136
|
})]
|
|
137
137
|
})
|
|
@@ -145,7 +145,7 @@ function D() {
|
|
|
145
145
|
/* @__PURE__ */ _("div", {
|
|
146
146
|
className: "flex items-center justify-between text-xs",
|
|
147
147
|
children: [/* @__PURE__ */ g("span", {
|
|
148
|
-
className: `px-2 py-0.5 rounded-full capitalize ${T[e.status] ?? "bg-
|
|
148
|
+
className: `px-2 py-0.5 rounded-full capitalize ${T[e.status] ?? "bg-bg-muted"}`,
|
|
149
149
|
children: r(e.status)
|
|
150
150
|
}), /* @__PURE__ */ _("span", {
|
|
151
151
|
className: "text-muted-foreground",
|
|
@@ -118,7 +118,7 @@ function E() {
|
|
|
118
118
|
className: "flex items-center justify-center p-12",
|
|
119
119
|
children: /* @__PURE__ */ g("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
120
120
|
}) : j ? /* @__PURE__ */ _("div", {
|
|
121
|
-
className: "p-6 text-
|
|
121
|
+
className: "p-6 text-status-error-text",
|
|
122
122
|
children: ["Error: ", j.message]
|
|
123
123
|
}) : /* @__PURE__ */ _("div", {
|
|
124
124
|
className: "space-y-6 p-6",
|
|
@@ -93,9 +93,9 @@ var V = k`
|
|
|
93
93
|
planmagnetUnlinkDocFromWorkItem(docId: $docId, workItemId: $workItemId)
|
|
94
94
|
}
|
|
95
95
|
`, K = {
|
|
96
|
-
DRAFT: "bg-
|
|
97
|
-
PUBLISHED: "bg-
|
|
98
|
-
ARCHIVED: "bg-
|
|
96
|
+
DRAFT: "bg-bg-muted text-text-primary",
|
|
97
|
+
PUBLISHED: "bg-status-success-subtle text-status-success-text",
|
|
98
|
+
ARCHIVED: "bg-bg-muted text-text-muted"
|
|
99
99
|
};
|
|
100
100
|
function q({ workItemId: e }) {
|
|
101
101
|
let n = t(), [i, a] = w(!1), [o, s] = w(!1), [c, d] = w(""), [f, p] = w(""), [m, h] = w(""), { data: g, loading: _, error: v, refetch: y } = j(H, {
|
|
@@ -226,7 +226,7 @@ function q({ workItemId: e }) {
|
|
|
226
226
|
children: "Loading docs..."
|
|
227
227
|
}),
|
|
228
228
|
v && /* @__PURE__ */ N("p", {
|
|
229
|
-
className: "text-sm text-
|
|
229
|
+
className: "text-sm text-status-error-text",
|
|
230
230
|
children: ["Error: ", v.message]
|
|
231
231
|
}),
|
|
232
232
|
V && /* @__PURE__ */ M("p", {
|
|
@@ -282,7 +282,7 @@ function J() {
|
|
|
282
282
|
children: /* @__PURE__ */ M("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
283
283
|
});
|
|
284
284
|
if (w) return /* @__PURE__ */ N("div", {
|
|
285
|
-
className: "p-6 text-
|
|
285
|
+
className: "p-6 text-status-error-text",
|
|
286
286
|
children: ["Error: ", w.message]
|
|
287
287
|
});
|
|
288
288
|
let E = l?.planmagnetWorkItem;
|
|
@@ -79,24 +79,24 @@ var y = d`
|
|
|
79
79
|
DONE: "Done",
|
|
80
80
|
CANCELLED: "Cancelled"
|
|
81
81
|
}, T = {
|
|
82
|
-
BACKLOG: "border-t-
|
|
83
|
-
TODO: "border-t-
|
|
84
|
-
IN_PROGRESS: "border-t-
|
|
85
|
-
IN_REVIEW: "border-t-
|
|
86
|
-
TESTING: "border-t-
|
|
87
|
-
DONE: "border-t-
|
|
82
|
+
BACKLOG: "border-t-border-strong",
|
|
83
|
+
TODO: "border-t-status-info",
|
|
84
|
+
IN_PROGRESS: "border-t-status-warning",
|
|
85
|
+
IN_REVIEW: "border-t-chart-3",
|
|
86
|
+
TESTING: "border-t-chart-2",
|
|
87
|
+
DONE: "border-t-status-success",
|
|
88
88
|
CANCELLED: "border-t-muted-foreground"
|
|
89
89
|
}, te = {
|
|
90
|
-
LOW: "bg-
|
|
91
|
-
MEDIUM: "bg-
|
|
92
|
-
HIGH: "bg-
|
|
93
|
-
CRITICAL: "bg-
|
|
90
|
+
LOW: "bg-bg-muted text-text-secondary",
|
|
91
|
+
MEDIUM: "bg-status-info-subtle text-status-info-text",
|
|
92
|
+
HIGH: "bg-status-warning-subtle text-status-warning-text",
|
|
93
|
+
CRITICAL: "bg-status-error-subtle text-status-error-text"
|
|
94
94
|
}, ne = {
|
|
95
|
-
STORY: "bg-
|
|
96
|
-
BUG: "bg-
|
|
97
|
-
TASK: "bg-
|
|
98
|
-
EPIC: "bg-
|
|
99
|
-
SUB_TASK: "bg-
|
|
95
|
+
STORY: "bg-status-success-subtle text-status-success-text",
|
|
96
|
+
BUG: "bg-status-error-subtle text-status-error-text",
|
|
97
|
+
TASK: "bg-status-info-subtle text-status-info-text",
|
|
98
|
+
EPIC: "bg-bg-muted text-chart-3",
|
|
99
|
+
SUB_TASK: "bg-bg-muted text-text-secondary"
|
|
100
100
|
}, E = d`
|
|
101
101
|
query TasksLinkedBoardView($id: ID!) {
|
|
102
102
|
planmagnetBoardView(id: $id) {
|
|
@@ -153,7 +153,7 @@ function D() {
|
|
|
153
153
|
children: /* @__PURE__ */ m("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
154
154
|
});
|
|
155
155
|
if (J) return /* @__PURE__ */ h("div", {
|
|
156
|
-
className: "p-6 text-
|
|
156
|
+
className: "p-6 text-status-error-text",
|
|
157
157
|
children: ["Error: ", J.message]
|
|
158
158
|
});
|
|
159
159
|
let Z = K?.planmagnetWorkItems?.items ?? [], Q = X?.planmagnetWorkItemCounts, $ = Q?.total ?? (V ? void 0 : K?.planmagnetWorkItems?.totalCount), ie = (e) => Q ? Q.byStatus.find((t) => t.status === e)?.count ?? 0 : void 0, ae = K?.planmagnetWorkItems?.pageInfo?.hasNextPage ?? !1;
|
|
@@ -53,11 +53,11 @@ var E = _`
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
`, O = {
|
|
56
|
-
PLANNING: "bg-
|
|
57
|
-
ACTIVE: "bg-
|
|
58
|
-
REVIEW: "bg-
|
|
59
|
-
COMPLETED: "bg-
|
|
60
|
-
CANCELLED: "bg-
|
|
56
|
+
PLANNING: "bg-status-info-subtle text-status-info-text",
|
|
57
|
+
ACTIVE: "bg-status-success-subtle text-status-success-text",
|
|
58
|
+
REVIEW: "bg-bg-muted text-chart-3",
|
|
59
|
+
COMPLETED: "bg-bg-muted text-text-primary",
|
|
60
|
+
CANCELLED: "bg-status-error-subtle text-status-error-text"
|
|
61
61
|
};
|
|
62
62
|
function k() {
|
|
63
63
|
let _ = o("teamId"), { workspaceId: k } = e(), A = t(), { data: j, loading: M, error: N } = v(E, {
|
|
@@ -198,7 +198,7 @@ function k() {
|
|
|
198
198
|
className: "text-xs text-muted-foreground",
|
|
199
199
|
children: e.status === "COMPLETED" && e.velocity != null ? `${e.velocity} pts velocity` : `${n}/${t} pts`
|
|
200
200
|
}), /* @__PURE__ */ y("span", {
|
|
201
|
-
className: `text-xs px-2 py-0.5 rounded-full capitalize ${O[e.status] ?? "bg-
|
|
201
|
+
className: `text-xs px-2 py-0.5 rounded-full capitalize ${O[e.status] ?? "bg-bg-muted"}`,
|
|
202
202
|
children: e.status.toLowerCase().replace("_", " ")
|
|
203
203
|
})]
|
|
204
204
|
})]
|
|
@@ -115,7 +115,7 @@ function D({ workspaceId: r, sprintId: i }) {
|
|
|
115
115
|
type: "monotone",
|
|
116
116
|
dataKey: "remaining",
|
|
117
117
|
name: a("planmagnet.dashboards.burndown.remaining", "Remaining points"),
|
|
118
|
-
stroke: "
|
|
118
|
+
stroke: "var(--color-chart-4)",
|
|
119
119
|
strokeWidth: 2,
|
|
120
120
|
dot: { r: 2 }
|
|
121
121
|
}),
|
|
@@ -123,7 +123,7 @@ function D({ workspaceId: r, sprintId: i }) {
|
|
|
123
123
|
type: "monotone",
|
|
124
124
|
dataKey: "completed",
|
|
125
125
|
name: a("planmagnet.dashboards.burndown.completed", "Completed points"),
|
|
126
|
-
stroke: "
|
|
126
|
+
stroke: "var(--color-chart-7)",
|
|
127
127
|
strokeWidth: 2,
|
|
128
128
|
dot: { r: 2 }
|
|
129
129
|
})
|
|
@@ -198,16 +198,16 @@ function O({ workspaceId: s, projectId: u, trailingSprintCount: f = 6 }) {
|
|
|
198
198
|
/* @__PURE__ */ _(r, {
|
|
199
199
|
dataKey: "planned",
|
|
200
200
|
name: m("planmagnet.dashboards.velocity.planned", "Planned"),
|
|
201
|
-
fill: "
|
|
201
|
+
fill: "var(--color-border-strong)"
|
|
202
202
|
}),
|
|
203
203
|
/* @__PURE__ */ _(r, {
|
|
204
204
|
dataKey: "completed",
|
|
205
205
|
name: m("planmagnet.dashboards.velocity.completed", "Completed"),
|
|
206
|
-
fill: "
|
|
206
|
+
fill: "var(--color-chart-12)"
|
|
207
207
|
}),
|
|
208
208
|
/* @__PURE__ */ _(i, {
|
|
209
209
|
y: A,
|
|
210
|
-
stroke: "
|
|
210
|
+
stroke: "var(--color-chart-7)",
|
|
211
211
|
strokeDasharray: "4 4",
|
|
212
212
|
label: {
|
|
213
213
|
value: m("planmagnet.dashboards.velocity.avgLabel", "avg"),
|