@burdenoff/microfe-product 2026.624.1 → 2026.624.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +1 -1
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductCatalogPage.js +2 -2
  4. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  5. package/dist/product/pages/ProductViewPage.js +1 -1
  6. package/dist/product/pages/ProductViewPage.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +2 -2
  8. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  9. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +1 -1
  10. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  11. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +1 -1
  12. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  13. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +1 -1
  14. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  15. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +2 -2
  16. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  17. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
  18. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
  19. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +1 -1
  20. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  21. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +1 -1
  22. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  23. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +1 -1
  24. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  25. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +171 -200
  26. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  27. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +1 -1
  28. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
  29. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +1 -1
  30. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  31. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +1 -1
  32. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  33. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +1 -1
  34. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  35. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +2 -2
  36. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  37. package/dist/product-management/modules/products/components/ProductForm.js +1 -1
  38. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  39. package/dist/product-management/modules/products/pages/ProductCreatePage.js +1 -1
  40. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  41. package/dist/product-management/modules/products/pages/ProductDetailPage.js +1 -1
  42. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  43. package/dist/product-management/modules/products/pages/ProductEditPage.js +1 -1
  44. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  45. package/dist/product-management/modules/products/pages/ProductsListPage.js +2 -2
  46. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  47. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +1 -1
  48. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  49. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +1 -1
  50. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  51. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +1 -1
  52. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  53. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +1 -1
  54. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  55. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +2 -2
  56. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  57. package/dist/product-management/shared/components/feedback/ErrorState.js +1 -1
  58. package/dist/product-management/shared/components/feedback/ErrorState.js.map +1 -1
  59. package/dist/product-management/shared/components/feedback/LoadingState.js +1 -1
  60. package/dist/product-management/shared/components/feedback/LoadingState.js.map +1 -1
  61. package/package.json +1 -1
@@ -11,11 +11,12 @@ import { FeatureFlagStatusBadge as m } from "../components/FeatureFlagStatusBadg
11
11
  import { FeatureFlagTypeBadge as h } from "../components/FeatureFlagTypeBadge.js";
12
12
  import { useState as g } from "react";
13
13
  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";
14
- import { jsx as T, jsxs as E } from "react/jsx-runtime";
15
- import { useFeatureFlags as D } from "@burdenoff/fe-libs/shared/feature-flags";
14
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
15
+ import { useFeatureFlags as ee } from "@burdenoff/fe-libs/shared/feature-flags";
16
16
  import { PermissionGate as O } from "@burdenoff/fe-libs/shared/components";
17
+ import { ResponsiveTable as k } from "@burdenoff/fe-libs/ui";
17
18
  //#region src/product-management/modules/feature-flags/pages/FeatureFlagsListPage.tsx
