@burdenoff/microfe-planmagnet 2026.928.11 → 2026.930.2
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 +43 -1
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/planmagnet/milestones/MilestoneControls.d.ts +41 -0
- package/dist/planmagnet/milestones/MilestoneControls.d.ts.map +1 -0
- package/dist/planmagnet/milestones/MilestoneControls.js +420 -0
- package/dist/planmagnet/milestones/MilestoneControls.js.map +1 -0
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js +60 -57
- package/dist/planmagnet/pages/AnalyticsAnalyticsPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js +116 -89
- package/dist/planmagnet/pages/ProjectsMilestoneDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js +68 -50
- package/dist/planmagnet/pages/ProjectsMilestonesPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.js +151 -134
- package/dist/planmagnet/pages/TasksCreateTaskPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TasksEditTaskPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TasksEditTaskPagePage.js +149 -126
- package/dist/planmagnet/pages/TasksEditTaskPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.js +150 -137
- package/dist/planmagnet/pages/TasksTaskDetailPagePage.js.map +1 -1
- package/dist/planmagnet/pages/TeamTeamPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/TeamTeamPagePage.js +57 -23
- package/dist/planmagnet/pages/TeamTeamPagePage.js.map +1 -1
- package/dist/planmagnet/sprints/SprintControls.d.ts.map +1 -1
- package/dist/planmagnet/sprints/SprintControls.js +312 -179
- package/dist/planmagnet/sprints/SprintControls.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,17 +2,20 @@ import { usePlanMagnet as e, usePlanMagnetNavigate as t } from "../providers/Pla
|
|
|
2
2
|
import { throwOnError as n } from "../utils/mutationResult.js";
|
|
3
3
|
import { WORK_ITEM_PRIORITIES as r } from "../controls/WorkItemControls.js";
|
|
4
4
|
import { estimateHoursText as i, parseEstimateHours as a, parseIntField as o } from "../utils/formValidation.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { MilestoneSelect as s } from "../milestones/MilestoneControls.js";
|
|
6
|
+
import { useMemo as c, useState as l } from "react";
|
|
7
|
+
import { ArrowLeft as u, Save as d } from "lucide-react";
|
|
8
|
+
import { gql as f } from "@apollo/client";
|
|
9
|
+
import { useMutation as p, useQuery as m } from "@apollo/client/react";
|
|
10
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
11
|
+
import { Button as _, Card as v, CardContent as y, CardHeader as b, CardTitle as x, Input as S } from "@burdenoff/fe-libs/ui";
|
|
11
12
|
//#region src/planmagnet/pages/TasksEditTaskPagePage.tsx
|
|
12
|
-
var
|
|
13
|
+
var C = f`
|
|
13
14
|
query GetWorkItem($workItemId: ID!) {
|
|
14
15
|
planmagnetWorkItem(id: $workItemId) {
|
|
15
16
|
id
|
|
17
|
+
projectId
|
|
18
|
+
milestoneId
|
|
16
19
|
title
|
|
17
20
|
description
|
|
18
21
|
type
|
|
@@ -28,7 +31,7 @@ var S = d`
|
|
|
28
31
|
updatedAt
|
|
29
32
|
}
|
|
30
33
|
}
|
|
31
|
-
`,
|
|
34
|
+
`, w = f`
|
|
32
35
|
mutation UpdateWorkItem($workItemId: ID!, $input: PlanmagnetUpdateWorkItemInput!) {
|
|
33
36
|
planmagnetUpdateWorkItem(id: $workItemId, input: $input) {
|
|
34
37
|
id
|
|
@@ -41,15 +44,16 @@ var S = d`
|
|
|
41
44
|
estimateMinutes
|
|
42
45
|
dueDate
|
|
43
46
|
labels
|
|
47
|
+
milestoneId
|
|
44
48
|
updatedAt
|
|
45
49
|
}
|
|
46
50
|
}
|
|
47
51
|
`;
|
|
48
|
-
function
|
|
49
|
-
let { workspaceId:
|
|
50
|
-
variables: { workItemId:
|
|
51
|
-
skip: !
|
|
52
|
-
}), [
|
|
52
|
+
function T() {
|
|
53
|
+
let { workspaceId: f } = e(), T = new URLSearchParams(window.location.search).get("taskId") ?? "", E = t(), { data: D, loading: O, error: k } = m(C, {
|
|
54
|
+
variables: { workItemId: T },
|
|
55
|
+
skip: !f || !T
|
|
56
|
+
}), [A, { loading: j }] = p(w, {
|
|
53
57
|
refetchQueries: [
|
|
54
58
|
"GetWorkItems",
|
|
55
59
|
"GetWorkItemDetail",
|
|
@@ -57,157 +61,160 @@ function w() {
|
|
|
57
61
|
"ProjectBoard"
|
|
58
62
|
],
|
|
59
63
|
awaitRefetchQueries: !0
|
|
60
|
-
}), [
|
|
61
|
-
title:
|
|
62
|
-
description:
|
|
63
|
-
priority:
|
|
64
|
-
type:
|
|
65
|
-
storyPoints:
|
|
66
|
-
labels: (
|
|
67
|
-
dueDate:
|
|
68
|
-
estimateHours: i(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
...L
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
if (!
|
|
75
|
-
|
|
64
|
+
}), [M, N] = l(null), [P, F] = l(!1), I = D?.planmagnetWorkItem, L = c(() => ({
|
|
65
|
+
title: I?.title ?? "",
|
|
66
|
+
description: I?.description ?? "",
|
|
67
|
+
priority: I?.priority ?? "MEDIUM",
|
|
68
|
+
type: I?.type ?? "STORY",
|
|
69
|
+
storyPoints: I?.storyPoints?.toString() ?? "",
|
|
70
|
+
labels: (I?.labels ?? []).join(", "),
|
|
71
|
+
dueDate: I?.dueDate ? String(I.dueDate).slice(0, 10) : "",
|
|
72
|
+
estimateHours: i(I?.estimateMinutes),
|
|
73
|
+
milestoneId: I?.milestoneId ?? ""
|
|
74
|
+
}), [I]), [R, z] = l({}), B = {
|
|
75
|
+
...L,
|
|
76
|
+
...R
|
|
77
|
+
}, V = (e) => z(e), H = o(B.storyPoints, { min: 0 }), U = a(B.estimateHours), W = async () => {
|
|
78
|
+
if (!f || !T || H.invalid || U.invalid) return;
|
|
79
|
+
if (!B.title.trim()) {
|
|
80
|
+
N("A task needs a title.");
|
|
76
81
|
return;
|
|
77
82
|
}
|
|
78
83
|
let e = (e) => e.split(",").map((e) => e.trim()).filter(Boolean), t = {
|
|
79
|
-
title:
|
|
80
|
-
description:
|
|
81
|
-
priority:
|
|
82
|
-
type:
|
|
83
|
-
storyPoints:
|
|
84
|
-
labels: e(
|
|
85
|
-
dueDate:
|
|
86
|
-
estimateMinutes:
|
|
84
|
+
title: B.title.trim(),
|
|
85
|
+
description: B.description.trim() || null,
|
|
86
|
+
priority: B.priority,
|
|
87
|
+
type: B.type,
|
|
88
|
+
storyPoints: H.value ?? null,
|
|
89
|
+
labels: e(B.labels),
|
|
90
|
+
dueDate: B.dueDate || null,
|
|
91
|
+
estimateMinutes: U.minutes ?? null,
|
|
92
|
+
milestoneId: B.milestoneId || null
|
|
87
93
|
}, r = {
|
|
88
|
-
title:
|
|
89
|
-
description:
|
|
90
|
-
priority:
|
|
91
|
-
type:
|
|
92
|
-
storyPoints:
|
|
93
|
-
labels: e(
|
|
94
|
-
dueDate:
|
|
95
|
-
estimateMinutes: a(
|
|
94
|
+
title: L.title,
|
|
95
|
+
description: L.description.trim() || null,
|
|
96
|
+
priority: L.priority,
|
|
97
|
+
type: L.type,
|
|
98
|
+
storyPoints: L.storyPoints === "" ? null : Number(L.storyPoints),
|
|
99
|
+
labels: e(L.labels),
|
|
100
|
+
dueDate: L.dueDate || null,
|
|
101
|
+
estimateMinutes: a(L.estimateHours).minutes ?? null,
|
|
102
|
+
milestoneId: L.milestoneId || null
|
|
96
103
|
}, i = Object.fromEntries(Object.entries(t).filter(([e, t]) => JSON.stringify(t) !== JSON.stringify(r[e])));
|
|
97
|
-
if (
|
|
98
|
-
|
|
104
|
+
if (N(null), F(!1), Object.keys(i).length === 0) {
|
|
105
|
+
F(!0);
|
|
99
106
|
return;
|
|
100
107
|
}
|
|
101
108
|
try {
|
|
102
|
-
await n(
|
|
103
|
-
workItemId:
|
|
109
|
+
await n(A({ variables: {
|
|
110
|
+
workItemId: T,
|
|
104
111
|
input: i
|
|
105
|
-
} })),
|
|
112
|
+
} })), F(!0);
|
|
106
113
|
} catch (e) {
|
|
107
|
-
|
|
114
|
+
N(e instanceof Error ? e.message : "The task could not be saved.");
|
|
108
115
|
}
|
|
109
116
|
};
|
|
110
|
-
if (
|
|
117
|
+
if (O && !D) return /* @__PURE__ */ h("div", {
|
|
111
118
|
className: "flex items-center justify-center p-12",
|
|
112
|
-
children: /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ h("div", { className: "animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full" })
|
|
113
120
|
});
|
|
114
|
-
if (
|
|
121
|
+
if (k) return /* @__PURE__ */ g("div", {
|
|
115
122
|
className: "p-6 text-destructive",
|
|
116
|
-
children: ["Error: ",
|
|
123
|
+
children: ["Error: ", k.message]
|
|
117
124
|
});
|
|
118
|
-
if (!
|
|
125
|
+
if (!D?.planmagnetWorkItem) return /* @__PURE__ */ h("div", {
|
|
119
126
|
className: "p-6 text-muted-foreground",
|
|
120
127
|
children: "Task not found."
|
|
121
128
|
});
|
|
122
|
-
let
|
|
123
|
-
return /* @__PURE__ */
|
|
129
|
+
let G = D.planmagnetWorkItem;
|
|
130
|
+
return /* @__PURE__ */ g("div", {
|
|
124
131
|
className: "space-y-6 p-6 max-w-4xl",
|
|
125
132
|
children: [
|
|
126
|
-
/* @__PURE__ */
|
|
133
|
+
/* @__PURE__ */ g("div", {
|
|
127
134
|
className: "flex items-center justify-between",
|
|
128
|
-
children: [/* @__PURE__ */
|
|
135
|
+
children: [/* @__PURE__ */ g("div", {
|
|
129
136
|
className: "flex items-center gap-3",
|
|
130
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ h(_, {
|
|
131
138
|
variant: "ghost",
|
|
132
139
|
size: "sm",
|
|
133
140
|
"aria-label": "Back to the task",
|
|
134
|
-
onClick: () =>
|
|
135
|
-
children: /* @__PURE__ */
|
|
136
|
-
}), /* @__PURE__ */
|
|
141
|
+
onClick: () => E(`/tasks/task-detail-page?taskId=${encodeURIComponent(T)}`),
|
|
142
|
+
children: /* @__PURE__ */ h(u, { className: "h-4 w-4" })
|
|
143
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("h1", {
|
|
137
144
|
className: "text-2xl font-semibold",
|
|
138
145
|
children: "Edit Task"
|
|
139
|
-
}), /* @__PURE__ */
|
|
146
|
+
}), /* @__PURE__ */ h("p", {
|
|
140
147
|
className: "text-sm text-muted-foreground",
|
|
141
|
-
children:
|
|
148
|
+
children: G.title
|
|
142
149
|
})] })]
|
|
143
|
-
}), /* @__PURE__ */
|
|
150
|
+
}), /* @__PURE__ */ g(_, {
|
|
144
151
|
size: "sm",
|
|
145
|
-
onClick:
|
|
146
|
-
disabled:
|
|
147
|
-
children: [/* @__PURE__ */
|
|
152
|
+
onClick: W,
|
|
153
|
+
disabled: j || H.invalid || U.invalid,
|
|
154
|
+
children: [/* @__PURE__ */ h(d, { className: "mr-1 h-4 w-4" }), j ? "Saving..." : "Save Changes"]
|
|
148
155
|
})]
|
|
149
156
|
}),
|
|
150
|
-
|
|
157
|
+
P && /* @__PURE__ */ h("div", {
|
|
151
158
|
role: "status",
|
|
152
159
|
className: "p-3 bg-muted text-status-success-text rounded-md text-sm",
|
|
153
160
|
children: "Changes saved."
|
|
154
161
|
}),
|
|
155
|
-
|
|
162
|
+
M && /* @__PURE__ */ h("div", {
|
|
156
163
|
role: "alert",
|
|
157
164
|
className: "p-3 bg-destructive/10 text-destructive rounded-md text-sm",
|
|
158
|
-
children:
|
|
165
|
+
children: M
|
|
159
166
|
}),
|
|
160
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ g(v, { children: [/* @__PURE__ */ h(b, { children: /* @__PURE__ */ h(x, { children: "Task Details" }) }), /* @__PURE__ */ g(y, {
|
|
161
168
|
className: "space-y-4",
|
|
162
169
|
children: [
|
|
163
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
164
171
|
className: "text-sm font-medium",
|
|
165
172
|
children: "Title"
|
|
166
|
-
}), /* @__PURE__ */
|
|
167
|
-
value:
|
|
168
|
-
onChange: (e) =>
|
|
169
|
-
...
|
|
173
|
+
}), /* @__PURE__ */ h(S, {
|
|
174
|
+
value: B.title,
|
|
175
|
+
onChange: (e) => V({
|
|
176
|
+
...B,
|
|
170
177
|
title: e.target.value
|
|
171
178
|
}),
|
|
172
179
|
className: "mt-1"
|
|
173
180
|
})] }),
|
|
174
|
-
/* @__PURE__ */
|
|
181
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
175
182
|
className: "text-sm font-medium",
|
|
176
183
|
children: "Description"
|
|
177
|
-
}), /* @__PURE__ */
|
|
184
|
+
}), /* @__PURE__ */ h("textarea", {
|
|
178
185
|
className: "mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm min-h-[100px]",
|
|
179
|
-
value:
|
|
180
|
-
onChange: (e) =>
|
|
181
|
-
...
|
|
186
|
+
value: B.description,
|
|
187
|
+
onChange: (e) => V({
|
|
188
|
+
...B,
|
|
182
189
|
description: e.target.value
|
|
183
190
|
})
|
|
184
191
|
})] }),
|
|
185
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ g("div", {
|
|
186
193
|
className: "grid grid-cols-3 gap-4",
|
|
187
194
|
children: [
|
|
188
|
-
/* @__PURE__ */
|
|
195
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
189
196
|
className: "text-sm font-medium",
|
|
190
197
|
children: "Priority"
|
|
191
|
-
}), /* @__PURE__ */
|
|
198
|
+
}), /* @__PURE__ */ h("select", {
|
|
192
199
|
className: "mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",
|
|
193
|
-
value:
|
|
194
|
-
onChange: (e) =>
|
|
195
|
-
...
|
|
200
|
+
value: B.priority,
|
|
201
|
+
onChange: (e) => V({
|
|
202
|
+
...B,
|
|
196
203
|
priority: e.target.value
|
|
197
204
|
}),
|
|
198
|
-
children: r.map((e) => /* @__PURE__ */
|
|
205
|
+
children: r.map((e) => /* @__PURE__ */ h("option", {
|
|
199
206
|
value: e,
|
|
200
207
|
children: e.toLowerCase()
|
|
201
208
|
}, e))
|
|
202
209
|
})] }),
|
|
203
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
204
211
|
className: "text-sm font-medium",
|
|
205
212
|
children: "Type"
|
|
206
|
-
}), /* @__PURE__ */
|
|
213
|
+
}), /* @__PURE__ */ h("select", {
|
|
207
214
|
className: "mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm",
|
|
208
|
-
value:
|
|
209
|
-
onChange: (e) =>
|
|
210
|
-
...
|
|
215
|
+
value: B.type,
|
|
216
|
+
onChange: (e) => V({
|
|
217
|
+
...B,
|
|
211
218
|
type: e.target.value
|
|
212
219
|
}),
|
|
213
220
|
children: [
|
|
@@ -216,31 +223,31 @@ function w() {
|
|
|
216
223
|
"TASK",
|
|
217
224
|
"EPIC",
|
|
218
225
|
"SUB_TASK"
|
|
219
|
-
].map((e) => /* @__PURE__ */
|
|
226
|
+
].map((e) => /* @__PURE__ */ h("option", {
|
|
220
227
|
value: e,
|
|
221
228
|
children: e.toLowerCase().replace("_", " ")
|
|
222
229
|
}, e))
|
|
223
230
|
})] }),
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
231
|
+
/* @__PURE__ */ g("div", { children: [
|
|
232
|
+
/* @__PURE__ */ h("label", {
|
|
226
233
|
htmlFor: "task-story-points",
|
|
227
234
|
className: "text-sm font-medium",
|
|
228
235
|
children: "Story Points"
|
|
229
236
|
}),
|
|
230
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ h(S, {
|
|
231
238
|
id: "task-story-points",
|
|
232
239
|
type: "number",
|
|
233
240
|
min: 0,
|
|
234
241
|
step: 1,
|
|
235
|
-
value:
|
|
236
|
-
onChange: (e) =>
|
|
237
|
-
...
|
|
242
|
+
value: B.storyPoints,
|
|
243
|
+
onChange: (e) => V({
|
|
244
|
+
...B,
|
|
238
245
|
storyPoints: e.target.value
|
|
239
246
|
}),
|
|
240
|
-
"aria-invalid":
|
|
247
|
+
"aria-invalid": H.invalid,
|
|
241
248
|
className: "mt-1"
|
|
242
249
|
}),
|
|
243
|
-
|
|
250
|
+
H.invalid && /* @__PURE__ */ h("p", {
|
|
244
251
|
role: "alert",
|
|
245
252
|
className: "mt-1 text-xs text-destructive",
|
|
246
253
|
children: "Story points must be a whole number, 0 or more."
|
|
@@ -248,63 +255,79 @@ function w() {
|
|
|
248
255
|
] })
|
|
249
256
|
]
|
|
250
257
|
}),
|
|
251
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ g("div", {
|
|
252
259
|
className: "grid grid-cols-3 gap-4",
|
|
253
260
|
children: [
|
|
254
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
255
262
|
className: "text-sm font-medium",
|
|
256
263
|
children: "Due Date"
|
|
257
|
-
}), /* @__PURE__ */
|
|
264
|
+
}), /* @__PURE__ */ h(S, {
|
|
258
265
|
type: "date",
|
|
259
|
-
value:
|
|
260
|
-
onChange: (e) =>
|
|
261
|
-
...
|
|
266
|
+
value: B.dueDate,
|
|
267
|
+
onChange: (e) => V({
|
|
268
|
+
...B,
|
|
262
269
|
dueDate: e.target.value
|
|
263
270
|
}),
|
|
264
271
|
className: "mt-1"
|
|
265
272
|
})] }),
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ g("div", { children: [
|
|
274
|
+
/* @__PURE__ */ h("label", {
|
|
268
275
|
htmlFor: "task-estimate-hours",
|
|
269
276
|
className: "text-sm font-medium",
|
|
270
277
|
children: "Estimate (hours)"
|
|
271
278
|
}),
|
|
272
|
-
/* @__PURE__ */
|
|
279
|
+
/* @__PURE__ */ h(S, {
|
|
273
280
|
id: "task-estimate-hours",
|
|
274
281
|
type: "number",
|
|
275
282
|
min: 0,
|
|
276
283
|
step: .25,
|
|
277
|
-
value:
|
|
278
|
-
onChange: (e) =>
|
|
279
|
-
...
|
|
284
|
+
value: B.estimateHours,
|
|
285
|
+
onChange: (e) => V({
|
|
286
|
+
...B,
|
|
280
287
|
estimateHours: e.target.value
|
|
281
288
|
}),
|
|
282
|
-
"aria-invalid":
|
|
289
|
+
"aria-invalid": U.invalid,
|
|
283
290
|
"aria-describedby": "task-estimate-hint",
|
|
284
291
|
className: "mt-1"
|
|
285
292
|
}),
|
|
286
|
-
|
|
293
|
+
U.invalid ? /* @__PURE__ */ h("p", {
|
|
287
294
|
role: "alert",
|
|
288
295
|
className: "mt-1 text-xs text-destructive",
|
|
289
296
|
children: "The estimate must be a number of hours, 0 or more."
|
|
290
|
-
}) : /* @__PURE__ */
|
|
297
|
+
}) : /* @__PURE__ */ h("p", {
|
|
291
298
|
id: "task-estimate-hint",
|
|
292
299
|
className: "mt-1 text-xs text-muted-foreground",
|
|
293
300
|
children: "Used as the task's duration on the critical path."
|
|
294
301
|
})
|
|
295
302
|
] }),
|
|
296
|
-
/* @__PURE__ */
|
|
303
|
+
/* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
297
304
|
className: "text-sm font-medium",
|
|
298
305
|
children: "Labels"
|
|
299
|
-
}), /* @__PURE__ */
|
|
300
|
-
value:
|
|
301
|
-
onChange: (e) =>
|
|
302
|
-
...
|
|
306
|
+
}), /* @__PURE__ */ h(S, {
|
|
307
|
+
value: B.labels,
|
|
308
|
+
onChange: (e) => V({
|
|
309
|
+
...B,
|
|
303
310
|
labels: e.target.value
|
|
304
311
|
}),
|
|
305
312
|
className: "mt-1"
|
|
306
313
|
})] })
|
|
307
314
|
]
|
|
315
|
+
}),
|
|
316
|
+
/* @__PURE__ */ h("div", {
|
|
317
|
+
className: "grid grid-cols-3 gap-4",
|
|
318
|
+
children: /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("label", {
|
|
319
|
+
htmlFor: "task-milestone",
|
|
320
|
+
className: "text-sm font-medium",
|
|
321
|
+
children: "Milestone"
|
|
322
|
+
}), /* @__PURE__ */ h(s, {
|
|
323
|
+
id: "task-milestone",
|
|
324
|
+
projectId: G.projectId,
|
|
325
|
+
value: B.milestoneId,
|
|
326
|
+
onChange: (e) => V({
|
|
327
|
+
...B,
|
|
328
|
+
milestoneId: e
|
|
329
|
+
})
|
|
330
|
+
})] })
|
|
308
331
|
})
|
|
309
332
|
]
|
|
310
333
|
})] })
|
|
@@ -312,6 +335,6 @@ function w() {
|
|
|
312
335
|
});
|
|
313
336
|
}
|
|
314
337
|
//#endregion
|
|
315
|
-
export {
|
|
338
|
+
export { T as TasksEditTaskPagePage };
|
|
316
339
|
|
|
317
340
|
//# sourceMappingURL=TasksEditTaskPagePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TasksEditTaskPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/TasksEditTaskPagePage.tsx"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport { useState, useMemo } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery, useMutation } from '@apollo/client/react';\nimport { Card, CardContent, CardHeader, CardTitle, Button, Input } from '@burdenoff/fe-libs/ui';\nimport { Save, ArrowLeft } from 'lucide-react';\nimport { usePlanMagnet, usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { estimateHoursText, parseEstimateHours, parseIntField } from '../utils/formValidation';\nimport { throwOnError } from '../utils/mutationResult';\nimport { WORK_ITEM_PRIORITIES } from '../controls/WorkItemControls';\n\nconst GET_WORK_ITEM = gql`\n query GetWorkItem($workItemId: ID!) {\n planmagnetWorkItem(id: $workItemId) {\n id\n title\n description\n type\n status\n priority\n key\n storyPoints\n estimateMinutes\n dueDate\n labels\n tags\n createdAt\n updatedAt\n }\n }\n`;\n\nconst UPDATE_WORK_ITEM = gql`\n mutation UpdateWorkItem($workItemId: ID!, $input: PlanmagnetUpdateWorkItemInput!) {\n planmagnetUpdateWorkItem(id: $workItemId, input: $input) {\n id\n title\n description\n type\n status\n priority\n storyPoints\n estimateMinutes\n dueDate\n labels\n updatedAt\n }\n }\n`;\n\ninterface WorkItemNode {\n id: string;\n title: string;\n description: string | null;\n type: string;\n status: string;\n priority: string;\n key: string;\n storyPoints: number | null;\n estimateMinutes: number | null;\n dueDate: string | null;\n labels: string[];\n tags: string[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport function TasksEditTaskPagePage() {\n const { workspaceId } = usePlanMagnet();\n\n // In a real app, workItemId comes from the route params.\n // For now we use a placeholder that the host shell should provide.\n const workItemId = new URLSearchParams(window.location.search).get('taskId') ?? '';\n const navigate = usePlanMagnetNavigate();\n\n const { data, loading, error } = useQuery<{\n planmagnetWorkItem: WorkItemNode;\n }>(GET_WORK_ITEM, {\n variables: { workItemId },\n skip: !workspaceId || !workItemId,\n });\n\n const [updateWorkItem, { loading: saving }] = useMutation(UPDATE_WORK_ITEM, {\n refetchQueries: ['GetWorkItems', 'GetWorkItemDetail', 'GetWorkItemCounts', 'ProjectBoard'],\n awaitRefetchQueries: true,\n });\n const [saveError, setSaveError] = useState<string | null>(null);\n const [saved, setSaved] = useState(false);\n\n const workItem = data?.planmagnetWorkItem;\n\n const defaultForm = useMemo(\n () => ({\n title: workItem?.title ?? '',\n description: workItem?.description ?? '',\n priority: workItem?.priority ?? 'MEDIUM',\n type: workItem?.type ?? 'STORY',\n storyPoints: workItem?.storyPoints?.toString() ?? '',\n labels: (workItem?.labels ?? []).join(', '),\n // A date input needs YYYY-MM-DD; the API returns a full ISO timestamp.\n dueDate: workItem?.dueDate ? String(workItem.dueDate).slice(0, 10) : '',\n estimateHours: estimateHoursText(workItem?.estimateMinutes),\n }),\n [workItem]\n );\n\n const [formOverrides, setFormOverrides] = useState<Record<string, string>>({});\n const form = { ...defaultForm, ...formOverrides };\n const setForm = (updates: Record<string, string>) => setFormOverrides(updates);\n\n // Story points are a whole number, 0 or more (BOFF-7833); the service refuses anything else.\n const storyPoints = parseIntField(form.storyPoints, { min: 0 });\n const estimate = parseEstimateHours(form.estimateHours);\n\n // BOFF-7979: only changed fields are sent; an emptied field is cleared (it used to be omitted, so the old value\n // stayed); success is confirmed (there was no message at all).\n const handleSave = async () => {\n if (!workspaceId || !workItemId || storyPoints.invalid || estimate.invalid) return;\n if (!form.title.trim()) {\n setSaveError('A task needs a title.');\n return;\n }\n const labelList = (v: string) =>\n v\n .split(',')\n .map((l) => l.trim())\n .filter(Boolean);\n const next: Record<string, unknown> = {\n title: form.title.trim(),\n description: form.description.trim() || null,\n priority: form.priority,\n type: form.type,\n storyPoints: storyPoints.value ?? null,\n labels: labelList(form.labels),\n dueDate: form.dueDate || null,\n estimateMinutes: estimate.minutes ?? null,\n };\n const before: Record<string, unknown> = {\n title: defaultForm.title,\n description: defaultForm.description.trim() || null,\n priority: defaultForm.priority,\n type: defaultForm.type,\n storyPoints: defaultForm.storyPoints === '' ? null : Number(defaultForm.storyPoints),\n labels: labelList(defaultForm.labels),\n dueDate: defaultForm.dueDate || null,\n // Compared through the same hours round-trip as `next`, so an untouched estimate never counts as a change.\n estimateMinutes: parseEstimateHours(defaultForm.estimateHours).minutes ?? null,\n };\n const input = Object.fromEntries(\n Object.entries(next).filter(([k, v]) => JSON.stringify(v) !== JSON.stringify(before[k]))\n );\n setSaveError(null);\n setSaved(false);\n if (Object.keys(input).length === 0) {\n setSaved(true);\n return;\n }\n try {\n await throwOnError(updateWorkItem({ variables: { workItemId, input } }));\n setSaved(true);\n } catch (e) {\n setSaveError(e instanceof Error ? e.message : 'The task could not be saved.');\n }\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 <div className=\"animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full\" />\n </div>\n );\n }\n\n if (error) {\n return <div className=\"p-6 text-destructive\">Error: {error.message}</div>;\n }\n\n if (!data?.planmagnetWorkItem) {\n return <div className=\"p-6 text-muted-foreground\">Task not found.</div>;\n }\n\n const task = data.planmagnetWorkItem;\n\n return (\n <div className=\"space-y-6 p-6 max-w-4xl\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-3\">\n <Button\n variant=\"ghost\"\n size=\"sm\"\n aria-label=\"Back to the task\"\n onClick={() =>\n navigate(`/tasks/task-detail-page?taskId=${encodeURIComponent(workItemId)}`)\n }\n >\n <ArrowLeft className=\"h-4 w-4\" />\n </Button>\n <div>\n <h1 className=\"text-2xl font-semibold\">Edit Task</h1>\n <p className=\"text-sm text-muted-foreground\">{task.title}</p>\n </div>\n </div>\n <Button\n size=\"sm\"\n onClick={handleSave}\n disabled={saving || storyPoints.invalid || estimate.invalid}\n >\n <Save className=\"mr-1 h-4 w-4\" />\n {saving ? 'Saving...' : 'Save Changes'}\n </Button>\n </div>\n {saved && (\n <div role=\"status\" className=\"p-3 bg-muted text-status-success-text rounded-md text-sm\">\n Changes saved.\n </div>\n )}\n {saveError && (\n <div role=\"alert\" className=\"p-3 bg-destructive/10 text-destructive rounded-md text-sm\">\n {saveError}\n </div>\n )}\n <Card>\n <CardHeader>\n <CardTitle>Task Details</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <div>\n <label className=\"text-sm font-medium\">Title</label>\n <Input\n value={form.title}\n onChange={(e) => setForm({ ...form, title: e.target.value })}\n className=\"mt-1\"\n />\n </div>\n <div>\n <label className=\"text-sm font-medium\">Description</label>\n <textarea\n className=\"mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm min-h-[100px]\"\n value={form.description}\n onChange={(e) => setForm({ ...form, description: e.target.value })}\n />\n </div>\n <div className=\"grid grid-cols-3 gap-4\">\n <div>\n <label className=\"text-sm font-medium\">Priority</label>\n <select\n className=\"mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm\"\n value={form.priority}\n onChange={(e) => setForm({ ...form, priority: e.target.value })}\n >\n {/* Every WorkItemPriority: NONE was missing, so a NONE task showed as \"low\" (BOFF-7985). */}\n {WORK_ITEM_PRIORITIES.map((p) => (\n <option key={p} value={p}>\n {p.toLowerCase()}\n </option>\n ))}\n </select>\n </div>\n <div>\n <label className=\"text-sm font-medium\">Type</label>\n <select\n className=\"mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm\"\n value={form.type}\n onChange={(e) => setForm({ ...form, type: e.target.value })}\n >\n {['STORY', 'BUG', 'TASK', 'EPIC', 'SUB_TASK'].map((t) => (\n <option key={t} value={t}>\n {t.toLowerCase().replace('_', ' ')}\n </option>\n ))}\n </select>\n </div>\n <div>\n <label htmlFor=\"task-story-points\" className=\"text-sm font-medium\">\n Story Points\n </label>\n <Input\n id=\"task-story-points\"\n type=\"number\"\n min={0}\n step={1}\n value={form.storyPoints}\n onChange={(e) => setForm({ ...form, storyPoints: e.target.value })}\n aria-invalid={storyPoints.invalid}\n className=\"mt-1\"\n />\n {storyPoints.invalid && (\n <p role=\"alert\" className=\"mt-1 text-xs text-destructive\">\n Story points must be a whole number, 0 or more.\n </p>\n )}\n </div>\n </div>\n <div className=\"grid grid-cols-3 gap-4\">\n <div>\n <label className=\"text-sm font-medium\">Due Date</label>\n <Input\n type=\"date\"\n value={form.dueDate}\n onChange={(e) => setForm({ ...form, dueDate: e.target.value })}\n className=\"mt-1\"\n />\n </div>\n <div>\n <label htmlFor=\"task-estimate-hours\" className=\"text-sm font-medium\">\n Estimate (hours)\n </label>\n <Input\n id=\"task-estimate-hours\"\n type=\"number\"\n min={0}\n step={0.25}\n value={form.estimateHours}\n onChange={(e) => setForm({ ...form, estimateHours: e.target.value })}\n aria-invalid={estimate.invalid}\n aria-describedby=\"task-estimate-hint\"\n className=\"mt-1\"\n />\n {estimate.invalid ? (\n <p role=\"alert\" className=\"mt-1 text-xs text-destructive\">\n The estimate must be a number of hours, 0 or more.\n </p>\n ) : (\n <p id=\"task-estimate-hint\" className=\"mt-1 text-xs text-muted-foreground\">\n Used as the task's duration on the critical path.\n </p>\n )}\n </div>\n <div>\n <label className=\"text-sm font-medium\">Labels</label>\n <Input\n value={form.labels}\n onChange={(e) => setForm({ ...form, labels: e.target.value })}\n className=\"mt-1\"\n />\n </div>\n </div>\n </CardContent>\n </Card>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAYA,IAAM,IAAgB,CAAG;;;;;;;;;;;;;;;;;;;GAqBnB,IAAmB,CAAG;;;;;;;;;;;;;;;;;AAmC5B,SAAgB,IAAwB;CACtC,IAAM,EAAE,mBAAgB,GAAe,EAIjC,IAAa,IAAI,gBAAgB,OAAO,SAAS,OAAO,CAAC,IAAI,SAAS,IAAI,IAC1E,IAAW,GAAuB,EAElC,EAAE,SAAM,YAAS,aAAU,EAE9B,GAAe;EAChB,WAAW,EAAE,eAAY;EACzB,MAAM,CAAC,KAAe,CAAC;EACxB,CAAC,EAEI,CAAC,GAAgB,EAAE,SAAS,OAAY,EAAY,GAAkB;EAC1E,gBAAgB;GAAC;GAAgB;GAAqB;GAAqB;GAAe;EAC1F,qBAAqB;EACtB,CAAC,EACI,CAAC,GAAW,KAAgB,EAA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AC,GAAD;SACE,IAAG;SACH,MAAK;SACL,KAAK;SACL,MAAM;SACN,OAAO,EAAK;SACZ,WAAW,MAAM,EAAQ;UAAE,GAAG;UAAM,eAAe,EAAE,OAAO;UAAO,CAAC;SACpE,gBAAc,EAAS;SACvB,oBAAiB;SACjB,WAAU;SACV,CAAA;QACD,EAAS,UACR,kBAAC,KAAD;SAAG,MAAK;SAAQ,WAAU;mBAAgC;SAEtD,CAAA,GAEJ,kBAAC,KAAD;SAAG,IAAG;SAAqB,WAAU;mBAAqC;SAEtE,CAAA;QAEF,EAAA,CAAA;OACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,SAAD;QAAO,WAAU;kBAAsB;QAAc,CAAA,EACrD,kBAAC,GAAD;QACE,OAAO,EAAK;QACZ,WAAW,MAAM,EAAQ;SAAE,GAAG;SAAM,QAAQ,EAAE,OAAO;SAAO,CAAC;QAC7D,WAAU;QACV,CAAA,CACE,EAAA,CAAA;OACF;;KACM;MACT,EAAA,CAAA;GACH"}
|
|
1
|
+
{"version":3,"file":"TasksEditTaskPagePage.js","names":[],"sources":["../../../src/planmagnet/pages/TasksEditTaskPagePage.tsx"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-nocheck\nimport { useState, useMemo } from 'react';\nimport { gql } from '@apollo/client';\nimport { useQuery, useMutation } from '@apollo/client/react';\nimport { Card, CardContent, CardHeader, CardTitle, Button, Input } from '@burdenoff/fe-libs/ui';\nimport { Save, ArrowLeft } from 'lucide-react';\nimport { usePlanMagnet, usePlanMagnetNavigate } from '../providers/PlanMagnetProvider';\nimport { estimateHoursText, parseEstimateHours, parseIntField } from '../utils/formValidation';\nimport { throwOnError } from '../utils/mutationResult';\nimport { WORK_ITEM_PRIORITIES } from '../controls/WorkItemControls';\nimport { MilestoneSelect } from '../milestones/MilestoneControls';\n\nconst GET_WORK_ITEM = gql`\n query GetWorkItem($workItemId: ID!) {\n planmagnetWorkItem(id: $workItemId) {\n id\n projectId\n milestoneId\n title\n description\n type\n status\n priority\n key\n storyPoints\n estimateMinutes\n dueDate\n labels\n tags\n createdAt\n updatedAt\n }\n }\n`;\n\nconst UPDATE_WORK_ITEM = gql`\n mutation UpdateWorkItem($workItemId: ID!, $input: PlanmagnetUpdateWorkItemInput!) {\n planmagnetUpdateWorkItem(id: $workItemId, input: $input) {\n id\n title\n description\n type\n status\n priority\n storyPoints\n estimateMinutes\n dueDate\n labels\n milestoneId\n updatedAt\n }\n }\n`;\n\ninterface WorkItemNode {\n id: string;\n projectId: string;\n milestoneId: string | null;\n title: string;\n description: string | null;\n type: string;\n status: string;\n priority: string;\n key: string;\n storyPoints: number | null;\n estimateMinutes: number | null;\n dueDate: string | null;\n labels: string[];\n tags: string[];\n createdAt: string;\n updatedAt: string;\n}\n\nexport function TasksEditTaskPagePage() {\n const { workspaceId } = usePlanMagnet();\n\n // In a real app, workItemId comes from the route params.\n // For now we use a placeholder that the host shell should provide.\n const workItemId = new URLSearchParams(window.location.search).get('taskId') ?? '';\n const navigate = usePlanMagnetNavigate();\n\n const { data, loading, error } = useQuery<{\n planmagnetWorkItem: WorkItemNode;\n }>(GET_WORK_ITEM, {\n variables: { workItemId },\n skip: !workspaceId || !workItemId,\n });\n\n const [updateWorkItem, { loading: saving }] = useMutation(UPDATE_WORK_ITEM, {\n refetchQueries: ['GetWorkItems', 'GetWorkItemDetail', 'GetWorkItemCounts', 'ProjectBoard'],\n awaitRefetchQueries: true,\n });\n const [saveError, setSaveError] = useState<string | null>(null);\n const [saved, setSaved] = useState(false);\n\n const workItem = data?.planmagnetWorkItem;\n\n const defaultForm = useMemo(\n () => ({\n title: workItem?.title ?? '',\n description: workItem?.description ?? '',\n priority: workItem?.priority ?? 'MEDIUM',\n type: workItem?.type ?? 'STORY',\n storyPoints: workItem?.storyPoints?.toString() ?? '',\n labels: (workItem?.labels ?? []).join(', '),\n // A date input needs YYYY-MM-DD; the API returns a full ISO timestamp.\n dueDate: workItem?.dueDate ? String(workItem.dueDate).slice(0, 10) : '',\n estimateHours: estimateHoursText(workItem?.estimateMinutes),\n milestoneId: workItem?.milestoneId ?? '',\n }),\n [workItem]\n );\n\n const [formOverrides, setFormOverrides] = useState<Record<string, string>>({});\n const form = { ...defaultForm, ...formOverrides };\n const setForm = (updates: Record<string, string>) => setFormOverrides(updates);\n\n // Story points are a whole number, 0 or more (BOFF-7833); the service refuses anything else.\n const storyPoints = parseIntField(form.storyPoints, { min: 0 });\n const estimate = parseEstimateHours(form.estimateHours);\n\n // BOFF-7979: only changed fields are sent; an emptied field is cleared (it used to be omitted, so the old value\n // stayed); success is confirmed (there was no message at all).\n const handleSave = async () => {\n if (!workspaceId || !workItemId || storyPoints.invalid || estimate.invalid) return;\n if (!form.title.trim()) {\n setSaveError('A task needs a title.');\n return;\n }\n const labelList = (v: string) =>\n v\n .split(',')\n .map((l) => l.trim())\n .filter(Boolean);\n const next: Record<string, unknown> = {\n title: form.title.trim(),\n description: form.description.trim() || null,\n priority: form.priority,\n type: form.type,\n storyPoints: storyPoints.value ?? null,\n labels: labelList(form.labels),\n dueDate: form.dueDate || null,\n estimateMinutes: estimate.minutes ?? null,\n milestoneId: form.milestoneId || null,\n };\n const before: Record<string, unknown> = {\n title: defaultForm.title,\n description: defaultForm.description.trim() || null,\n priority: defaultForm.priority,\n type: defaultForm.type,\n storyPoints: defaultForm.storyPoints === '' ? null : Number(defaultForm.storyPoints),\n labels: labelList(defaultForm.labels),\n dueDate: defaultForm.dueDate || null,\n // Compared through the same hours round-trip as `next`, so an untouched estimate never counts as a change.\n estimateMinutes: parseEstimateHours(defaultForm.estimateHours).minutes ?? null,\n milestoneId: defaultForm.milestoneId || null,\n };\n const input = Object.fromEntries(\n Object.entries(next).filter(([k, v]) => JSON.stringify(v) !== JSON.stringify(before[k]))\n );\n setSaveError(null);\n setSaved(false);\n if (Object.keys(input).length === 0) {\n setSaved(true);\n return;\n }\n try {\n await throwOnError(updateWorkItem({ variables: { workItemId, input } }));\n setSaved(true);\n } catch (e) {\n setSaveError(e instanceof Error ? e.message : 'The task could not be saved.');\n }\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 <div className=\"animate-spin h-8 w-8 border-2 border-primary border-t-transparent rounded-full\" />\n </div>\n );\n }\n\n if (error) {\n return <div className=\"p-6 text-destructive\">Error: {error.message}</div>;\n }\n\n if (!data?.planmagnetWorkItem) {\n return <div className=\"p-6 text-muted-foreground\">Task not found.</div>;\n }\n\n const task = data.planmagnetWorkItem;\n\n return (\n <div className=\"space-y-6 p-6 max-w-4xl\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-3\">\n <Button\n variant=\"ghost\"\n size=\"sm\"\n aria-label=\"Back to the task\"\n onClick={() =>\n navigate(`/tasks/task-detail-page?taskId=${encodeURIComponent(workItemId)}`)\n }\n >\n <ArrowLeft className=\"h-4 w-4\" />\n </Button>\n <div>\n <h1 className=\"text-2xl font-semibold\">Edit Task</h1>\n <p className=\"text-sm text-muted-foreground\">{task.title}</p>\n </div>\n </div>\n <Button\n size=\"sm\"\n onClick={handleSave}\n disabled={saving || storyPoints.invalid || estimate.invalid}\n >\n <Save className=\"mr-1 h-4 w-4\" />\n {saving ? 'Saving...' : 'Save Changes'}\n </Button>\n </div>\n {saved && (\n <div role=\"status\" className=\"p-3 bg-muted text-status-success-text rounded-md text-sm\">\n Changes saved.\n </div>\n )}\n {saveError && (\n <div role=\"alert\" className=\"p-3 bg-destructive/10 text-destructive rounded-md text-sm\">\n {saveError}\n </div>\n )}\n <Card>\n <CardHeader>\n <CardTitle>Task Details</CardTitle>\n </CardHeader>\n <CardContent className=\"space-y-4\">\n <div>\n <label className=\"text-sm font-medium\">Title</label>\n <Input\n value={form.title}\n onChange={(e) => setForm({ ...form, title: e.target.value })}\n className=\"mt-1\"\n />\n </div>\n <div>\n <label className=\"text-sm font-medium\">Description</label>\n <textarea\n className=\"mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm min-h-[100px]\"\n value={form.description}\n onChange={(e) => setForm({ ...form, description: e.target.value })}\n />\n </div>\n <div className=\"grid grid-cols-3 gap-4\">\n <div>\n <label className=\"text-sm font-medium\">Priority</label>\n <select\n className=\"mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm\"\n value={form.priority}\n onChange={(e) => setForm({ ...form, priority: e.target.value })}\n >\n {/* Every WorkItemPriority: NONE was missing, so a NONE task showed as \"low\" (BOFF-7985). */}\n {WORK_ITEM_PRIORITIES.map((p) => (\n <option key={p} value={p}>\n {p.toLowerCase()}\n </option>\n ))}\n </select>\n </div>\n <div>\n <label className=\"text-sm font-medium\">Type</label>\n <select\n className=\"mt-1 w-full rounded-md border border-input bg-background px-3 py-2 text-sm\"\n value={form.type}\n onChange={(e) => setForm({ ...form, type: e.target.value })}\n >\n {['STORY', 'BUG', 'TASK', 'EPIC', 'SUB_TASK'].map((t) => (\n <option key={t} value={t}>\n {t.toLowerCase().replace('_', ' ')}\n </option>\n ))}\n </select>\n </div>\n <div>\n <label htmlFor=\"task-story-points\" className=\"text-sm font-medium\">\n Story Points\n </label>\n <Input\n id=\"task-story-points\"\n type=\"number\"\n min={0}\n step={1}\n value={form.storyPoints}\n onChange={(e) => setForm({ ...form, storyPoints: e.target.value })}\n aria-invalid={storyPoints.invalid}\n className=\"mt-1\"\n />\n {storyPoints.invalid && (\n <p role=\"alert\" className=\"mt-1 text-xs text-destructive\">\n Story points must be a whole number, 0 or more.\n </p>\n )}\n </div>\n </div>\n <div className=\"grid grid-cols-3 gap-4\">\n <div>\n <label className=\"text-sm font-medium\">Due Date</label>\n <Input\n type=\"date\"\n value={form.dueDate}\n onChange={(e) => setForm({ ...form, dueDate: e.target.value })}\n className=\"mt-1\"\n />\n </div>\n <div>\n <label htmlFor=\"task-estimate-hours\" className=\"text-sm font-medium\">\n Estimate (hours)\n </label>\n <Input\n id=\"task-estimate-hours\"\n type=\"number\"\n min={0}\n step={0.25}\n value={form.estimateHours}\n onChange={(e) => setForm({ ...form, estimateHours: e.target.value })}\n aria-invalid={estimate.invalid}\n aria-describedby=\"task-estimate-hint\"\n className=\"mt-1\"\n />\n {estimate.invalid ? (\n <p role=\"alert\" className=\"mt-1 text-xs text-destructive\">\n The estimate must be a number of hours, 0 or more.\n </p>\n ) : (\n <p id=\"task-estimate-hint\" className=\"mt-1 text-xs text-muted-foreground\">\n Used as the task's duration on the critical path.\n </p>\n )}\n </div>\n <div>\n <label className=\"text-sm font-medium\">Labels</label>\n <Input\n value={form.labels}\n onChange={(e) => setForm({ ...form, labels: e.target.value })}\n className=\"mt-1\"\n />\n </div>\n </div>\n <div className=\"grid grid-cols-3 gap-4\">\n <div>\n <label htmlFor=\"task-milestone\" className=\"text-sm font-medium\">\n Milestone\n </label>\n <MilestoneSelect\n id=\"task-milestone\"\n projectId={task.projectId}\n value={form.milestoneId}\n onChange={(milestoneId) => setForm({ ...form, milestoneId })}\n />\n </div>\n </div>\n </CardContent>\n </Card>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAaA,IAAM,IAAgB,CAAG;;;;;;;;;;;;;;;;;;;;;GAuBnB,IAAmB,CAAG;;;;;;;;;;;;;;;;;;AAsC5B,SAAgB,IAAwB;CACtC,IAAM,EAAE,mBAAgB,GAAe,EAIjC,IAAa,IAAI,gBAAgB,OAAO,SAAS,OAAO,CAAC,IAAI,SAAS,IAAI,IAC1E,IAAW,GAAuB,EAElC,EAAE,SAAM,YAAS,aAAU,EAE9B,GAAe;EAChB,WAAW,EAAE,eAAY;EACzB,MAAM,CAAC,KAAe,CAAC;EACxB,CAAC,EAEI,CAAC,GAAgB,EAAE,SAAS,OAAY,EAAY,GAAkB;EAC1E,gBAAgB;GAAC;GAAgB;GAAqB;GAAqB;GAAe;EAC1F,qBAAqB;EACtB,CAAC,EACI,CAAC,GAAW,KAAgB,EAAwB,KAAK,EACzD,CAAC,GAAO,KAAY,EAAS,GAAM,EAEnC,IAAW,GAA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;QACR,kBAAC,GAAD;SACE,IAAG;SACH,MAAK;SACL,KAAK;SACL,MAAM;SACN,OAAO,EAAK;SACZ,WAAW,MAAM,EAAQ;UAAE,GAAG;UAAM,eAAe,EAAE,OAAO;UAAO,CAAC;SACpE,gBAAc,EAAS;SACvB,oBAAiB;SACjB,WAAU;SACV,CAAA;QACD,EAAS,UACR,kBAAC,KAAD;SAAG,MAAK;SAAQ,WAAU;mBAAgC;SAEtD,CAAA,GAEJ,kBAAC,KAAD;SAAG,IAAG;SAAqB,WAAU;mBAAqC;SAEtE,CAAA;QAEF,EAAA,CAAA;OACN,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,SAAD;QAAO,WAAU;kBAAsB;QAAc,CAAA,EACrD,kBAAC,GAAD;QACE,OAAO,EAAK;QACZ,WAAW,MAAM,EAAQ;SAAE,GAAG;SAAM,QAAQ,EAAE,OAAO;SAAO,CAAC;QAC7D,WAAU;QACV,CAAA,CACE,EAAA,CAAA;OACF;;KACN,kBAAC,OAAD;MAAK,WAAU;gBACb,kBAAC,OAAD,EAAA,UAAA,CACE,kBAAC,SAAD;OAAO,SAAQ;OAAiB,WAAU;iBAAsB;OAExD,CAAA,EACR,kBAAC,GAAD;OACE,IAAG;OACH,WAAW,EAAK;OAChB,OAAO,EAAK;OACZ,WAAW,MAAgB,EAAQ;QAAE,GAAG;QAAM;QAAa,CAAC;OAC5D,CAAA,CACE,EAAA,CAAA;MACF,CAAA;KACM;MACT,EAAA,CAAA;GACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TasksTaskDetailPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/TasksTaskDetailPagePage.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TasksTaskDetailPagePage.d.ts","sourceRoot":"","sources":["../../../src/planmagnet/pages/TasksTaskDetailPagePage.tsx"],"names":[],"mappings":"AA4VA,wBAAgB,uBAAuB,4CA8JtC"}
|