@burdenoff/microfe-product 2026.624.1 → 2026.624.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.
Files changed (63) 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 +242 -231
  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 +293 -282
  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 +144 -136
  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 +188 -204
  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 +95 -87
  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 +250 -239
  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 +407 -396
  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 +286 -275
  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 +236 -225
  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 +261 -245
  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/dist/product-management/shared/hooks/useConfirmDialog.js +44 -0
  62. package/dist/product-management/shared/hooks/useConfirmDialog.js.map +1 -0
  63. package/package.json +1 -1
@@ -5,17 +5,19 @@ import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.
5
5
  import { SearchInput as i } from "../../../shared/components/input/SearchInput.js";
6
6
  import { exportToCsv as a } from "../../../shared/utils/exportUtils.js";
7
7
  import { nativeConfirm as o, nativeImpact as s, nativeNotify as c } from "../../../../utils/nativeBridge.js";
8
- import { EmptyState as l } from "../../../shared/components/feedback/EmptyState.js";
8
+ import { useConfirmDialog as l } from "../../../shared/hooks/useConfirmDialog.js";
9
+ import { EmptyState as ee } from "../../../shared/components/feedback/EmptyState.js";
9
10
  import { useCreateFeatureFlag as u, useDeleteFeatureFlag as d, useFeatureFlags as f, useUpdateFeatureFlag as p } from "../hooks/useFeatureFlags.js";
10
11
  import { FeatureFlagStatusBadge as m } from "../components/FeatureFlagStatusBadge.js";
11
12
  import { FeatureFlagTypeBadge as h } from "../components/FeatureFlagTypeBadge.js";
12
13
  import { useState as g } from "react";
13
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";
14
- import { jsx as T, jsxs as E } from "react/jsx-runtime";
15
- import { useFeatureFlags as D } from "@burdenoff/fe-libs/shared/feature-flags";
15
+ import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
16
+ import { useFeatureFlags as te } from "@burdenoff/fe-libs/shared/feature-flags";
16
17
  import { PermissionGate as O } from "@burdenoff/fe-libs/shared/components";
18
+ import { ResponsiveTable as k } from "@burdenoff/fe-libs/ui";
17
19
  //#region src/product-management/modules/feature-flags/pages/FeatureFlagsListPage.tsx
