@burdenoff/microfe-product 2026.513.2 → 2026.514.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 +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;AA4K1C,eAAO,MAAM,oBAAoB,EAAE,EA2VlC,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 h } from "react";
14
- import { Download as g, Eye as _, Flag as v, Plus as y, RefreshCw as b, Sparkles as x, SquarePen as S, Trash2 as C } from "lucide-react";
15
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
16
- import { PermissionGate as E } from "@burdenoff/fe-libs/shared/components";
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 D = [
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
- ], O = () => {
167
- let { navigate: O, basePath: k } = t(), [A, j] = h(""), M = e(), [N, P] = h(""), [F, I] = h(""), L = {};
168
- A && (L.search = A), N && (L.status = N), F && (L.category = F);
169
- let { featureFlags: R, total: z, loading: B, error: V, refetch: H } = m(L, { limit: 100 }), { deleteFeatureFlag: U } = p(), { createFeatureFlag: W } = f(), [G, K] = h(!1), q = async () => {
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 (skips existing ones). Continue?", t = await o({
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
- K(!0);
179
- let n = 0, r = [], i = new Set(R.map((e) => e.key));
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 D) if (!i.has(e.key)) try {
182
- await W({
183
- ...e,
184
- flagType: "BOOLEAN",
185
- defaultValue: !0
186
- }), n++;
187
- } catch (t) {
188
- let n = t instanceof Error ? t.message : String(t);
189
- if (n.includes("already exists") || n.includes("CONFLICT") || n.includes("P2002")) continue;
190
- r.push(`${e.key}: ${n}`);
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
- K(!1);
225
+ J(!1);
194
226
  }
195
- let a = r.length > 0 ? `Created ${n} default feature flags. ${r.length} failed:\n${r.join("\n")}` : `Created ${n} default feature flags.`;
196
- window.alert(a), H();
197
- }, J = async (e, t) => {
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 U(e), c("success"), H();
238
+ await W(e), c("success"), U();
207
239
  } catch (e) {
208
240
  throw c("error"), e;
209
241
  }
