@burdenoff/microfe-planmagnet 2026.930.13 → 2026.930.14
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/planmagnet/PlanMagnetRoot.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoot.js +133 -126
- package/dist/planmagnet/PlanMagnetRoot.js.map +1 -1
- package/dist/planmagnet/PlanMagnetRoutes.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoutes.js +9 -5
- package/dist/planmagnet/PlanMagnetRoutes.js.map +1 -1
- package/dist/planmagnet/activity/activityDescribe.d.ts +38 -0
- package/dist/planmagnet/activity/activityDescribe.d.ts.map +1 -0
- package/dist/planmagnet/activity/activityDescribe.js +123 -0
- package/dist/planmagnet/activity/activityDescribe.js.map +1 -0
- package/dist/planmagnet/activity/relativeTime.d.ts +8 -0
- package/dist/planmagnet/activity/relativeTime.d.ts.map +1 -0
- package/dist/planmagnet/activity/relativeTime.js +38 -0
- package/dist/planmagnet/activity/relativeTime.js.map +1 -0
- package/dist/planmagnet/comments/WorkItemActivity.d.ts.map +1 -1
- package/dist/planmagnet/comments/WorkItemActivity.js +35 -38
- package/dist/planmagnet/comments/WorkItemActivity.js.map +1 -1
- package/dist/planmagnet/controls/FeatureControls.js +25 -25
- package/dist/planmagnet/controls/ProjectControls.d.ts.map +1 -1
- package/dist/planmagnet/controls/ProjectControls.js +53 -46
- package/dist/planmagnet/controls/ProjectControls.js.map +1 -1
- package/dist/planmagnet/pages/ActivityActivityPagePage.d.ts +2 -0
- package/dist/planmagnet/pages/ActivityActivityPagePage.d.ts.map +1 -0
- package/dist/planmagnet/pages/ActivityActivityPagePage.js +291 -0
- package/dist/planmagnet/pages/ActivityActivityPagePage.js.map +1 -0
- package/dist/planmagnet/pages/AutomationAutomationRulesPagePage.js +15 -15
- package/dist/planmagnet/pages/AutomationCreateAutomationRulePagePage.js +9 -9
- package/dist/planmagnet/pages/ProductsEditProductPagePage.js +4 -4
- package/dist/planmagnet/pages/ProductsEditRoadmapPagePage.js +4 -4
- package/dist/planmagnet/pages/ProductsProductDetailPagePage.js +4 -4
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +118 -109
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProgramsEditProgramPagePage.js +4 -4
- package/dist/planmagnet/pages/ProjectsEditProjectPagePage.js +6 -6
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js +4 -4
- package/dist/planmagnet/pages/ProjectsPlanningDetailPagePage.js +4 -4
- package/dist/planmagnet/pages/ProjectsPlanningEditPagePage.js +6 -6
- package/dist/planmagnet/pages/ProjectsProjectDetailPagePage.js +13 -13
- package/dist/planmagnet/pages/RisksRiskDetailPagePage.js +4 -4
- package/dist/planmagnet/pages/TeamCreateTeamPagePage.js +4 -4
- package/dist/planmagnet/pages/TeamTeamDetailPagePage.js +6 -6
- package/dist/planmagnet/pages/TeamTeamEditPagePage.js +6 -6
- package/dist/planmagnet/roadmaps/RoadmapControls.js +21 -21
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.d.ts +29 -0
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.d.ts.map +1 -1
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js +1 -1
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js.map +1 -1
- package/dist/planmagnet/roadmaps/RoadmapPresentation.d.ts +37 -0
- package/dist/planmagnet/roadmaps/RoadmapPresentation.d.ts.map +1 -0
- package/dist/planmagnet/roadmaps/RoadmapPresentation.js +210 -0
- package/dist/planmagnet/roadmaps/RoadmapPresentation.js.map +1 -0
- package/dist/planmagnet/team/TeamControls.d.ts.map +1 -1
- package/dist/planmagnet/team/TeamControls.js +134 -124
- package/dist/planmagnet/team/TeamControls.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/PlanMagnetProvider.js";
|
|
2
2
|
import { throwOnError as n } from "../utils/mutationResult.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { detailPath as r } from "../utils/rowNavigation.js";
|
|
4
|
+
import { endBeforeStart as i, parseIntField as a } from "../utils/formValidation.js";
|
|
5
|
+
import { useEntityId as o } from "../hooks/useEntityId.js";
|
|
6
6
|
import { SprintLifecycleActions as s } from "../sprints/SprintControls.js";
|
|
7
7
|
import { useMemo as c, useState as l } from "react";
|
|
8
8
|
import { ArrowLeft as u, Save as d } from "lucide-react";
|
|
@@ -49,7 +49,7 @@ var C = f`
|
|
|
49
49
|
}
|
|
50
50
|
`;
|
|
51
51
|
function T() {
|
|
52
|
-
let { workspaceId: f } = e(), T =
|
|
52
|
+
let { workspaceId: f } = e(), T = o("sprintId"), E = t(), { data: D, loading: O, error: k } = m(C, {
|
|
53
53
|
variables: {
|
|
54
54
|
id: T,
|
|
55
55
|
workspaceId: f ?? "default"
|
|
@@ -68,7 +68,7 @@ function T() {
|
|
|
68
68
|
let n = { ...t };
|
|
69
69
|
for (let [t, r] of Object.entries(e)) r !== L[t] && (n[t] = r);
|
|
70
70
|
return n;
|
|
71
|
-
}), [z, B] = l(null), V =
|
|
71
|
+
}), [z, B] = l(null), V = i(L.startDate, L.endDate), H = a(L.capacity, { min: 0 }), [U, { loading: W }] = p(w, { refetchQueries: [
|
|
72
72
|
"GetSprints",
|
|
73
73
|
"GetSprintDetail",
|
|
74
74
|
"GetSprintForEdit",
|
|
@@ -91,7 +91,7 @@ function T() {
|
|
|
91
91
|
variant: "ghost",
|
|
92
92
|
size: "sm",
|
|
93
93
|
"aria-label": "Back to the sprint",
|
|
94
|
-
onClick: () => E(
|
|
94
|
+
onClick: () => E(r("/projects/planning-detail-page", T)),
|
|
95
95
|
children: /* @__PURE__ */ h(u, { className: "h-4 w-4" })
|
|
96
96
|
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("h1", {
|
|
97
97
|
className: "text-2xl font-semibold",
|
|
@@ -2,8 +2,8 @@ import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/Pla
|
|
|
2
2
|
import { PersonName as n } from "../people/People.js";
|
|
3
3
|
import { workProgress as r } from "../hooks/useCounts.js";
|
|
4
4
|
import { enumLabel as i } from "../controls/WorkItemControls.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ROW_LINK_CLASS as a, detailPath as o, rowLinkProps as s } from "../utils/rowNavigation.js";
|
|
6
|
+
import { useEntityId as c } from "../hooks/useEntityId.js";
|
|
7
7
|
import { NewRiskDialog as l, NewTemplateFromProjectDialog as u } from "../create/CreateDialogs.js";
|
|
8
8
|
import { ProjectHeaderActions as d } from "../controls/ProjectControls.js";
|
|
9
9
|
import { ProjectBudgetsSummary as f } from "../budgets/ProjectBudgetsSummary.js";
|
|
@@ -106,7 +106,7 @@ var N = C`
|
|
|
106
106
|
"ACCEPTED"
|
|
107
107
|
]);
|
|
108
108
|
function I() {
|
|
109
|
-
let C =
|
|
109
|
+
let C = c("projectId"), I = t(), { workspaceId: L } = e(), { data: R, loading: z, error: B } = w(N, {
|
|
110
110
|
variables: { id: C },
|
|
111
111
|
skip: !C
|
|
112
112
|
});
|
|
@@ -194,7 +194,7 @@ function I() {
|
|
|
194
194
|
/* @__PURE__ */ T(u, {
|
|
195
195
|
projectId: V.id,
|
|
196
196
|
projectName: V.name,
|
|
197
|
-
onCreated: (e) => I(
|
|
197
|
+
onCreated: (e) => I(o("/templates/edit-template-page", e)),
|
|
198
198
|
trigger: /* @__PURE__ */ E(O, {
|
|
199
199
|
size: "sm",
|
|
200
200
|
variant: "outline",
|
|
@@ -212,7 +212,7 @@ function I() {
|
|
|
212
212
|
/* @__PURE__ */ E(O, {
|
|
213
213
|
size: "sm",
|
|
214
214
|
variant: "outline",
|
|
215
|
-
onClick: () => I(
|
|
215
|
+
onClick: () => I(o("/projects/critical-path-page", V.id)),
|
|
216
216
|
children: [/* @__PURE__ */ T(v, { className: "mr-1 h-4 w-4" }), "Critical path"]
|
|
217
217
|
})
|
|
218
218
|
]
|
|
@@ -356,8 +356,8 @@ function I() {
|
|
|
356
356
|
] }) }), /* @__PURE__ */ E(A, {
|
|
357
357
|
className: "space-y-2",
|
|
358
358
|
children: [te.map((e) => /* @__PURE__ */ E("div", {
|
|
359
|
-
...
|
|
360
|
-
className: `flex items-center justify-between border rounded-md p-2.5 ${
|
|
359
|
+
...s(() => I(`/tasks/task-detail-page?taskId=${encodeURIComponent(e.id)}`), e.key),
|
|
360
|
+
className: `flex items-center justify-between border rounded-md p-2.5 ${a}`,
|
|
361
361
|
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ E("p", {
|
|
362
362
|
className: "text-sm font-medium",
|
|
363
363
|
children: [
|
|
@@ -437,12 +437,12 @@ function I() {
|
|
|
437
437
|
children: [/* @__PURE__ */ T("button", {
|
|
438
438
|
type: "button",
|
|
439
439
|
className: "text-sm font-medium hover:underline text-left",
|
|
440
|
-
onClick: () => I(
|
|
440
|
+
onClick: () => I(o("/projects/planning-detail-page", e.sprint.id)),
|
|
441
441
|
children: e.sprint.name
|
|
442
442
|
}), /* @__PURE__ */ E("button", {
|
|
443
443
|
type: "button",
|
|
444
444
|
className: "block text-xs text-muted-foreground hover:underline",
|
|
445
|
-
onClick: () => I(
|
|
445
|
+
onClick: () => I(o("/team/team-detail-page", e.sprint.team.id)),
|
|
446
446
|
children: [
|
|
447
447
|
e.items.length,
|
|
448
448
|
" item",
|
|
@@ -467,14 +467,14 @@ function I() {
|
|
|
467
467
|
]
|
|
468
468
|
}), /* @__PURE__ */ T(l, {
|
|
469
469
|
projectId: V.id,
|
|
470
|
-
onCreated: (e) => I(
|
|
470
|
+
onCreated: (e) => I(o("/risks/risk-detail-page", e))
|
|
471
471
|
})]
|
|
472
472
|
}), /* @__PURE__ */ E(A, {
|
|
473
473
|
className: "space-y-3",
|
|
474
474
|
children: [
|
|
475
475
|
q.map((e) => /* @__PURE__ */ E("div", {
|
|
476
|
-
...
|
|
477
|
-
className: `border-b pb-2 last:border-0 ${
|
|
476
|
+
...s(() => I(o("/risks/risk-detail-page", e.id)), e.title),
|
|
477
|
+
className: `border-b pb-2 last:border-0 ${a}`,
|
|
478
478
|
children: [/* @__PURE__ */ E("div", {
|
|
479
479
|
className: "flex justify-between gap-2",
|
|
480
480
|
children: [/* @__PURE__ */ T("span", {
|
|
@@ -548,7 +548,7 @@ function I() {
|
|
|
548
548
|
}), V.program ? /* @__PURE__ */ T("button", {
|
|
549
549
|
type: "button",
|
|
550
550
|
className: "text-primary hover:underline underline-offset-2",
|
|
551
|
-
onClick: () => I(
|
|
551
|
+
onClick: () => I(o("/products/program-detail-page", V.program.id)),
|
|
552
552
|
children: V.program.name
|
|
553
553
|
}) : /* @__PURE__ */ T("span", {
|
|
554
554
|
className: "text-muted-foreground",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { usePlanMagnetNavigate as e } from "../providers/PlanMagnetProvider.js";
|
|
2
2
|
import { PersonName as t } from "../people/People.js";
|
|
3
3
|
import { enumLabel as n } from "../controls/WorkItemControls.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { detailPath as r } from "../utils/rowNavigation.js";
|
|
5
|
+
import { useEntityId as i } from "../hooks/useEntityId.js";
|
|
6
6
|
import { RiskHeaderActions as a } from "../controls/RiskControls.js";
|
|
7
7
|
import { Calendar as o, FolderKanban as s, Gauge as c, ShieldAlert as l, User as u } from "lucide-react";
|
|
8
8
|
import { gql as d } from "@apollo/client";
|
|
@@ -45,7 +45,7 @@ var b = d`
|
|
|
45
45
|
NEGLIGIBLE: "bg-gray-100 text-gray-800"
|
|
46
46
|
}, S = 12;
|
|
47
47
|
function C() {
|
|
48
|
-
let d =
|
|
48
|
+
let d = i(), C = e(), { data: w, loading: T, error: E } = f(b, {
|
|
49
49
|
variables: { id: d },
|
|
50
50
|
skip: !d
|
|
51
51
|
});
|
|
@@ -186,7 +186,7 @@ function C() {
|
|
|
186
186
|
D.project ? /* @__PURE__ */ p("button", {
|
|
187
187
|
type: "button",
|
|
188
188
|
className: "font-medium text-primary hover:underline",
|
|
189
|
-
onClick: () => C(
|
|
189
|
+
onClick: () => C(r("/projects/project-detail-page", D.project?.id)),
|
|
190
190
|
children: D.project.name
|
|
191
191
|
}) : /* @__PURE__ */ p("span", {
|
|
192
192
|
className: "text-muted-foreground",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/PlanMagnetProvider.js";
|
|
2
2
|
import { throwOnError as n } from "../utils/mutationResult.js";
|
|
3
3
|
import { AssigneeSelect as r } from "../controls/WorkItemControls.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { detailPath as ee } from "../utils/rowNavigation.js";
|
|
5
|
+
import { parseIntField as te } from "../utils/formValidation.js";
|
|
6
6
|
import { TEAM_QUERIES as i } from "../team/TeamControls.js";
|
|
7
7
|
import { useDeferredValue as a, useEffect as ne, useState as o } from "react";
|
|
8
8
|
import { ArrowRight as re, FolderKanban as s, Save as c, Users as l, X as ie } from "lucide-react";
|
|
@@ -63,7 +63,7 @@ function w() {
|
|
|
63
63
|
ne(() => {
|
|
64
64
|
V(F);
|
|
65
65
|
}, [F, V]);
|
|
66
|
-
let [H, { loading: U }] = d(oe, { refetchQueries: i }), [W] = d(se, { refetchQueries: i }), [le] = d(ce, { refetchQueries: i }), [G, K] = o(null), [q, J] = o([]), [Y, X] = o(null), Z =
|
|
66
|
+
let [H, { loading: U }] = d(oe, { refetchQueries: i }), [W] = d(se, { refetchQueries: i }), [le] = d(ce, { refetchQueries: i }), [G, K] = o(null), [q, J] = o([]), [Y, X] = o(null), Z = te(D.capacity, { min: 0 }), Q = D.name.trim() === "", ue = U, $ = !Q && !Z.invalid && !ue && !!u, de = (e, t) => A((n) => {
|
|
67
67
|
let r = new Set(n);
|
|
68
68
|
return t ? r.add(e) : r.delete(e), r;
|
|
69
69
|
}), fe = (e, t) => M((n) => {
|
|
@@ -149,7 +149,7 @@ function w() {
|
|
|
149
149
|
] }), /* @__PURE__ */ m(h, {
|
|
150
150
|
size: "sm",
|
|
151
151
|
variant: "outline",
|
|
152
|
-
onClick: () => E(
|
|
152
|
+
onClick: () => E(ee("/team/team-detail-page", Y.id)),
|
|
153
153
|
children: ["View team", /* @__PURE__ */ p(re, { className: "ml-1 h-4 w-4" })]
|
|
154
154
|
})]
|
|
155
155
|
}),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/PlanMagnetProvider.js";
|
|
2
2
|
import { PersonName as n } from "../people/People.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { ROW_LINK_CLASS as r, detailPath as i, rowLinkProps as a } from "../utils/rowNavigation.js";
|
|
4
|
+
import { useEntityId as o } from "../hooks/useEntityId.js";
|
|
5
5
|
import { PlanMagnetNotFoundPage as s } from "./NotFoundPage.js";
|
|
6
6
|
import { NewSprintDialog as c } from "../sprints/SprintControls.js";
|
|
7
7
|
import { TeamHeaderActions as l, TeamMembersPanel as u, TeamProjectsPanel as d } from "../team/TeamControls.js";
|
|
@@ -59,7 +59,7 @@ var T = g`
|
|
|
59
59
|
CANCELLED: "bg-red-100 text-red-800"
|
|
60
60
|
};
|
|
61
61
|
function O() {
|
|
62
|
-
let g =
|
|
62
|
+
let g = o("teamId"), { workspaceId: O } = e(), k = t(), { data: A, loading: j, error: M } = _(T, {
|
|
63
63
|
variables: { id: g },
|
|
64
64
|
skip: !g
|
|
65
65
|
}), { data: N, loading: P } = _(E, {
|
|
@@ -163,7 +163,7 @@ function O() {
|
|
|
163
163
|
children: [/* @__PURE__ */ v(w, { children: "Sprints" }), /* @__PURE__ */ v(c, {
|
|
164
164
|
initialScope: "team",
|
|
165
165
|
initialTeamId: F.id,
|
|
166
|
-
onCreated: (e) => k(
|
|
166
|
+
onCreated: (e) => k(i("/projects/planning-detail-page", e))
|
|
167
167
|
})]
|
|
168
168
|
}), /* @__PURE__ */ y(S, {
|
|
169
169
|
className: "space-y-2",
|
|
@@ -179,8 +179,8 @@ function O() {
|
|
|
179
179
|
I.map((e) => {
|
|
180
180
|
let t = e.workItems.reduce((e, t) => e + (t.storyPoints ?? 0), 0), n = e.workItems.filter((e) => e.status === "DONE").reduce((e, t) => e + (t.storyPoints ?? 0), 0);
|
|
181
181
|
return /* @__PURE__ */ y("div", {
|
|
182
|
-
...
|
|
183
|
-
className: `flex items-center justify-between border rounded-md p-2.5 ${
|
|
182
|
+
...a(() => k(i("/projects/planning-detail-page", e.id)), e.name),
|
|
183
|
+
className: `flex items-center justify-between border rounded-md p-2.5 ${r}`,
|
|
184
184
|
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
|
|
185
185
|
className: "text-sm font-medium",
|
|
186
186
|
children: e.name
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { usePlanMagnetNavigate as e } from "../providers/PlanMagnetProvider.js";
|
|
2
2
|
import { throwOnError as t } from "../utils/mutationResult.js";
|
|
3
3
|
import { AssigneeSelect as n } from "../controls/WorkItemControls.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { detailPath as r } from "../utils/rowNavigation.js";
|
|
5
|
+
import { parseIntField as i } from "../utils/formValidation.js";
|
|
6
|
+
import { useEntityId as a } from "../hooks/useEntityId.js";
|
|
7
7
|
import { PlanMagnetNotFoundPage as o } from "./NotFoundPage.js";
|
|
8
8
|
import { useMemo as s, useState as c } from "react";
|
|
9
9
|
import { ArrowLeft as l, Save as u } from "lucide-react";
|
|
@@ -34,7 +34,7 @@ var S = d`
|
|
|
34
34
|
}
|
|
35
35
|
`;
|
|
36
36
|
function w() {
|
|
37
|
-
let d =
|
|
37
|
+
let d = a("teamId"), w = e(), { data: T, loading: E, error: D } = p(S, {
|
|
38
38
|
variables: { id: d },
|
|
39
39
|
skip: !d
|
|
40
40
|
}), O = T?.planmagnetTeam, k = s(() => ({
|
|
@@ -49,7 +49,7 @@ function w() {
|
|
|
49
49
|
let n = { ...t };
|
|
50
50
|
for (let [t, r] of Object.entries(e)) r !== M[t] && (n[t] = r);
|
|
51
51
|
return n;
|
|
52
|
-
}), [P, F] = c(null), [I, L] = c(null), R =
|
|
52
|
+
}), [P, F] = c(null), [I, L] = c(null), R = i(M.capacity, { min: 0 }), z = M.name.trim() === "", [B, { loading: V }] = f(C, { refetchQueries: [
|
|
53
53
|
"GetTeams",
|
|
54
54
|
"GetTeamDetail",
|
|
55
55
|
"GetTeamForEdit"
|
|
@@ -71,7 +71,7 @@ function w() {
|
|
|
71
71
|
variant: "ghost",
|
|
72
72
|
size: "sm",
|
|
73
73
|
"aria-label": "Back to the team",
|
|
74
|
-
onClick: () => w(
|
|
74
|
+
onClick: () => w(r("/team/team-detail-page", d)),
|
|
75
75
|
children: /* @__PURE__ */ m(l, { className: "h-4 w-4" })
|
|
76
76
|
}), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h1", {
|
|
77
77
|
className: "text-2xl font-semibold",
|
|
@@ -2,9 +2,9 @@ import { usePlanMagnetNavigate as e } from "../providers/PlanMagnetProvider.js";
|
|
|
2
2
|
import { LEAVES_PAGE_CONTEXT as t, throwOnError as n } from "../utils/mutationResult.js";
|
|
3
3
|
import { ConfirmButton as r, ErrorLine as i } from "../controls/ConfirmButton.js";
|
|
4
4
|
import { enumLabel as a } from "../controls/WorkItemControls.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { detailPath as o } from "../utils/rowNavigation.js";
|
|
6
|
+
import { mutationErrorMessage as s } from "../utils/graphqlErrors.js";
|
|
7
|
+
import { endBeforeStart as c, parseIntField as l } from "../utils/formValidation.js";
|
|
8
8
|
import { useState as u } from "react";
|
|
9
9
|
import { BarChart3 as d, Pencil as f, Plus as p, Trash2 as m } from "lucide-react";
|
|
10
10
|
import { gql as h } from "@apollo/client";
|
|
@@ -66,7 +66,7 @@ var O = [
|
|
|
66
66
|
}
|
|
67
67
|
`, I = (e) => e ? e.slice(0, 10) : "";
|
|
68
68
|
function L({ roadmapId: e, item: t, lanes: r }) {
|
|
69
|
-
let
|
|
69
|
+
let o = {
|
|
70
70
|
title: t?.title ?? "",
|
|
71
71
|
description: t?.description ?? "",
|
|
72
72
|
status: t?.status ?? "PLANNED",
|
|
@@ -77,10 +77,10 @@ function L({ roadmapId: e, item: t, lanes: r }) {
|
|
|
77
77
|
confidence: t?.confidence == null ? "" : String(t.confidence),
|
|
78
78
|
riskLevel: t?.riskLevel ?? "",
|
|
79
79
|
riskNote: t?.riskNote ?? ""
|
|
80
|
-
}, [d, m] = u(!1), [h, P] = u(
|
|
80
|
+
}, [d, m] = u(!1), [h, P] = u(o), [F, L] = u(null), R = {
|
|
81
81
|
refetchQueries: j,
|
|
82
82
|
awaitRefetchQueries: !0
|
|
83
|
-
}, [z, B] = g(M, R), [V, H] = g(N, R), U = B.loading || H.loading, W =
|
|
83
|
+
}, [z, B] = g(M, R), [V, H] = g(N, R), U = B.loading || H.loading, W = c(h.startDate, h.endDate), G = l(h.confidence, {
|
|
84
84
|
min: 0,
|
|
85
85
|
max: 100
|
|
86
86
|
}), K = h.title.trim() !== "" && !W && !G.invalid && !U, q = O.includes(h.status) ? O : [h.status, ...O], J = k.includes(h.horizon) ? k : h.horizon ? [h.horizon, ...k] : k, Y = A.includes(h.riskLevel) ? A : h.riskLevel ? [h.riskLevel, ...A] : A, X = t ? `roadmap-item-${t.id}` : "roadmap-item-new", Z = async () => {
|
|
@@ -94,13 +94,13 @@ function L({ roadmapId: e, item: t, lanes: r }) {
|
|
|
94
94
|
try {
|
|
95
95
|
if (t) {
|
|
96
96
|
let e = {
|
|
97
|
-
...h.startDate !==
|
|
98
|
-
...h.endDate !==
|
|
97
|
+
...h.startDate !== o.startDate && { startDate: h.startDate || null },
|
|
98
|
+
...h.endDate !== o.endDate && { endDate: h.endDate || null }
|
|
99
99
|
}, i = {
|
|
100
|
-
...h.horizon !==
|
|
101
|
-
...h.confidence !==
|
|
102
|
-
...h.riskLevel !==
|
|
103
|
-
...h.riskNote.trim() !==
|
|
100
|
+
...h.horizon !== o.horizon && { horizon: h.horizon || null },
|
|
101
|
+
...h.confidence !== o.confidence && { confidence: G.value ?? null },
|
|
102
|
+
...h.riskLevel !== o.riskLevel && { riskLevel: h.riskLevel || null },
|
|
103
|
+
...h.riskNote.trim() !== o.riskNote.trim() && { riskNote: h.riskNote.trim() || null }
|
|
104
104
|
};
|
|
105
105
|
await n(V({ variables: {
|
|
106
106
|
id: t.id,
|
|
@@ -119,16 +119,16 @@ function L({ roadmapId: e, item: t, lanes: r }) {
|
|
|
119
119
|
confidence: G.value,
|
|
120
120
|
riskLevel: h.riskLevel || void 0,
|
|
121
121
|
riskNote: h.riskNote.trim() || void 0
|
|
122
|
-
} } })), P(
|
|
122
|
+
} } })), P(o);
|
|
123
123
|
m(!1);
|
|
124
124
|
} catch (e) {
|
|
125
|
-
L(
|
|
125
|
+
L(s(e, "The item could not be saved."));
|
|
126
126
|
}
|
|
127
127
|
}, Q = "mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm";
|
|
128
128
|
return /* @__PURE__ */ v(x, {
|
|
129
129
|
open: d,
|
|
130
130
|
onOpenChange: (e) => {
|
|
131
|
-
m(e), e ? P(
|
|
131
|
+
m(e), e ? P(o) : L(null);
|
|
132
132
|
},
|
|
133
133
|
children: [/* @__PURE__ */ _(D, {
|
|
134
134
|
asChild: !0,
|
|
@@ -375,14 +375,14 @@ function R({ id: e, title: t }) {
|
|
|
375
375
|
}), s && /* @__PURE__ */ _(i, { message: s })]
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
|
-
function z({ roadmapId: a, name:
|
|
379
|
-
let
|
|
378
|
+
function z({ roadmapId: a, name: s }) {
|
|
379
|
+
let c = e(), [l, p] = g(F, {
|
|
380
380
|
refetchQueries: ["ListRoadmapsPage", "ListRoadmaps"],
|
|
381
381
|
context: t
|
|
382
382
|
}), [h, b] = u(null), x = async () => {
|
|
383
383
|
b(null);
|
|
384
384
|
try {
|
|
385
|
-
await n(l({ variables: { id: a } })),
|
|
385
|
+
await n(l({ variables: { id: a } })), c("/products/roadmaps-page");
|
|
386
386
|
} catch (e) {
|
|
387
387
|
b(e instanceof Error ? e.message : "The roadmap could not be deleted.");
|
|
388
388
|
}
|
|
@@ -396,21 +396,21 @@ function z({ roadmapId: a, name: o }) {
|
|
|
396
396
|
size: "sm",
|
|
397
397
|
variant: "outline",
|
|
398
398
|
"data-testid": "roadmap-edit",
|
|
399
|
-
onClick: () =>
|
|
399
|
+
onClick: () => c(o("/products/edit-roadmap-page", a)),
|
|
400
400
|
children: [/* @__PURE__ */ _(f, { className: "mr-1 h-4 w-4" }), "Edit"]
|
|
401
401
|
}),
|
|
402
402
|
/* @__PURE__ */ v(y, {
|
|
403
403
|
size: "sm",
|
|
404
404
|
variant: "outline",
|
|
405
405
|
"data-testid": "roadmap-analytics",
|
|
406
|
-
onClick: () =>
|
|
406
|
+
onClick: () => c(o("/products/roadmap-analytics-page", a)),
|
|
407
407
|
children: [/* @__PURE__ */ _(d, { className: "mr-1 h-4 w-4" }), "Analytics"]
|
|
408
408
|
}),
|
|
409
409
|
/* @__PURE__ */ _(r, {
|
|
410
410
|
label: "Delete",
|
|
411
411
|
variant: "outline",
|
|
412
412
|
icon: /* @__PURE__ */ _(m, { className: "mr-1 h-4 w-4" }),
|
|
413
|
-
title: `Delete ${
|
|
413
|
+
title: `Delete ${s}?`,
|
|
414
414
|
description: "The roadmap and its items are deleted. This cannot be undone here.",
|
|
415
415
|
confirmLabel: "Delete roadmap",
|
|
416
416
|
destructive: !0,
|
|
@@ -1,4 +1,33 @@
|
|
|
1
|
+
interface NnlItem {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
status: string;
|
|
5
|
+
startDate: string | null;
|
|
6
|
+
endDate: string | null;
|
|
7
|
+
horizon: 'NOW' | 'NEXT' | 'LATER' | null;
|
|
8
|
+
swimlane: string | null;
|
|
9
|
+
sortOrder: number;
|
|
10
|
+
confidence: number | null;
|
|
11
|
+
riskLevel: 'LOW' | 'MEDIUM' | 'HIGH' | null;
|
|
12
|
+
riskNote: string | null;
|
|
13
|
+
featureRequestDemand: {
|
|
14
|
+
requests: number;
|
|
15
|
+
votes: number;
|
|
16
|
+
} | null;
|
|
17
|
+
}
|
|
18
|
+
/** Icon + text label (never colour alone) for a risk level; the note (if any) shows on hover/focus via a
|
|
19
|
+
* tooltip, which is keyboard-reachable because the trigger is a real, focusable button. Exported for
|
|
20
|
+
* `roadmaps/RoadmapPresentation.tsx` (PRM-11), which reuses this exact chip rather than re-deriving risk styling. */
|
|
21
|
+
export declare function RiskIndicator({ level, note, }: {
|
|
22
|
+
level: NnlItem['riskLevel'];
|
|
23
|
+
note: string | null;
|
|
24
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
25
|
+
/** Exported for `roadmaps/RoadmapPresentation.tsx` (PRM-11) — see `RiskIndicator` above. */
|
|
26
|
+
export declare function ConfidenceBadge({ confidence }: {
|
|
27
|
+
confidence: number | null;
|
|
28
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
1
29
|
export declare function RoadmapNowNextLater({ roadmapId }: {
|
|
2
30
|
roadmapId: string;
|
|
3
31
|
}): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export {};
|
|
4
33
|
//# sourceMappingURL=RoadmapNowNextLater.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoadmapNowNextLater.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/roadmaps/RoadmapNowNextLater.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RoadmapNowNextLater.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/roadmaps/RoadmapNowNextLater.tsx"],"names":[],"mappings":"AAmFA,UAAU,OAAO;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;IACzC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,IAAI,CAAC;IAC5C,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,oBAAoB,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CAClE;AAqGD;;qHAEqH;AACrH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,IAAI,GACL,EAAE;IACD,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB,kDA4BA;AAED,4FAA4F;AAC5F,wBAAgB,eAAe,CAAC,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,kDAW5E;AAuJD,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,2CAkXvE"}
|