@burdenoff/microfe-planmagnet 2026.801.1 → 2026.829.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/planmagnet/PlanMagnetRoot.d.ts.map +1 -1
- package/dist/planmagnet/PlanMagnetRoot.js +104 -104
- package/dist/planmagnet/PlanMagnetRoot.js.map +1 -1
- package/dist/planmagnet/admin/PlanMagnetAdminRoot.d.ts.map +1 -1
- package/dist/planmagnet/admin/PlanMagnetAdminRoot.js +134 -134
- package/dist/planmagnet/admin/PlanMagnetAdminRoot.js.map +1 -1
- package/dist/planmagnet/pages/ProductsFeaturesPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProductsFeaturesPagePage.js +92 -91
- package/dist/planmagnet/pages/ProductsFeaturesPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProductsRoadmapsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProductsRoadmapsPagePage.js +66 -65
- package/dist/planmagnet/pages/ProductsRoadmapsPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ProjectsProjectsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ProjectsProjectsPagePage.js +71 -70
- package/dist/planmagnet/pages/ProjectsProjectsPagePage.js.map +1 -1
- package/dist/planmagnet/pages/ReportsReportsPagePage.d.ts.map +1 -1
- package/dist/planmagnet/pages/ReportsReportsPagePage.js +1 -1
- package/dist/planmagnet/pages/ReportsReportsPagePage.js.map +1 -1
- package/dist/shared/hooks/useTr.d.ts +12 -0
- package/dist/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/shared/hooks/useTr.js +15 -0
- package/dist/shared/hooks/useTr.js.map +1 -0
- package/dist/shared/utils/i18n.d.ts +5 -0
- package/dist/shared/utils/i18n.d.ts.map +1 -0
- package/dist/shared/utils/i18n.js +8 -0
- package/dist/shared/utils/i18n.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PlanMagnetProvider as e, usePlanMagnet as t } from "../providers/PlanMagnetProvider.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { useTr as n } from "../../shared/hooks/useTr.js";
|
|
3
|
+
import { cn as r } from "../utils/cn.js";
|
|
4
|
+
import { useMemo as i, useState as a } from "react";
|
|
5
|
+
import { AlertCircle as o, Archive as s, FolderKanban as c, LayoutTemplate as l, Loader2 as u, Zap as d } from "lucide-react";
|
|
6
|
+
import { gql as f } from "@apollo/client";
|
|
7
|
+
import { useMutation as p, useQuery as m } from "@apollo/client/react";
|
|
8
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
9
9
|
import { Badge as v, Button as y, Card as b, CardContent as x, CardHeader as S, CardTitle as C, Checkbox as w, Skeleton as T } from "@burdenoff/fe-libs/ui";
|
|
10
10
|
//#region src/planmagnet/admin/PlanMagnetAdminRoot.tsx
|
|
11
|
-
var E =
|
|
11
|
+
var E = f`
|
|
12
12
|
query AdminPlanmagnetProjects($workspaceId: ID!) {
|
|
13
13
|
planmagnetProjects(workspaceId: $workspaceId, pagination: { first: 100 }) {
|
|
14
14
|
items {
|
|
@@ -23,7 +23,7 @@ var E = d`
|
|
|
23
23
|
totalCount
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`, D =
|
|
26
|
+
`, D = f`
|
|
27
27
|
query AdminPlanmagnetBoards($workspaceId: ID!) {
|
|
28
28
|
planmagnetBoards(workspaceId: $workspaceId, pagination: { first: 100 }) {
|
|
29
29
|
items {
|
|
@@ -35,7 +35,7 @@ var E = d`
|
|
|
35
35
|
totalCount
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`, O =
|
|
38
|
+
`, O = f`
|
|
39
39
|
query AdminPlanmagnetAutomationRules($workspaceId: ID!) {
|
|
40
40
|
planmagnetAutomationRules(workspaceId: $workspaceId, pagination: { first: 100 }) {
|
|
41
41
|
items {
|
|
@@ -50,9 +50,9 @@ var E = d`
|
|
|
50
50
|
totalCount
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
`, k =
|
|
54
|
-
mutation
|
|
55
|
-
|
|
53
|
+
`, k = f`
|
|
54
|
+
mutation AdminArchiveProjectr($id: ID!) {
|
|
55
|
+
planmagnetUpdateProjectr(id: $id, input: { status: ARCHIVED }) {
|
|
56
56
|
id
|
|
57
57
|
status
|
|
58
58
|
}
|
|
@@ -92,38 +92,38 @@ function N(e) {
|
|
|
92
92
|
function P(e) {
|
|
93
93
|
return e.toLowerCase().replace(/_/g, " ");
|
|
94
94
|
}
|
|
95
|
-
function F({ icon: e, label: t, used:
|
|
96
|
-
let o = Math.min(100, Math.round(
|
|
97
|
-
return /* @__PURE__ */
|
|
95
|
+
function F({ icon: e, label: t, used: n, limit: i, className: a }) {
|
|
96
|
+
let o = Math.min(100, Math.round(n / Math.max(1, i) * 100));
|
|
97
|
+
return /* @__PURE__ */ g(b, {
|
|
98
98
|
className: a,
|
|
99
|
-
children: /* @__PURE__ */
|
|
99
|
+
children: /* @__PURE__ */ _(x, {
|
|
100
100
|
className: "pt-6",
|
|
101
101
|
children: [
|
|
102
|
-
/* @__PURE__ */
|
|
102
|
+
/* @__PURE__ */ _("div", {
|
|
103
103
|
className: "flex items-center gap-2 text-muted-foreground",
|
|
104
|
-
children: [/* @__PURE__ */
|
|
104
|
+
children: [/* @__PURE__ */ g(e, { className: "h-4 w-4" }), /* @__PURE__ */ g("span", {
|
|
105
105
|
className: "text-sm",
|
|
106
106
|
children: t
|
|
107
107
|
})]
|
|
108
108
|
}),
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ _("div", {
|
|
110
110
|
className: "mt-2 flex items-baseline gap-2",
|
|
111
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ g("span", {
|
|
112
112
|
className: "text-2xl font-semibold",
|
|
113
|
-
children:
|
|
114
|
-
}), /* @__PURE__ */
|
|
113
|
+
children: n
|
|
114
|
+
}), /* @__PURE__ */ _("span", {
|
|
115
115
|
className: "text-sm text-muted-foreground",
|
|
116
116
|
children: ["/ ", i]
|
|
117
117
|
})]
|
|
118
118
|
}),
|
|
119
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ g("div", {
|
|
120
120
|
className: "mt-3 h-2 w-full overflow-hidden rounded-full bg-muted",
|
|
121
|
-
children: /* @__PURE__ */
|
|
122
|
-
className:
|
|
121
|
+
children: /* @__PURE__ */ g("div", {
|
|
122
|
+
className: r("h-full rounded-full transition-all", o >= 90 ? "bg-destructive" : o >= 70 ? "bg-warning" : "bg-success"),
|
|
123
123
|
style: { width: `${o}%` }
|
|
124
124
|
})
|
|
125
125
|
}),
|
|
126
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ _("p", {
|
|
127
127
|
className: "mt-2 text-xs text-muted-foreground",
|
|
128
128
|
children: [o, "% used"]
|
|
129
129
|
})
|
|
@@ -132,31 +132,31 @@ function F({ icon: e, label: t, used: r, limit: i, className: a }) {
|
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
function I() {
|
|
135
|
-
return /* @__PURE__ */
|
|
135
|
+
return /* @__PURE__ */ _("div", {
|
|
136
136
|
className: "space-y-3",
|
|
137
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ g(T, { className: "h-8 w-1/3" }), /* @__PURE__ */ g(T, { className: "h-32 w-full" })]
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
function L({ columns: e, data: t, emptyState:
|
|
141
|
-
return t.length === 0 ? /* @__PURE__ */
|
|
140
|
+
function L({ columns: e, data: t, emptyState: n }) {
|
|
141
|
+
return t.length === 0 ? /* @__PURE__ */ g("div", {
|
|
142
142
|
className: "py-8 text-center text-sm text-muted-foreground",
|
|
143
|
-
children:
|
|
144
|
-
}) : /* @__PURE__ */
|
|
143
|
+
children: n
|
|
144
|
+
}) : /* @__PURE__ */ g("div", {
|
|
145
145
|
className: "overflow-x-auto",
|
|
146
|
-
children: /* @__PURE__ */
|
|
146
|
+
children: /* @__PURE__ */ _("table", {
|
|
147
147
|
className: "w-full text-sm",
|
|
148
|
-
children: [/* @__PURE__ */
|
|
148
|
+
children: [/* @__PURE__ */ g("thead", {
|
|
149
149
|
className: "bg-muted/50",
|
|
150
|
-
children: /* @__PURE__ */
|
|
151
|
-
className:
|
|
150
|
+
children: /* @__PURE__ */ g("tr", { children: e.map((e) => /* @__PURE__ */ g("th", {
|
|
151
|
+
className: r("px-4 py-3 text-left font-medium text-muted-foreground", e.className),
|
|
152
152
|
children: e.header
|
|
153
153
|
}, e.key)) })
|
|
154
|
-
}), /* @__PURE__ */
|
|
154
|
+
}), /* @__PURE__ */ g("tbody", {
|
|
155
155
|
className: "divide-y",
|
|
156
|
-
children: t.map((t) => /* @__PURE__ */
|
|
156
|
+
children: t.map((t) => /* @__PURE__ */ g("tr", {
|
|
157
157
|
className: "hover:bg-muted/30",
|
|
158
|
-
children: e.map((e) => /* @__PURE__ */
|
|
159
|
-
className:
|
|
158
|
+
children: e.map((e) => /* @__PURE__ */ g("td", {
|
|
159
|
+
className: r("px-4 py-3", e.className),
|
|
160
160
|
children: e.cell(t)
|
|
161
161
|
}, `${t.id}-${e.key}`))
|
|
162
162
|
}, t.id))
|
|
@@ -165,130 +165,130 @@ function L({ columns: e, data: t, emptyState: r }) {
|
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
167
|
function R() {
|
|
168
|
-
let { workspaceId: e } = t(),
|
|
168
|
+
let { workspaceId: e } = t(), r = n(), [f, T] = a(/* @__PURE__ */ new Set()), [R, z] = a(!1), [B, V] = a(null), H = m(E, {
|
|
169
169
|
variables: { workspaceId: e ?? "" },
|
|
170
170
|
skip: !e
|
|
171
|
-
}),
|
|
171
|
+
}), U = m(D, {
|
|
172
172
|
variables: { workspaceId: e ?? "" },
|
|
173
173
|
skip: !e
|
|
174
|
-
}),
|
|
174
|
+
}), W = m(O, {
|
|
175
175
|
variables: { workspaceId: e ?? "" },
|
|
176
176
|
skip: !e
|
|
177
|
-
}), [
|
|
178
|
-
|
|
177
|
+
}), [G] = p(k), K = H.data?.planmagnetProjects.items ?? [], q = U.data?.planmagnetBoards.items ?? [], J = W.data?.planmagnetAutomationRules.items ?? [], Y = i(() => K.filter((e) => e.status === "ACTIVE"), [K]), X = (e) => {
|
|
178
|
+
T((t) => {
|
|
179
179
|
let n = new Set(t);
|
|
180
180
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
181
181
|
});
|
|
182
|
-
},
|
|
183
|
-
let e =
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
if (
|
|
187
|
-
|
|
182
|
+
}, Z = () => {
|
|
183
|
+
let e = Y.filter((e) => e.status !== "ARCHIVED");
|
|
184
|
+
f.size === e.length ? T(/* @__PURE__ */ new Set()) : T(new Set(e.map((e) => e.id)));
|
|
185
|
+
}, Q = async () => {
|
|
186
|
+
if (f.size !== 0) {
|
|
187
|
+
z(!0), V(null);
|
|
188
188
|
try {
|
|
189
|
-
await Promise.all(Array.from(
|
|
189
|
+
await Promise.all(Array.from(f).map((e) => G({ variables: { id: e } }))), await H.refetch(), T(/* @__PURE__ */ new Set());
|
|
190
190
|
} catch (e) {
|
|
191
|
-
|
|
191
|
+
V(e instanceof Error ? e.message : r("planmagnet.admin.archive.unknownError", "Bulk archive failed"));
|
|
192
192
|
} finally {
|
|
193
|
-
|
|
193
|
+
z(!1);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
-
if (!e) return /* @__PURE__ */
|
|
197
|
+
if (!e) return /* @__PURE__ */ g("div", {
|
|
198
198
|
className: "min-h-screen bg-background",
|
|
199
|
-
children: /* @__PURE__ */
|
|
199
|
+
children: /* @__PURE__ */ _("div", {
|
|
200
200
|
className: "flex min-h-[320px] flex-col items-center justify-center gap-3 text-muted-foreground",
|
|
201
|
-
children: [/* @__PURE__ */
|
|
201
|
+
children: [/* @__PURE__ */ g(o, { className: "h-8 w-8" }), /* @__PURE__ */ g("p", { children: r("planmagnet.admin.noWorkspace", "Select a workspace to manage PlanMagnet admin settings.") })]
|
|
202
202
|
})
|
|
203
203
|
});
|
|
204
|
-
let
|
|
205
|
-
return /* @__PURE__ */
|
|
204
|
+
let $ = H.loading || U.loading || W.loading;
|
|
205
|
+
return /* @__PURE__ */ g("div", {
|
|
206
206
|
className: "min-h-screen bg-background",
|
|
207
|
-
children: /* @__PURE__ */
|
|
207
|
+
children: /* @__PURE__ */ _("div", {
|
|
208
208
|
className: "mx-auto max-w-7xl space-y-6 p-6",
|
|
209
209
|
children: [
|
|
210
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ g("div", {
|
|
211
211
|
className: "flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between",
|
|
212
|
-
children: /* @__PURE__ */
|
|
212
|
+
children: /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("h1", {
|
|
213
213
|
className: "text-2xl font-semibold tracking-tight",
|
|
214
|
-
children:
|
|
215
|
-
}), /* @__PURE__ */
|
|
214
|
+
children: r("planmagnet.admin.title", "PlanMagnet Admin")
|
|
215
|
+
}), /* @__PURE__ */ g("p", {
|
|
216
216
|
className: "text-sm text-muted-foreground",
|
|
217
|
-
children:
|
|
217
|
+
children: r("planmagnet.admin.purpose", "Workspace quota overview, bulk project archive, and automation rule audit.")
|
|
218
218
|
})] })
|
|
219
219
|
}),
|
|
220
|
-
/* @__PURE__ */
|
|
220
|
+
/* @__PURE__ */ _("div", {
|
|
221
221
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
222
222
|
children: [
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
icon:
|
|
225
|
-
label:
|
|
226
|
-
used:
|
|
223
|
+
/* @__PURE__ */ g(F, {
|
|
224
|
+
icon: c,
|
|
225
|
+
label: r("planmagnet.admin.quota.projects", "Projects"),
|
|
226
|
+
used: K.length,
|
|
227
227
|
limit: 50
|
|
228
228
|
}),
|
|
229
|
-
/* @__PURE__ */
|
|
230
|
-
icon:
|
|
231
|
-
label:
|
|
232
|
-
used:
|
|
229
|
+
/* @__PURE__ */ g(F, {
|
|
230
|
+
icon: l,
|
|
231
|
+
label: r("planmagnet.admin.quota.boards", "Boards"),
|
|
232
|
+
used: q.length,
|
|
233
233
|
limit: 100
|
|
234
234
|
}),
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
-
icon:
|
|
237
|
-
label:
|
|
238
|
-
used:
|
|
235
|
+
/* @__PURE__ */ g(F, {
|
|
236
|
+
icon: d,
|
|
237
|
+
label: r("planmagnet.admin.quota.automationRules", "Automation Rules"),
|
|
238
|
+
used: J.length,
|
|
239
239
|
limit: 25
|
|
240
240
|
})
|
|
241
241
|
]
|
|
242
242
|
}),
|
|
243
|
-
|
|
243
|
+
$ ? /* @__PURE__ */ g(I, {}) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ _(b, { children: [/* @__PURE__ */ _(S, {
|
|
244
244
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
245
|
-
children: [/* @__PURE__ */
|
|
245
|
+
children: [/* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(C, { children: r("planmagnet.admin.archive.title", "Bulk Project Archive") }), /* @__PURE__ */ g("p", {
|
|
246
246
|
className: "text-sm text-muted-foreground",
|
|
247
|
-
children:
|
|
248
|
-
})] }), /* @__PURE__ */
|
|
247
|
+
children: r("planmagnet.admin.archive.subtitle", "Select active projects and archive them in one action.")
|
|
248
|
+
})] }), /* @__PURE__ */ _(y, {
|
|
249
249
|
size: "sm",
|
|
250
250
|
variant: "destructive",
|
|
251
|
-
disabled:
|
|
252
|
-
onClick:
|
|
251
|
+
disabled: f.size === 0 || R,
|
|
252
|
+
onClick: Q,
|
|
253
253
|
children: [
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
R ? /* @__PURE__ */ g(u, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ g(s, { className: "mr-2 h-4 w-4" }),
|
|
255
|
+
r("planmagnet.admin.archive.action", "Archive"),
|
|
256
256
|
" (",
|
|
257
|
-
|
|
257
|
+
f.size,
|
|
258
258
|
")"
|
|
259
259
|
]
|
|
260
260
|
})]
|
|
261
|
-
}), /* @__PURE__ */
|
|
261
|
+
}), /* @__PURE__ */ _(x, { children: [B && /* @__PURE__ */ _("div", {
|
|
262
262
|
className: "mb-4 flex items-center gap-2 rounded-md bg-destructive/10 p-3 text-sm text-destructive",
|
|
263
|
-
children: [/* @__PURE__ */
|
|
264
|
-
}), /* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ g(o, { className: "h-4 w-4" }), B]
|
|
264
|
+
}), /* @__PURE__ */ g("div", {
|
|
265
265
|
className: "rounded-md border",
|
|
266
|
-
children: /* @__PURE__ */
|
|
267
|
-
data:
|
|
266
|
+
children: /* @__PURE__ */ g(L, {
|
|
267
|
+
data: Y,
|
|
268
268
|
columns: [
|
|
269
269
|
{
|
|
270
270
|
key: "select",
|
|
271
|
-
header: /* @__PURE__ */
|
|
272
|
-
checked:
|
|
273
|
-
onCheckedChange:
|
|
274
|
-
"aria-label":
|
|
271
|
+
header: /* @__PURE__ */ g(w, {
|
|
272
|
+
checked: Y.length > 0 && f.size === Y.length,
|
|
273
|
+
onCheckedChange: Z,
|
|
274
|
+
"aria-label": r("planmagnet.admin.archive.selectAll", "Select all active projects")
|
|
275
275
|
}),
|
|
276
|
-
cell: (e) => /* @__PURE__ */
|
|
277
|
-
checked:
|
|
278
|
-
onCheckedChange: () =>
|
|
279
|
-
"aria-label":
|
|
276
|
+
cell: (e) => /* @__PURE__ */ g(w, {
|
|
277
|
+
checked: f.has(e.id),
|
|
278
|
+
onCheckedChange: () => X(e.id),
|
|
279
|
+
"aria-label": r("planmagnet.admin.archive.selectProject", "Select project")
|
|
280
280
|
}),
|
|
281
281
|
className: "w-12"
|
|
282
282
|
},
|
|
283
283
|
{
|
|
284
284
|
key: "name",
|
|
285
|
-
header:
|
|
286
|
-
cell: (e) => /* @__PURE__ */
|
|
285
|
+
header: r("planmagnet.admin.archive.column.name", "Project"),
|
|
286
|
+
cell: (e) => /* @__PURE__ */ _("div", {
|
|
287
287
|
className: "flex flex-col",
|
|
288
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ g("span", {
|
|
289
289
|
className: "font-medium",
|
|
290
290
|
children: e.name
|
|
291
|
-
}), /* @__PURE__ */
|
|
291
|
+
}), /* @__PURE__ */ g("span", {
|
|
292
292
|
className: "text-xs text-muted-foreground font-mono",
|
|
293
293
|
children: e.key
|
|
294
294
|
})]
|
|
@@ -296,97 +296,97 @@ function R() {
|
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
298
|
key: "status",
|
|
299
|
-
header:
|
|
300
|
-
cell: (e) => /* @__PURE__ */
|
|
299
|
+
header: r("planmagnet.admin.archive.column.status", "Status"),
|
|
300
|
+
cell: (e) => /* @__PURE__ */ g(v, {
|
|
301
301
|
variant: A(e.status),
|
|
302
302
|
children: e.status.toLowerCase().replace("_", " ")
|
|
303
303
|
})
|
|
304
304
|
},
|
|
305
305
|
{
|
|
306
306
|
key: "methodology",
|
|
307
|
-
header:
|
|
308
|
-
cell: (e) => /* @__PURE__ */
|
|
307
|
+
header: r("planmagnet.admin.archive.column.methodology", "Methodology"),
|
|
308
|
+
cell: (e) => /* @__PURE__ */ g("span", {
|
|
309
309
|
className: "text-sm capitalize",
|
|
310
310
|
children: N(e.methodology)
|
|
311
311
|
})
|
|
312
312
|
},
|
|
313
313
|
{
|
|
314
314
|
key: "owner",
|
|
315
|
-
header:
|
|
316
|
-
cell: (e) => /* @__PURE__ */
|
|
315
|
+
header: r("planmagnet.admin.archive.column.owner", "Owner"),
|
|
316
|
+
cell: (e) => /* @__PURE__ */ g("span", {
|
|
317
317
|
className: "text-sm text-muted-foreground font-mono",
|
|
318
318
|
children: e.ownerId
|
|
319
319
|
})
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
322
|
key: "created",
|
|
323
|
-
header:
|
|
324
|
-
cell: (e) => /* @__PURE__ */
|
|
323
|
+
header: r("planmagnet.admin.archive.column.created", "Created"),
|
|
324
|
+
cell: (e) => /* @__PURE__ */ g("span", {
|
|
325
325
|
className: "text-sm",
|
|
326
326
|
children: M(e.createdAt)
|
|
327
327
|
})
|
|
328
328
|
}
|
|
329
329
|
],
|
|
330
|
-
emptyState:
|
|
330
|
+
emptyState: r("planmagnet.admin.archive.empty", "No active projects to archive.")
|
|
331
331
|
})
|
|
332
|
-
})] })] }), /* @__PURE__ */
|
|
332
|
+
})] })] }), /* @__PURE__ */ _(b, { children: [/* @__PURE__ */ _(S, { children: [/* @__PURE__ */ g(C, { children: r("planmagnet.admin.automation.title", "Automation Rule Audit") }), /* @__PURE__ */ g("p", {
|
|
333
333
|
className: "text-sm text-muted-foreground",
|
|
334
|
-
children:
|
|
335
|
-
})] }), /* @__PURE__ */
|
|
334
|
+
children: r("planmagnet.admin.automation.subtitle", "Review rule health, execution counts, and last run timestamps.")
|
|
335
|
+
})] }), /* @__PURE__ */ g(x, { children: /* @__PURE__ */ g("div", {
|
|
336
336
|
className: "rounded-md border",
|
|
337
|
-
children: /* @__PURE__ */
|
|
338
|
-
data:
|
|
337
|
+
children: /* @__PURE__ */ g(L, {
|
|
338
|
+
data: J,
|
|
339
339
|
columns: [
|
|
340
340
|
{
|
|
341
341
|
key: "name",
|
|
342
|
-
header:
|
|
343
|
-
cell: (e) => /* @__PURE__ */
|
|
342
|
+
header: r("planmagnet.admin.automation.column.name", "Rule"),
|
|
343
|
+
cell: (e) => /* @__PURE__ */ g("span", {
|
|
344
344
|
className: "font-medium",
|
|
345
345
|
children: e.name
|
|
346
346
|
})
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
key: "trigger",
|
|
350
|
-
header:
|
|
351
|
-
cell: (e) => /* @__PURE__ */
|
|
350
|
+
header: r("planmagnet.admin.automation.column.trigger", "Trigger"),
|
|
351
|
+
cell: (e) => /* @__PURE__ */ g("span", {
|
|
352
352
|
className: "text-sm",
|
|
353
353
|
children: P(e.triggerType)
|
|
354
354
|
})
|
|
355
355
|
},
|
|
356
356
|
{
|
|
357
357
|
key: "status",
|
|
358
|
-
header:
|
|
359
|
-
cell: (e) => /* @__PURE__ */
|
|
358
|
+
header: r("planmagnet.admin.automation.column.status", "Status"),
|
|
359
|
+
cell: (e) => /* @__PURE__ */ g(v, {
|
|
360
360
|
variant: j(e.status),
|
|
361
361
|
children: e.status.toLowerCase()
|
|
362
362
|
})
|
|
363
363
|
},
|
|
364
364
|
{
|
|
365
365
|
key: "executions",
|
|
366
|
-
header:
|
|
367
|
-
cell: (e) => /* @__PURE__ */
|
|
366
|
+
header: r("planmagnet.admin.automation.column.executions", "Executions"),
|
|
367
|
+
cell: (e) => /* @__PURE__ */ g("span", {
|
|
368
368
|
className: "text-sm",
|
|
369
369
|
children: e.executionCount
|
|
370
370
|
})
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
key: "lastRun",
|
|
374
|
-
header:
|
|
375
|
-
cell: (e) => /* @__PURE__ */
|
|
374
|
+
header: r("planmagnet.admin.automation.column.lastRun", "Last Run"),
|
|
375
|
+
cell: (e) => /* @__PURE__ */ g("span", {
|
|
376
376
|
className: "text-sm",
|
|
377
377
|
children: M(e.lastExecutedAt)
|
|
378
378
|
})
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
381
|
key: "created",
|
|
382
|
-
header:
|
|
383
|
-
cell: (e) => /* @__PURE__ */
|
|
382
|
+
header: r("planmagnet.admin.automation.column.created", "Created"),
|
|
383
|
+
cell: (e) => /* @__PURE__ */ g("span", {
|
|
384
384
|
className: "text-sm",
|
|
385
385
|
children: M(e.createdAt)
|
|
386
386
|
})
|
|
387
387
|
}
|
|
388
388
|
],
|
|
389
|
-
emptyState:
|
|
389
|
+
emptyState: r("planmagnet.admin.automation.empty", "No automation rules found.")
|
|
390
390
|
})
|
|
391
391
|
}) })] })] })
|
|
392
392
|
]
|
|
@@ -394,9 +394,9 @@ function R() {
|
|
|
394
394
|
});
|
|
395
395
|
}
|
|
396
396
|
function z(t) {
|
|
397
|
-
return /* @__PURE__ */
|
|
397
|
+
return /* @__PURE__ */ g(e, {
|
|
398
398
|
...t,
|
|
399
|
-
children: /* @__PURE__ */
|
|
399
|
+
children: /* @__PURE__ */ g(R, {})
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
//#endregion
|