@burdenoff/microfe-planmagnet 2026.1101.1 → 2026.1108.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,23 @@
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 { ConfirmButton as r, ErrorLine as i } from "../controls/ConfirmButton.js";
4
- import { WORK_ITEM_PRIORITIES as a, enumLabel as o } from "../controls/WorkItemControls.js";
5
- import { ProjectSelect as s } from "../controls/Pickers.js";
6
- import { parseEstimateHours as c } from "../utils/formValidation.js";
7
- import { useState as l } from "react";
8
- import { CheckCircle2 as u, History as d, Sparkles as f, Wand2 as p } from "lucide-react";
9
- import { gql as m } from "@apollo/client";
10
- import { useMutation as h } from "@apollo/client/react";
11
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
12
- import { Badge as v, Button as y, Card as b, CardContent as x, CardHeader as ee, CardTitle as S, Checkbox as C, Input as w, Textarea as T } from "@burdenoff/fe-libs/ui";
3
+ import { ConfirmButton as r, ErrorLine as ee } from "../controls/ConfirmButton.js";
4
+ import { WORK_ITEM_PRIORITIES as te, enumLabel as i } from "../controls/WorkItemControls.js";
5
+ import { ProjectSelect as a } from "../controls/Pickers.js";
6
+ import { parseEstimateHours as o } from "../utils/formValidation.js";
7
+ import { useRef as s, useState as c } from "react";
8
+ import { CheckCircle2 as ne, History as l, Sparkles as u, Wand2 as d } from "lucide-react";
9
+ import { gql as f } from "@apollo/client";
10
+ import { useMutation as p } from "@apollo/client/react";
11
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
12
+ import { Badge as g, Button as _, Card as v, CardContent as y, CardHeader as b, CardTitle as re, Checkbox as x, Input as S, Textarea as C } from "@burdenoff/fe-libs/ui";
13
13
  //#region src/planmagnet/pages/AiPlanPagePage.tsx
