@burdenoff/microfe-product 2026.624.3 → 2026.626.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.
Files changed (63) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +41 -36
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductCatalogPage.js +63 -50
  4. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  5. package/dist/product/pages/ProductViewPage.js +220 -178
  6. package/dist/product/pages/ProductViewPage.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +7 -7
  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 +28 -26
  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 +119 -90
  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 +33 -31
  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 +171 -161
  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 +26 -24
  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 +152 -125
  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 +36 -34
  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 +144 -136
  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 +4 -4
  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 +28 -26
  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 +111 -84
  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 +33 -31
  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 +85 -75
  36. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  37. package/dist/product-management/modules/products/components/ProductForm.js +8 -8
  38. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  39. package/dist/product-management/modules/products/components/ProductPlans.js +136 -147
  40. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
  41. package/dist/product-management/modules/products/pages/ProductCreatePage.js +28 -26
  42. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  43. package/dist/product-management/modules/products/pages/ProductDetailPage.js +170 -140
  44. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  45. package/dist/product-management/modules/products/pages/ProductEditPage.js +32 -30
  46. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  47. package/dist/product-management/modules/products/pages/ProductsListPage.js +219 -202
  48. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  49. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +3 -3
  50. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  51. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +28 -23
  52. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  53. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +228 -209
  54. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  55. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +31 -26
  56. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  57. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +209 -198
  58. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  59. package/dist/product-management/shared/components/AuditHistoryTab.js +19 -17
  60. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
  61. package/dist/product-management/shared/components/feedback/EmptyState.js +2 -20
  62. package/package.json +2 -2
  63. package/dist/product-management/shared/components/feedback/EmptyState.js.map +0 -1
@@ -9,81 +9,83 @@ import { AlertTriangle as c, ArrowLeft as l } from "lucide-react";
9
9
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
10
10
  import { useFeatureFlags as f } from "@burdenoff/fe-libs/shared/feature-flags";
11
11
  import { useParams as p } from "react-router-dom";
12
+ import { EmphasisPanel as m, PagePurpose as h } from "@burdenoff/fe-libs/ui";
12
13
  //#region src/product-management/modules/feature-flags/pages/FeatureFlagEditPage.tsx