18
- var k = [
19
+ var A = [
19
20
  {
20
21
  key: "vibecontrols.overview",
21
22
  name: "Overview Dashboard",
@@ -184,10 +185,10 @@ var k = [
184
185
  previewable: !0,
185
186
  defaultValue: !0
186
187
  }
187
- ], A = () => {
188
- let { navigate: A, basePath: j } = t(), [M, N] = g(""), P = e(), [F, I] = g(""), [L, R] = g(""), z = {};
189
- M && (z.search = M), F && (z.status = F), L && (z.category = L);
190
- let { featureFlags: B, total: V, loading: H, error: U, refetch: W } = f(z, { limit: 100 }), { deleteFeatureFlag: G } = d(), { createFeatureFlag: K } = u(), { updateFeatureFlag: q } = p(), { refreshFlags: J } = D(), [Y, X] = g(!1), Z = async () => {
188
+ ], j = () => {
189
+ let { navigate: j, basePath: M } = t(), [N, P] = g(""), F = e(), [I, L] = g(""), [R, z] = g(""), B = {};
190
+ N && (B.search = N), I && (B.status = I), R && (B.category = R);
191
+ let { featureFlags: V, total: H, loading: U, error: W, refetch: G } = f(B, { limit: 100 }), { deleteFeatureFlag: K } = d(), { createFeatureFlag: q } = u(), { updateFeatureFlag: J } = p(), { refreshFlags: Y } = ee(), [X, Z] = g(!1), Q = async () => {
191
192
  s("light");
192
193
  let e = "This will create default VibeControls feature flags and reconcile defaultValue on any that already exist. Continue?", t = await o({
193
194
  title: "Seed defaults",
@@ -196,14 +197,14 @@ var k = [
196
197
  cancelButtonTitle: "Cancel"
197
198
  });
198
199
  if (!(t === null ? window.confirm(e) : t)) return;
199
- X(!0);
200
- let n = 0, r = 0, i = [], a = new Map(B.map((e) => [e.key, e]));
200
+ Z(!0);
201
+ let n = 0, r = 0, i = [], a = new Map(V.map((e) => [e.key, e]));
201
202
  try {
202
- for (let e of k) {
203
+ for (let e of A) {
203
204
  let t = a.get(e.key);
204
205
  if (t) {
205
206
  if (t.defaultValue !== e.defaultValue) try {
206
- await q(t.id, { defaultValue: e.defaultValue }), r++;
207
+ await J(t.id, { defaultValue: e.defaultValue }), r++;
207
208
  } catch (t) {
208
209
  let n = t instanceof Error ? t.message : String(t);
209
210
  i.push(`${e.key} (update): ${n}`);
@@ -211,7 +212,7 @@ var k = [
211
212
  continue;
212
213
  }
213
214
  try {
214
- await K({
215
+ await q({
215
216
  ...e,
216
217
  flagType: "BOOLEAN"
217
218
  }), n++;
@@ -222,11 +223,11 @@ var k = [
222
223
  }
223
224
  }
224
225
  } finally {
225
- X(!1);
226
+ Z(!1);
226
227
  }
227
228
  let c = i.length > 0 ? `Created ${n}, updated ${r}. ${i.length} failed:\n${i.join("\n")}` : `Created ${n}, updated ${r}.`;
228
- window.alert(c), J(), W();
229
- }, Q = async (e, t) => {
229
+ window.alert(c), Y(), G();
230
+ }, te = async (e, t) => {
230
231
  s("medium");
231
232
  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({
232
233
  title: "Delete feature flag",
@@ -235,119 +236,119 @@ var k = [
235
236
  cancelButtonTitle: "Cancel"
236
237
  });
237
238
  if (r === null ? window.confirm(n) : r) try {
238
- await G(e), J(), c("success"), W();
239
+ await K(e), Y(), c("success"), G();
239
240
  } catch (e) {
240
241
  throw c("error"), e;
241
242
  }
242
- }, $ = [...new Set(B.flatMap((e) => e.category ? [e.category] : []))];
243
- if (H && B.length === 0) return /* @__PURE__ */ T("div", {
243
+ }, $ = [...new Set(V.flatMap((e) => e.category ? [e.category] : []))];
244
+ if (U && V.length === 0) return /* @__PURE__ */ E("div", {
244
245
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
245
- children: /* @__PURE__ */ T(n, { message: P("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
246
+ children: /* @__PURE__ */ E(n, { message: F("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
246
247
  });
247
- if (U) return /* @__PURE__ */ T("div", {
248
+ if (W) return /* @__PURE__ */ E("div", {
248
249
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
249
- children: /* @__PURE__ */ T(r, {
250
- message: U.message,
250
+ children: /* @__PURE__ */ E(r, {
251
+ message: W.message,
251
252
  action: {
252
- label: P("productCommon.retry", "Retry"),
253
- onClick: () => W()
253
+ label: F("productCommon.retry", "Retry"),
254
+ onClick: () => G()
254
255
  }
255
256
  })
256
257
  });
257
- let ee = (e) => new Date(e).toLocaleDateString("en-US", {
258
+ let ne = (e) => new Date(e).toLocaleDateString("en-US", {
258
259
  year: "numeric",
259
260
  month: "short",
260
261
  day: "numeric"
261
262
  });
262
- return /* @__PURE__ */ E("div", {
263
- className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
263
+ return /* @__PURE__ */ D("div", {
264
+ className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
264
265
  children: [
265
- /* @__PURE__ */ E("div", {
266
+ /* @__PURE__ */ D("div", {
266
267
  className: "flex items-center justify-between mb-6",
267
- children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h1", {
268
+ children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h1", {
268
269
  className: "text-2xl font-bold text-text-primary",
269
- children: P("featureFlags.title", "Feature Flags")
270
- }), /* @__PURE__ */ E("p", {
270
+ children: F("featureFlags.title", "Feature Flags")
271
+ }), /* @__PURE__ */ D("p", {
271
272
  className: "text-sm text-text-secondary mt-1",
272
273
  children: [
273
- P("featureFlags.subtitle", "Manage platform-wide feature flags."),
274
+ F("featureFlags.subtitle", "Manage platform-wide feature flags."),
274
275
  " ",
275
- V,
276
+ H,
276
277
  " ",
277
- V === 1 ? P("featureFlags.flagTotal", "flag total") : P("featureFlags.flagsTotal", "flags total"),
278
+ H === 1 ? F("featureFlags.flagTotal", "flag total") : F("featureFlags.flagsTotal", "flags total"),
278
279
  "."
279
280
  ]
280
- })] }), /* @__PURE__ */ T(O, {
281
+ })] }), /* @__PURE__ */ E(O, {
281
282
  role: "super_admin",
282
- children: /* @__PURE__ */ E("div", {
283
+ children: /* @__PURE__ */ D("div", {
283
284
  className: "flex items-center gap-2",
284
- children: [/* @__PURE__ */ E("button", {
285
+ children: [/* @__PURE__ */ D("button", {
285
286
  type: "button",
286
- onClick: Z,
287
- disabled: Y,
287
+ onClick: Q,
288
+ disabled: X,
288
289
  className: "inline-flex items-center gap-2 px-4 py-2 bg-surface text-text-primary border border-default rounded-lg hover:bg-bg-sunken disabled:opacity-50 transition-all duration-200",
289
- children: [/* @__PURE__ */ T(S, { size: 18 }), Y ? P("featureFlags.seeding", "Seeding...") : P("featureFlags.seedDefaults", "Seed Defaults")]
290
- }), /* @__PURE__ */ E("button", {
290
+ children: [/* @__PURE__ */ E(S, { size: 18 }), X ? F("featureFlags.seeding", "Seeding...") : F("featureFlags.seedDefaults", "Seed Defaults")]
291
+ }), /* @__PURE__ */ D("button", {
291
292
  type: "button",
292
- onClick: () => A(`${j}/feature-flags/new`),
293
+ onClick: () => j(`${M}/feature-flags/new`),
293
294
  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 transition-all duration-200",
294
- children: [/* @__PURE__ */ T(b, { size: 18 }), P("featureFlags.createFlag", "Create Flag")]
295
+ children: [/* @__PURE__ */ E(b, { size: 18 }), F("featureFlags.createFlag", "Create Flag")]
295
296
  })]
296
297
  })
297
298
  })]
298
299
  }),
299
- /* @__PURE__ */ E("div", {
300
+ /* @__PURE__ */ D("div", {
300
301
  className: "flex flex-wrap items-center gap-3 mb-6",
301
302
  children: [
302
- /* @__PURE__ */ T("div", {
303
+ /* @__PURE__ */ E("div", {
303
304
  className: "flex-1 min-w-[250px]",
304
- children: /* @__PURE__ */ T(i, {
305
- value: M,
306
- onChange: N,
307
- placeholder: P("featureFlags.searchPlaceholder", "Search by key, name, or description...")
305
+ children: /* @__PURE__ */ E(i, {
306
+ value: N,
307
+ onChange: P,
308
+ placeholder: F("featureFlags.searchPlaceholder", "Search by key, name, or description...")
308
309
  })
309
310
  }),
310
- /* @__PURE__ */ E("select", {
311
- value: F,
312
- onChange: (e) => I(e.target.value),
311
+ /* @__PURE__ */ D("select", {
312
+ value: I,
313
+ onChange: (e) => L(e.target.value),
313
314
  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",
314
315
  children: [
315
- /* @__PURE__ */ T("option", {
316
+ /* @__PURE__ */ E("option", {
316
317
  value: "",
317
- children: P("featureFlags.allStatuses", "All Statuses")
318
+ children: F("featureFlags.allStatuses", "All Statuses")
318
319
  }),
319
- /* @__PURE__ */ T("option", {
320
+ /* @__PURE__ */ E("option", {
320
321
  value: "ACTIVE",
321
- children: P("featureFlags.statusActive", "Active")
322
+ children: F("featureFlags.statusActive", "Active")
322
323
  }),
323
- /* @__PURE__ */ T("option", {
324
+ /* @__PURE__ */ E("option", {
324
325
  value: "ARCHIVED",
325
- children: P("featureFlags.statusArchived", "Archived")
326
+ children: F("featureFlags.statusArchived", "Archived")
326
327
  })
327
328
  ]
328
329
  }),
329
- $.length > 0 && /* @__PURE__ */ E("select", {
330
- value: L,
331
- onChange: (e) => R(e.target.value),
330
+ $.length > 0 && /* @__PURE__ */ D("select", {
331
+ value: R,
332
+ onChange: (e) => z(e.target.value),
332
333
  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",
333
- children: [/* @__PURE__ */ T("option", {
334
+ children: [/* @__PURE__ */ E("option", {
334
335
  value: "",
335
- children: P("featureFlags.allCategories", "All Categories")
336
- }), $.map((e) => /* @__PURE__ */ T("option", {
336
+ children: F("featureFlags.allCategories", "All Categories")
337
+ }), $.map((e) => /* @__PURE__ */ E("option", {
337
338
  value: e,
338
339
  children: e
339
340
  }, e))]
340
341
  }),
341
- /* @__PURE__ */ T("button", {
342
+ /* @__PURE__ */ E("button", {
342
343
  type: "button",
343
- onClick: () => W(),
344
+ onClick: () => G(),
344
345
  className: "p-2 bg-surface border border-default rounded-lg text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-all duration-200",
345
- title: P("productCommon.refresh", "Refresh"),
346
- children: /* @__PURE__ */ T(x, { size: 18 })
346
+ title: F("productCommon.refresh", "Refresh"),
347
+ children: /* @__PURE__ */ E(x, { size: 18 })
347
348
  }),
348
- B.length > 0 && /* @__PURE__ */ T("button", {
349
+ V.length > 0 && /* @__PURE__ */ E("button", {
349
350
  type: "button",
350
- onClick: () => a("feature-flags", B.map((e) => ({
351
+ onClick: () => a("feature-flags", V.map((e) => ({
351
352
  id: e.id,
352
353
  key: e.key,
353
354
  name: e.name,
@@ -361,146 +362,116 @@ var k = [
361
362
  updatedAt: e.updatedAt
362
363
  }))),
363
364
  className: "p-2 bg-surface border border-default rounded-lg text-text-secondary hover:text-text-primary hover:bg-bg-sunken transition-all duration-200",
364
- title: P("featureFlags.exportCsv", "Export as CSV"),
365
- children: /* @__PURE__ */ T(_, { size: 18 })
365
+ title: F("featureFlags.exportCsv", "Export as CSV"),
366
+ children: /* @__PURE__ */ E(_, { size: 18 })
366
367
  })
367
368
  ]
368
369
  }),
369
- B.length === 0 ? /* @__PURE__ */ T(l, {
370
- icon: /* @__PURE__ */ T(y, { size: 48 }),
371
- title: P("featureFlags.noFeatureFlagsFound", "No feature flags found"),
372
- description: M || F || L ? P("featureFlags.tryAdjustingFilters", "Try adjusting your search or filters.") : P("featureFlags.createFirstFlagDescription", "Create your first feature flag to control feature rollout across products."),
370
+ V.length === 0 ? /* @__PURE__ */ E(l, {
371
+ icon: /* @__PURE__ */ E(y, { size: 48 }),
372
+ title: F("featureFlags.noFeatureFlagsFound", "No feature flags found"),
373
+ description: N || I || R ? F("featureFlags.tryAdjustingFilters", "Try adjusting your search or filters.") : F("featureFlags.createFirstFlagDescription", "Create your first feature flag to control feature rollout across products."),
373
374
  action: {
374
- label: P("featureFlags.createFlag", "Create Flag"),
375
- onClick: () => A(`${j}/feature-flags/new`)
375
+ label: F("featureFlags.createFlag", "Create Flag"),
376
+ onClick: () => j(`${M}/feature-flags/new`)
376
377
  }
377
- }) : /* @__PURE__ */ T("div", {
378
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-x-auto",
379
- children: /* @__PURE__ */ E("table", {
380
- className: "w-full min-w-[900px]",
381
- children: [/* @__PURE__ */ T("thead", {
382
- className: "bg-bg-sunken",
383
- children: /* @__PURE__ */ E("tr", { children: [
384
- /* @__PURE__ */ T("th", {
385
- className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase whitespace-nowrap",
386
- children: P("featureFlags.columnKey", "Key")
387
- }),
388
- /* @__PURE__ */ T("th", {
389
- className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
390
- children: P("featureFlags.columnName", "Name")
391
- }),
392
- /* @__PURE__ */ T("th", {
393
- className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
394
- children: P("featureFlags.columnType", "Type")
395
- }),
396
- /* @__PURE__ */ T("th", {
397
- className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
398
- children: P("featureFlags.columnStatus", "Status")
399
- }),
400
- /* @__PURE__ */ T("th", {
401
- className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
402
- children: P("featureFlags.columnCategory", "Category")
403
- }),
404
- /* @__PURE__ */ T("th", {
405
- className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
406
- children: P("featureFlags.columnPreview", "Preview")
407
- }),
408
- /* @__PURE__ */ T("th", {
409
- className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
410
- children: P("featureFlags.columnProduct", "Product")
411
- }),
412
- /* @__PURE__ */ T("th", {
413
- className: "px-4 py-3 text-left text-xs font-semibold text-text-secondary uppercase",
414
- children: P("featureFlags.columnUpdated", "Updated")
415
- }),
416
- /* @__PURE__ */ T("th", {
417
- className: "px-4 py-3 text-right text-xs font-semibold text-text-secondary uppercase",
418
- children: P("featureFlags.columnActions", "Actions")
419
- })
420
- ] })
421
- }), /* @__PURE__ */ T("tbody", {
422
- className: "divide-y divide-default",
423
- children: B.map((e) => /* @__PURE__ */ E("tr", {
424
- className: "hover:bg-bg-sunken/50 transition-colors duration-150",
425
- children: [
426
- /* @__PURE__ */ T("td", {
427
- className: "px-4 py-3 whitespace-nowrap",
428
- children: /* @__PURE__ */ T("code", {
429
- className: "text-sm font-mono text-text-primary bg-bg-sunken px-1.5 py-0.5 rounded",
430
- children: e.key
431
- })
432
- }),
433
- /* @__PURE__ */ T("td", {
434
- className: "px-4 py-3 text-sm text-text-primary",
435
- children: e.name
436
- }),
437
- /* @__PURE__ */ T("td", {
438
- className: "px-4 py-3",
439
- children: /* @__PURE__ */ T(h, { flagType: e.flagType })
440
- }),
441
- /* @__PURE__ */ T("td", {
442
- className: "px-4 py-3",
443
- children: /* @__PURE__ */ T(m, { status: e.status })
444
- }),
445
- /* @__PURE__ */ T("td", {
446
- className: "px-4 py-3 text-sm text-text-secondary",
447
- children: e.category || "—"
448
- }),
449
- /* @__PURE__ */ T("td", {
450
- className: "px-4 py-3 text-sm text-text-secondary",
451
- children: e.previewable ? /* @__PURE__ */ T("span", {
452
- className: "text-[var(--color-status-success)]",
453
- children: P("featureFlags.yes", "Yes")
454
- }) : /* @__PURE__ */ T("span", {
455
- className: "text-text-tertiary",
456
- children: P("featureFlags.no", "No")
457
- })
458
- }),
459
- /* @__PURE__ */ T("td", {
460
- className: "px-4 py-3 text-sm text-text-secondary",
461
- children: e.product?.name || "—"
462
- }),
463
- /* @__PURE__ */ T("td", {
464
- className: "px-4 py-3 text-sm text-text-tertiary",
465
- children: ee(e.updatedAt)
466
- }),
467
- /* @__PURE__ */ T("td", {
468
- className: "px-4 py-3",
469
- children: /* @__PURE__ */ E("div", {
470
- className: "flex items-center justify-end gap-1",
471
- children: [/* @__PURE__ */ T("button", {
472
- type: "button",
473
- onClick: () => A(`${j}/feature-flags/${e.id}`),
474
- className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-all duration-200",
475
- title: P("featureFlags.viewDetails", "View details"),
476
- children: /* @__PURE__ */ T(v, { size: 16 })
477
- }), /* @__PURE__ */ E(O, {
478
- role: "super_admin",
479
- children: [/* @__PURE__ */ T("button", {
480
- type: "button",
481
- onClick: () => A(`${j}/feature-flags/${e.id}/edit`),
482
- className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-all duration-200",
483
- title: P("featureFlags.edit", "Edit"),
484
- children: /* @__PURE__ */ T(C, { size: 16 })
485
- }), /* @__PURE__ */ T("button", {
486
- type: "button",
487
- onClick: () => Q(e.id, e.name),
488
- 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",
489
- title: P("featureFlags.delete", "Delete"),
490
- children: /* @__PURE__ */ T(w, { size: 16 })
491
- })]
492
- })]
493
- })
494
- })
495
- ]
496
- }, e.id))
378
+ }) : /* @__PURE__ */ E(k, {
379
+ className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)]",
380
+ data: V,
381
+ rowKey: (e) => e.id,
382
+ columns: [
383
+ {
384
+ key: "key",
385
+ header: F("featureFlags.columnKey", "Key"),
386
+ priority: "primary",
387
+ cell: (e) => /* @__PURE__ */ E("code", {
388
+ className: "text-sm font-mono text-text-primary bg-bg-sunken px-1.5 py-0.5 rounded",
389
+ children: e.key
390
+ })
391
+ },
392
+ {
393
+ key: "name",
394
+ header: F("featureFlags.columnName", "Name"),
395
+ cell: (e) => /* @__PURE__ */ E("span", {
396
+ className: "text-sm text-text-primary",
397
+ children: e.name
398
+ })
399
+ },
400
+ {
401
+ key: "type",
402
+ header: F("featureFlags.columnType", "Type"),
403
+ cell: (e) => /* @__PURE__ */ E(h, { flagType: e.flagType })
404
+ },
405
+ {
406
+ key: "status",
407
+ header: F("featureFlags.columnStatus", "Status"),
408
+ cell: (e) => /* @__PURE__ */ E(m, { status: e.status })
409
+ },
410
+ {
411
+ key: "category",
412
+ header: F("featureFlags.columnCategory", "Category"),
413
+ cell: (e) => /* @__PURE__ */ E("span", {
414
+ className: "text-sm text-text-secondary",
415
+ children: e.category || "—"
416
+ })
417
+ },
418
+ {
419
+ key: "preview",
420
+ header: F("featureFlags.columnPreview", "Preview"),
421
+ cell: (e) => e.previewable ? /* @__PURE__ */ E("span", {
422
+ className: "text-sm text-[var(--color-status-success)]",
423
+ children: F("featureFlags.yes", "Yes")
424
+ }) : /* @__PURE__ */ E("span", {
425
+ className: "text-sm text-text-tertiary",
426
+ children: F("featureFlags.no", "No")
427
+ })
428
+ },
429
+ {
430
+ key: "product",
431
+ header: F("featureFlags.columnProduct", "Product"),
432
+ priority: "hidden-on-mobile",
433
+ cell: (e) => /* @__PURE__ */ E("span", {
434
+ className: "text-sm text-text-secondary",
435
+ children: e.product?.name || "—"
436
+ })
437
+ },
438
+ {
439
+ key: "updated",
440
+ header: F("featureFlags.columnUpdated", "Updated"),
441
+ priority: "hidden-on-mobile",
442
+ cell: (e) => /* @__PURE__ */ E("span", {
443
+ className: "text-sm text-text-tertiary",
444
+ children: ne(e.updatedAt)
445
+ })
446
+ }
447
+ ],
448
+ rowActions: (e) => /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("button", {
449
+ type: "button",
450
+ onClick: () => j(`${M}/feature-flags/${e.id}`),
451
+ className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-all duration-200",
452
+ title: F("featureFlags.viewDetails", "View details"),
453
+ children: /* @__PURE__ */ E(v, { size: 16 })
454
+ }), /* @__PURE__ */ D(O, {
455
+ role: "super_admin",
456
+ children: [/* @__PURE__ */ E("button", {
457
+ type: "button",
458
+ onClick: () => j(`${M}/feature-flags/${e.id}/edit`),
459
+ className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-all duration-200",
460
+ title: F("featureFlags.edit", "Edit"),
461
+ children: /* @__PURE__ */ E(C, { size: 16 })
462
+ }), /* @__PURE__ */ E("button", {
463
+ type: "button",
464
+ onClick: () => te(e.id, e.name),
465
+ 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",
466
+ title: F("featureFlags.delete", "Delete"),
467
+ children: /* @__PURE__ */ E(w, { size: 16 })
497
468
  })]
498
- })
469
+ })] })
499
470
  })
500
471
  ]
501
472
  });
502
473
  };
503
474
  //#endregion
504
- export { A as FeatureFlagsListPage };
475
+ export { j as FeatureFlagsListPage };
505
476
 
506
477
  //# sourceMappingURL=FeatureFlagsListPage.js.map