@burdenoff/microfe-planmagnet 2026.930.15 → 2026.930.16
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/comments/RoadmapComments.d.ts +29 -0
- package/dist/planmagnet/comments/RoadmapComments.d.ts.map +1 -0
- package/dist/planmagnet/comments/RoadmapComments.js +310 -0
- package/dist/planmagnet/comments/RoadmapComments.js.map +1 -0
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js +130 -112
- package/dist/planmagnet/pages/ProductsRoadmapDetailPagePage.js.map +1 -1
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.d.ts.map +1 -1
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js +157 -151
- package/dist/planmagnet/roadmaps/RoadmapNowNextLater.js.map +1 -1
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.d.ts +4 -0
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.d.ts.map +1 -0
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.js +370 -0
- package/dist/planmagnet/roadmaps/RoadmapReviewPanel.js.map +1 -0
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.d.ts +4 -0
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.d.ts.map +1 -0
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.js +396 -0
- package/dist/planmagnet/roadmaps/RoadmapVersionsPanel.js.map +1 -0
- package/package.json +1 -1
|
@@ -3,17 +3,20 @@ import { PersonName as t } from "../people/People.js";
|
|
|
3
3
|
import { readUrlParam as n, writeUrlParam as r } from "../utils/urlParam.js";
|
|
4
4
|
import { PlanningFocusBadge as i, planningFocusLabel as a } from "../roadmaps/planningFocus.js";
|
|
5
5
|
import { RemoveRoadmapItemButton as o, RoadmapHeaderActions as s, RoadmapItemDialog as c } from "../roadmaps/RoadmapControls.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
6
|
+
import { RoadmapDiscussionPanel as l, RoadmapItemCommentsButton as u } from "../comments/RoadmapComments.js";
|
|
7
|
+
import { RoadmapNowNextLater as d } from "../roadmaps/RoadmapNowNextLater.js";
|
|
8
|
+
import { RoadmapPresentation as f } from "../roadmaps/RoadmapPresentation.js";
|
|
9
|
+
import { RoadmapReviewPanel as p } from "../roadmaps/RoadmapReviewPanel.js";
|
|
10
|
+
import { RoadmapVersionsPanel as m } from "../roadmaps/RoadmapVersionsPanel.js";
|
|
11
|
+
import { useState as h } from "react";
|
|
12
|
+
import { Calendar as g, Loader2 as _, Map as v } from "lucide-react";
|
|
13
|
+
import { useParams as y } from "react-router";
|
|
14
|
+
import { gql as b } from "@apollo/client";
|
|
15
|
+
import { useQuery as x } from "@apollo/client/react";
|
|
16
|
+
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
17
|
+
import { Badge as w, Card as T, CardContent as E, CardHeader as D, CardTitle as O } from "@burdenoff/fe-libs/ui";
|
|
15
18
|
//#region src/planmagnet/pages/ProductsRoadmapDetailPagePage.tsx
|
|
16
|
-
var
|
|
19
|
+
var k = b`
|
|
17
20
|
query GetRoadmapDetailPage($id: ID!) {
|
|
18
21
|
planmagnetRoadmap(id: $id) {
|
|
19
22
|
id
|
|
@@ -49,7 +52,7 @@ var T = g`
|
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
|
-
`,
|
|
55
|
+
`, A = (e) => e === "timeline" || e === "nnl", j = {
|
|
53
56
|
TODO: "bg-gray-100 text-gray-800",
|
|
54
57
|
IN_PROGRESS: "bg-blue-100 text-blue-800",
|
|
55
58
|
DONE: "bg-green-100 text-green-800",
|
|
@@ -57,106 +60,106 @@ var T = g`
|
|
|
57
60
|
BLOCKED: "bg-red-100 text-red-800",
|
|
58
61
|
PLANNED: "bg-yellow-100 text-yellow-800"
|
|
59
62
|
};
|
|
60
|
-
function
|
|
61
|
-
let { workspaceId:
|
|
63
|
+
function M() {
|
|
64
|
+
let { workspaceId: b } = e(), M = y().id ?? "", [N, P] = h(() => {
|
|
62
65
|
let e = n("view");
|
|
63
|
-
return
|
|
64
|
-
}),
|
|
65
|
-
|
|
66
|
-
}, { data:
|
|
67
|
-
variables: { id:
|
|
68
|
-
skip: !
|
|
66
|
+
return A(e) ? e : "timeline";
|
|
67
|
+
}), F = (e) => {
|
|
68
|
+
P(e), r("view", e === "timeline" ? null : e);
|
|
69
|
+
}, { data: I, loading: L, error: R } = x(k, {
|
|
70
|
+
variables: { id: M },
|
|
71
|
+
skip: !M
|
|
69
72
|
});
|
|
70
|
-
if (
|
|
73
|
+
if (L && !I) return /* @__PURE__ */ S("div", {
|
|
71
74
|
className: "flex items-center justify-center p-12",
|
|
72
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ S(_, { className: "h-8 w-8 animate-spin text-muted-foreground" })
|
|
73
76
|
});
|
|
74
|
-
if (
|
|
77
|
+
if (R) return /* @__PURE__ */ C("div", {
|
|
75
78
|
className: "p-6 text-destructive",
|
|
76
|
-
children: ["Failed to load roadmap: ",
|
|
79
|
+
children: ["Failed to load roadmap: ", R.message]
|
|
77
80
|
});
|
|
78
|
-
let
|
|
79
|
-
if (!
|
|
81
|
+
let z = I?.planmagnetRoadmap;
|
|
82
|
+
if (!z) return /* @__PURE__ */ S("div", {
|
|
80
83
|
className: "p-6 text-muted-foreground",
|
|
81
84
|
children: "Roadmap not found."
|
|
82
85
|
});
|
|
83
|
-
let
|
|
84
|
-
for (let e of
|
|
86
|
+
let B = (z.items ?? []).slice().sort((e, t) => e.sortOrder - t.sortOrder), V = B.filter((e) => e.status === "COMPLETED" || e.status === "DONE"), H = B.length > 0 ? Math.round(V.length / B.length * 100) : 0, U = [...new Set(B.map((e) => e.swimlane).filter(Boolean))], W = {};
|
|
87
|
+
for (let e of B) {
|
|
85
88
|
let t = e.swimlane ?? "Uncategorized";
|
|
86
|
-
|
|
89
|
+
W[t] || (W[t] = []), W[t].push(e);
|
|
87
90
|
}
|
|
88
|
-
return /* @__PURE__ */
|
|
91
|
+
return /* @__PURE__ */ C("div", {
|
|
89
92
|
className: "space-y-6 p-6",
|
|
90
93
|
children: [
|
|
91
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ C("div", {
|
|
92
95
|
className: "flex items-center justify-between",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
96
|
+
children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C("div", {
|
|
94
97
|
className: "flex items-center gap-2",
|
|
95
|
-
children: [/* @__PURE__ */ v
|
|
98
|
+
children: [/* @__PURE__ */ S(v, { className: "h-5 w-5 text-primary" }), /* @__PURE__ */ S("h1", {
|
|
96
99
|
className: "text-2xl font-semibold",
|
|
97
|
-
children:
|
|
100
|
+
children: z.name
|
|
98
101
|
})]
|
|
99
|
-
}), /* @__PURE__ */
|
|
102
|
+
}), /* @__PURE__ */ S("p", {
|
|
100
103
|
className: "text-sm text-muted-foreground mt-1",
|
|
101
|
-
children:
|
|
102
|
-
})] }), /* @__PURE__ */
|
|
104
|
+
children: z.description ?? "No description"
|
|
105
|
+
})] }), /* @__PURE__ */ C("div", {
|
|
103
106
|
className: "flex flex-col items-end gap-2",
|
|
104
|
-
children: [/* @__PURE__ */
|
|
107
|
+
children: [/* @__PURE__ */ C("div", {
|
|
105
108
|
className: "flex items-center gap-2",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
107
|
-
roadmapName:
|
|
108
|
-
roadmapDescription:
|
|
109
|
-
view:
|
|
110
|
-
items:
|
|
111
|
-
}), /* @__PURE__ */
|
|
112
|
-
roadmapId:
|
|
113
|
-
name:
|
|
109
|
+
children: [/* @__PURE__ */ S(f, {
|
|
110
|
+
roadmapName: z.name,
|
|
111
|
+
roadmapDescription: z.description,
|
|
112
|
+
view: N,
|
|
113
|
+
items: B
|
|
114
|
+
}), /* @__PURE__ */ S(s, {
|
|
115
|
+
roadmapId: z.id,
|
|
116
|
+
name: z.name
|
|
114
117
|
})]
|
|
115
|
-
}), /* @__PURE__ */
|
|
118
|
+
}), /* @__PURE__ */ C("div", {
|
|
116
119
|
className: "flex gap-2",
|
|
117
|
-
children: [/* @__PURE__ */
|
|
118
|
-
variant:
|
|
120
|
+
children: [/* @__PURE__ */ S(w, {
|
|
121
|
+
variant: z.isPublic ? "default" : "secondary",
|
|
119
122
|
className: "capitalize",
|
|
120
|
-
children:
|
|
121
|
-
}), /* @__PURE__ */
|
|
123
|
+
children: z.isPublic ? "public" : "private"
|
|
124
|
+
}), /* @__PURE__ */ S(i, { focus: z.planningFocus })]
|
|
122
125
|
})]
|
|
123
126
|
})]
|
|
124
127
|
}),
|
|
125
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ S("div", {
|
|
126
129
|
className: "grid grid-cols-2 md:grid-cols-5 gap-4",
|
|
127
130
|
children: [
|
|
128
131
|
{
|
|
129
132
|
label: "Progress",
|
|
130
|
-
value: `${
|
|
133
|
+
value: `${H}%`
|
|
131
134
|
},
|
|
132
135
|
{
|
|
133
136
|
label: "Total Items",
|
|
134
|
-
value:
|
|
137
|
+
value: B.length
|
|
135
138
|
},
|
|
136
139
|
{
|
|
137
140
|
label: "Completed",
|
|
138
|
-
value:
|
|
141
|
+
value: V.length
|
|
139
142
|
},
|
|
140
143
|
{
|
|
141
144
|
label: "Planning focus",
|
|
142
|
-
value: a(
|
|
145
|
+
value: a(z.planningFocus)
|
|
143
146
|
},
|
|
144
147
|
{
|
|
145
148
|
label: "Visibility",
|
|
146
|
-
value:
|
|
149
|
+
value: z.isPublic ? "Public" : "Private"
|
|
147
150
|
}
|
|
148
|
-
].map((e) => /* @__PURE__ */
|
|
151
|
+
].map((e) => /* @__PURE__ */ S(T, { children: /* @__PURE__ */ C(E, {
|
|
149
152
|
className: "pt-4 text-center",
|
|
150
|
-
children: [/* @__PURE__ */
|
|
153
|
+
children: [/* @__PURE__ */ S("p", {
|
|
151
154
|
className: "text-xs text-muted-foreground",
|
|
152
155
|
children: e.label
|
|
153
|
-
}), /* @__PURE__ */
|
|
156
|
+
}), /* @__PURE__ */ S("p", {
|
|
154
157
|
className: "text-lg font-semibold capitalize",
|
|
155
158
|
children: e.value
|
|
156
159
|
})]
|
|
157
160
|
}) }, e.label))
|
|
158
161
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ S("div", {
|
|
160
163
|
className: "flex items-center gap-2",
|
|
161
164
|
role: "group",
|
|
162
165
|
"aria-label": "Roadmap view",
|
|
@@ -167,68 +170,68 @@ function O() {
|
|
|
167
170
|
}, {
|
|
168
171
|
key: "nnl",
|
|
169
172
|
label: "Now / Next / Later"
|
|
170
|
-
}].map((e) => /* @__PURE__ */
|
|
173
|
+
}].map((e) => /* @__PURE__ */ S("button", {
|
|
171
174
|
type: "button",
|
|
172
|
-
"aria-pressed":
|
|
173
|
-
onClick: () =>
|
|
174
|
-
className: `px-2 py-1 text-xs rounded-md ${
|
|
175
|
+
"aria-pressed": N === e.key,
|
|
176
|
+
onClick: () => F(e.key),
|
|
177
|
+
className: `px-2 py-1 text-xs rounded-md ${N === e.key ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground"}`,
|
|
175
178
|
children: e.label
|
|
176
179
|
}, e.key))
|
|
177
180
|
}),
|
|
178
|
-
|
|
179
|
-
|
|
181
|
+
N === "nnl" && /* @__PURE__ */ S(d, { roadmapId: z.id }),
|
|
182
|
+
N === "timeline" && /* @__PURE__ */ C("div", {
|
|
180
183
|
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
181
|
-
children: [/* @__PURE__ */
|
|
184
|
+
children: [/* @__PURE__ */ C("div", {
|
|
182
185
|
className: "lg:col-span-2 space-y-6",
|
|
183
186
|
children: [
|
|
184
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ C(T, { children: [/* @__PURE__ */ C(D, {
|
|
185
188
|
className: "flex flex-row items-center justify-between gap-2",
|
|
186
|
-
children: [/* @__PURE__ */
|
|
187
|
-
roadmapId:
|
|
188
|
-
lanes:
|
|
189
|
+
children: [/* @__PURE__ */ S(O, { children: "Progress Overview" }), /* @__PURE__ */ S(c, {
|
|
190
|
+
roadmapId: z.id,
|
|
191
|
+
lanes: U
|
|
189
192
|
})]
|
|
190
|
-
}), /* @__PURE__ */
|
|
193
|
+
}), /* @__PURE__ */ C(E, { children: [/* @__PURE__ */ C("div", {
|
|
191
194
|
className: "flex justify-between text-sm mb-2",
|
|
192
|
-
children: [/* @__PURE__ */
|
|
195
|
+
children: [/* @__PURE__ */ S("span", {
|
|
193
196
|
className: "text-muted-foreground",
|
|
194
197
|
children: "Overall Completion"
|
|
195
|
-
}), /* @__PURE__ */
|
|
198
|
+
}), /* @__PURE__ */ C("span", {
|
|
196
199
|
className: "font-medium",
|
|
197
|
-
children: [
|
|
200
|
+
children: [H, "%"]
|
|
198
201
|
})]
|
|
199
|
-
}), /* @__PURE__ */
|
|
202
|
+
}), /* @__PURE__ */ S("div", {
|
|
200
203
|
className: "w-full h-4 rounded-full bg-muted overflow-hidden",
|
|
201
|
-
children: /* @__PURE__ */
|
|
204
|
+
children: /* @__PURE__ */ S("div", {
|
|
202
205
|
className: "h-full bg-primary rounded-full transition-all",
|
|
203
|
-
style: { width: `${
|
|
206
|
+
style: { width: `${H}%` }
|
|
204
207
|
})
|
|
205
208
|
})] })] }),
|
|
206
|
-
|
|
209
|
+
B.length === 0 && /* @__PURE__ */ C("p", {
|
|
207
210
|
className: "rounded-md border border-dashed p-6 text-center text-sm text-muted-foreground",
|
|
208
211
|
children: [
|
|
209
212
|
"This roadmap has no items yet. Use ",
|
|
210
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ S("span", {
|
|
211
214
|
className: "font-medium",
|
|
212
215
|
children: "Add item"
|
|
213
216
|
}),
|
|
214
217
|
" to plan the first one."
|
|
215
218
|
]
|
|
216
219
|
}),
|
|
217
|
-
Object.entries(
|
|
220
|
+
Object.entries(W).map(([e, t]) => /* @__PURE__ */ C(T, { children: [/* @__PURE__ */ S(D, { children: /* @__PURE__ */ C(O, { children: [
|
|
218
221
|
e,
|
|
219
222
|
" (",
|
|
220
223
|
t.length,
|
|
221
224
|
")"
|
|
222
|
-
] }) }), /* @__PURE__ */
|
|
225
|
+
] }) }), /* @__PURE__ */ S(E, {
|
|
223
226
|
className: "space-y-3",
|
|
224
|
-
children: t.map((e) => /* @__PURE__ */
|
|
227
|
+
children: t.map((e) => /* @__PURE__ */ C("div", {
|
|
225
228
|
className: "flex items-center justify-between border rounded-md p-3",
|
|
226
|
-
children: [/* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
229
|
+
children: [/* @__PURE__ */ C("div", { children: [
|
|
230
|
+
/* @__PURE__ */ S("p", {
|
|
228
231
|
className: "text-sm font-medium",
|
|
229
232
|
children: e.title
|
|
230
233
|
}),
|
|
231
|
-
e.featureRequestDemand && e.featureRequestDemand.requests > 0 && /* @__PURE__ */
|
|
234
|
+
e.featureRequestDemand && e.featureRequestDemand.requests > 0 && /* @__PURE__ */ C("p", {
|
|
232
235
|
className: "text-xs text-muted-foreground",
|
|
233
236
|
"data-testid": "roadmap-item-demand",
|
|
234
237
|
children: [
|
|
@@ -242,36 +245,41 @@ function O() {
|
|
|
242
245
|
e.featureRequestDemand.votes === 1 ? "" : "s"
|
|
243
246
|
]
|
|
244
247
|
}),
|
|
245
|
-
e.description && /* @__PURE__ */
|
|
248
|
+
e.description && /* @__PURE__ */ S("p", {
|
|
246
249
|
className: "text-xs text-muted-foreground",
|
|
247
250
|
children: e.description.length > 60 ? `${e.description.slice(0, 60)}…` : e.description
|
|
248
251
|
}),
|
|
249
|
-
(e.startDate || e.endDate) && /* @__PURE__ */
|
|
252
|
+
(e.startDate || e.endDate) && /* @__PURE__ */ C("div", {
|
|
250
253
|
className: "flex items-center gap-1 mt-1 text-xs text-muted-foreground",
|
|
251
254
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
255
|
+
/* @__PURE__ */ S(g, { className: "h-3 w-3" }),
|
|
253
256
|
e.startDate ? new Date(e.startDate).toLocaleDateString() : "?",
|
|
254
257
|
" - ",
|
|
255
258
|
e.endDate ? new Date(e.endDate).toLocaleDateString() : "?"
|
|
256
259
|
]
|
|
257
260
|
})
|
|
258
|
-
] }), /* @__PURE__ */
|
|
261
|
+
] }), /* @__PURE__ */ C("div", {
|
|
259
262
|
className: "flex items-center gap-2",
|
|
260
263
|
children: [
|
|
261
|
-
e.color && /* @__PURE__ */
|
|
264
|
+
e.color && /* @__PURE__ */ S("div", {
|
|
262
265
|
className: "h-3 w-3 rounded-full",
|
|
263
266
|
style: { backgroundColor: e.color }
|
|
264
267
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
className: `text-xs px-2 py-0.5 rounded-full capitalize ${
|
|
268
|
+
/* @__PURE__ */ S("span", {
|
|
269
|
+
className: `text-xs px-2 py-0.5 rounded-full capitalize ${j[e.status] ?? "bg-gray-100"}`,
|
|
267
270
|
children: e.status.toLowerCase().replace("_", " ")
|
|
268
271
|
}),
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
roadmapId:
|
|
272
|
+
/* @__PURE__ */ S(u, {
|
|
273
|
+
roadmapId: z.id,
|
|
274
|
+
itemId: e.id,
|
|
275
|
+
itemTitle: e.title
|
|
276
|
+
}),
|
|
277
|
+
/* @__PURE__ */ S(c, {
|
|
278
|
+
roadmapId: z.id,
|
|
271
279
|
item: e,
|
|
272
|
-
lanes:
|
|
280
|
+
lanes: U
|
|
273
281
|
}),
|
|
274
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ S(o, {
|
|
275
283
|
id: e.id,
|
|
276
284
|
title: e.title
|
|
277
285
|
})
|
|
@@ -280,47 +288,57 @@ function O() {
|
|
|
280
288
|
}, e.id))
|
|
281
289
|
})] }, e))
|
|
282
290
|
]
|
|
283
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ S("div", {
|
|
284
292
|
className: "space-y-6",
|
|
285
|
-
children: /* @__PURE__ */
|
|
293
|
+
children: /* @__PURE__ */ C(T, { children: [/* @__PURE__ */ S(D, { children: /* @__PURE__ */ S(O, { children: "Details" }) }), /* @__PURE__ */ C(E, {
|
|
286
294
|
className: "space-y-2 text-sm",
|
|
287
295
|
children: [
|
|
288
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ C("div", {
|
|
289
297
|
className: "flex justify-between",
|
|
290
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ S("span", {
|
|
291
299
|
className: "text-muted-foreground",
|
|
292
300
|
children: "Planning focus"
|
|
293
|
-
}), /* @__PURE__ */
|
|
301
|
+
}), /* @__PURE__ */ S(i, { focus: z.planningFocus })]
|
|
294
302
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ C("div", {
|
|
296
304
|
className: "flex justify-between",
|
|
297
|
-
children: [/* @__PURE__ */
|
|
305
|
+
children: [/* @__PURE__ */ S("span", {
|
|
298
306
|
className: "text-muted-foreground",
|
|
299
307
|
children: "Owner"
|
|
300
|
-
}), /* @__PURE__ */
|
|
308
|
+
}), /* @__PURE__ */ S("span", { children: /* @__PURE__ */ S(t, { id: z.ownerId }) })]
|
|
301
309
|
}),
|
|
302
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ C("div", {
|
|
303
311
|
className: "flex justify-between",
|
|
304
|
-
children: [/* @__PURE__ */
|
|
312
|
+
children: [/* @__PURE__ */ S("span", {
|
|
305
313
|
className: "text-muted-foreground",
|
|
306
314
|
children: "Created"
|
|
307
|
-
}), /* @__PURE__ */
|
|
315
|
+
}), /* @__PURE__ */ S("span", { children: new Date(z.createdAt).toLocaleDateString() })]
|
|
308
316
|
}),
|
|
309
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ C("div", {
|
|
310
318
|
className: "flex justify-between",
|
|
311
|
-
children: [/* @__PURE__ */
|
|
319
|
+
children: [/* @__PURE__ */ S("span", {
|
|
312
320
|
className: "text-muted-foreground",
|
|
313
321
|
children: "Updated"
|
|
314
|
-
}), /* @__PURE__ */
|
|
322
|
+
}), /* @__PURE__ */ S("span", { children: new Date(z.updatedAt).toLocaleDateString() })]
|
|
315
323
|
})
|
|
316
324
|
]
|
|
317
325
|
})] })
|
|
318
326
|
})]
|
|
327
|
+
}),
|
|
328
|
+
/* @__PURE__ */ C("div", {
|
|
329
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
330
|
+
children: [/* @__PURE__ */ S("div", {
|
|
331
|
+
className: "lg:col-span-2",
|
|
332
|
+
children: /* @__PURE__ */ S(l, { roadmapId: z.id })
|
|
333
|
+
}), /* @__PURE__ */ C("div", {
|
|
334
|
+
className: "space-y-6",
|
|
335
|
+
children: [/* @__PURE__ */ S(p, { roadmapId: z.id }), /* @__PURE__ */ S(m, { roadmapId: z.id })]
|
|
336
|
+
})]
|
|
319
337
|
})
|
|
320
338
|
]
|
|
321
339
|
});
|
|
322
340
|
}
|
|
323
341
|
//#endregion
|
|
324
|
-
export {
|
|
342
|
+
export { M as ProductsRoadmapDetailPagePage };
|
|
325
343
|
|
|
326
344
|
//# sourceMappingURL=ProductsRoadmapDetailPagePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsRoadmapDetailPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/ProductsRoadmapDetailPagePage.tsx"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport { useState } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Card, CardContent, CardHeader, CardTitle, Badge } from '@burdenoff/fe-libs/ui';\nimport { Map, Calendar, Loader2 } from 'lucide-react';\nimport { usePlanMagnet } from '../providers/PlanMagnetProvider';\nimport { useParams } from 'react-router';\nimport { PersonName } from '../people/People';\nimport { PlanningFocusBadge, planningFocusLabel } from '../roadmaps/planningFocus';\nimport {\n RemoveRoadmapItemButton,\n RoadmapHeaderActions,\n RoadmapItemDialog,\n} from '../roadmaps/RoadmapControls';\nimport { RoadmapNowNextLater } from '../roadmaps/RoadmapNowNextLater';\nimport { RoadmapPresentation } from '../roadmaps/RoadmapPresentation';\nimport { readUrlParam, writeUrlParam } from '../utils/urlParam';\n\nconst GET_ROADMAP = gql`\n query GetRoadmapDetailPage($id: ID!) {\n planmagnetRoadmap(id: $id) {\n id\n workspaceId\n name\n description\n type\n planningFocus\n isPublic\n ownerId\n createdAt\n updatedAt\n items {\n id\n title\n description\n status\n startDate\n endDate\n color\n swimlane\n sortOrder\n projectId\n milestoneId\n horizon\n confidence\n riskLevel\n riskNote\n featureRequestDemand {\n requests\n votes\n }\n }\n }\n }\n`;\n\ninterface RoadmapItemNode {\n id: string;\n title: string;\n description: string | null;\n status: string;\n startDate: string | null;\n endDate: string | null;\n color: string | null;\n swimlane: string | null;\n sortOrder: number;\n projectId: string | null;\n milestoneId: string | null;\n /** Now/Next/Later placement (PRM-06) — read here only to hand off to `RoadmapItemDialog`'s edit form; the\n * Now/Next/Later view itself reads and writes these through its own query/mutation, not this one. */\n horizon: string | null;\n confidence: number | null;\n riskLevel: string | null;\n riskNote: string | null;\n featureRequestDemand: { requests: number; votes: number } | null;\n}\n\ntype RoadmapView = 'timeline' | 'nnl';\nconst isRoadmapView = (v: string | null): v is RoadmapView => v === 'timeline' || v === 'nnl';\n\nconst statusColor: Record<string, string> = {\n TODO: 'bg-gray-100 text-gray-800',\n IN_PROGRESS: 'bg-blue-100 text-blue-800',\n DONE: 'bg-green-100 text-green-800',\n COMPLETED: 'bg-green-100 text-green-800',\n BLOCKED: 'bg-red-100 text-red-800',\n PLANNED: 'bg-yellow-100 text-yellow-800',\n};\n\nexport function ProductsRoadmapDetailPagePage() {\n const { workspaceId } = usePlanMagnet();\n const params = useParams<{ id: string }>();\n const roadmapId = params.id ?? '';\n // Timeline | Now-Next-Later (PRM-06): persisted in the URL (`?view=nnl`) so the applied view is linkable and\n // survives a reload, without touching the host shell's own router — same technique as\n // `board/boardViewConfig.ts`'s `?view=` for saved board views (see `utils/urlParam.ts`).\n const [view, setViewState] = useState<RoadmapView>(() => {\n const fromUrl = readUrlParam('view');\n return isRoadmapView(fromUrl) ? fromUrl : 'timeline';\n });\n const setView = (next: RoadmapView) => {\n setViewState(next);\n writeUrlParam('view', next === 'timeline' ? null : next);\n };\n\n const {\n data,\n loading,\n error,\n } = // eslint-disable-next-line @typescript-eslint/no-explicit-any\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n useQuery<Record<string, any>>(GET_ROADMAP, {\n variables: { id: roadmapId },\n skip: !roadmapId,\n });\n\n // Only before the first load: a refetch must not blank the page (it\n\n // unmounts every component on it and loses their state).\n\n if (loading && !data) {\n return (\n <div className=\"flex items-center justify-center p-12\">\n <Loader2 className=\"h-8 w-8 animate-spin text-muted-foreground\" />\n </div>\n );\n }\n\n if (error) {\n return <div className=\"p-6 text-destructive\">Failed to load roadmap: {error.message}</div>;\n }\n\n const roadmap = data?.planmagnetRoadmap;\n if (!roadmap) return <div className=\"p-6 text-muted-foreground\">Roadmap not found.</div>;\n\n const items: RoadmapItemNode[] = (roadmap.items ?? [])\n .slice()\n .sort((a: RoadmapItemNode, b: RoadmapItemNode) => a.sortOrder - b.sortOrder);\n const completedItems = items.filter((i) => i.status === 'COMPLETED' || i.status === 'DONE');\n const progress = items.length > 0 ? Math.round((completedItems.length / items.length) * 100) : 0;\n\n const lanes = [...new Set(items.map((i) => i.swimlane).filter(Boolean))] as string[];\n\n // Group items by swimlane\n const swimlaneGroups: Record<string, RoadmapItemNode[]> = {};\n for (const item of items) {\n const lane = item.swimlane ?? 'Uncategorized';\n if (!swimlaneGroups[lane]) swimlaneGroups[lane] = [];\n swimlaneGroups[lane].push(item);\n }\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div>\n <div className=\"flex items-center gap-2\">\n <Map className=\"h-5 w-5 text-primary\" />\n <h1 className=\"text-2xl font-semibold\">{roadmap.name}</h1>\n </div>\n <p className=\"text-sm text-muted-foreground mt-1\">\n {roadmap.description ?? 'No description'}\n </p>\n </div>\n <div className=\"flex flex-col items-end gap-2\">\n <div className=\"flex items-center gap-2\">\n {/* PRM-11: reuses this same `items` list (already carries horizon/confidence/risk/dates) rather\n than firing a query of its own. */}\n <RoadmapPresentation\n roadmapName={roadmap.name}\n roadmapDescription={roadmap.description}\n view={view}\n items={items}\n />\n <RoadmapHeaderActions roadmapId={roadmap.id} name={roadmap.name} />\n </div>\n <div className=\"flex gap-2\">\n <Badge variant={roadmap.isPublic ? 'default' : 'secondary'} className=\"capitalize\">\n {roadmap.isPublic ? 'public' : 'private'}\n </Badge>\n <PlanningFocusBadge focus={roadmap.planningFocus} />\n </div>\n </div>\n </div>\n\n <div className=\"grid grid-cols-2 md:grid-cols-5 gap-4\">\n {[\n { label: 'Progress', value: `${progress}%` },\n { label: 'Total Items', value: items.length },\n { label: 'Completed', value: completedItems.length },\n { label: 'Planning focus', value: planningFocusLabel(roadmap.planningFocus) },\n { label: 'Visibility', value: roadmap.isPublic ? 'Public' : 'Private' },\n ].map((s) => (\n <Card key={s.label}>\n <CardContent className=\"pt-4 text-center\">\n <p className=\"text-xs text-muted-foreground\">{s.label}</p>\n <p className=\"text-lg font-semibold capitalize\">{s.value}</p>\n </CardContent>\n </Card>\n ))}\n </div>\n\n <div\n className=\"flex items-center gap-2\"\n role=\"group\"\n aria-label=\"Roadmap view\"\n data-testid=\"roadmap-view-toggle\"\n >\n {(\n [\n { key: 'timeline', label: 'Timeline' },\n { key: 'nnl', label: 'Now / Next / Later' },\n ] as const\n ).map((v) => (\n <button\n key={v.key}\n type=\"button\"\n aria-pressed={view === v.key}\n onClick={() => setView(v.key)}\n className={`px-2 py-1 text-xs rounded-md ${view === v.key ? 'bg-primary text-primary-foreground' : 'bg-muted text-muted-foreground'}`}\n >\n {v.label}\n </button>\n ))}\n </div>\n\n {view === 'nnl' && <RoadmapNowNextLater roadmapId={roadmap.id} />}\n\n {view === 'timeline' && (\n <div className=\"grid grid-cols-1 lg:grid-cols-3 gap-6\">\n <div className=\"lg:col-span-2 space-y-6\">\n <Card>\n <CardHeader className=\"flex flex-row items-center justify-between gap-2\">\n <CardTitle>Progress Overview</CardTitle>\n <RoadmapItemDialog roadmapId={roadmap.id} lanes={lanes} />\n </CardHeader>\n <CardContent>\n <div className=\"flex justify-between text-sm mb-2\">\n <span className=\"text-muted-foreground\">Overall Completion</span>\n <span className=\"font-medium\">{progress}%</span>\n </div>\n <div className=\"w-full h-4 rounded-full bg-muted overflow-hidden\">\n <div\n className=\"h-full bg-primary rounded-full transition-all\"\n style={{ width: `${progress}%` }}\n />\n </div>\n </CardContent>\n </Card>\n\n {items.length === 0 && (\n <p className=\"rounded-md border border-dashed p-6 text-center text-sm text-muted-foreground\">\n This roadmap has no items yet. Use <span className=\"font-medium\">Add item</span> to\n plan the first one.\n </p>\n )}\n {Object.entries(swimlaneGroups).map(([lane, laneItems]) => (\n <Card key={lane}>\n <CardHeader>\n <CardTitle>\n {lane} ({laneItems.length})\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n {laneItems.map((item) => (\n <div\n key={item.id}\n className=\"flex items-center justify-between border rounded-md p-3\"\n >\n <div>\n <p className=\"text-sm font-medium\">{item.title}</p>\n {/* PRM-24: demand behind the initiative, counted by the server. */}\n {item.featureRequestDemand && item.featureRequestDemand.requests > 0 && (\n <p\n className=\"text-xs text-muted-foreground\"\n data-testid=\"roadmap-item-demand\"\n >\n {item.featureRequestDemand.requests} feature request\n {item.featureRequestDemand.requests === 1 ? '' : 's'} ·{' '}\n {item.featureRequestDemand.votes} vote\n {item.featureRequestDemand.votes === 1 ? '' : 's'}\n </p>\n )}\n {item.description && (\n <p className=\"text-xs text-muted-foreground\">\n {item.description.length > 60\n ? `${item.description.slice(0, 60)}…`\n : item.description}\n </p>\n )}\n {(item.startDate || item.endDate) && (\n <div className=\"flex items-center gap-1 mt-1 text-xs text-muted-foreground\">\n <Calendar className=\"h-3 w-3\" />\n {item.startDate ? new Date(item.startDate).toLocaleDateString() : '?'}\n {' - '}\n {item.endDate ? new Date(item.endDate).toLocaleDateString() : '?'}\n </div>\n )}\n </div>\n <div className=\"flex items-center gap-2\">\n {item.color && (\n <div\n className=\"h-3 w-3 rounded-full\"\n style={{ backgroundColor: item.color }}\n />\n )}\n <span\n className={`text-xs px-2 py-0.5 rounded-full capitalize ${statusColor[item.status] ?? 'bg-gray-100'}`}\n >\n {item.status.toLowerCase().replace('_', ' ')}\n </span>\n <RoadmapItemDialog roadmapId={roadmap.id} item={item} lanes={lanes} />\n <RemoveRoadmapItemButton id={item.id} title={item.title} />\n </div>\n </div>\n ))}\n </CardContent>\n </Card>\n ))}\n </div>\n\n <div className=\"space-y-6\">\n <Card>\n <CardHeader>\n <CardTitle>Details</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2 text-sm\">\n <div className=\"flex justify-between\">\n <span className=\"text-muted-foreground\">Planning focus</span>\n <PlanningFocusBadge focus={roadmap.planningFocus} />\n </div>\n <div className=\"flex justify-between\">\n <span className=\"text-muted-foreground\">Owner</span>\n <span>\n <PersonName id={roadmap.ownerId} />\n </span>\n </div>\n <div className=\"flex justify-between\">\n <span className=\"text-muted-foreground\">Created</span>\n <span>{new Date(roadmap.createdAt).toLocaleDateString()}</span>\n </div>\n <div className=\"flex justify-between\">\n <span className=\"text-muted-foreground\">Updated</span>\n <span>{new Date(roadmap.updatedAt).toLocaleDateString()}</span>\n </div>\n </CardContent>\n </Card>\n </div>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAoBA,IAAM,IAAc,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DjB,KAAiB,MAAuC,M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.js","names":[],"sources":["../../../src/planmagnet/pages/ProductsRoadmapDetailPagePage.tsx"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport { useState } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery } from '@apollo/client/react';\nimport { Card, CardContent, CardHeader, CardTitle, Badge } from '@burdenoff/fe-libs/ui';\nimport { Map, Calendar, Loader2 } from 'lucide-react';\nimport { usePlanMagnet } from '../providers/PlanMagnetProvider';\nimport { useParams } from 'react-router';\nimport { PersonName } from '../people/People';\nimport { PlanningFocusBadge, planningFocusLabel } from '../roadmaps/planningFocus';\nimport {\n RemoveRoadmapItemButton,\n RoadmapHeaderActions,\n RoadmapItemDialog,\n} from '../roadmaps/RoadmapControls';\nimport { RoadmapNowNextLater } from '../roadmaps/RoadmapNowNextLater';\nimport { RoadmapPresentation } from '../roadmaps/RoadmapPresentation';\nimport { RoadmapReviewPanel } from '../roadmaps/RoadmapReviewPanel';\nimport { RoadmapVersionsPanel } from '../roadmaps/RoadmapVersionsPanel';\nimport { RoadmapDiscussionPanel, RoadmapItemCommentsButton } from '../comments/RoadmapComments';\nimport { readUrlParam, writeUrlParam } from '../utils/urlParam';\n\nconst GET_ROADMAP = gql`\n query GetRoadmapDetailPage($id: ID!) {\n planmagnetRoadmap(id: $id) {\n id\n workspaceId\n name\n description\n type\n planningFocus\n isPublic\n ownerId\n createdAt\n updatedAt\n items {\n id\n title\n description\n status\n startDate\n endDate\n color\n swimlane\n sortOrder\n projectId\n milestoneId\n horizon\n confidence\n riskLevel\n riskNote\n featureRequestDemand {\n requests\n votes\n }\n }\n }\n }\n`;\n\ninterface RoadmapItemNode {\n id: string;\n title: string;\n description: string | null;\n status: string;\n startDate: string | null;\n endDate: string | null;\n color: string | null;\n swimlane: string | null;\n sortOrder: number;\n projectId: string | null;\n milestoneId: string | null;\n /** Now/Next/Later placement (PRM-06) — read here only to hand off to `RoadmapItemDialog`'s edit form; the\n * Now/Next/Later view itself reads and writes these through its own query/mutation, not this one. */\n horizon: string | null;\n confidence: number | null;\n riskLevel: string | null;\n riskNote: string | null;\n featureRequestDemand: { requests: number; votes: number } | null;\n}\n\ntype RoadmapView = 'timeline' | 'nnl';\nconst isRoadmapView = (v: string | null): v is RoadmapView => v === 'timeline' || v === 'nnl';\n\nconst statusColor: Record<string, string> = {\n TODO: 'bg-gray-100 text-gray-800',\n IN_PROGRESS: 'bg-blue-100 text-blue-800',\n DONE: 'bg-green-100 text-green-800',\n COMPLETED: 'bg-green-100 text-green-800',\n BLOCKED: 'bg-red-100 text-red-800',\n PLANNED: 'bg-yellow-100 text-yellow-800',\n};\n\nexport function ProductsRoadmapDetailPagePage() {\n const { workspaceId } = usePlanMagnet();\n const params = useParams<{ id: string }>();\n const roadmapId = params.id ?? '';\n // Timeline | Now-Next-Later (PRM-06): persisted in the URL (`?view=nnl`) so the applied view is linkable and\n // survives a reload, without touching the host shell's own router — same technique as\n // `board/boardViewConfig.ts`'s `?view=` for saved board views (see `utils/urlParam.ts`).\n const [view, setViewState] = useState<RoadmapView>(() => {\n const fromUrl = readUrlParam('view');\n return isRoadmapView(fromUrl) ? fromUrl : 'timeline';\n });\n const setView = (next: RoadmapView) => {\n setViewState(next);\n writeUrlParam('view', next === 'timeline' ? null : next);\n };\n\n const {\n data,\n loading,\n error,\n } = // eslint-disable-next-line @typescript-eslint/no-explicit-any\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n useQuery<Record<string, any>>(GET_ROADMAP, {\n variables: { id: roadmapId },\n skip: !roadmapId,\n });\n\n // Only before the first load: a refetch must not blank the page (it\n\n // unmounts every component on it and loses their state).\n\n if (loading && !data) {\n return (\n <div className=\"flex items-center justify-center p-12\">\n <Loader2 className=\"h-8 w-8 animate-spin text-muted-foreground\" />\n </div>\n );\n }\n\n if (error) {\n return <div className=\"p-6 text-destructive\">Failed to load roadmap: {error.message}</div>;\n }\n\n const roadmap = data?.planmagnetRoadmap;\n if (!roadmap) return <div className=\"p-6 text-muted-foreground\">Roadmap not found.</div>;\n\n const items: RoadmapItemNode[] = (roadmap.items ?? [])\n .slice()\n .sort((a: RoadmapItemNode, b: RoadmapItemNode) => a.sortOrder - b.sortOrder);\n const completedItems = items.filter((i) => i.status === 'COMPLETED' || i.status === 'DONE');\n const progress = items.length > 0 ? Math.round((completedItems.length / items.length) * 100) : 0;\n\n const lanes = [...new Set(items.map((i) => i.swimlane).filter(Boolean))] as string[];\n\n // Group items by swimlane\n const swimlaneGroups: Record<string, RoadmapItemNode[]> = {};\n for (const item of items) {\n const lane = item.swimlane ?? 'Uncategorized';\n if (!swimlaneGroups[lane]) swimlaneGroups[lane] = [];\n swimlaneGroups[lane].push(item);\n }\n\n return (\n <div className=\"space-y-6 p-6\">\n <div className=\"flex items-center justify-between\">\n <div>\n <div className=\"flex items-center gap-2\">\n <Map className=\"h-5 w-5 text-primary\" />\n <h1 className=\"text-2xl font-semibold\">{roadmap.name}</h1>\n </div>\n <p className=\"text-sm text-muted-foreground mt-1\">\n {roadmap.description ?? 'No description'}\n </p>\n </div>\n <div className=\"flex flex-col items-end gap-2\">\n <div className=\"flex items-center gap-2\">\n {/* PRM-11: reuses this same `items` list (already carries horizon/confidence/risk/dates) rather\n than firing a query of its own. */}\n <RoadmapPresentation\n roadmapName={roadmap.name}\n roadmapDescription={roadmap.description}\n view={view}\n items={items}\n />\n <RoadmapHeaderActions roadmapId={roadmap.id} name={roadmap.name} />\n </div>\n <div className=\"flex gap-2\">\n <Badge variant={roadmap.isPublic ? 'default' : 'secondary'} className=\"capitalize\">\n {roadmap.isPublic ? 'public' : 'private'}\n </Badge>\n <PlanningFocusBadge focus={roadmap.planningFocus} />\n </div>\n </div>\n </div>\n\n <div className=\"grid grid-cols-2 md:grid-cols-5 gap-4\">\n {[\n { label: 'Progress', value: `${progress}%` },\n { label: 'Total Items', value: items.length },\n { label: 'Completed', value: completedItems.length },\n { label: 'Planning focus', value: planningFocusLabel(roadmap.planningFocus) },\n { label: 'Visibility', value: roadmap.isPublic ? 'Public' : 'Private' },\n ].map((s) => (\n <Card key={s.label}>\n <CardContent className=\"pt-4 text-center\">\n <p className=\"text-xs text-muted-foreground\">{s.label}</p>\n <p className=\"text-lg font-semibold capitalize\">{s.value}</p>\n </CardContent>\n </Card>\n ))}\n </div>\n\n <div\n className=\"flex items-center gap-2\"\n role=\"group\"\n aria-label=\"Roadmap view\"\n data-testid=\"roadmap-view-toggle\"\n >\n {(\n [\n { key: 'timeline', label: 'Timeline' },\n { key: 'nnl', label: 'Now / Next / Later' },\n ] as const\n ).map((v) => (\n <button\n key={v.key}\n type=\"button\"\n aria-pressed={view === v.key}\n onClick={() => setView(v.key)}\n className={`px-2 py-1 text-xs rounded-md ${view === v.key ? 'bg-primary text-primary-foreground' : 'bg-muted text-muted-foreground'}`}\n >\n {v.label}\n </button>\n ))}\n </div>\n\n {view === 'nnl' && <RoadmapNowNextLater roadmapId={roadmap.id} />}\n\n {view === 'timeline' && (\n <div className=\"grid grid-cols-1 lg:grid-cols-3 gap-6\">\n <div className=\"lg:col-span-2 space-y-6\">\n <Card>\n <CardHeader className=\"flex flex-row items-center justify-between gap-2\">\n <CardTitle>Progress Overview</CardTitle>\n <RoadmapItemDialog roadmapId={roadmap.id} lanes={lanes} />\n </CardHeader>\n <CardContent>\n <div className=\"flex justify-between text-sm mb-2\">\n <span className=\"text-muted-foreground\">Overall Completion</span>\n <span className=\"font-medium\">{progress}%</span>\n </div>\n <div className=\"w-full h-4 rounded-full bg-muted overflow-hidden\">\n <div\n className=\"h-full bg-primary rounded-full transition-all\"\n style={{ width: `${progress}%` }}\n />\n </div>\n </CardContent>\n </Card>\n\n {items.length === 0 && (\n <p className=\"rounded-md border border-dashed p-6 text-center text-sm text-muted-foreground\">\n This roadmap has no items yet. Use <span className=\"font-medium\">Add item</span> to\n plan the first one.\n </p>\n )}\n {Object.entries(swimlaneGroups).map(([lane, laneItems]) => (\n <Card key={lane}>\n <CardHeader>\n <CardTitle>\n {lane} ({laneItems.length})\n </CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-3\">\n {laneItems.map((item) => (\n <div\n key={item.id}\n className=\"flex items-center justify-between border rounded-md p-3\"\n >\n <div>\n <p className=\"text-sm font-medium\">{item.title}</p>\n {/* PRM-24: demand behind the initiative, counted by the server. */}\n {item.featureRequestDemand && item.featureRequestDemand.requests > 0 && (\n <p\n className=\"text-xs text-muted-foreground\"\n data-testid=\"roadmap-item-demand\"\n >\n {item.featureRequestDemand.requests} feature request\n {item.featureRequestDemand.requests === 1 ? '' : 's'} ·{' '}\n {item.featureRequestDemand.votes} vote\n {item.featureRequestDemand.votes === 1 ? '' : 's'}\n </p>\n )}\n {item.description && (\n <p className=\"text-xs text-muted-foreground\">\n {item.description.length > 60\n ? `${item.description.slice(0, 60)}…`\n : item.description}\n </p>\n )}\n {(item.startDate || item.endDate) && (\n <div className=\"flex items-center gap-1 mt-1 text-xs text-muted-foreground\">\n <Calendar className=\"h-3 w-3\" />\n {item.startDate ? new Date(item.startDate).toLocaleDateString() : '?'}\n {' - '}\n {item.endDate ? new Date(item.endDate).toLocaleDateString() : '?'}\n </div>\n )}\n </div>\n <div className=\"flex items-center gap-2\">\n {item.color && (\n <div\n className=\"h-3 w-3 rounded-full\"\n style={{ backgroundColor: item.color }}\n />\n )}\n <span\n className={`text-xs px-2 py-0.5 rounded-full capitalize ${statusColor[item.status] ?? 'bg-gray-100'}`}\n >\n {item.status.toLowerCase().replace('_', ' ')}\n </span>\n <RoadmapItemCommentsButton\n roadmapId={roadmap.id}\n itemId={item.id}\n itemTitle={item.title}\n />\n <RoadmapItemDialog roadmapId={roadmap.id} item={item} lanes={lanes} />\n <RemoveRoadmapItemButton id={item.id} title={item.title} />\n </div>\n </div>\n ))}\n </CardContent>\n </Card>\n ))}\n </div>\n\n <div className=\"space-y-6\">\n <Card>\n <CardHeader>\n <CardTitle>Details</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-2 text-sm\">\n <div className=\"flex justify-between\">\n <span className=\"text-muted-foreground\">Planning focus</span>\n <PlanningFocusBadge focus={roadmap.planningFocus} />\n </div>\n <div className=\"flex justify-between\">\n <span className=\"text-muted-foreground\">Owner</span>\n <span>\n <PersonName id={roadmap.ownerId} />\n </span>\n </div>\n <div className=\"flex justify-between\">\n <span className=\"text-muted-foreground\">Created</span>\n <span>{new Date(roadmap.createdAt).toLocaleDateString()}</span>\n </div>\n <div className=\"flex justify-between\">\n <span className=\"text-muted-foreground\">Updated</span>\n <span>{new Date(roadmap.updatedAt).toLocaleDateString()}</span>\n </div>\n </CardContent>\n </Card>\n </div>\n </div>\n )}\n\n {/* PRM-11: collaboration (discussion, review, versions) is roadmap-level state, not tied to either view\n above — shown regardless of the Timeline/Now-Next-Later toggle. */}\n <div className=\"grid grid-cols-1 lg:grid-cols-3 gap-6\">\n <div className=\"lg:col-span-2\">\n <RoadmapDiscussionPanel roadmapId={roadmap.id} />\n </div>\n <div className=\"space-y-6\">\n <RoadmapReviewPanel roadmapId={roadmap.id} />\n <RoadmapVersionsPanel roadmapId={roadmap.id} />\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,IAAM,IAAc,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DjB,KAAiB,MAAuC,MAAM,cAAc,MAAM,OAElF,IAAsC;CAC1C,MAAM;CACN,aAAa;CACb,MAAM;CACN,WAAW;CACX,SAAS;CACT,SAAS;CACV;AAED,SAAgB,IAAgC;CAC9C,IAAM,EAAE,mBAAgB,GAAe,EAEjC,IADS,GAA2B,CACjB,MAAM,IAIzB,CAAC,GAAM,KAAgB,QAA4B;EACvD,IAAM,IAAU,EAAa,OAAO;AACpC,SAAO,EAAc,EAAQ,GAAG,IAAU;GAC1C,EACI,KAAW,MAAsB;AAErC,EADA,EAAa,EAAK,EAClB,EAAc,QAAQ,MAAS,aAAa,OAAO,EAAK;IAGpD,EACJ,SACA,YACA,aAGA,EAA8B,GAAa;EACzC,WAAW,EAA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.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RoadmapNowNextLater.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/roadmaps/RoadmapNowNextLater.tsx"],"names":[],"mappings":"AAoFA,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;AA0JD,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,2CAmXvE"}
|