13
- var m = () => {
14
- let { id: m } = p(), { navigate: h, basePath: g } = t(), { featureFlag: _, loading: v, error: y, refetch: b } = a(m), { updateFeatureFlag: x, loading: S } = o(), { refreshFlags: C } = f(), [w, T] = s(null), E = e(), D = async (e) => {
15
- T(null);
14
+ var g = () => {
15
+ let { id: g } = p(), { navigate: _, basePath: v } = t(), { featureFlag: y, loading: b, error: x, refetch: S } = a(g), { updateFeatureFlag: C, loading: w } = o(), { refreshFlags: T } = f(), [E, D] = s(null), O = e(), k = async (e) => {
16
+ D(null);
16
17
  try {
17
- let t = await x(m, e);
18
- t.data?.updateFeatureFlag?.id ? (C(), h(`${g}/feature-flags/${m}`)) : t.errors && t.errors.length > 0 ? T(t.errors[0]?.message ?? "Failed to update feature flag") : h(`${g}/feature-flags/${m}`);
18
+ let t = await C(g, e);
19
+ t.data?.updateFeatureFlag?.id ? (T(), _(`${v}/feature-flags/${g}`)) : t.errors && t.errors.length > 0 ? D(t.errors[0]?.message ?? "Failed to update feature flag") : _(`${v}/feature-flags/${g}`);
19
20
  } catch (e) {
20
- T(e instanceof Error ? e.message : "An unexpected error occurred");
21
+ D(e instanceof Error ? e.message : "An unexpected error occurred");
21
22
  }
22
- }, O = () => {
23
- h(`${g}/feature-flags/${m}`);
23
+ }, A = () => {
24
+ _(`${v}/feature-flags/${g}`);
24
25
  };
25
- return v ? /* @__PURE__ */ u("div", {
26
+ return b ? /* @__PURE__ */ u("div", {
26
27
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
27
- children: /* @__PURE__ */ u(n, { message: E("featureFlags.loadingFeatureFlag", "Loading feature flag...") })
28
- }) : y ? /* @__PURE__ */ u("div", {
28
+ children: /* @__PURE__ */ u(n, { message: O("featureFlags.loadingFeatureFlag", "Loading feature flag...") })
29
+ }) : x ? /* @__PURE__ */ u("div", {
29
30
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
30
31
  children: /* @__PURE__ */ u(r, {
31
- message: y.message,
32
+ message: x.message,
32
33
  action: {
33
- label: E("productCommon.retry", "Retry"),
34
- onClick: () => b()
34
+ label: O("productCommon.retry", "Retry"),
35
+ onClick: () => S()
35
36
  }
36
37
  })
37
- }) : _ ? /* @__PURE__ */ d("div", {
38
+ }) : y ? /* @__PURE__ */ d("div", {
38
39
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
39
40
  children: [
40
41
  /* @__PURE__ */ d("button", {
41
42
  type: "button",
42
- onClick: O,
43
+ onClick: A,
43
44
  className: "inline-flex items-center gap-2 text-text-secondary hover:text-text-primary mb-4 transition-all duration-200",
44
- children: [/* @__PURE__ */ u(l, { size: 18 }), E("featureFlags.backToFlagDetails", "Back to Flag Details")]
45
+ children: [/* @__PURE__ */ u(l, { size: 18 }), O("featureFlags.backToFlagDetails", "Back to Flag Details")]
45
46
  }),
46
47
  /* @__PURE__ */ u("h1", {
47
- className: "text-2xl font-bold text-text-primary mb-1",
48
- children: E("featureFlags.editFeatureFlag", "Edit Feature Flag")
48
+ className: "text-xl md:text-2xl font-semibold tracking-tight text-text-primary mb-1",
49
+ children: O("featureFlags.editFeatureFlag", "Edit Feature Flag")
49
50
  }),
50
51
  /* @__PURE__ */ d("p", {
51
52
  className: "text-sm text-text-secondary mb-6",
52
53
  children: [
53
- E("featureFlags.updateConfigurationFor", "Update the configuration for"),
54
+ O("featureFlags.updateConfigurationFor", "Update the configuration for"),
54
55
  " ",
55
56
  /* @__PURE__ */ u("code", {
56
57
  className: "font-mono bg-bg-sunken px-1 rounded",
57
- children: _.key
58
+ children: y.key
58
59
  })
59
60
  ]
60
61
  }),
61
- w && /* @__PURE__ */ d("div", {
62
+ /* @__PURE__ */ u(h, {
63
+ className: "mb-6 max-w-2xl",
64
+ children: O("featureFlags.editPurpose", "Adjust how this flag behaves — its default value, status, category, and whether users can preview it. Saving takes effect immediately, so changing the default can switch the feature on or off for everyone who relies on it.")
65
+ }),
66
+ E && /* @__PURE__ */ d("div", {
62
67
  className: "max-w-2xl mb-4 flex items-center gap-2 p-3 bg-[var(--color-status-error-bg)] border border-[var(--color-status-error)] rounded-lg text-sm text-[var(--color-status-error)]",
63
68
  children: [/* @__PURE__ */ u(c, {
64
69
  size: 16,
65
70
  className: "shrink-0"
66
- }), w]
71
+ }), E]
67
72
  }),
68
73
  /* @__PURE__ */ u("div", {
69
74
  className: "max-w-2xl",
70
- children: /* @__PURE__ */ u("div", {
71
- className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
72
- children: /* @__PURE__ */ u(i, {
73
- featureFlag: _,
74
- onSubmit: D,
75
- onCancel: O,
76
- loading: S
77
- })
78
- })
75
+ children: /* @__PURE__ */ u(m, { children: /* @__PURE__ */ u(i, {
76
+ featureFlag: y,
77
+ onSubmit: k,
78
+ onCancel: A,
79
+ loading: w
80
+ }) })
79
81
  })
80
82
  ]
81
83
  }) : /* @__PURE__ */ u("div", {
82
84
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
83
- children: /* @__PURE__ */ u(r, { message: E("featureFlags.featureFlagNotFound", "Feature flag not found") })
85
+ children: /* @__PURE__ */ u(r, { message: O("featureFlags.featureFlagNotFound", "Feature flag not found") })
84
86
  });
85
87
  };
86
88
  //#endregion
87
- export { m as FeatureFlagEditPage };
89
+ export { g as FeatureFlagEditPage };
88
90
 
89
91
  //# sourceMappingURL=FeatureFlagEditPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeatureFlagEditPage.js","names":[],"sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagEditPage.tsx"],"sourcesContent":["/**\n * Feature Flag Edit Page\n */\nimport { AlertTriangle, ArrowLeft } from 'lucide-react';\nimport { type FC, useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { useFeatureFlags } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useTr } from '../../../shared/hooks/useTr';\n\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { FeatureFlagForm } from '../components/FeatureFlagForm';\nimport { useFeatureFlag, useUpdateFeatureFlag } from '../hooks/useFeatureFlags';\nimport type { UpdateFeatureFlagInput } from '../types';\n\nexport const FeatureFlagEditPage: FC = () => {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath } = useProductConsole();\n const { featureFlag, loading: fetching, error, refetch } = useFeatureFlag(id!);\n const { updateFeatureFlag, loading: updating } = useUpdateFeatureFlag();\n const { refreshFlags } = useFeatureFlags();\n const [submitError, setSubmitError] = useState<string | null>(null);\n const tr = useTr();\n\n const handleSubmit = async (data: UpdateFeatureFlagInput) => {\n setSubmitError(null);\n try {\n const result = await updateFeatureFlag(id!, data);\n if (result.data?.updateFeatureFlag?.id) {\n void refreshFlags(); // invalidate gate cache so gated routes react immediately\n navigate(`${basePath}/feature-flags/${id}`);\n } else if (result.errors && result.errors.length > 0) {\n setSubmitError(result.errors[0]?.message ?? 'Failed to update feature flag');\n } else {\n navigate(`${basePath}/feature-flags/${id}`);\n }\n } catch (err: unknown) {\n const message = err instanceof Error ? err.message : 'An unexpected error occurred';\n setSubmitError(message);\n }\n };\n\n const handleCancel = () => {\n navigate(`${basePath}/feature-flags/${id}`);\n };\n\n if (fetching) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('featureFlags.loadingFeatureFlag', 'Loading feature flag...')} />\n </div>\n );\n }\n\n if (error) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={error.message}\n action={{ label: tr('productCommon.retry', 'Retry'), onClick: () => refetch() }}\n />\n </div>\n );\n }\n\n if (!featureFlag) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState message={tr('featureFlags.featureFlagNotFound', 'Feature flag not found')} />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200\">\n {/* Back button */}\n <button\n type=\"button\"\n onClick={handleCancel}\n className=\"inline-flex items-center gap-2 text-text-secondary hover:text-text-primary mb-4 transition-all duration-200\"\n >\n <ArrowLeft size={18} />\n {tr('featureFlags.backToFlagDetails', 'Back to Flag Details')}\n </button>\n\n {/* Header */}\n <h1 className=\"text-2xl font-bold text-text-primary mb-1\">\n {tr('featureFlags.editFeatureFlag', 'Edit Feature Flag')}\n </h1>\n <p className=\"text-sm text-text-secondary mb-6\">\n {tr('featureFlags.updateConfigurationFor', 'Update the configuration for')}{' '}\n <code className=\"font-mono bg-bg-sunken px-1 rounded\">{featureFlag.key}</code>\n </p>\n\n {/* Error banner */}\n {submitError && (\n <div className=\"max-w-2xl mb-4 flex items-center gap-2 p-3 bg-[var(--color-status-error-bg)] border border-[var(--color-status-error)] rounded-lg text-sm text-[var(--color-status-error)]\">\n <AlertTriangle size={16} className=\"shrink-0\" />\n {submitError}\n </div>\n )}\n\n {/* Form */}\n <div className=\"max-w-2xl\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <FeatureFlagForm\n featureFlag={featureFlag}\n onSubmit={handleSubmit}\n onCancel={handleCancel}\n loading={updating}\n />\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAgBA,IAAa,UAAgC;CAC3C,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,gBAAa,GAAmB,EAC5C,EAAE,gBAAa,SAAS,GAAU,UAAO,eAAY,EAAe,EAAI,EACxE,EAAE,sBAAmB,SAAS,MAAa,GAAsB,EACjE,EAAE,oBAAiB,GAAiB,EACpC,CAAC,GAAa,KAAkB,EAAwB,KAAK,EAC7D,IAAK,GAAO,EAEZ,IAAe,OAAO,MAAiC;AAC3D,IAAe,KAAK;AACpB,MAAI;GACF,IAAM,IAAS,MAAM,EAAkB,GAAK,EAAK;AACjD,GAAI,EAAO,MAAM,mBAAmB,MAC7B,GAAc,EACnB,EAAS,GAAG,EAAS,iBAAiB,IAAK,IAClC,EAAO,UAAU,EAAO,OAAO,SAAS,IACjD,EAAe,EAAO,OAAO,IAAI,WAAW,gCAAgC,GAE5E,EAAS,GAAG,EAAS,iBAAiB,IAAK;WAEtC,GAAc;AAErB,KADgB,aAAe,QAAQ,EAAI,UAAU,+BAC9B;;IAIrB,UAAqB;AACzB,IAAS,GAAG,EAAS,iBAAiB,IAAK;;AA8B7C,QA3BI,IAEA,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAc,SAAS,EAAG,mCAAmC,0BAA0B,EAAI,CAAA;EACvF,CAAA,GAIN,IAEA,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD;GACE,SAAS,EAAM;GACf,QAAQ;IAAE,OAAO,EAAG,uBAAuB,QAAQ;IAAE,eAAe,GAAS;IAAE;GAC/E,CAAA;EACE,CAAA,GAIL,IASH,kBAAC,OAAD;EAAK,WAAU;YAAf;GAEE,kBAAC,UAAD;IACE,MAAK;IACL,SAAS;IACT,WAAU;cAHZ,CAKE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACtB,EAAG,kCAAkC,uBAAuB,CACtD;;GAGT,kBAAC,MAAD;IAAI,WAAU;cACX,EAAG,gCAAgC,oBAAoB;IACrD,CAAA;GACL,kBAAC,KAAD;IAAG,WAAU;cAAb;KACG,EAAG,uCAAuC,+BAA+B;KAAE;KAC5E,kBAAC,QAAD;MAAM,WAAU;gBAAuC,EAAY;MAAW,CAAA;KAC5E;;GAGH,KACC,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,GAAD;KAAe,MAAM;KAAI,WAAU;KAAa,CAAA,EAC/C,EACG;;GAIR,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD;MACe;MACb,UAAU;MACV,UAAU;MACV,SAAS;MACT,CAAA;KACE,CAAA;IACF,CAAA;GACF;MA9CJ,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAY,SAAS,EAAG,oCAAoC,yBAAyB,EAAI,CAAA;EACrF,CAAA"}
1
+ {"version":3,"file":"FeatureFlagEditPage.js","names":[],"sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagEditPage.tsx"],"sourcesContent":["/**\n * Feature Flag Edit Page\n */\nimport { AlertTriangle, ArrowLeft } from 'lucide-react';\nimport { type FC, useState } from 'react';\nimport { useParams } from 'react-router-dom';\nimport { useFeatureFlags } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { EmphasisPanel, PagePurpose } from '@burdenoff/fe-libs/ui';\nimport { useTr } from '../../../shared/hooks/useTr';\n\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { ErrorState } from '../../../shared/components/feedback/ErrorState';\nimport { LoadingState } from '../../../shared/components/feedback/LoadingState';\nimport { FeatureFlagForm } from '../components/FeatureFlagForm';\nimport { useFeatureFlag, useUpdateFeatureFlag } from '../hooks/useFeatureFlags';\nimport type { UpdateFeatureFlagInput } from '../types';\n\nexport const FeatureFlagEditPage: FC = () => {\n const { id } = useParams<{ id: string }>();\n const { navigate, basePath } = useProductConsole();\n const { featureFlag, loading: fetching, error, refetch } = useFeatureFlag(id!);\n const { updateFeatureFlag, loading: updating } = useUpdateFeatureFlag();\n const { refreshFlags } = useFeatureFlags();\n const [submitError, setSubmitError] = useState<string | null>(null);\n const tr = useTr();\n\n const handleSubmit = async (data: UpdateFeatureFlagInput) => {\n setSubmitError(null);\n try {\n const result = await updateFeatureFlag(id!, data);\n if (result.data?.updateFeatureFlag?.id) {\n void refreshFlags(); // invalidate gate cache so gated routes react immediately\n navigate(`${basePath}/feature-flags/${id}`);\n } else if (result.errors && result.errors.length > 0) {\n setSubmitError(result.errors[0]?.message ?? 'Failed to update feature flag');\n } else {\n navigate(`${basePath}/feature-flags/${id}`);\n }\n } catch (err: unknown) {\n const message = err instanceof Error ? err.message : 'An unexpected error occurred';\n setSubmitError(message);\n }\n };\n\n const handleCancel = () => {\n navigate(`${basePath}/feature-flags/${id}`);\n };\n\n if (fetching) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <LoadingState message={tr('featureFlags.loadingFeatureFlag', 'Loading feature flag...')} />\n </div>\n );\n }\n\n if (error) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState\n message={error.message}\n action={{ label: tr('productCommon.retry', 'Retry'), onClick: () => refetch() }}\n />\n </div>\n );\n }\n\n if (!featureFlag) {\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6\">\n <ErrorState message={tr('featureFlags.featureFlagNotFound', 'Feature flag not found')} />\n </div>\n );\n }\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200\">\n {/* Back button */}\n <button\n type=\"button\"\n onClick={handleCancel}\n className=\"inline-flex items-center gap-2 text-text-secondary hover:text-text-primary mb-4 transition-all duration-200\"\n >\n <ArrowLeft size={18} />\n {tr('featureFlags.backToFlagDetails', 'Back to Flag Details')}\n </button>\n\n {/* Header */}\n <h1 className=\"text-xl md:text-2xl font-semibold tracking-tight text-text-primary mb-1\">\n {tr('featureFlags.editFeatureFlag', 'Edit Feature Flag')}\n </h1>\n <p className=\"text-sm text-text-secondary mb-6\">\n {tr('featureFlags.updateConfigurationFor', 'Update the configuration for')}{' '}\n <code className=\"font-mono bg-bg-sunken px-1 rounded\">{featureFlag.key}</code>\n </p>\n\n <PagePurpose className=\"mb-6 max-w-2xl\">\n {tr(\n 'featureFlags.editPurpose',\n 'Adjust how this flag behaves — its default value, status, category, and whether users can preview it. Saving takes effect immediately, so changing the default can switch the feature on or off for everyone who relies on it.'\n )}\n </PagePurpose>\n\n {/* Error banner */}\n {submitError && (\n <div className=\"max-w-2xl mb-4 flex items-center gap-2 p-3 bg-[var(--color-status-error-bg)] border border-[var(--color-status-error)] rounded-lg text-sm text-[var(--color-status-error)]\">\n <AlertTriangle size={16} className=\"shrink-0\" />\n {submitError}\n </div>\n )}\n\n {/* Form */}\n <div className=\"max-w-2xl\">\n <EmphasisPanel>\n <FeatureFlagForm\n featureFlag={featureFlag}\n onSubmit={handleSubmit}\n onCancel={handleCancel}\n loading={updating}\n />\n </EmphasisPanel>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;AAiBA,IAAa,UAAgC;CAC3C,IAAM,EAAE,UAAO,GAA2B,EACpC,EAAE,aAAU,gBAAa,GAAmB,EAC5C,EAAE,gBAAa,SAAS,GAAU,UAAO,eAAY,EAAe,EAAI,EACxE,EAAE,sBAAmB,SAAS,MAAa,GAAsB,EACjE,EAAE,oBAAiB,GAAiB,EACpC,CAAC,GAAa,KAAkB,EAAwB,KAAK,EAC7D,IAAK,GAAO,EAEZ,IAAe,OAAO,MAAiC;AAC3D,IAAe,KAAK;AACpB,MAAI;GACF,IAAM,IAAS,MAAM,EAAkB,GAAK,EAAK;AACjD,GAAI,EAAO,MAAM,mBAAmB,MAC7B,GAAc,EACnB,EAAS,GAAG,EAAS,iBAAiB,IAAK,IAClC,EAAO,UAAU,EAAO,OAAO,SAAS,IACjD,EAAe,EAAO,OAAO,IAAI,WAAW,gCAAgC,GAE5E,EAAS,GAAG,EAAS,iBAAiB,IAAK;WAEtC,GAAc;AAErB,KADgB,aAAe,QAAQ,EAAI,UAAU,+BAC9B;;IAIrB,UAAqB;AACzB,IAAS,GAAG,EAAS,iBAAiB,IAAK;;AA8B7C,QA3BI,IAEA,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAc,SAAS,EAAG,mCAAmC,0BAA0B,EAAI,CAAA;EACvF,CAAA,GAIN,IAEA,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD;GACE,SAAS,EAAM;GACf,QAAQ;IAAE,OAAO,EAAG,uBAAuB,QAAQ;IAAE,eAAe,GAAS;IAAE;GAC/E,CAAA;EACE,CAAA,GAIL,IASH,kBAAC,OAAD;EAAK,WAAU;YAAf;GAEE,kBAAC,UAAD;IACE,MAAK;IACL,SAAS;IACT,WAAU;cAHZ,CAKE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACtB,EAAG,kCAAkC,uBAAuB,CACtD;;GAGT,kBAAC,MAAD;IAAI,WAAU;cACX,EAAG,gCAAgC,oBAAoB;IACrD,CAAA;GACL,kBAAC,KAAD;IAAG,WAAU;cAAb;KACG,EAAG,uCAAuC,+BAA+B;KAAE;KAC5E,kBAAC,QAAD;MAAM,WAAU;gBAAuC,EAAY;MAAW,CAAA;KAC5E;;GAEJ,kBAAC,GAAD;IAAa,WAAU;cACpB,EACC,4BACA,iOACD;IACW,CAAA;GAGb,KACC,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,GAAD;KAAe,MAAM;KAAI,WAAU;KAAa,CAAA,EAC/C,EACG;;GAIR,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;KACe;KACb,UAAU;KACV,UAAU;KACV,SAAS;KACT,CAAA,EACY,CAAA;IACZ,CAAA;GACF;MArDJ,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAY,SAAS,EAAG,oCAAoC,yBAAyB,EAAI,CAAA;EACrF,CAAA"}
@@ -6,18 +6,17 @@ import { SearchInput as i } from "../../../shared/components/input/SearchInput.j
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
8
  import { useConfirmDialog as l } from "../../../shared/hooks/useConfirmDialog.js";
9
- import { EmptyState as ee } from "../../../shared/components/feedback/EmptyState.js";
10
- import { useCreateFeatureFlag as u, useDeleteFeatureFlag as d, useFeatureFlags as f, useUpdateFeatureFlag as p } from "../hooks/useFeatureFlags.js";
11
- import { FeatureFlagStatusBadge as m } from "../components/FeatureFlagStatusBadge.js";
12
- import { FeatureFlagTypeBadge as h } from "../components/FeatureFlagTypeBadge.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 { 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";
17
- import { PermissionGate as O } from "@burdenoff/fe-libs/shared/components";
18
- import { ResponsiveTable as k } from "@burdenoff/fe-libs/ui";
9
+ import { useCreateFeatureFlag as u, useDeleteFeatureFlag as ee, useFeatureFlags as te, useUpdateFeatureFlag as ne } from "../hooks/useFeatureFlags.js";
10
+ import { FeatureFlagStatusBadge as d } from "../components/FeatureFlagStatusBadge.js";
11
+ import { FeatureFlagTypeBadge as f } from "../components/FeatureFlagTypeBadge.js";
12
+ import { useState as p } from "react";
13
+ import { Download as m, Eye as h, Plus as g, RefreshCw as _, Sparkles as re, SquarePen as v, Trash2 as y } from "lucide-react";
14
+ import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
15
+ import { useFeatureFlags as ie } from "@burdenoff/fe-libs/shared/feature-flags";
16
+ import { PermissionGate as C } from "@burdenoff/fe-libs/shared/components";
17
+ import { Button as ae, CTAOverflowMenu as oe, GlassCard as w, GradientText as T, IllustratedEmptyState as E, PagePurpose as D, ResponsiveTable as O } from "@burdenoff/fe-libs/ui";
19
18
  //#region src/product-management/modules/feature-flags/pages/FeatureFlagsListPage.tsx
20
- var A = [
19
+ var k = [
21
20
  {
22
21
  key: "vibecontrols.overview",
23
22
  name: "Overview Dashboard",
@@ -186,10 +185,10 @@ var A = [
186
185
  previewable: !0,
187
186
  defaultValue: !0
188
187
  }
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 () => {
188
+ ], A = () => {
189
+ let { navigate: A, basePath: j } = t(), [M, N] = p(""), P = e(), [F, I] = p(""), [L, R] = p(""), z = {};
190
+ M && (z.search = M), F && (z.status = F), L && (z.category = L);
191
+ let { featureFlags: B, total: V, loading: H, error: U, refetch: W } = te(z, { limit: 100 }), { deleteFeatureFlag: G } = ee(), { createFeatureFlag: K } = u(), { updateFeatureFlag: q } = ne(), { refreshFlags: J } = ie(), [Y, X] = p(!1), { confirm: Z, ConfirmDialog: se } = l(), ce = async () => {
193
192
  s("light");
194
193
  let e = "This will create default VibeControls feature flags and reconcile defaultValue on any that already exist. Continue?", t = await o({
195
194
  title: "Seed defaults",
@@ -197,20 +196,20 @@ var A = [
197
196
  okButtonTitle: "Continue",
198
197
  cancelButtonTitle: "Cancel"
199
198
  });
200
- if (!(t === null ? await Q({
199
+ if (!(t === null ? await Z({
201
200
  title: "Seed defaults",
202
201
  message: e,
203
202
  okButtonTitle: "Continue",
204
203
  cancelButtonTitle: "Cancel"
205
204
  }) : t)) return;
206
- Z(!0);
207
- let n = 0, r = 0, i = [], a = new Map(V.map((e) => [e.key, e]));
205
+ X(!0);
206
+ let n = 0, r = 0, i = [], a = new Map(B.map((e) => [e.key, e]));
208
207
  try {
209
- for (let e of A) {
208
+ for (let e of k) {
210
209
  let t = a.get(e.key);
211
210
  if (t) {
212
211
  if (t.defaultValue !== e.defaultValue) try {
213
- await J(t.id, { defaultValue: e.defaultValue }), r++;
212
+ await q(t.id, { defaultValue: e.defaultValue }), r++;
214
213
  } catch (t) {
215
214
  let n = t instanceof Error ? t.message : String(t);
216
215
  i.push(`${e.key} (update): ${n}`);
@@ -218,7 +217,7 @@ var A = [
218
217
  continue;
219
218
  }
220
219
  try {
221
- await q({
220
+ await K({
222
221
  ...e,
223
222
  flagType: "BOOLEAN"
224
223
  }), n++;
@@ -229,11 +228,11 @@ var A = [
229
228
  }
230
229
  }
231
230
  } finally {
232
- Z(!1);
231
+ X(!1);
233
232
  }
234
233
  let c = i.length > 0 ? `Created ${n}, updated ${r}. ${i.length} failed:\n${i.join("\n")}` : `Created ${n}, updated ${r}.`;
235
- window.alert(c), Y(), G();
236
- }, ie = async (e, t) => {
234
+ window.alert(c), J(), W();
235
+ }, le = async (e, t) => {
237
236
  s("medium");
238
237
  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({
239
238
  title: "Delete feature flag",
@@ -241,126 +240,130 @@ var A = [
241
240
  okButtonTitle: "Delete",
242
241
  cancelButtonTitle: "Cancel"
243
242
  });
244
- if (r === null ? await Q({
243
+ if (r === null ? await Z({
245
244
  title: "Delete feature flag",
246
245
  message: n,
247
246
  okButtonTitle: "Delete",
248
247
  cancelButtonTitle: "Cancel",
249
248
  destructive: !0
250
249
  }) : r) try {
251
- await K(e), Y(), c("success"), G();
250
+ await G(e), J(), c("success"), W();
252
251
  } catch (e) {
253
252
  throw c("error"), e;
254
253
  }
255
- }, $ = [...new Set(V.flatMap((e) => e.category ? [e.category] : []))];
256
- if (U && V.length === 0) return /* @__PURE__ */ E("div", {
254
+ }, Q = [...new Set(B.flatMap((e) => e.category ? [e.category] : []))];
255
+ if (H && B.length === 0) return /* @__PURE__ */ x("div", {
257
256
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
258
- children: /* @__PURE__ */ E(n, { message: F("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
257
+ children: /* @__PURE__ */ x(n, { message: P("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
259
258
  });
260
- if (W) return /* @__PURE__ */ E("div", {
259
+ if (U) return /* @__PURE__ */ x("div", {
261
260
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
262
- children: /* @__PURE__ */ E(r, {
263
- message: W.message,
261
+ children: /* @__PURE__ */ x(r, {
262
+ message: U.message,
264
263
  action: {
265
- label: F("productCommon.retry", "Retry"),
266
- onClick: () => G()
264
+ label: P("productCommon.retry", "Retry"),
265
+ onClick: () => W()
267
266
  }
268
267
  })
269
268
  });
270
- let ae = (e) => new Date(e).toLocaleDateString("en-US", {
269
+ let $ = (e) => new Date(e).toLocaleDateString("en-US", {
271
270
  year: "numeric",
272
271
  month: "short",
273
272
  day: "numeric"
274
273
  });
275
- return /* @__PURE__ */ D("div", {
274
+ return /* @__PURE__ */ S("div", {
276
275
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
277
276
  children: [
278
- /* @__PURE__ */ D("div", {
279
- className: "flex items-center justify-between mb-6",
280
- children: [/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E("h1", {
281
- className: "text-2xl font-bold text-text-primary",
282
- children: F("featureFlags.title", "Feature Flags")
283
- }), /* @__PURE__ */ D("p", {
277
+ /* @__PURE__ */ S("div", {
278
+ className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-6",
279
+ children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h1", {
280
+ className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
281
+ children: /* @__PURE__ */ x(T, { children: P("featureFlags.title", "Feature Flags") })
282
+ }), /* @__PURE__ */ S("p", {
284
283
  className: "text-sm text-text-secondary mt-1",
285
284
  children: [
286
- F("featureFlags.subtitle", "Manage platform-wide feature flags."),
285
+ P("featureFlags.subtitle", "Manage platform-wide feature flags."),
287
286
  " ",
288
- H,
287
+ V,
289
288
  " ",
290
- H === 1 ? F("featureFlags.flagTotal", "flag total") : F("featureFlags.flagsTotal", "flags total"),
289
+ V === 1 ? P("featureFlags.flagTotal", "flag total") : P("featureFlags.flagsTotal", "flags total"),
291
290
  "."
292
291
  ]
293
- })] }), /* @__PURE__ */ E(O, {
292
+ })] }), /* @__PURE__ */ x(C, {
294
293
  role: "super_admin",
295
- children: /* @__PURE__ */ D("div", {
296
- className: "flex items-center gap-2",
297
- children: [/* @__PURE__ */ D("button", {
298
- type: "button",
299
- onClick: re,
300
- disabled: X,
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",
302
- children: [/* @__PURE__ */ E(S, { size: 18 }), X ? F("featureFlags.seeding", "Seeding...") : F("featureFlags.seedDefaults", "Seed Defaults")]
303
- }), /* @__PURE__ */ D("button", {
304
- type: "button",
305
- onClick: () => j(`${M}/feature-flags/new`),
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",
307
- children: [/* @__PURE__ */ E(b, { size: 18 }), F("featureFlags.createFlag", "Create Flag")]
308
- })]
294
+ children: /* @__PURE__ */ x(oe, {
295
+ primary: {
296
+ label: P("featureFlags.createFlag", "Create Flag"),
297
+ onSelect: () => A(`${j}/feature-flags/new`),
298
+ icon: /* @__PURE__ */ x(g, { className: "size-4" })
299
+ },
300
+ actions: [{
301
+ label: Y ? P("featureFlags.seeding", "Seeding...") : P("featureFlags.seedDefaults", "Seed Defaults"),
302
+ onSelect: () => {
303
+ ce();
304
+ },
305
+ disabled: Y,
306
+ icon: /* @__PURE__ */ x(re, { className: "size-4" })
307
+ }]
309
308
  })
310
309
  })]
311
310
  }),
312
- /* @__PURE__ */ D("div", {
311
+ /* @__PURE__ */ x(D, {
312
+ className: "mb-6",
313
+ children: P("featureFlags.purpose", "Feature flags let you turn product capabilities on or off without shipping new code — roll out a feature gradually, gate it behind a preview, or kill-switch it instantly. Use \"Seed Defaults\" to create the standard VibeControls flag set in one click.")
314
+ }),
315
+ /* @__PURE__ */ S("div", {
313
316
  className: "flex flex-wrap items-center gap-3 mb-6",
314
317
  children: [
315
- /* @__PURE__ */ E("div", {
318
+ /* @__PURE__ */ x("div", {
316
319
  className: "flex-1 min-w-[250px]",
317
- children: /* @__PURE__ */ E(i, {
318
- value: N,
319
- onChange: P,
320
- placeholder: F("featureFlags.searchPlaceholder", "Search by key, name, or description...")
320
+ children: /* @__PURE__ */ x(i, {
321
+ value: M,
322
+ onChange: N,
323
+ placeholder: P("featureFlags.searchPlaceholder", "Search by key, name, or description...")
321
324
  })
322
325
  }),
323
- /* @__PURE__ */ D("select", {
324
- value: I,
325
- onChange: (e) => L(e.target.value),
326
+ /* @__PURE__ */ S("select", {
327
+ value: F,
328
+ onChange: (e) => I(e.target.value),
326
329
  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",
327
330
  children: [
328
- /* @__PURE__ */ E("option", {
331
+ /* @__PURE__ */ x("option", {
329
332
  value: "",
330
- children: F("featureFlags.allStatuses", "All Statuses")
333
+ children: P("featureFlags.allStatuses", "All Statuses")
331
334
  }),
332
- /* @__PURE__ */ E("option", {
335
+ /* @__PURE__ */ x("option", {
333
336
  value: "ACTIVE",
334
- children: F("featureFlags.statusActive", "Active")
337
+ children: P("featureFlags.statusActive", "Active")
335
338
  }),
336
- /* @__PURE__ */ E("option", {
339
+ /* @__PURE__ */ x("option", {
337
340
  value: "ARCHIVED",
338
- children: F("featureFlags.statusArchived", "Archived")
341
+ children: P("featureFlags.statusArchived", "Archived")
339
342
  })
340
343
  ]
341
344
  }),
342
- $.length > 0 && /* @__PURE__ */ D("select", {
343
- value: R,
344
- onChange: (e) => z(e.target.value),
345
+ Q.length > 0 && /* @__PURE__ */ S("select", {
346
+ value: L,
347
+ onChange: (e) => R(e.target.value),
345
348
  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",
346
- children: [/* @__PURE__ */ E("option", {
349
+ children: [/* @__PURE__ */ x("option", {
347
350
  value: "",
348
- children: F("featureFlags.allCategories", "All Categories")
349
- }), $.map((e) => /* @__PURE__ */ E("option", {
351
+ children: P("featureFlags.allCategories", "All Categories")
352
+ }), Q.map((e) => /* @__PURE__ */ x("option", {
350
353
  value: e,
351
354
  children: e
352
355
  }, e))]
353
356
  }),
354
- /* @__PURE__ */ E("button", {
357
+ /* @__PURE__ */ x("button", {
355
358
  type: "button",
356
- onClick: () => G(),
359
+ onClick: () => W(),
357
360
  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",
358
- title: F("productCommon.refresh", "Refresh"),
359
- children: /* @__PURE__ */ E(x, { size: 18 })
361
+ title: P("productCommon.refresh", "Refresh"),
362
+ children: /* @__PURE__ */ x(_, { size: 18 })
360
363
  }),
361
- V.length > 0 && /* @__PURE__ */ E("button", {
364
+ B.length > 0 && /* @__PURE__ */ x("button", {
362
365
  type: "button",
363
- onClick: () => a("feature-flags", V.map((e) => ({
366
+ onClick: () => a("feature-flags", B.map((e) => ({
364
367
  id: e.id,
365
368
  key: e.key,
366
369
  name: e.name,
@@ -374,117 +377,122 @@ var A = [
374
377
  updatedAt: e.updatedAt
375
378
  }))),
376
379
  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",
377
- title: F("featureFlags.exportCsv", "Export as CSV"),
378
- children: /* @__PURE__ */ E(_, { size: 18 })
380
+ title: P("featureFlags.exportCsv", "Export as CSV"),
381
+ children: /* @__PURE__ */ x(m, { size: 18 })
379
382
  })
380
383
  ]
381
384
  }),
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."),
386
- action: {
387
- label: F("featureFlags.createFlag", "Create Flag"),
388
- onClick: () => j(`${M}/feature-flags/new`)
389
- }
390
- }) : /* @__PURE__ */ E(k, {
391
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)]",
392
- data: V,
385
+ B.length === 0 ? /* @__PURE__ */ x(w, {
386
+ treatment: "insight",
387
+ className: "animate-in fade-in duration-200",
388
+ children: /* @__PURE__ */ x(E, {
389
+ illustration: M || F || L ? "empty-search" : "empty-data",
390
+ title: P("featureFlags.noFeatureFlagsFound", "No feature flags found"),
391
+ 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."),
392
+ action: /* @__PURE__ */ S(ae, {
393
+ type: "button",
394
+ onClick: () => A(`${j}/feature-flags/new`),
395
+ children: [/* @__PURE__ */ x(g, { className: "size-4" }), P("featureFlags.createFlag", "Create Flag")]
396
+ })
397
+ })
398
+ }) : /* @__PURE__ */ x(O, {
399
+ className: "bg-bg-surface rounded-card border border-[color-mix(in_oklab,var(--color-action-primary-bg)_34%,transparent)] shadow-[var(--shadow-glow)]",
400
+ data: B,
393
401
  rowKey: (e) => e.id,
394
402
  columns: [
395
403
  {
396
404
  key: "key",
397
- header: F("featureFlags.columnKey", "Key"),
405
+ header: P("featureFlags.columnKey", "Key"),
398
406
  priority: "primary",
399
- cell: (e) => /* @__PURE__ */ E("code", {
407
+ cell: (e) => /* @__PURE__ */ x("code", {
400
408
  className: "text-sm font-mono text-text-primary bg-bg-sunken px-1.5 py-0.5 rounded",
401
409
  children: e.key
402
410
  })
403
411
  },
404
412
  {
405
413
  key: "name",
406
- header: F("featureFlags.columnName", "Name"),
407
- cell: (e) => /* @__PURE__ */ E("span", {
414
+ header: P("featureFlags.columnName", "Name"),
415
+ cell: (e) => /* @__PURE__ */ x("span", {
408
416
  className: "text-sm text-text-primary",
409
417
  children: e.name
410
418
  })
411
419
  },
412
420
  {
413
421
  key: "type",
414
- header: F("featureFlags.columnType", "Type"),
415
- cell: (e) => /* @__PURE__ */ E(h, { flagType: e.flagType })
422
+ header: P("featureFlags.columnType", "Type"),
423
+ cell: (e) => /* @__PURE__ */ x(f, { flagType: e.flagType })
416
424
  },
417
425
  {
418
426
  key: "status",
419
- header: F("featureFlags.columnStatus", "Status"),
420
- cell: (e) => /* @__PURE__ */ E(m, { status: e.status })
427
+ header: P("featureFlags.columnStatus", "Status"),
428
+ cell: (e) => /* @__PURE__ */ x(d, { status: e.status })
421
429
  },
422
430
  {
423
431
  key: "category",
424
- header: F("featureFlags.columnCategory", "Category"),
425
- cell: (e) => /* @__PURE__ */ E("span", {
432
+ header: P("featureFlags.columnCategory", "Category"),
433
+ cell: (e) => /* @__PURE__ */ x("span", {
426
434
  className: "text-sm text-text-secondary",
427
435
  children: e.category || "—"
428
436
  })
429
437
  },
430
438
  {
431
439
  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", {
440
+ header: P("featureFlags.columnPreview", "Preview"),
441
+ cell: (e) => e.previewable ? /* @__PURE__ */ S("span", {
442
+ className: "inline-flex items-center gap-1.5 text-sm text-[var(--color-status-success)]",
443
+ children: [/* @__PURE__ */ x("span", { className: "size-1.5 rounded-full bg-[var(--color-status-success)] motion-safe:animate-vc-glow-pulse" }), P("featureFlags.yes", "Yes")]
444
+ }) : /* @__PURE__ */ x("span", {
437
445
  className: "text-sm text-text-tertiary",
438
- children: F("featureFlags.no", "No")
446
+ children: P("featureFlags.no", "No")
439
447
  })
440
448
  },
441
449
  {
442
450
  key: "product",
443
- header: F("featureFlags.columnProduct", "Product"),
451
+ header: P("featureFlags.columnProduct", "Product"),
444
452
  priority: "hidden-on-mobile",
445
- cell: (e) => /* @__PURE__ */ E("span", {
453
+ cell: (e) => /* @__PURE__ */ x("span", {
446
454
  className: "text-sm text-text-secondary",
447
455
  children: e.product?.name || "—"
448
456
  })
449
457
  },
450
458
  {
451
459
  key: "updated",
452
- header: F("featureFlags.columnUpdated", "Updated"),
460
+ header: P("featureFlags.columnUpdated", "Updated"),
453
461
  priority: "hidden-on-mobile",
454
- cell: (e) => /* @__PURE__ */ E("span", {
462
+ cell: (e) => /* @__PURE__ */ x("span", {
455
463
  className: "text-sm text-text-tertiary",
456
- children: ae(e.updatedAt)
464
+ children: $(e.updatedAt)
457
465
  })
458
466
  }
459
467
  ],
460
- rowActions: (e) => /* @__PURE__ */ D(T, { children: [/* @__PURE__ */ E("button", {
468
+ rowActions: (e) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
461
469
  type: "button",
462
- onClick: () => j(`${M}/feature-flags/${e.id}`),
470
+ onClick: () => A(`${j}/feature-flags/${e.id}`),
463
471
  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, {
472
+ title: P("featureFlags.viewDetails", "View details"),
473
+ children: /* @__PURE__ */ x(h, { size: 16 })
474
+ }), /* @__PURE__ */ S(C, {
467
475
  role: "super_admin",
468
- children: [/* @__PURE__ */ E("button", {
476
+ children: [/* @__PURE__ */ x("button", {
469
477
  type: "button",
470
- onClick: () => j(`${M}/feature-flags/${e.id}/edit`),
478
+ onClick: () => A(`${j}/feature-flags/${e.id}/edit`),
471
479
  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", {
480
+ title: P("featureFlags.edit", "Edit"),
481
+ children: /* @__PURE__ */ x(v, { size: 16 })
482
+ }), /* @__PURE__ */ x("button", {
475
483
  type: "button",
476
- onClick: () => ie(e.id, e.name),
484
+ onClick: () => le(e.id, e.name),
477
485
  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 })
486
+ title: P("featureFlags.delete", "Delete"),
487
+ children: /* @__PURE__ */ x(y, { size: 16 })
480
488
  })]
481
489
  })] })
482
490
  }),
483
- ne
491
+ se
484
492
  ]
485
493
  });
486
494
  };
487
495
  //#endregion
488
- export { j as FeatureFlagsListPage };
496
+ export { A as FeatureFlagsListPage };
489
497
 
490
498
  //# sourceMappingURL=FeatureFlagsListPage.js.map