14
- var E = [
14
+ var ie = [
15
15
  "STORY",
16
16
  "BUG",
17
17
  "TASK",
18
18
  "EPIC",
19
19
  "SUB_TASK"
20
- ], D = 4e3, O = m`
20
+ ], w = 4e3, T = f`
21
21
  mutation SuggestWorkItemBreakdown($input: PlanmagnetSuggestWorkItemBreakdownInput!) {
22
22
  planmagnetSuggestWorkItemBreakdown(input: $input) {
23
23
  agentRunId
@@ -31,22 +31,22 @@ var E = [
31
31
  }
32
32
  }
33
33
  }
34
- `, k = m`
34
+ `, E = f`
35
35
  mutation CreateWorkItemFromSuggestion($input: PlanmagnetCreateWorkItemInput!) {
36
36
  planmagnetCreateWorkItem(input: $input) {
37
37
  id
38
38
  title
39
39
  }
40
40
  }
41
- `, A = "w-full rounded-md border border-input bg-background px-2 py-1 text-sm disabled:opacity-60";
42
- function j() {
43
- let { workspaceId: m } = e(), j = t(), [M, N] = l(""), [P, F] = l(""), [I, L] = l(null), [R, z] = l(null), [B, V] = l(null), [H, U] = l({}), [W, G] = l(!1), [K, q] = h(O), [J] = h(k, { refetchQueries: ["GetWorkItems"] }), Y = M.trim(), X = !!m && !!P && Y.length > 0 && Y.length <= D && !q.loading && !W, Z = async () => {
44
- if (X) {
45
- V(null), L(null), U({}), z(null);
41
+ `, D = "w-full rounded-md border border-input bg-background px-2 py-1 text-sm disabled:opacity-60";
42
+ function O() {
43
+ let { workspaceId: f } = e(), O = t(), [k, A] = c(""), [j, M] = c(""), [N, P] = c(null), [F, I] = c(null), [L, R] = c(null), [z, B] = c({}), [V, H] = c(!1), [U, W] = c(!1), [G, K] = c([]), q = s(!1), [J, Y] = p(T), [ae] = p(E, { refetchQueries: ["GetWorkItems"] }), X = k.trim(), Z = !!f && !!j && X.length > 0 && X.length <= w && !Y.loading && !V, oe = async () => {
44
+ if (Z) {
45
+ R(null), P(null), B({}), I(null);
46
46
  try {
47
- let e = (await n(K({ variables: { input: { description: Y } } }))).data?.planmagnetSuggestWorkItemBreakdown;
47
+ let e = (await n(J({ variables: { input: { description: X } } }))).data?.planmagnetSuggestWorkItemBreakdown;
48
48
  if (!e) return;
49
- z(e.provider), L(e.suggestions.map((t, n) => ({
49
+ I(e.provider), P(e.suggestions.map((t, n) => ({
50
50
  localId: `${e.agentRunId}-${n}`,
51
51
  title: t.title,
52
52
  type: t.type,
@@ -56,32 +56,36 @@ function j() {
56
56
  include: !0
57
57
  })));
58
58
  } catch (e) {
59
- V(e instanceof Error ? e.message : "AI assistance is unavailable right now.");
59
+ R(e instanceof Error ? e.message : "AI assistance is unavailable right now.");
60
60
  }
61
61
  }
62
62
  }, Q = (e, t) => {
63
- L((n) => n?.map((n) => n.localId === e ? {
63
+ P((n) => n?.map((n) => n.localId === e ? {
64
64
  ...n,
65
65
  ...t
66
66
  } : n) ?? n);
67
- }, $ = (I ?? []).filter((e) => e.include && H[e.localId]?.status !== "created"), te = $.some((e) => !e.title.trim() || c(e.estimateHours).invalid), ne = async () => {
68
- if (!(!I || $.length === 0 || !P)) {
69
- G(!0);
67
+ }, $ = (N ?? []).filter((e) => e.include && z[e.localId]?.status !== "created"), se = $.some((e) => !e.title.trim() || o(e.estimateHours).invalid), ce = G.filter((e) => z[e] !== void 0).length, le = G.filter((e) => z[e]?.status === "created").length, ue = async () => {
68
+ if (!(!N || $.length === 0 || !j)) {
69
+ H(!0), W(!1), q.current = !1, K($.map((e) => e.localId));
70
70
  for (let e of $) {
71
- U((t) => ({
71
+ if (q.current) {
72
+ W(!0);
73
+ break;
74
+ }
75
+ B((t) => ({
72
76
  ...t,
73
77
  [e.localId]: { status: "creating" }
74
78
  }));
75
79
  try {
76
- let t = c(e.estimateHours), r = (await n(J({ variables: { input: {
77
- projectId: P,
80
+ let t = o(e.estimateHours), r = (await n(ae({ variables: { input: {
81
+ projectId: j,
78
82
  title: e.title.trim(),
79
83
  type: e.type,
80
84
  priority: e.priority,
81
85
  description: e.description.trim() || void 0,
82
86
  estimateMinutes: t.minutes
83
87
  } } }))).data?.planmagnetCreateWorkItem;
84
- U((t) => ({
88
+ B((t) => ({
85
89
  ...t,
86
90
  [e.localId]: r ? {
87
91
  status: "created",
@@ -92,7 +96,7 @@ function j() {
92
96
  }
93
97
  })), r && Q(e.localId, { include: !1 });
94
98
  } catch (t) {
95
- U((n) => ({
99
+ B((n) => ({
96
100
  ...n,
97
101
  [e.localId]: {
98
102
  status: "error",
@@ -101,217 +105,251 @@ function j() {
101
105
  }));
102
106
  }
103
107
  }
104
- G(!1);
108
+ H(!1);
105
109
  }
106
110
  };
107
- return /* @__PURE__ */ _("div", {
111
+ return /* @__PURE__ */ h("div", {
108
112
  className: "max-w-4xl space-y-6 p-6",
109
113
  "data-testid": "ai-plan-page",
110
114
  children: [
111
- /* @__PURE__ */ _("div", {
115
+ /* @__PURE__ */ h("div", {
112
116
  className: "flex flex-wrap items-center justify-between gap-2",
113
- children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ _("h1", {
117
+ children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("h1", {
114
118
  className: "flex items-center gap-2 text-2xl font-semibold",
115
- children: [/* @__PURE__ */ g(f, { className: "h-6 w-6" }), "AI breakdown"]
116
- }), /* @__PURE__ */ g("p", {
119
+ children: [/* @__PURE__ */ m(u, { className: "h-6 w-6" }), "AI breakdown"]
120
+ }), /* @__PURE__ */ m("p", {
117
121
  className: "text-sm text-muted-foreground",
118
122
  children: "Describe a feature and get a suggested work-item breakdown from the configured AI provider. Nothing is created until you review it and confirm."
119
- })] }), /* @__PURE__ */ _(y, {
123
+ })] }), /* @__PURE__ */ h(_, {
120
124
  variant: "outline",
121
125
  size: "sm",
122
- onClick: () => j("/ai/activity-page"),
126
+ onClick: () => O("/ai/activity-page"),
123
127
  "data-testid": "ai-plan-view-activity",
124
- children: [/* @__PURE__ */ g(d, { className: "mr-1 h-4 w-4" }), "View AI activity"]
128
+ children: [/* @__PURE__ */ m(l, { className: "mr-1 h-4 w-4" }), "View AI activity"]
125
129
  })]
126
130
  }),
127
- /* @__PURE__ */ _(b, { children: [/* @__PURE__ */ g(ee, { children: /* @__PURE__ */ g(S, { children: "Describe what you need built" }) }), /* @__PURE__ */ _(x, {
131
+ /* @__PURE__ */ h(v, { children: [/* @__PURE__ */ m(b, { children: /* @__PURE__ */ m(re, { children: "Describe what you need built" }) }), /* @__PURE__ */ h(y, {
128
132
  className: "space-y-4",
129
133
  children: [
130
- /* @__PURE__ */ _("div", { children: [
131
- /* @__PURE__ */ g("label", {
134
+ /* @__PURE__ */ h("div", { children: [
135
+ /* @__PURE__ */ m("label", {
132
136
  htmlFor: "ai-plan-description",
133
137
  className: "text-sm font-medium",
134
138
  children: "Description"
135
139
  }),
136
- /* @__PURE__ */ g(T, {
140
+ /* @__PURE__ */ m(C, {
137
141
  id: "ai-plan-description",
138
142
  "data-testid": "ai-plan-description",
139
143
  className: "mt-1 min-h-[140px]",
140
- value: M,
141
- maxLength: D,
142
- onChange: (e) => N(e.target.value),
144
+ value: k,
145
+ maxLength: w,
146
+ onChange: (e) => A(e.target.value),
143
147
  placeholder: "e.g. Let workspace admins export a project's tasks to CSV, filtered by status and assignee, from the project detail page.",
144
148
  "aria-describedby": "ai-plan-description-count"
145
149
  }),
146
- /* @__PURE__ */ _("p", {
150
+ /* @__PURE__ */ h("p", {
147
151
  id: "ai-plan-description-count",
148
152
  className: "mt-1 text-xs text-muted-foreground",
149
153
  "data-testid": "ai-plan-description-count",
150
154
  children: [
151
- M.length,
155
+ k.length,
152
156
  " / ",
153
- D
157
+ w
154
158
  ]
155
159
  })
156
160
  ] }),
157
- /* @__PURE__ */ _("div", { children: [
158
- /* @__PURE__ */ g("label", {
161
+ /* @__PURE__ */ h("div", { children: [
162
+ /* @__PURE__ */ m("label", {
159
163
  htmlFor: "ai-plan-project",
160
164
  className: "text-sm font-medium",
161
165
  children: "Project"
162
166
  }),
163
- /* @__PURE__ */ g("div", {
167
+ /* @__PURE__ */ m("div", {
164
168
  className: "mt-1",
165
- children: /* @__PURE__ */ g(s, {
169
+ children: /* @__PURE__ */ m(a, {
166
170
  id: "ai-plan-project",
167
- value: P,
168
- onChange: F,
171
+ value: j,
172
+ onChange: M,
169
173
  noneLabel: "Choose a project…",
170
- disabled: W
174
+ disabled: V
171
175
  })
172
176
  }),
173
- /* @__PURE__ */ g("p", {
177
+ /* @__PURE__ */ m("p", {
174
178
  className: "mt-1 text-xs text-muted-foreground",
175
179
  children: "Kept suggestions are created as work items in this project."
176
180
  })
177
181
  ] }),
178
- /* @__PURE__ */ g("div", {
182
+ /* @__PURE__ */ m("div", {
179
183
  className: "flex justify-end",
180
- children: /* @__PURE__ */ _(y, {
181
- onClick: () => void Z(),
182
- disabled: !X,
184
+ children: /* @__PURE__ */ h(_, {
185
+ onClick: () => void oe(),
186
+ disabled: !Z,
183
187
  "data-testid": "ai-plan-suggest",
184
- children: [/* @__PURE__ */ g(p, { className: "mr-1 h-4 w-4" }), q.loading ? "Suggesting…" : "Suggest breakdown"]
188
+ children: [/* @__PURE__ */ m(d, { className: "mr-1 h-4 w-4" }), Y.loading ? "Suggesting…" : "Suggest breakdown"]
185
189
  })
186
190
  })
187
191
  ]
188
192
  })] }),
189
- B && /* @__PURE__ */ _("div", {
193
+ L && /* @__PURE__ */ h("div", {
190
194
  role: "alert",
191
195
  className: "space-y-2 rounded-md border border-destructive bg-destructive/10 p-3 text-sm text-destructive",
192
196
  "data-testid": "ai-plan-suggest-error",
193
- children: [/* @__PURE__ */ g("p", { children: B }), /* @__PURE__ */ _(y, {
197
+ children: [/* @__PURE__ */ m("p", { children: L }), /* @__PURE__ */ h(_, {
194
198
  variant: "outline",
195
199
  size: "sm",
196
- onClick: () => j("/ai/activity-page"),
200
+ onClick: () => O("/ai/activity-page"),
197
201
  "data-testid": "ai-plan-suggest-error-activity-link",
198
- children: [/* @__PURE__ */ g(d, { className: "mr-1 h-4 w-4" }), "View AI activity for the recorded attempt"]
202
+ children: [/* @__PURE__ */ m(l, { className: "mr-1 h-4 w-4" }), "View AI activity for the recorded attempt"]
199
203
  })]
200
204
  }),
201
- I && /* @__PURE__ */ _("div", {
205
+ N && /* @__PURE__ */ h("div", {
202
206
  className: "space-y-4",
203
207
  children: [
204
- /* @__PURE__ */ _("div", {
208
+ /* @__PURE__ */ h("div", {
205
209
  className: "flex flex-wrap items-center justify-between gap-2",
206
- children: [/* @__PURE__ */ _("div", {
210
+ children: [/* @__PURE__ */ h("div", {
207
211
  className: "space-y-1",
208
- children: [/* @__PURE__ */ g("p", {
212
+ children: [/* @__PURE__ */ m("p", {
209
213
  className: "text-sm font-medium text-muted-foreground",
210
214
  "data-testid": "ai-plan-disclaimer",
211
215
  children: "AI-assisted — review each suggestion before creating; suggestions can be wrong."
212
- }), R && /* @__PURE__ */ _("p", {
216
+ }), F && /* @__PURE__ */ h("p", {
213
217
  className: "text-xs text-muted-foreground",
214
- children: ["Suggested by ", /* @__PURE__ */ g("span", {
218
+ children: ["Suggested by ", /* @__PURE__ */ m("span", {
215
219
  className: "font-medium",
216
- children: R
220
+ children: F
217
221
  })]
218
222
  })]
219
- }), /* @__PURE__ */ g("div", {
223
+ }), /* @__PURE__ */ m("div", {
220
224
  "data-testid": "ai-plan-create-selected",
221
- children: /* @__PURE__ */ g(r, {
225
+ children: /* @__PURE__ */ m(r, {
222
226
  label: `Create ${$.length} selected`,
223
- icon: /* @__PURE__ */ g(u, { className: "mr-1 h-4 w-4" }),
227
+ icon: /* @__PURE__ */ m(ne, { className: "mr-1 h-4 w-4" }),
224
228
  title: "Create the selected work items?",
225
229
  description: `This creates ${$.length} work item(s) in the chosen project, one at a time. Review each suggestion first — AI suggestions can be wrong.`,
226
230
  confirmLabel: `Create ${$.length}`,
227
- disabled: W || $.length === 0 || !P || te,
228
- onConfirm: () => void ne()
231
+ disabled: V || $.length === 0 || !j || se,
232
+ onConfirm: () => void ue()
229
233
  })
230
234
  })]
231
235
  }),
232
- I.length === 0 && /* @__PURE__ */ g("p", {
236
+ N.length === 0 && /* @__PURE__ */ m("p", {
233
237
  className: "text-sm text-muted-foreground",
234
238
  children: "The provider returned no suggestions for this description."
235
239
  }),
236
- /* @__PURE__ */ g("div", {
240
+ V && /* @__PURE__ */ h("div", {
241
+ className: "flex flex-wrap items-center justify-between gap-2 rounded-md border p-3",
242
+ "data-testid": "ai-plan-batch-progress",
243
+ children: [/* @__PURE__ */ h("p", {
244
+ className: "text-sm text-muted-foreground",
245
+ children: [
246
+ "Creating ",
247
+ ce,
248
+ " of ",
249
+ G.length,
250
+ "…"
251
+ ]
252
+ }), /* @__PURE__ */ m(_, {
253
+ variant: "outline",
254
+ size: "sm",
255
+ onClick: () => {
256
+ q.current = !0;
257
+ },
258
+ "data-testid": "ai-plan-stop",
259
+ children: "Stop"
260
+ })]
261
+ }),
262
+ !V && U && /* @__PURE__ */ h("p", {
263
+ role: "status",
264
+ className: "text-sm text-muted-foreground",
265
+ "data-testid": "ai-plan-stopped",
266
+ children: [
267
+ "Stopped early — ",
268
+ le,
269
+ " of ",
270
+ G.length,
271
+ " created. The remaining suggestions were left untouched; review and confirm again to create them."
272
+ ]
273
+ }),
274
+ /* @__PURE__ */ m("div", {
237
275
  className: "space-y-3",
238
- children: I.map((e) => {
239
- let t = H[e.localId], n = c(e.estimateHours), r = !e.title.trim();
240
- return /* @__PURE__ */ g(b, {
276
+ children: N.map((e) => {
277
+ let t = z[e.localId], n = o(e.estimateHours), r = !e.title.trim();
278
+ return /* @__PURE__ */ m(v, {
241
279
  "data-testid": "ai-suggestion-card",
242
- children: /* @__PURE__ */ g(x, {
280
+ children: /* @__PURE__ */ m(y, {
243
281
  className: "space-y-3 pt-4",
244
- children: /* @__PURE__ */ _("div", {
282
+ children: /* @__PURE__ */ h("div", {
245
283
  className: "flex items-start gap-3",
246
- children: [/* @__PURE__ */ g(C, {
284
+ children: [/* @__PURE__ */ m(x, {
247
285
  id: `ai-suggestion-include-${e.localId}`,
248
286
  checked: e.include,
249
- disabled: W || t?.status === "created",
287
+ disabled: V || t?.status === "created",
250
288
  onCheckedChange: (t) => Q(e.localId, { include: t === !0 }),
251
289
  "data-testid": "ai-suggestion-include",
252
290
  "aria-label": `Include "${e.title}"`
253
- }), /* @__PURE__ */ _("div", {
291
+ }), /* @__PURE__ */ h("div", {
254
292
  className: "flex-1 space-y-3",
255
293
  children: [
256
- /* @__PURE__ */ _("div", { children: [
257
- /* @__PURE__ */ g("label", {
294
+ /* @__PURE__ */ h("div", { children: [
295
+ /* @__PURE__ */ m("label", {
258
296
  htmlFor: `ai-suggestion-title-${e.localId}`,
259
297
  className: "text-xs font-medium text-muted-foreground",
260
298
  children: "Title"
261
299
  }),
262
- /* @__PURE__ */ g(w, {
300
+ /* @__PURE__ */ m(S, {
263
301
  id: `ai-suggestion-title-${e.localId}`,
264
302
  "data-testid": "ai-suggestion-title",
265
303
  className: "mt-1",
266
304
  value: e.title,
267
- disabled: W,
305
+ disabled: V,
268
306
  "aria-invalid": r,
269
307
  onChange: (t) => Q(e.localId, { title: t.target.value })
270
308
  }),
271
- r && /* @__PURE__ */ g("p", {
309
+ r && /* @__PURE__ */ m("p", {
272
310
  role: "alert",
273
311
  className: "mt-1 text-xs text-destructive",
274
312
  children: "A title is required."
275
313
  })
276
314
  ] }),
277
- /* @__PURE__ */ _("div", {
315
+ /* @__PURE__ */ h("div", {
278
316
  className: "grid grid-cols-1 gap-3 sm:grid-cols-3",
279
317
  children: [
280
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
318
+ /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
281
319
  className: "text-xs font-medium text-muted-foreground",
282
320
  children: "Type"
283
- }), /* @__PURE__ */ g("select", {
284
- className: `mt-1 ${A}`,
321
+ }), /* @__PURE__ */ m("select", {
322
+ className: `mt-1 ${D}`,
285
323
  value: e.type,
286
- disabled: W,
324
+ disabled: V,
287
325
  "data-testid": "ai-suggestion-type",
288
326
  onChange: (t) => Q(e.localId, { type: t.target.value }),
289
- children: E.map((e) => /* @__PURE__ */ g("option", {
327
+ children: ie.map((e) => /* @__PURE__ */ m("option", {
290
328
  value: e,
291
- children: o(e)
329
+ children: i(e)
292
330
  }, e))
293
331
  })] }),
294
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
332
+ /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
295
333
  className: "text-xs font-medium text-muted-foreground",
296
334
  children: "Priority"
297
- }), /* @__PURE__ */ g("select", {
298
- className: `mt-1 ${A}`,
335
+ }), /* @__PURE__ */ m("select", {
336
+ className: `mt-1 ${D}`,
299
337
  value: e.priority,
300
- disabled: W,
338
+ disabled: V,
301
339
  "data-testid": "ai-suggestion-priority",
302
340
  onChange: (t) => Q(e.localId, { priority: t.target.value }),
303
- children: a.map((e) => /* @__PURE__ */ g("option", {
341
+ children: te.map((e) => /* @__PURE__ */ m("option", {
304
342
  value: e,
305
- children: o(e)
343
+ children: i(e)
306
344
  }, e))
307
345
  })] }),
308
- /* @__PURE__ */ _("div", { children: [
309
- /* @__PURE__ */ g("label", {
346
+ /* @__PURE__ */ h("div", { children: [
347
+ /* @__PURE__ */ m("label", {
310
348
  htmlFor: `ai-suggestion-estimate-${e.localId}`,
311
349
  className: "text-xs font-medium text-muted-foreground",
312
350
  children: "Estimate (hours)"
313
351
  }),
314
- /* @__PURE__ */ g(w, {
352
+ /* @__PURE__ */ m(S, {
315
353
  id: `ai-suggestion-estimate-${e.localId}`,
316
354
  "data-testid": "ai-suggestion-estimate",
317
355
  type: "number",
@@ -319,11 +357,11 @@ function j() {
319
357
  step: .25,
320
358
  className: "mt-1",
321
359
  value: e.estimateHours,
322
- disabled: W,
360
+ disabled: V,
323
361
  "aria-invalid": n.invalid,
324
362
  onChange: (t) => Q(e.localId, { estimateHours: t.target.value })
325
363
  }),
326
- n.invalid && /* @__PURE__ */ g("p", {
364
+ n.invalid && /* @__PURE__ */ m("p", {
327
365
  role: "alert",
328
366
  className: "mt-1 text-xs text-destructive",
329
367
  children: "Hours must be 0 or more."
@@ -331,37 +369,37 @@ function j() {
331
369
  ] })
332
370
  ]
333
371
  }),
334
- /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("label", {
372
+ /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("label", {
335
373
  className: "text-xs font-medium text-muted-foreground",
336
374
  children: "Description"
337
- }), /* @__PURE__ */ g(T, {
375
+ }), /* @__PURE__ */ m(C, {
338
376
  className: "mt-1 min-h-[80px]",
339
377
  value: e.description,
340
- disabled: W,
378
+ disabled: V,
341
379
  "data-testid": "ai-suggestion-description",
342
380
  onChange: (t) => Q(e.localId, { description: t.target.value })
343
381
  })] }),
344
- t?.status === "creating" && /* @__PURE__ */ g("p", {
382
+ t?.status === "creating" && /* @__PURE__ */ m("p", {
345
383
  className: "text-xs text-muted-foreground",
346
384
  "data-testid": "ai-suggestion-result",
347
385
  children: "Creating…"
348
386
  }),
349
- t?.status === "created" && /* @__PURE__ */ _("div", {
387
+ t?.status === "created" && /* @__PURE__ */ h("div", {
350
388
  className: "flex items-center gap-2 text-xs",
351
389
  "data-testid": "ai-suggestion-result",
352
- children: [/* @__PURE__ */ g(v, {
390
+ children: [/* @__PURE__ */ m(g, {
353
391
  variant: "success",
354
392
  children: "Created"
355
- }), /* @__PURE__ */ g("button", {
393
+ }), /* @__PURE__ */ m("button", {
356
394
  type: "button",
357
395
  className: "text-primary underline",
358
- onClick: () => j(`/tasks/task-detail-page?taskId=${encodeURIComponent(t.workItemId)}`),
396
+ onClick: () => O(`/tasks/task-detail-page?taskId=${encodeURIComponent(t.workItemId)}`),
359
397
  children: "Open task"
360
398
  })]
361
399
  }),
362
- t?.status === "error" && /* @__PURE__ */ g("div", {
400
+ t?.status === "error" && /* @__PURE__ */ m("div", {
363
401
  "data-testid": "ai-suggestion-result",
364
- children: /* @__PURE__ */ g(i, { message: t.message })
402
+ children: /* @__PURE__ */ m(ee, { message: t.message })
365
403
  })
366
404
  ]
367
405
  })]
@@ -376,4 +414,4 @@ function j() {
376
414
  });
377
415
  }
378
416
  //#endregion
379
- export { j as AiPlanPagePage };
417
+ export { O as AiPlanPagePage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-planmagnet",
3
- "version": "2026.1101.1",
3
+ "version": "2026.1108.1",
4
4
  "description": "Burdenoff PlanMagnet Microfrontend",
5
5
  "type": "module",
6
6
  "files": [