18
- var k = [
20
+ var A = [
19
21
  {
20
22
  key: "vibecontrols.overview",
21
23
  name: "Overview Dashboard",
@@ -184,10 +186,10 @@ var k = [
184
186
  previewable: !0,
185
187
  defaultValue: !0
186
188
  }
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 () => {
189
+ ], j = () => {
190
+ let { navigate: j, basePath: M } = t(), [N, P] = g(""), F = e(), [I, L] = g(""), [R, z] = g(""), B = {};
191
+ N && (B.search = N), I && (B.status = I), R && (B.category = R);
192
+ 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 } = te(), [X, Z] = g(!1), { confirm: Q, ConfirmDialog: ne } = l(), re = async () => {
191
193
  s("light");
192
194
  let e = "This will create default VibeControls feature flags and reconcile defaultValue on any that already exist. Continue?", t = await o({
193
195
  title: "Seed defaults",
@@ -195,15 +197,20 @@ var k = [
195
197
  okButtonTitle: "Continue",
196
198
  cancelButtonTitle: "Cancel"
197
199
  });
198
- 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
+ if (!(t === null ? await Q({
201
+ title: "Seed defaults",
202
+ message: e,
203
+ okButtonTitle: "Continue",
204
+ cancelButtonTitle: "Cancel"
205
+ }) : t)) return;
206
+ Z(!0);
207
+ let n = 0, r = 0, i = [], a = new Map(V.map((e) => [e.key, e]));
201
208
  try {
202
- for (let e of k) {
209
+ for (let e of A) {
203
210
  let t = a.get(e.key);
204
211
  if (t) {
205
212
  if (t.defaultValue !== e.defaultValue) try {
206
- await q(t.id, { defaultValue: e.defaultValue }), r++;
213
+ await J(t.id, { defaultValue: e.defaultValue }), r++;
207
214
  } catch (t) {
208
215
  let n = t instanceof Error ? t.message : String(t);
209
216
  i.push(`${e.key} (update): ${n}`);
@@ -211,7 +218,7 @@ var k = [
211
218
  continue;
212
219
  }
213
220
  try {
214
- await K({
221
+ await q({
215
222
  ...e,
216
223
  flagType: "BOOLEAN"
217
224
  }), n++;
@@ -222,11 +229,11 @@ var k = [
222
229
  }
223
230
  }
224
231
  } finally {
225
- X(!1);
232
+ Z(!1);
226
233
  }
227
234
  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) => {
235
+ window.alert(c), Y(), G();
236
+ }, ie = async (e, t) => {
230
237
  s("medium");
231
238
  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
239
  title: "Delete feature flag",
@@ -234,120 +241,126 @@ var k = [
234
241
  okButtonTitle: "Delete",
235
242
  cancelButtonTitle: "Cancel"
236
243
  });
237
- if (r === null ? window.confirm(n) : r) try {
238
- await G(e), J(), c("success"), W();
244
+ if (r === null ? await Q({
245
+ title: "Delete feature flag",
246
+ message: n,
247
+ okButtonTitle: "Delete",
248
+ cancelButtonTitle: "Cancel",
249
+ destructive: !0
250
+ }) : r) try {
251
+ await K(e), Y(), c("success"), G();
239
252
  } catch (e) {
240
253
  throw c("error"), e;
241
254
  }
242
- }, $ = [...new Set(B.flatMap((e) => e.category ? [e.category] : []))];
243
- if (H && B.length === 0) return /* @__PURE__ */ T("div", {
255
+ }, $ = [...new Set(V.flatMap((e) => e.category ? [e.category] : []))];
256
+ if (U && V.length === 0) return /* @__PURE__ */ E("div", {
244
257
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
245
- children: /* @__PURE__ */ T(n, { message: P("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
258
+ children: /* @__PURE__ */ E(n, { message: F("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
246
259
  });
247
- if (U) return /* @__PURE__ */ T("div", {
260
+ if (W) return /* @__PURE__ */ E("div", {
248
261
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
249
- children: /* @__PURE__ */ T(r, {
250
- message: U.message,
262
+ children: /* @__PURE__ */ E(r, {
263
+ message: W.message,
251
264
  action: {
252
- label: P("productCommon.retry", "Retry"),
253
- onClick: () => W()
265
+ label: F("productCommon.retry", "Retry"),
266
+ onClick: () => G()
254
267
  }
255
268
  })
256
269
  });
257
- let ee = (e) => new Date(e).toLocaleDateString("en-US", {
270
+ let ae = (e) => new Date(e).toLocaleDateString("en-US", {
258
271
  year: "numeric",
259
272
  month: "short",
260
273
  day: "numeric"
261
274
  });
262
- return /* @__PURE__ */ E("div", {
263
- className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
275
+ return /* @__PURE__ */ D("div", {
276
+ className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
264
277
  children: [
265
- /* @__PURE__ */ E("div", {
278
+ /* @__PURE__ */ D("div", {
266
279
  className: "flex items-center justify-between mb-6",
267
- children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h1", {
280
+ children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h1", {
268
281
  className: "text-2xl font-bold text-text-primary",
269
- children: P("featureFlags.title", "Feature Flags")
270
- }), /* @__PURE__ */ E("p", {
282
+ children: F("featureFlags.title", "Feature Flags")
283
+ }), /* @__PURE__ */ D("p", {
271
284
  className: "text-sm text-text-secondary mt-1",
272
285
  children: [
273
- P("featureFlags.subtitle", "Manage platform-wide feature flags."),
286
+ F("featureFlags.subtitle", "Manage platform-wide feature flags."),
274
287
  " ",
275
- V,
288
+ H,
276
289
  " ",
277
- V === 1 ? P("featureFlags.flagTotal", "flag total") : P("featureFlags.flagsTotal", "flags total"),
290
+ H === 1 ? F("featureFlags.flagTotal", "flag total") : F("featureFlags.flagsTotal", "flags total"),
278
291
  "."
279
292
  ]
280
- })] }), /* @__PURE__ */ T(O, {
293
+ })] }), /* @__PURE__ */ E(O, {
281
294
  role: "super_admin",
282
- children: /* @__PURE__ */ E("div", {
295
+ children: /* @__PURE__ */ D("div", {
283
296
  className: "flex items-center gap-2",
284
- children: [/* @__PURE__ */ E("button", {
297
+ children: [/* @__PURE__ */ D("button", {
285
298
  type: "button",
286
- onClick: Z,
287
- disabled: Y,
299
+ onClick: re,
300
+ disabled: X,
288
301
  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", {
302
+ children: [/* @__PURE__ */ E(S, { size: 18 }), X ? F("featureFlags.seeding", "Seeding...") : F("featureFlags.seedDefaults", "Seed Defaults")]
303
+ }), /* @__PURE__ */ D("button", {
291
304
  type: "button",
292
- onClick: () => A(`${j}/feature-flags/new`),
305
+ onClick: () => j(`${M}/feature-flags/new`),
293
306
  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")]
307
+ children: [/* @__PURE__ */ E(b, { size: 18 }), F("featureFlags.createFlag", "Create Flag")]
295
308
  })]
296
309
  })
297
310
  })]
298
311
  }),
299
- /* @__PURE__ */ E("div", {
312
+ /* @__PURE__ */ D("div", {
300
313
  className: "flex flex-wrap items-center gap-3 mb-6",
301
314
  children: [
302
- /* @__PURE__ */ T("div", {
315
+ /* @__PURE__ */ E("div", {
303
316
  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...")
317
+ children: /* @__PURE__ */ E(i, {
318
+ value: N,
319
+ onChange: P,
320
+ placeholder: F("featureFlags.searchPlaceholder", "Search by key, name, or description...")
308
321
  })
309
322
  }),
310
- /* @__PURE__ */ E("select", {
311
- value: F,
312
- onChange: (e) => I(e.target.value),
323
+ /* @__PURE__ */ D("select", {
324
+ value: I,
325
+ onChange: (e) => L(e.target.value),
313
326
  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
327
  children: [
315
- /* @__PURE__ */ T("option", {
328
+ /* @__PURE__ */ E("option", {
316
329
  value: "",
317
- children: P("featureFlags.allStatuses", "All Statuses")
330
+ children: F("featureFlags.allStatuses", "All Statuses")
318
331
  }),
319
- /* @__PURE__ */ T("option", {
332
+ /* @__PURE__ */ E("option", {
320
333
  value: "ACTIVE",
321
- children: P("featureFlags.statusActive", "Active")
334
+ children: F("featureFlags.statusActive", "Active")
322
335
  }),
323
- /* @__PURE__ */ T("option", {
336
+ /* @__PURE__ */ E("option", {
324
337
  value: "ARCHIVED",
325
- children: P("featureFlags.statusArchived", "Archived")
338
+ children: F("featureFlags.statusArchived", "Archived")
326
339
  })
327
340
  ]
328
341
  }),
329
- $.length > 0 && /* @__PURE__ */ E("select", {
330
- value: L,
331
- onChange: (e) => R(e.target.value),
342
+ $.length > 0 && /* @__PURE__ */ D("select", {
343
+ value: R,
344
+ onChange: (e) => z(e.target.value),
332
345
  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", {
346
+ children: [/* @__PURE__ */ E("option", {
334
347
  value: "",
335
- children: P("featureFlags.allCategories", "All Categories")
336
- }), $.map((e) => /* @__PURE__ */ T("option", {
348
+ children: F("featureFlags.allCategories", "All Categories")
349
+ }), $.map((e) => /* @__PURE__ */ E("option", {
337
350
  value: e,
338
351
  children: e
339
352
  }, e))]
340
353
  }),
341
- /* @__PURE__ */ T("button", {
354
+ /* @__PURE__ */ E("button", {
342
355
  type: "button",
343
- onClick: () => W(),
356
+ onClick: () => G(),
344
357
  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 })
358
+ title: F("productCommon.refresh", "Refresh"),
359
+ children: /* @__PURE__ */ E(x, { size: 18 })
347
360
  }),
348
- B.length > 0 && /* @__PURE__ */ T("button", {
361
+ V.length > 0 && /* @__PURE__ */ E("button", {
349
362
  type: "button",
350
- onClick: () => a("feature-flags", B.map((e) => ({
363
+ onClick: () => a("feature-flags", V.map((e) => ({
351
364
  id: e.id,
352
365
  key: e.key,
353
366
  name: e.name,
@@ -361,146 +374,117 @@ var k = [
361
374
  updatedAt: e.updatedAt
362
375
  }))),
363
376
  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 })
377
+ title: F("featureFlags.exportCsv", "Export as CSV"),
378
+ children: /* @__PURE__ */ E(_, { size: 18 })
366
379
  })
367
380
  ]
368
381
  }),
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."),
382
+ V.length === 0 ? /* @__PURE__ */ E(ee, {
383
+ icon: /* @__PURE__ */ E(y, { size: 48 }),
384
+ title: F("featureFlags.noFeatureFlagsFound", "No feature flags found"),
385
+ 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
386
  action: {
374
- label: P("featureFlags.createFlag", "Create Flag"),
375
- onClick: () => A(`${j}/feature-flags/new`)
387
+ label: F("featureFlags.createFlag", "Create Flag"),
388
+ onClick: () => j(`${M}/feature-flags/new`)
376
389
  }
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))
390
+ }) : /* @__PURE__ */ E(k, {
391
+ className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)]",
392
+ data: V,
393
+ rowKey: (e) => e.id,
394
+ columns: [
395
+ {
396
+ key: "key",
397
+ header: F("featureFlags.columnKey", "Key"),
398
+ priority: "primary",
399
+ cell: (e) => /* @__PURE__ */ E("code", {
400
+ className: "text-sm font-mono text-text-primary bg-bg-sunken px-1.5 py-0.5 rounded",
401
+ children: e.key
402
+ })
403
+ },
404
+ {
405
+ key: "name",
406
+ header: F("featureFlags.columnName", "Name"),
407
+ cell: (e) => /* @__PURE__ */ E("span", {
408
+ className: "text-sm text-text-primary",
409
+ children: e.name
410
+ })
411
+ },
412
+ {
413
+ key: "type",
414
+ header: F("featureFlags.columnType", "Type"),
415
+ cell: (e) => /* @__PURE__ */ E(h, { flagType: e.flagType })
416
+ },
417
+ {
418
+ key: "status",
419
+ header: F("featureFlags.columnStatus", "Status"),
420
+ cell: (e) => /* @__PURE__ */ E(m, { status: e.status })
421
+ },
422
+ {
423
+ key: "category",
424
+ header: F("featureFlags.columnCategory", "Category"),
425
+ cell: (e) => /* @__PURE__ */ E("span", {
426
+ className: "text-sm text-text-secondary",
427
+ children: e.category || "—"
428
+ })
429
+ },
430
+ {
431
+ key: "preview",
432
+ header: F("featureFlags.columnPreview", "Preview"),
433
+ cell: (e) => e.previewable ? /* @__PURE__ */ E("span", {
434
+ className: "text-sm text-[var(--color-status-success)]",
435
+ children: F("featureFlags.yes", "Yes")
436
+ }) : /* @__PURE__ */ E("span", {
437
+ className: "text-sm text-text-tertiary",
438
+ children: F("featureFlags.no", "No")
439
+ })
440
+ },
441
+ {
442
+ key: "product",
443
+ header: F("featureFlags.columnProduct", "Product"),
444
+ priority: "hidden-on-mobile",
445
+ cell: (e) => /* @__PURE__ */ E("span", {
446
+ className: "text-sm text-text-secondary",
447
+ children: e.product?.name || "—"
448
+ })
449
+ },
450
+ {
451
+ key: "updated",
452
+ header: F("featureFlags.columnUpdated", "Updated"),
453
+ priority: "hidden-on-mobile",
454
+ cell: (e) => /* @__PURE__ */ E("span", {
455
+ className: "text-sm text-text-tertiary",
456
+ children: ae(e.updatedAt)
457
+ })
458
+ }
459
+ ],
460
+ rowActions: (e) => /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("button", {
461
+ type: "button",
462
+ onClick: () => j(`${M}/feature-flags/${e.id}`),
463
+ className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-all duration-200",
464
+ title: F("featureFlags.viewDetails", "View details"),
465
+ children: /* @__PURE__ */ E(v, { size: 16 })
466
+ }), /* @__PURE__ */ D(O, {
467
+ role: "super_admin",
468
+ children: [/* @__PURE__ */ E("button", {
469
+ type: "button",
470
+ onClick: () => j(`${M}/feature-flags/${e.id}/edit`),
471
+ className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-all duration-200",
472
+ title: F("featureFlags.edit", "Edit"),
473
+ children: /* @__PURE__ */ E(C, { size: 16 })
474
+ }), /* @__PURE__ */ E("button", {
475
+ type: "button",
476
+ onClick: () => ie(e.id, e.name),
477
+ 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",
478
+ title: F("featureFlags.delete", "Delete"),
479
+ children: /* @__PURE__ */ E(w, { size: 16 })
497
480
  })]
498
- })
499
- })
481
+ })] })
482
+ }),
483
+ ne
500
484
  ]
501
485
  });
502
486
  };
503
487
  //#endregion
504
- export { A as FeatureFlagsListPage };
488
+ export { j as FeatureFlagsListPage };
505
489
 
506
490
  //# sourceMappingURL=FeatureFlagsListPage.js.map