210
- }, Y = [...new Set(R.map((e) => e.category).filter(Boolean))];
211
- if (B && R.length === 0) return /* @__PURE__ */ w("div", {
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__ */ w(n, { message: M("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
245
+ children: /* @__PURE__ */ T(n, { message: N("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
214
246
  });
215
- if (V) return /* @__PURE__ */ w("div", {
247
+ if (H) return /* @__PURE__ */ T("div", {
216
248
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
217
- children: /* @__PURE__ */ w(r, {
218
- message: V.message,
249
+ children: /* @__PURE__ */ T(r, {
250
+ message: H.message,
219
251
  action: {
220
- label: M("productCommon.retry", "Retry"),
221
- onClick: () => H()
252
+ label: N("productCommon.retry", "Retry"),
253
+ onClick: () => U()
222
254
  }
223
255
  })
224
256
  });
225
- let X = (e) => new Date(e).toLocaleDateString("en-US", {
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__ */ T("div", {
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__ */ T("div", {
265
+ /* @__PURE__ */ E("div", {
234
266
  className: "flex items-center justify-between mb-6",
235
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
267
+ children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h1", {
236
268
  className: "text-2xl font-bold text-text-primary",
237
- children: M("featureFlags.title", "Feature Flags")
238
- }), /* @__PURE__ */ T("p", {
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
- M("featureFlags.subtitle", "Manage platform-wide feature flags."),
273
+ N("featureFlags.subtitle", "Manage platform-wide feature flags."),
242
274
  " ",
243
- z,
275
+ B,
244
276
  " ",
245
- z === 1 ? M("featureFlags.flagTotal", "flag total") : M("featureFlags.flagsTotal", "flags total"),
277
+ B === 1 ? N("featureFlags.flagTotal", "flag total") : N("featureFlags.flagsTotal", "flags total"),
246
278
  "."
247
279
  ]
248
- })] }), /* @__PURE__ */ w(E, {
280
+ })] }), /* @__PURE__ */ T(D, {
249
281
  role: "super_admin",
250
- children: /* @__PURE__ */ T("div", {
282
+ children: /* @__PURE__ */ E("div", {
251
283
  className: "flex items-center gap-2",
252
- children: [/* @__PURE__ */ T("button", {
253
- onClick: q,
254
- disabled: G,
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__ */ w(x, { size: 18 }), G ? M("featureFlags.seeding", "Seeding...") : M("featureFlags.seedDefaults", "Seed Defaults")]
257
- }), /* @__PURE__ */ T("button", {
258
- onClick: () => O(`${k}/feature-flags/new`),
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__ */ w(y, { size: 18 }), M("featureFlags.createFlag", "Create Flag")]
292
+ children: [/* @__PURE__ */ T(b, { size: 18 }), N("featureFlags.createFlag", "Create Flag")]
261
293
  })]
262
294
  })
263
295
  })]
264
296
  }),
265
- /* @__PURE__ */ T("div", {
297
+ /* @__PURE__ */ E("div", {
266
298
  className: "flex flex-wrap items-center gap-3 mb-6",
267
299
  children: [
268
- /* @__PURE__ */ w("div", {
300
+ /* @__PURE__ */ T("div", {
269
301
  className: "flex-1 min-w-[250px]",
270
- children: /* @__PURE__ */ w(i, {
271
- value: A,
272
- onChange: j,
273
- placeholder: M("featureFlags.searchPlaceholder", "Search by key, name, or description...")
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__ */ T("select", {
277
- value: N,
278
- onChange: (e) => P(e.target.value),
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__ */ w("option", {
313
+ /* @__PURE__ */ T("option", {
282
314
  value: "",
283
- children: M("featureFlags.allStatuses", "All Statuses")
315
+ children: N("featureFlags.allStatuses", "All Statuses")
284
316
  }),
285
- /* @__PURE__ */ w("option", {
317
+ /* @__PURE__ */ T("option", {
286
318
  value: "ACTIVE",
287
- children: M("featureFlags.statusActive", "Active")
319
+ children: N("featureFlags.statusActive", "Active")
288
320
  }),
289
- /* @__PURE__ */ w("option", {
321
+ /* @__PURE__ */ T("option", {
290
322
  value: "ARCHIVED",
291
- children: M("featureFlags.statusArchived", "Archived")
323
+ children: N("featureFlags.statusArchived", "Archived")
292
324
  })
293
325
  ]
294
326
  }),
295
- Y.length > 0 && /* @__PURE__ */ T("select", {
296
- value: F,
297
- onChange: (e) => I(e.target.value),
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__ */ w("option", {
331
+ children: [/* @__PURE__ */ T("option", {
300
332
  value: "",
301
- children: M("featureFlags.allCategories", "All Categories")
302
- }), Y.map((e) => /* @__PURE__ */ w("option", {
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__ */ w("button", {
308
- onClick: () => H(),
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: M("productCommon.refresh", "Refresh"),
311
- children: /* @__PURE__ */ w(b, { size: 18 })
342
+ title: N("productCommon.refresh", "Refresh"),
343
+ children: /* @__PURE__ */ T(x, { size: 18 })
312
344
  }),
313
- R.length > 0 && /* @__PURE__ */ w("button", {
314
- onClick: () => a("feature-flags", R.map((e) => ({
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: M("featureFlags.exportCsv", "Export as CSV"),
329
- children: /* @__PURE__ */ w(g, { size: 18 })
360
+ title: N("featureFlags.exportCsv", "Export as CSV"),
361
+ children: /* @__PURE__ */ T(_, { size: 18 })
330
362
  })
331
363
  ]
332
364
  }),
333
- R.length === 0 ? /* @__PURE__ */ w(l, {
334
- icon: /* @__PURE__ */ w(v, { size: 48 }),
335
- title: M("featureFlags.noFeatureFlagsFound", "No feature flags found"),
336
- description: A || N || F ? M("featureFlags.tryAdjustingFilters", "Try adjusting your search or filters.") : M("featureFlags.createFirstFlagDescription", "Create your first feature flag to control feature rollout across products."),
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: M("featureFlags.createFlag", "Create Flag"),
339
- onClick: () => O(`${k}/feature-flags/new`)
370
+ label: N("featureFlags.createFlag", "Create Flag"),
371
+ onClick: () => k(`${A}/feature-flags/new`)
340
372
  }
341
- }) : /* @__PURE__ */ w("div", {
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__ */ T("table", {
375
+ children: /* @__PURE__ */ E("table", {
344
376
  className: "w-full min-w-[900px]",
345
- children: [/* @__PURE__ */ w("thead", {
377
+ children: [/* @__PURE__ */ T("thead", {
346
378
  className: "bg-muted",
347
- children: /* @__PURE__ */ T("tr", { children: [
348
- /* @__PURE__ */ w("th", {
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: M("featureFlags.columnKey", "Key")
382
+ children: N("featureFlags.columnKey", "Key")
351
383
  }),
352
- /* @__PURE__ */ w("th", {
384
+ /* @__PURE__ */ T("th", {
353
385
  className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
354
- children: M("featureFlags.columnName", "Name")
386
+ children: N("featureFlags.columnName", "Name")
355
387
  }),
356
- /* @__PURE__ */ w("th", {
388
+ /* @__PURE__ */ T("th", {
357
389
  className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
358
- children: M("featureFlags.columnType", "Type")
390
+ children: N("featureFlags.columnType", "Type")
359
391
  }),
360
- /* @__PURE__ */ w("th", {
392
+ /* @__PURE__ */ T("th", {
361
393
  className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
362
- children: M("featureFlags.columnStatus", "Status")
394
+ children: N("featureFlags.columnStatus", "Status")
363
395
  }),
364
- /* @__PURE__ */ w("th", {
396
+ /* @__PURE__ */ T("th", {
365
397
  className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
366
- children: M("featureFlags.columnCategory", "Category")
398
+ children: N("featureFlags.columnCategory", "Category")
367
399
  }),
368
- /* @__PURE__ */ w("th", {
400
+ /* @__PURE__ */ T("th", {
369
401
  className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
370
- children: M("featureFlags.columnPreview", "Preview")
402
+ children: N("featureFlags.columnPreview", "Preview")
371
403
  }),
372
- /* @__PURE__ */ w("th", {
404
+ /* @__PURE__ */ T("th", {
373
405
  className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
374
- children: M("featureFlags.columnProduct", "Product")
406
+ children: N("featureFlags.columnProduct", "Product")
375
407
  }),
376
- /* @__PURE__ */ w("th", {
408
+ /* @__PURE__ */ T("th", {
377
409
  className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
378
- children: M("featureFlags.columnUpdated", "Updated")
410
+ children: N("featureFlags.columnUpdated", "Updated")
379
411
  }),
380
- /* @__PURE__ */ w("th", {
412
+ /* @__PURE__ */ T("th", {
381
413
  className: "px-4 py-3 text-right text-xs font-semibold text-text-secondary uppercase",
382
- children: M("featureFlags.columnActions", "Actions")
414
+ children: N("featureFlags.columnActions", "Actions")
383
415
  })
384
416
  ] })
385
- }), /* @__PURE__ */ w("tbody", {
417
+ }), /* @__PURE__ */ T("tbody", {
386
418
  className: "divide-y divide-default",
387
- children: R.map((e) => /* @__PURE__ */ T("tr", {
419
+ children: z.map((e) => /* @__PURE__ */ E("tr", {
388
420
  className: "hover:bg-muted/50 transition-colors duration-150",
389
421
  children: [
390
- /* @__PURE__ */ w("td", {
422
+ /* @__PURE__ */ T("td", {
391
423
  className: "px-4 py-3 whitespace-nowrap",
392
- children: /* @__PURE__ */ w("code", {
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__ */ w("td", {
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__ */ w("td", {
433
+ /* @__PURE__ */ T("td", {
402
434
  className: "px-4 py-3",
403
- children: /* @__PURE__ */ w(d, { flagType: e.flagType })
435
+ children: /* @__PURE__ */ T(d, { flagType: e.flagType })
404
436
  }),
405
- /* @__PURE__ */ w("td", {
437
+ /* @__PURE__ */ T("td", {
406
438
  className: "px-4 py-3",
407
- children: /* @__PURE__ */ w(u, { status: e.status })
439
+ children: /* @__PURE__ */ T(u, { status: e.status })
408
440
  }),
409
- /* @__PURE__ */ w("td", {
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__ */ w("td", {
445
+ /* @__PURE__ */ T("td", {
414
446
  className: "px-4 py-3 text-sm text-text-secondary",
415
- children: e.previewable ? /* @__PURE__ */ w("span", {
447
+ children: e.previewable ? /* @__PURE__ */ T("span", {
416
448
  className: "text-[var(--color-status-success)]",
417
- children: M("featureFlags.yes", "Yes")
418
- }) : /* @__PURE__ */ w("span", {
449
+ children: N("featureFlags.yes", "Yes")
450
+ }) : /* @__PURE__ */ T("span", {
419
451
  className: "text-text-tertiary",
420
- children: M("featureFlags.no", "No")
452
+ children: N("featureFlags.no", "No")
421
453
  })
422
454
  }),
423
- /* @__PURE__ */ w("td", {
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__ */ w("td", {
459
+ /* @__PURE__ */ T("td", {
428
460
  className: "px-4 py-3 text-sm text-text-tertiary",
429
- children: X(e.updatedAt)
461
+ children: Q(e.updatedAt)
430
462
  }),
431
- /* @__PURE__ */ w("td", {
463
+ /* @__PURE__ */ T("td", {
432
464
  className: "px-4 py-3",
433
- children: /* @__PURE__ */ T("div", {
465
+ children: /* @__PURE__ */ E("div", {
434
466
  className: "flex items-center justify-end gap-1",
435
- children: [/* @__PURE__ */ w("button", {
436
- onClick: () => O(`${k}/feature-flags/${e.id}`),
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: M("featureFlags.viewDetails", "View details"),
439
- children: /* @__PURE__ */ w(_, { size: 16 })
440
- }), /* @__PURE__ */ T(E, {
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__ */ w("button", {
443
- onClick: () => O(`${k}/feature-flags/${e.id}/edit`),
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: M("featureFlags.edit", "Edit"),
446
- children: /* @__PURE__ */ w(S, { size: 16 })
447
- }), /* @__PURE__ */ w("button", {
448
- onClick: () => J(e.id, e.name),
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: M("featureFlags.delete", "Delete"),
451
- children: /* @__PURE__ */ w(C, { size: 16 })
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 { O as FeatureFlagsListPage };
497
+ export { k as FeatureFlagsListPage };
466
498
 
467
499
  //# sourceMappingURL=FeatureFlagsListPage.js.map