@burdenoff/microfe-product 2026.513.2 → 2026.513.3
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 +2849 -298
- package/dist/generated/global-types.d.ts.map +1 -1
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +3200 -334
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.d.ts.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +198 -166
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlagsListPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagsListPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FeatureFlagsListPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagsListPage.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AA2M1C,eAAO,MAAM,oBAAoB,EAAE,EAsWlC,CAAC"}
|
|
@@ -9,192 +9,224 @@ import { EmptyState as l } from "../../../shared/components/feedback/EmptyState.
|
|
|
9
9
|
import "../../../shared/index.js";
|
|
10
10
|
import { FeatureFlagStatusBadge as u } from "../components/FeatureFlagStatusBadge.js";
|
|
11
11
|
import { FeatureFlagTypeBadge as d } from "../components/FeatureFlagTypeBadge.js";
|
|
12
|
-
import { useCreateFeatureFlag as f, useDeleteFeatureFlag as p, useFeatureFlags as m } from "../hooks/useFeatureFlags.js";
|
|
13
|
-
import { useState as
|
|
14
|
-
import { Download as
|
|
15
|
-
import { jsx as
|
|
16
|
-
import { PermissionGate as
|
|
12
|
+
import { useCreateFeatureFlag as f, useDeleteFeatureFlag as p, useFeatureFlags as m, useUpdateFeatureFlag as h } from "../hooks/useFeatureFlags.js";
|
|
13
|
+
import { useState as g } from "react";
|
|
14
|
+
import { Download as _, Eye as v, Flag as y, Plus as b, RefreshCw as x, Sparkles as S, SquarePen as C, Trash2 as w } from "lucide-react";
|
|
15
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
16
|
+
import { PermissionGate as D } from "@burdenoff/fe-libs/shared/components";
|
|
17
17
|
//#region src/product-management/modules/feature-flags/pages/FeatureFlagsListPage.tsx
|
|
18
|
-
var
|
|
18
|
+
var O = [
|
|
19
19
|
{
|
|
20
20
|
key: "vibecontrols.overview",
|
|
21
21
|
name: "Overview Dashboard",
|
|
22
22
|
description: "Main dashboard with workspace overview and quick actions.",
|
|
23
23
|
category: "vibecontrols",
|
|
24
|
-
previewable: !0
|
|
24
|
+
previewable: !0,
|
|
25
|
+
defaultValue: !0
|
|
25
26
|
},
|
|
26
27
|
{
|
|
27
28
|
key: "vibecontrols.vibes",
|
|
28
29
|
name: "Vibes",
|
|
29
30
|
description: "Manage vibes — containers for your development work.",
|
|
30
31
|
category: "vibecontrols",
|
|
31
|
-
previewable: !0
|
|
32
|
+
previewable: !0,
|
|
33
|
+
defaultValue: !0
|
|
32
34
|
},
|
|
33
35
|
{
|
|
34
36
|
key: "vibecontrols.sessions",
|
|
35
37
|
name: "Sessions",
|
|
36
38
|
description: "Terminal sessions for interacting with agents and targets.",
|
|
37
39
|
category: "vibecontrols",
|
|
38
|
-
previewable: !0
|
|
40
|
+
previewable: !0,
|
|
41
|
+
defaultValue: !0
|
|
39
42
|
},
|
|
40
43
|
{
|
|
41
44
|
key: "vibecontrols.ai",
|
|
42
45
|
name: "AI Vibecoding",
|
|
43
46
|
description: "AI-powered coding sessions with intelligent assistance.",
|
|
44
47
|
category: "vibecontrols",
|
|
45
|
-
previewable: !0
|
|
48
|
+
previewable: !0,
|
|
49
|
+
defaultValue: !0
|
|
46
50
|
},
|
|
47
51
|
{
|
|
48
52
|
key: "vibecontrols.targets",
|
|
49
53
|
name: "Targets",
|
|
50
54
|
description: "Remote machines and environments you can connect to.",
|
|
51
55
|
category: "vibecontrols",
|
|
52
|
-
previewable: !0
|
|
56
|
+
previewable: !0,
|
|
57
|
+
defaultValue: !0
|
|
53
58
|
},
|
|
54
59
|
{
|
|
55
60
|
key: "vibecontrols.agents",
|
|
56
61
|
name: "Agents",
|
|
57
62
|
description: "Manage agents that run on your infrastructure.",
|
|
58
63
|
category: "vibecontrols",
|
|
59
|
-
previewable: !0
|
|
64
|
+
previewable: !0,
|
|
65
|
+
defaultValue: !0
|
|
60
66
|
},
|
|
61
67
|
{
|
|
62
68
|
key: "vibecontrols.catalogs",
|
|
63
69
|
name: "Catalogs",
|
|
64
70
|
description: "Service catalogs for organizing infrastructure components.",
|
|
65
71
|
category: "vibecontrols",
|
|
66
|
-
previewable: !0
|
|
72
|
+
previewable: !0,
|
|
73
|
+
defaultValue: !0
|
|
67
74
|
},
|
|
68
75
|
{
|
|
69
76
|
key: "vibecontrols.components",
|
|
70
77
|
name: "Components",
|
|
71
78
|
description: "Reusable infrastructure components and building blocks.",
|
|
72
79
|
category: "vibecontrols",
|
|
73
|
-
previewable: !0
|
|
80
|
+
previewable: !0,
|
|
81
|
+
defaultValue: !0
|
|
74
82
|
},
|
|
75
83
|
{
|
|
76
84
|
key: "vibecontrols.templates",
|
|
77
85
|
name: "Templates",
|
|
78
86
|
description: "Pre-built templates for quick project setup.",
|
|
79
87
|
category: "vibecontrols",
|
|
80
|
-
previewable: !0
|
|
88
|
+
previewable: !0,
|
|
89
|
+
defaultValue: !0
|
|
81
90
|
},
|
|
82
91
|
{
|
|
83
92
|
key: "vibecontrols.actions",
|
|
84
93
|
name: "Actions",
|
|
85
94
|
description: "Automated actions and workflows triggered by events.",
|
|
86
95
|
category: "vibecontrols",
|
|
87
|
-
previewable: !0
|
|
96
|
+
previewable: !0,
|
|
97
|
+
defaultValue: !0
|
|
88
98
|
},
|
|
89
99
|
{
|
|
90
100
|
key: "vibecontrols.vibedeck",
|
|
91
101
|
name: "Vibe Decks",
|
|
92
102
|
description: "Visual dashboards for monitoring and sharing vibe status.",
|
|
93
103
|
category: "vibecontrols",
|
|
94
|
-
previewable: !0
|
|
104
|
+
previewable: !0,
|
|
105
|
+
defaultValue: !0
|
|
95
106
|
},
|
|
96
107
|
{
|
|
97
108
|
key: "vibecontrols.calendar",
|
|
98
109
|
name: "Calendar",
|
|
99
110
|
description: "Schedule and track vibe tasks with calendar views.",
|
|
100
111
|
category: "vibecontrols",
|
|
101
|
-
previewable: !0
|
|
112
|
+
previewable: !0,
|
|
113
|
+
defaultValue: !0
|
|
102
114
|
},
|
|
103
115
|
{
|
|
104
116
|
key: "vibecontrols.webhooks",
|
|
105
117
|
name: "Webhooks",
|
|
106
118
|
description: "Configure webhooks for event-driven integrations.",
|
|
107
119
|
category: "vibecontrols",
|
|
108
|
-
previewable: !0
|
|
120
|
+
previewable: !0,
|
|
121
|
+
defaultValue: !0
|
|
109
122
|
},
|
|
110
123
|
{
|
|
111
124
|
key: "vibecontrols.gitops",
|
|
112
125
|
name: "GitOps",
|
|
113
126
|
description: "Git-based operations and repository management.",
|
|
114
127
|
category: "vibecontrols",
|
|
115
|
-
previewable: !0
|
|
128
|
+
previewable: !0,
|
|
129
|
+
defaultValue: !0
|
|
116
130
|
},
|
|
117
131
|
{
|
|
118
132
|
key: "vibecontrols.agent-graph",
|
|
119
133
|
name: "Agent Graph",
|
|
120
134
|
description: "Visualize agent connections and infrastructure topology.",
|
|
121
135
|
category: "vibecontrols",
|
|
122
|
-
previewable: !0
|
|
136
|
+
previewable: !0,
|
|
137
|
+
defaultValue: !1
|
|
123
138
|
},
|
|
124
139
|
{
|
|
125
140
|
key: "vibecontrols.tunnels",
|
|
126
141
|
name: "Tunnels",
|
|
127
142
|
description: "Secure tunnels for connecting to remote infrastructure.",
|
|
128
143
|
category: "vibecontrols",
|
|
129
|
-
previewable: !0
|
|
144
|
+
previewable: !0,
|
|
145
|
+
defaultValue: !0
|
|
130
146
|
},
|
|
131
147
|
{
|
|
132
148
|
key: "vibecontrols.health",
|
|
133
149
|
name: "Health Monitor",
|
|
134
150
|
description: "Monitor the health of your agents and infrastructure.",
|
|
135
151
|
category: "vibecontrols",
|
|
136
|
-
previewable: !0
|
|
152
|
+
previewable: !0,
|
|
153
|
+
defaultValue: !0
|
|
137
154
|
},
|
|
138
155
|
{
|
|
139
156
|
key: "vibecontrols.analytics",
|
|
140
157
|
name: "Analytics",
|
|
141
158
|
description: "Usage analytics and performance metrics.",
|
|
142
159
|
category: "vibecontrols",
|
|
143
|
-
previewable: !0
|
|
160
|
+
previewable: !0,
|
|
161
|
+
defaultValue: !0
|
|
144
162
|
},
|
|
145
163
|
{
|
|
146
164
|
key: "vibecontrols.audit-log",
|
|
147
165
|
name: "Audit Log",
|
|
148
166
|
description: "View detailed audit trail of all actions — who did what, when, and from where.",
|
|
149
167
|
category: "vibecontrols",
|
|
150
|
-
previewable: !0
|
|
168
|
+
previewable: !0,
|
|
169
|
+
defaultValue: !0
|
|
151
170
|
},
|
|
152
171
|
{
|
|
153
172
|
key: "vibecontrols.settings",
|
|
154
173
|
name: "Settings",
|
|
155
174
|
description: "Configure VibeControls preferences and workspace defaults.",
|
|
156
175
|
category: "vibecontrols",
|
|
157
|
-
previewable: !0
|
|
176
|
+
previewable: !0,
|
|
177
|
+
defaultValue: !0
|
|
158
178
|
},
|
|
159
179
|
{
|
|
160
180
|
key: "vibecontrols.logs",
|
|
161
181
|
name: "Logs",
|
|
162
182
|
description: "View and search application logs and events.",
|
|
163
183
|
category: "vibecontrols",
|
|
164
|
-
previewable: !0
|
|
184
|
+
previewable: !0,
|
|
185
|
+
defaultValue: !0
|
|
165
186
|
}
|
|
166
|
-
],
|
|
167
|
-
let { navigate:
|
|
168
|
-
|
|
169
|
-
let { featureFlags:
|
|
187
|
+
], k = () => {
|
|
188
|
+
let { navigate: k, basePath: A } = t(), [j, M] = g(""), N = e(), [P, F] = g(""), [I, L] = g(""), R = {};
|
|
189
|
+
j && (R.search = j), P && (R.status = P), I && (R.category = I);
|
|
190
|
+
let { featureFlags: z, total: B, loading: V, error: H, refetch: U } = m(R, { limit: 100 }), { deleteFeatureFlag: W } = p(), { createFeatureFlag: G } = f(), { updateFeatureFlag: K } = h(), [q, J] = g(!1), Y = async () => {
|
|
170
191
|
s("light");
|
|
171
|
-
let e = "This will create default VibeControls feature flags
|
|
192
|
+
let e = "This will create default VibeControls feature flags and reconcile defaultValue on any that already exist. Continue?", t = await o({
|
|
172
193
|
title: "Seed defaults",
|
|
173
194
|
message: e,
|
|
174
195
|
okButtonTitle: "Continue",
|
|
175
196
|
cancelButtonTitle: "Cancel"
|
|
176
197
|
});
|
|
177
198
|
if (!(t === null ? window.confirm(e) : t)) return;
|
|
178
|
-
|
|
179
|
-
let n = 0, r = [],
|
|
199
|
+
J(!0);
|
|
200
|
+
let n = 0, r = 0, i = [], a = new Map(z.map((e) => [e.key, e]));
|
|
180
201
|
try {
|
|
181
|
-
for (let e of
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
202
|
+
for (let e of O) {
|
|
203
|
+
let t = a.get(e.key);
|
|
204
|
+
if (t) {
|
|
205
|
+
if (t.defaultValue !== e.defaultValue) try {
|
|
206
|
+
await K(t.id, { defaultValue: e.defaultValue }), r++;
|
|
207
|
+
} catch (t) {
|
|
208
|
+
let n = t instanceof Error ? t.message : String(t);
|
|
209
|
+
i.push(`${e.key} (update): ${n}`);
|
|
210
|
+
}
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
try {
|
|
214
|
+
await G({
|
|
215
|
+
...e,
|
|
216
|
+
flagType: "BOOLEAN"
|
|
217
|
+
}), n++;
|
|
218
|
+
} catch (t) {
|
|
219
|
+
let n = t instanceof Error ? t.message : String(t);
|
|
220
|
+
if (n.includes("already exists") || n.includes("CONFLICT") || n.includes("P2002")) continue;
|
|
221
|
+
i.push(`${e.key}: ${n}`);
|
|
222
|
+
}
|
|
191
223
|
}
|
|
192
224
|
} finally {
|
|
193
|
-
|
|
225
|
+
J(!1);
|
|
194
226
|
}
|
|
195
|
-
let
|
|
196
|
-
window.alert(
|
|
197
|
-
},
|
|
227
|
+
let c = i.length > 0 ? `Created ${n}, updated ${r}. ${i.length} failed:\n${i.join("\n")}` : `Created ${n}, updated ${r}.`;
|
|
228
|
+
window.alert(c), U();
|
|
229
|
+
}, X = async (e, t) => {
|
|
198
230
|
s("medium");
|
|
199
231
|
let n = `Are you sure you want to delete the feature flag "${t}"? This will remove all workspace overrides and user preferences.`, r = await o({
|
|
200
232
|
title: "Delete feature flag",
|
|
@@ -203,115 +235,115 @@ var D = [
|
|
|
203
235
|
cancelButtonTitle: "Cancel"
|
|
204
236
|
});
|
|
205
237
|
if (r === null ? window.confirm(n) : r) try {
|
|
206
|
-
await
|
|
238
|
+
await W(e), c("success"), U();
|
|
207
239
|
} catch (e) {
|
|
208
240
|
throw c("error"), e;
|
|
209
241
|
}
|
|
210
|
-
},
|
|
211
|
-
if (
|
|
242
|
+
}, Z = [...new Set(z.map((e) => e.category).filter(Boolean))];
|
|
243
|
+
if (V && z.length === 0) return /* @__PURE__ */ T("div", {
|
|
212
244
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
213
|
-
children: /* @__PURE__ */
|
|
245
|
+
children: /* @__PURE__ */ T(n, { message: N("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
|
|
214
246
|
});
|
|
215
|
-
if (
|
|
247
|
+
if (H) return /* @__PURE__ */ T("div", {
|
|
216
248
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
217
|
-
children: /* @__PURE__ */
|
|
218
|
-
message:
|
|
249
|
+
children: /* @__PURE__ */ T(r, {
|
|
250
|
+
message: H.message,
|
|
219
251
|
action: {
|
|
220
|
-
label:
|
|
221
|
-
onClick: () =>
|
|
252
|
+
label: N("productCommon.retry", "Retry"),
|
|
253
|
+
onClick: () => U()
|
|
222
254
|
}
|
|
223
255
|
})
|
|
224
256
|
});
|
|
225
|
-
let
|
|
257
|
+
let Q = (e) => new Date(e).toLocaleDateString("en-US", {
|
|
226
258
|
year: "numeric",
|
|
227
259
|
month: "short",
|
|
228
260
|
day: "numeric"
|
|
229
261
|
});
|
|
230
|
-
return /* @__PURE__ */
|
|
262
|
+
return /* @__PURE__ */ E("div", {
|
|
231
263
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
232
264
|
children: [
|
|
233
|
-
/* @__PURE__ */
|
|
265
|
+
/* @__PURE__ */ E("div", {
|
|
234
266
|
className: "flex items-center justify-between mb-6",
|
|
235
|
-
children: [/* @__PURE__ */
|
|
267
|
+
children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h1", {
|
|
236
268
|
className: "text-2xl font-bold text-text-primary",
|
|
237
|
-
children:
|
|
238
|
-
}), /* @__PURE__ */
|
|
269
|
+
children: N("featureFlags.title", "Feature Flags")
|
|
270
|
+
}), /* @__PURE__ */ E("p", {
|
|
239
271
|
className: "text-sm text-text-secondary mt-1",
|
|
240
272
|
children: [
|
|
241
|
-
|
|
273
|
+
N("featureFlags.subtitle", "Manage platform-wide feature flags."),
|
|
242
274
|
" ",
|
|
243
|
-
|
|
275
|
+
B,
|
|
244
276
|
" ",
|
|
245
|
-
|
|
277
|
+
B === 1 ? N("featureFlags.flagTotal", "flag total") : N("featureFlags.flagsTotal", "flags total"),
|
|
246
278
|
"."
|
|
247
279
|
]
|
|
248
|
-
})] }), /* @__PURE__ */
|
|
280
|
+
})] }), /* @__PURE__ */ T(D, {
|
|
249
281
|
role: "super_admin",
|
|
250
|
-
children: /* @__PURE__ */
|
|
282
|
+
children: /* @__PURE__ */ E("div", {
|
|
251
283
|
className: "flex items-center gap-2",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
253
|
-
onClick:
|
|
254
|
-
disabled:
|
|
284
|
+
children: [/* @__PURE__ */ E("button", {
|
|
285
|
+
onClick: Y,
|
|
286
|
+
disabled: q,
|
|
255
287
|
className: "inline-flex items-center gap-2 px-4 py-2 bg-surface text-text-primary border border-default rounded-lg hover:bg-muted disabled:opacity-50 transition-all duration-200",
|
|
256
|
-
children: [/* @__PURE__ */
|
|
257
|
-
}), /* @__PURE__ */
|
|
258
|
-
onClick: () =>
|
|
288
|
+
children: [/* @__PURE__ */ T(S, { size: 18 }), q ? N("featureFlags.seeding", "Seeding...") : N("featureFlags.seedDefaults", "Seed Defaults")]
|
|
289
|
+
}), /* @__PURE__ */ E("button", {
|
|
290
|
+
onClick: () => k(`${A}/feature-flags/new`),
|
|
259
291
|
className: "inline-flex items-center gap-2 px-4 py-2 bg-[var(--color-action-primary-bg)] text-[var(--color-action-primary-text)] rounded-lg hover:opacity-90 hover:scale-[1.02] transition-all duration-200",
|
|
260
|
-
children: [/* @__PURE__ */
|
|
292
|
+
children: [/* @__PURE__ */ T(b, { size: 18 }), N("featureFlags.createFlag", "Create Flag")]
|
|
261
293
|
})]
|
|
262
294
|
})
|
|
263
295
|
})]
|
|
264
296
|
}),
|
|
265
|
-
/* @__PURE__ */
|
|
297
|
+
/* @__PURE__ */ E("div", {
|
|
266
298
|
className: "flex flex-wrap items-center gap-3 mb-6",
|
|
267
299
|
children: [
|
|
268
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ T("div", {
|
|
269
301
|
className: "flex-1 min-w-[250px]",
|
|
270
|
-
children: /* @__PURE__ */
|
|
271
|
-
value:
|
|
272
|
-
onChange:
|
|
273
|
-
placeholder:
|
|
302
|
+
children: /* @__PURE__ */ T(i, {
|
|
303
|
+
value: j,
|
|
304
|
+
onChange: M,
|
|
305
|
+
placeholder: N("featureFlags.searchPlaceholder", "Search by key, name, or description...")
|
|
274
306
|
})
|
|
275
307
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
value:
|
|
278
|
-
onChange: (e) =>
|
|
308
|
+
/* @__PURE__ */ E("select", {
|
|
309
|
+
value: P,
|
|
310
|
+
onChange: (e) => F(e.target.value),
|
|
279
311
|
className: "px-3 py-2 bg-surface border border-default rounded-lg text-text-primary text-sm focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)] transition-all duration-200",
|
|
280
312
|
children: [
|
|
281
|
-
/* @__PURE__ */
|
|
313
|
+
/* @__PURE__ */ T("option", {
|
|
282
314
|
value: "",
|
|
283
|
-
children:
|
|
315
|
+
children: N("featureFlags.allStatuses", "All Statuses")
|
|
284
316
|
}),
|
|
285
|
-
/* @__PURE__ */
|
|
317
|
+
/* @__PURE__ */ T("option", {
|
|
286
318
|
value: "ACTIVE",
|
|
287
|
-
children:
|
|
319
|
+
children: N("featureFlags.statusActive", "Active")
|
|
288
320
|
}),
|
|
289
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ T("option", {
|
|
290
322
|
value: "ARCHIVED",
|
|
291
|
-
children:
|
|
323
|
+
children: N("featureFlags.statusArchived", "Archived")
|
|
292
324
|
})
|
|
293
325
|
]
|
|
294
326
|
}),
|
|
295
|
-
|
|
296
|
-
value:
|
|
297
|
-
onChange: (e) =>
|
|
327
|
+
Z.length > 0 && /* @__PURE__ */ E("select", {
|
|
328
|
+
value: I,
|
|
329
|
+
onChange: (e) => L(e.target.value),
|
|
298
330
|
className: "px-3 py-2 bg-surface border border-default rounded-lg text-text-primary text-sm focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)] transition-all duration-200",
|
|
299
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ T("option", {
|
|
300
332
|
value: "",
|
|
301
|
-
children:
|
|
302
|
-
}),
|
|
333
|
+
children: N("featureFlags.allCategories", "All Categories")
|
|
334
|
+
}), Z.map((e) => /* @__PURE__ */ T("option", {
|
|
303
335
|
value: e,
|
|
304
336
|
children: e
|
|
305
337
|
}, e))]
|
|
306
338
|
}),
|
|
307
|
-
/* @__PURE__ */
|
|
308
|
-
onClick: () =>
|
|
339
|
+
/* @__PURE__ */ T("button", {
|
|
340
|
+
onClick: () => U(),
|
|
309
341
|
className: "p-2 bg-surface border border-default rounded-lg text-text-secondary hover:text-text-primary hover:bg-muted transition-all duration-200",
|
|
310
|
-
title:
|
|
311
|
-
children: /* @__PURE__ */
|
|
342
|
+
title: N("productCommon.refresh", "Refresh"),
|
|
343
|
+
children: /* @__PURE__ */ T(x, { size: 18 })
|
|
312
344
|
}),
|
|
313
|
-
|
|
314
|
-
onClick: () => a("feature-flags",
|
|
345
|
+
z.length > 0 && /* @__PURE__ */ T("button", {
|
|
346
|
+
onClick: () => a("feature-flags", z.map((e) => ({
|
|
315
347
|
id: e.id,
|
|
316
348
|
key: e.key,
|
|
317
349
|
name: e.name,
|
|
@@ -325,130 +357,130 @@ var D = [
|
|
|
325
357
|
updatedAt: e.updatedAt
|
|
326
358
|
}))),
|
|
327
359
|
className: "p-2 bg-surface border border-default rounded-lg text-text-secondary hover:text-text-primary hover:bg-muted transition-all duration-200",
|
|
328
|
-
title:
|
|
329
|
-
children: /* @__PURE__ */
|
|
360
|
+
title: N("featureFlags.exportCsv", "Export as CSV"),
|
|
361
|
+
children: /* @__PURE__ */ T(_, { size: 18 })
|
|
330
362
|
})
|
|
331
363
|
]
|
|
332
364
|
}),
|
|
333
|
-
|
|
334
|
-
icon: /* @__PURE__ */
|
|
335
|
-
title:
|
|
336
|
-
description:
|
|
365
|
+
z.length === 0 ? /* @__PURE__ */ T(l, {
|
|
366
|
+
icon: /* @__PURE__ */ T(y, { size: 48 }),
|
|
367
|
+
title: N("featureFlags.noFeatureFlagsFound", "No feature flags found"),
|
|
368
|
+
description: j || P || I ? N("featureFlags.tryAdjustingFilters", "Try adjusting your search or filters.") : N("featureFlags.createFirstFlagDescription", "Create your first feature flag to control feature rollout across products."),
|
|
337
369
|
action: {
|
|
338
|
-
label:
|
|
339
|
-
onClick: () =>
|
|
370
|
+
label: N("featureFlags.createFlag", "Create Flag"),
|
|
371
|
+
onClick: () => k(`${A}/feature-flags/new`)
|
|
340
372
|
}
|
|
341
|
-
}) : /* @__PURE__ */
|
|
373
|
+
}) : /* @__PURE__ */ T("div", {
|
|
342
374
|
className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-x-auto",
|
|
343
|
-
children: /* @__PURE__ */
|
|
375
|
+
children: /* @__PURE__ */ E("table", {
|
|
344
376
|
className: "w-full min-w-[900px]",
|
|
345
|
-
children: [/* @__PURE__ */
|
|
377
|
+
children: [/* @__PURE__ */ T("thead", {
|
|
346
378
|
className: "bg-muted",
|
|
347
|
-
children: /* @__PURE__ */
|
|
348
|
-
/* @__PURE__ */
|
|
379
|
+
children: /* @__PURE__ */ E("tr", { children: [
|
|
380
|
+
/* @__PURE__ */ T("th", {
|
|
349
381
|
className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase whitespace-nowrap",
|
|
350
|
-
children:
|
|
382
|
+
children: N("featureFlags.columnKey", "Key")
|
|
351
383
|
}),
|
|
352
|
-
/* @__PURE__ */
|
|
384
|
+
/* @__PURE__ */ T("th", {
|
|
353
385
|
className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
|
|
354
|
-
children:
|
|
386
|
+
children: N("featureFlags.columnName", "Name")
|
|
355
387
|
}),
|
|
356
|
-
/* @__PURE__ */
|
|
388
|
+
/* @__PURE__ */ T("th", {
|
|
357
389
|
className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
|
|
358
|
-
children:
|
|
390
|
+
children: N("featureFlags.columnType", "Type")
|
|
359
391
|
}),
|
|
360
|
-
/* @__PURE__ */
|
|
392
|
+
/* @__PURE__ */ T("th", {
|
|
361
393
|
className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
|
|
362
|
-
children:
|
|
394
|
+
children: N("featureFlags.columnStatus", "Status")
|
|
363
395
|
}),
|
|
364
|
-
/* @__PURE__ */
|
|
396
|
+
/* @__PURE__ */ T("th", {
|
|
365
397
|
className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
|
|
366
|
-
children:
|
|
398
|
+
children: N("featureFlags.columnCategory", "Category")
|
|
367
399
|
}),
|
|
368
|
-
/* @__PURE__ */
|
|
400
|
+
/* @__PURE__ */ T("th", {
|
|
369
401
|
className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
|
|
370
|
-
children:
|
|
402
|
+
children: N("featureFlags.columnPreview", "Preview")
|
|
371
403
|
}),
|
|
372
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ T("th", {
|
|
373
405
|
className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
|
|
374
|
-
children:
|
|
406
|
+
children: N("featureFlags.columnProduct", "Product")
|
|
375
407
|
}),
|
|
376
|
-
/* @__PURE__ */
|
|
408
|
+
/* @__PURE__ */ T("th", {
|
|
377
409
|
className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
|
|
378
|
-
children:
|
|
410
|
+
children: N("featureFlags.columnUpdated", "Updated")
|
|
379
411
|
}),
|
|
380
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ T("th", {
|
|
381
413
|
className: "px-4 py-3 text-right text-xs font-semibold text-text-secondary uppercase",
|
|
382
|
-
children:
|
|
414
|
+
children: N("featureFlags.columnActions", "Actions")
|
|
383
415
|
})
|
|
384
416
|
] })
|
|
385
|
-
}), /* @__PURE__ */
|
|
417
|
+
}), /* @__PURE__ */ T("tbody", {
|
|
386
418
|
className: "divide-y divide-default",
|
|
387
|
-
children:
|
|
419
|
+
children: z.map((e) => /* @__PURE__ */ E("tr", {
|
|
388
420
|
className: "hover:bg-muted/50 transition-colors duration-150",
|
|
389
421
|
children: [
|
|
390
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ T("td", {
|
|
391
423
|
className: "px-4 py-3 whitespace-nowrap",
|
|
392
|
-
children: /* @__PURE__ */
|
|
424
|
+
children: /* @__PURE__ */ T("code", {
|
|
393
425
|
className: "text-sm font-mono text-text-primary bg-muted px-1.5 py-0.5 rounded",
|
|
394
426
|
children: e.key
|
|
395
427
|
})
|
|
396
428
|
}),
|
|
397
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ T("td", {
|
|
398
430
|
className: "px-4 py-3 text-sm text-text-primary",
|
|
399
431
|
children: e.name
|
|
400
432
|
}),
|
|
401
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ T("td", {
|
|
402
434
|
className: "px-4 py-3",
|
|
403
|
-
children: /* @__PURE__ */
|
|
435
|
+
children: /* @__PURE__ */ T(d, { flagType: e.flagType })
|
|
404
436
|
}),
|
|
405
|
-
/* @__PURE__ */
|
|
437
|
+
/* @__PURE__ */ T("td", {
|
|
406
438
|
className: "px-4 py-3",
|
|
407
|
-
children: /* @__PURE__ */
|
|
439
|
+
children: /* @__PURE__ */ T(u, { status: e.status })
|
|
408
440
|
}),
|
|
409
|
-
/* @__PURE__ */
|
|
441
|
+
/* @__PURE__ */ T("td", {
|
|
410
442
|
className: "px-4 py-3 text-sm text-text-secondary",
|
|
411
443
|
children: e.category || "—"
|
|
412
444
|
}),
|
|
413
|
-
/* @__PURE__ */
|
|
445
|
+
/* @__PURE__ */ T("td", {
|
|
414
446
|
className: "px-4 py-3 text-sm text-text-secondary",
|
|
415
|
-
children: e.previewable ? /* @__PURE__ */
|
|
447
|
+
children: e.previewable ? /* @__PURE__ */ T("span", {
|
|
416
448
|
className: "text-[var(--color-status-success)]",
|
|
417
|
-
children:
|
|
418
|
-
}) : /* @__PURE__ */
|
|
449
|
+
children: N("featureFlags.yes", "Yes")
|
|
450
|
+
}) : /* @__PURE__ */ T("span", {
|
|
419
451
|
className: "text-text-tertiary",
|
|
420
|
-
children:
|
|
452
|
+
children: N("featureFlags.no", "No")
|
|
421
453
|
})
|
|
422
454
|
}),
|
|
423
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ T("td", {
|
|
424
456
|
className: "px-4 py-3 text-sm text-text-secondary",
|
|
425
457
|
children: e.product?.name || "—"
|
|
426
458
|
}),
|
|
427
|
-
/* @__PURE__ */
|
|
459
|
+
/* @__PURE__ */ T("td", {
|
|
428
460
|
className: "px-4 py-3 text-sm text-text-tertiary",
|
|
429
|
-
children:
|
|
461
|
+
children: Q(e.updatedAt)
|
|
430
462
|
}),
|
|
431
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ T("td", {
|
|
432
464
|
className: "px-4 py-3",
|
|
433
|
-
children: /* @__PURE__ */
|
|
465
|
+
children: /* @__PURE__ */ E("div", {
|
|
434
466
|
className: "flex items-center justify-end gap-1",
|
|
435
|
-
children: [/* @__PURE__ */
|
|
436
|
-
onClick: () =>
|
|
467
|
+
children: [/* @__PURE__ */ T("button", {
|
|
468
|
+
onClick: () => k(`${A}/feature-flags/${e.id}`),
|
|
437
469
|
className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-muted rounded-md transition-all duration-200",
|
|
438
|
-
title:
|
|
439
|
-
children: /* @__PURE__ */
|
|
440
|
-
}), /* @__PURE__ */
|
|
470
|
+
title: N("featureFlags.viewDetails", "View details"),
|
|
471
|
+
children: /* @__PURE__ */ T(v, { size: 16 })
|
|
472
|
+
}), /* @__PURE__ */ E(D, {
|
|
441
473
|
role: "super_admin",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
443
|
-
onClick: () =>
|
|
474
|
+
children: [/* @__PURE__ */ T("button", {
|
|
475
|
+
onClick: () => k(`${A}/feature-flags/${e.id}/edit`),
|
|
444
476
|
className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-muted rounded-md transition-all duration-200",
|
|
445
|
-
title:
|
|
446
|
-
children: /* @__PURE__ */
|
|
447
|
-
}), /* @__PURE__ */
|
|
448
|
-
onClick: () =>
|
|
477
|
+
title: N("featureFlags.edit", "Edit"),
|
|
478
|
+
children: /* @__PURE__ */ T(C, { size: 16 })
|
|
479
|
+
}), /* @__PURE__ */ T("button", {
|
|
480
|
+
onClick: () => X(e.id, e.name),
|
|
449
481
|
className: "p-1.5 text-text-secondary hover:text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] rounded-md transition-all duration-200",
|
|
450
|
-
title:
|
|
451
|
-
children: /* @__PURE__ */ w
|
|
482
|
+
title: N("featureFlags.delete", "Delete"),
|
|
483
|
+
children: /* @__PURE__ */ T(w, { size: 16 })
|
|
452
484
|
})]
|
|
453
485
|
})]
|
|
454
486
|
})
|
|
@@ -462,6 +494,6 @@ var D = [
|
|
|
462
494
|
});
|
|
463
495
|
};
|
|
464
496
|
//#endregion
|
|
465
|
-
export {
|
|
497
|
+
export { k as FeatureFlagsListPage };
|
|
466
498
|
|
|
467
499
|
//# sourceMappingURL=FeatureFlagsListPage.js.map
|