@burdenoff/microfe-product 2026.625.1 → 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 (51) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +40 -36
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductCatalogPage.js +71 -63
  4. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  5. package/dist/product/pages/ProductViewPage.js +218 -181
  6. package/dist/product/pages/ProductViewPage.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +27 -25
  8. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  9. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +99 -72
  10. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  11. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +32 -30
  12. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  13. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +96 -91
  14. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  15. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +25 -23
  16. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  17. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +136 -111
  18. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  19. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +35 -33
  20. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  21. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +130 -126
  22. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  23. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +27 -25
  24. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  25. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +95 -70
  26. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  27. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +32 -30
  28. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  29. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +63 -58
  30. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  31. package/dist/product-management/modules/products/components/ProductPlans.js +132 -143
  32. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
  33. package/dist/product-management/modules/products/pages/ProductCreatePage.js +27 -25
  34. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  35. package/dist/product-management/modules/products/pages/ProductDetailPage.js +142 -114
  36. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  37. package/dist/product-management/modules/products/pages/ProductEditPage.js +31 -29
  38. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  39. package/dist/product-management/modules/products/pages/ProductsListPage.js +218 -210
  40. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  41. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +27 -22
  42. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  43. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +156 -129
  44. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  45. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +30 -25
  46. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  47. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +140 -132
  48. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  49. package/dist/product-management/shared/components/AuditHistoryTab.js +18 -16
  50. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
  51. package/package.json +2 -2
@@ -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
48
  className: "text-xl md:text-2xl font-semibold tracking-tight text-text-primary mb-1",
48
- children: E("featureFlags.editFeatureFlag", "Edit Feature Flag")
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-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 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-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 {/* 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-bg-surface bg-accent-wash border border-border-seam rounded-card p-6 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,17 +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 { useCreateFeatureFlag as u, useDeleteFeatureFlag as d, useFeatureFlags as f, useUpdateFeatureFlag as p } from "../hooks/useFeatureFlags.js";
10
- import { FeatureFlagStatusBadge as m } from "../components/FeatureFlagStatusBadge.js";
11
- import { FeatureFlagTypeBadge as h } from "../components/FeatureFlagTypeBadge.js";
12
- import { useState as g } from "react";
13
- import { Download as _, Eye as v, Plus as y, RefreshCw as b, Sparkles as x, SquarePen as ee, Trash2 as te } from "lucide-react";
14
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
15
- import { useFeatureFlags as ne } from "@burdenoff/fe-libs/shared/feature-flags";
16
- import { PermissionGate as T } from "@burdenoff/fe-libs/shared/components";
17
- import { Button as re, CTAOverflowMenu as ie, GlassCard as E, GradientText as D, IllustratedEmptyState as O, 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";
18
18
  //#region src/product-management/modules/feature-flags/pages/FeatureFlagsListPage.tsx
19
- var A = [
19
+ var k = [
20
20
  {
21
21
  key: "vibecontrols.overview",
22
22
  name: "Overview Dashboard",
@@ -185,10 +185,10 @@ var A = [
185
185
  previewable: !0,
186
186
  defaultValue: !0
187
187
  }
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 } = ne(), [X, Z] = g(!1), { confirm: Q, ConfirmDialog: ae } = l(), oe = 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 () => {
192
192
  s("light");
193
193
  let e = "This will create default VibeControls feature flags and reconcile defaultValue on any that already exist. Continue?", t = await o({
194
194
  title: "Seed defaults",
@@ -196,20 +196,20 @@ var A = [
196
196
  okButtonTitle: "Continue",
197
197
  cancelButtonTitle: "Cancel"
198
198
  });
199
- if (!(t === null ? await Q({
199
+ if (!(t === null ? await Z({
200
200
  title: "Seed defaults",
201
201
  message: e,
202
202
  okButtonTitle: "Continue",
203
203
  cancelButtonTitle: "Cancel"
204
204
  }) : t)) return;
205
- Z(!0);
206
- 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]));
207
207
  try {
208
- for (let e of A) {
208
+ for (let e of k) {
209
209
  let t = a.get(e.key);
210
210
  if (t) {
211
211
  if (t.defaultValue !== e.defaultValue) try {
212
- await J(t.id, { defaultValue: e.defaultValue }), r++;
212
+ await q(t.id, { defaultValue: e.defaultValue }), r++;
213
213
  } catch (t) {
214
214
  let n = t instanceof Error ? t.message : String(t);
215
215
  i.push(`${e.key} (update): ${n}`);
@@ -217,7 +217,7 @@ var A = [
217
217
  continue;
218
218
  }
219
219
  try {
220
- await q({
220
+ await K({
221
221
  ...e,
222
222
  flagType: "BOOLEAN"
223
223
  }), n++;
@@ -228,11 +228,11 @@ var A = [
228
228
  }
229
229
  }
230
230
  } finally {
231
- Z(!1);
231
+ X(!1);
232
232
  }
233
233
  let c = i.length > 0 ? `Created ${n}, updated ${r}. ${i.length} failed:\n${i.join("\n")}` : `Created ${n}, updated ${r}.`;
234
- window.alert(c), Y(), G();
235
- }, se = async (e, t) => {
234
+ window.alert(c), J(), W();
235
+ }, le = async (e, t) => {
236
236
  s("medium");
237
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({
238
238
  title: "Delete feature flag",
@@ -240,126 +240,130 @@ var A = [
240
240
  okButtonTitle: "Delete",
241
241
  cancelButtonTitle: "Cancel"
242
242
  });
243
- if (r === null ? await Q({
243
+ if (r === null ? await Z({
244
244
  title: "Delete feature flag",
245
245
  message: n,
246
246
  okButtonTitle: "Delete",
247
247
  cancelButtonTitle: "Cancel",
248
248
  destructive: !0
249
249
  }) : r) try {
250
- await K(e), Y(), c("success"), G();
250
+ await G(e), J(), c("success"), W();
251
251
  } catch (e) {
252
252
  throw c("error"), e;
253
253
  }
254
- }, $ = [...new Set(V.flatMap((e) => e.category ? [e.category] : []))];
255
- if (U && V.length === 0) return /* @__PURE__ */ C("div", {
254
+ }, Q = [...new Set(B.flatMap((e) => e.category ? [e.category] : []))];
255
+ if (H && B.length === 0) return /* @__PURE__ */ x("div", {
256
256
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
257
- children: /* @__PURE__ */ C(n, { message: F("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
257
+ children: /* @__PURE__ */ x(n, { message: P("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
258
258
  });
259
- if (W) return /* @__PURE__ */ C("div", {
259
+ if (U) return /* @__PURE__ */ x("div", {
260
260
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
261
- children: /* @__PURE__ */ C(r, {
262
- message: W.message,
261
+ children: /* @__PURE__ */ x(r, {
262
+ message: U.message,
263
263
  action: {
264
- label: F("productCommon.retry", "Retry"),
265
- onClick: () => G()
264
+ label: P("productCommon.retry", "Retry"),
265
+ onClick: () => W()
266
266
  }
267
267
  })
268
268
  });
269
- let ce = (e) => new Date(e).toLocaleDateString("en-US", {
269
+ let $ = (e) => new Date(e).toLocaleDateString("en-US", {
270
270
  year: "numeric",
271
271
  month: "short",
272
272
  day: "numeric"
273
273
  });
274
- return /* @__PURE__ */ w("div", {
274
+ return /* @__PURE__ */ S("div", {
275
275
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
276
276
  children: [
277
- /* @__PURE__ */ w("div", {
277
+ /* @__PURE__ */ S("div", {
278
278
  className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-6",
279
- children: [/* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("h1", {
279
+ children: [/* @__PURE__ */ S("div", { children: [/* @__PURE__ */ x("h1", {
280
280
  className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary",
281
- children: /* @__PURE__ */ C(D, { children: F("featureFlags.title", "Feature Flags") })
282
- }), /* @__PURE__ */ w("p", {
281
+ children: /* @__PURE__ */ x(T, { children: P("featureFlags.title", "Feature Flags") })
282
+ }), /* @__PURE__ */ S("p", {
283
283
  className: "text-sm text-text-secondary mt-1",
284
284
  children: [
285
- F("featureFlags.subtitle", "Manage platform-wide feature flags."),
285
+ P("featureFlags.subtitle", "Manage platform-wide feature flags."),
286
286
  " ",
287
- H,
287
+ V,
288
288
  " ",
289
- 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"),
290
290
  "."
291
291
  ]
292
- })] }), /* @__PURE__ */ C(T, {
292
+ })] }), /* @__PURE__ */ x(C, {
293
293
  role: "super_admin",
294
- children: /* @__PURE__ */ C(ie, {
294
+ children: /* @__PURE__ */ x(oe, {
295
295
  primary: {
296
- label: F("featureFlags.createFlag", "Create Flag"),
297
- onSelect: () => j(`${M}/feature-flags/new`),
298
- icon: /* @__PURE__ */ C(y, { className: "size-4" })
296
+ label: P("featureFlags.createFlag", "Create Flag"),
297
+ onSelect: () => A(`${j}/feature-flags/new`),
298
+ icon: /* @__PURE__ */ x(g, { className: "size-4" })
299
299
  },
300
300
  actions: [{
301
- label: X ? F("featureFlags.seeding", "Seeding...") : F("featureFlags.seedDefaults", "Seed Defaults"),
301
+ label: Y ? P("featureFlags.seeding", "Seeding...") : P("featureFlags.seedDefaults", "Seed Defaults"),
302
302
  onSelect: () => {
303
- oe();
303
+ ce();
304
304
  },
305
- disabled: X,
306
- icon: /* @__PURE__ */ C(x, { className: "size-4" })
305
+ disabled: Y,
306
+ icon: /* @__PURE__ */ x(re, { className: "size-4" })
307
307
  }]
308
308
  })
309
309
  })]
310
310
  }),
311
- /* @__PURE__ */ w("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", {
312
316
  className: "flex flex-wrap items-center gap-3 mb-6",
313
317
  children: [
314
- /* @__PURE__ */ C("div", {
318
+ /* @__PURE__ */ x("div", {
315
319
  className: "flex-1 min-w-[250px]",
316
- children: /* @__PURE__ */ C(i, {
317
- value: N,
318
- onChange: P,
319
- 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...")
320
324
  })
321
325
  }),
322
- /* @__PURE__ */ w("select", {
323
- value: I,
324
- onChange: (e) => L(e.target.value),
326
+ /* @__PURE__ */ S("select", {
327
+ value: F,
328
+ onChange: (e) => I(e.target.value),
325
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",
326
330
  children: [
327
- /* @__PURE__ */ C("option", {
331
+ /* @__PURE__ */ x("option", {
328
332
  value: "",
329
- children: F("featureFlags.allStatuses", "All Statuses")
333
+ children: P("featureFlags.allStatuses", "All Statuses")
330
334
  }),
331
- /* @__PURE__ */ C("option", {
335
+ /* @__PURE__ */ x("option", {
332
336
  value: "ACTIVE",
333
- children: F("featureFlags.statusActive", "Active")
337
+ children: P("featureFlags.statusActive", "Active")
334
338
  }),
335
- /* @__PURE__ */ C("option", {
339
+ /* @__PURE__ */ x("option", {
336
340
  value: "ARCHIVED",
337
- children: F("featureFlags.statusArchived", "Archived")
341
+ children: P("featureFlags.statusArchived", "Archived")
338
342
  })
339
343
  ]
340
344
  }),
341
- $.length > 0 && /* @__PURE__ */ w("select", {
342
- value: R,
343
- onChange: (e) => z(e.target.value),
345
+ Q.length > 0 && /* @__PURE__ */ S("select", {
346
+ value: L,
347
+ onChange: (e) => R(e.target.value),
344
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",
345
- children: [/* @__PURE__ */ C("option", {
349
+ children: [/* @__PURE__ */ x("option", {
346
350
  value: "",
347
- children: F("featureFlags.allCategories", "All Categories")
348
- }), $.map((e) => /* @__PURE__ */ C("option", {
351
+ children: P("featureFlags.allCategories", "All Categories")
352
+ }), Q.map((e) => /* @__PURE__ */ x("option", {
349
353
  value: e,
350
354
  children: e
351
355
  }, e))]
352
356
  }),
353
- /* @__PURE__ */ C("button", {
357
+ /* @__PURE__ */ x("button", {
354
358
  type: "button",
355
- onClick: () => G(),
359
+ onClick: () => W(),
356
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",
357
- title: F("productCommon.refresh", "Refresh"),
358
- children: /* @__PURE__ */ C(b, { size: 18 })
361
+ title: P("productCommon.refresh", "Refresh"),
362
+ children: /* @__PURE__ */ x(_, { size: 18 })
359
363
  }),
360
- V.length > 0 && /* @__PURE__ */ C("button", {
364
+ B.length > 0 && /* @__PURE__ */ x("button", {
361
365
  type: "button",
362
- onClick: () => a("feature-flags", V.map((e) => ({
366
+ onClick: () => a("feature-flags", B.map((e) => ({
363
367
  id: e.id,
364
368
  key: e.key,
365
369
  name: e.name,
@@ -373,122 +377,122 @@ var A = [
373
377
  updatedAt: e.updatedAt
374
378
  }))),
375
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",
376
- title: F("featureFlags.exportCsv", "Export as CSV"),
377
- children: /* @__PURE__ */ C(_, { size: 18 })
380
+ title: P("featureFlags.exportCsv", "Export as CSV"),
381
+ children: /* @__PURE__ */ x(m, { size: 18 })
378
382
  })
379
383
  ]
380
384
  }),
381
- V.length === 0 ? /* @__PURE__ */ C(E, {
385
+ B.length === 0 ? /* @__PURE__ */ x(w, {
382
386
  treatment: "insight",
383
387
  className: "animate-in fade-in duration-200",
384
- children: /* @__PURE__ */ C(O, {
385
- illustration: N || I || R ? "empty-search" : "empty-data",
386
- title: F("featureFlags.noFeatureFlagsFound", "No feature flags found"),
387
- 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."),
388
- action: /* @__PURE__ */ w(re, {
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, {
389
393
  type: "button",
390
- onClick: () => j(`${M}/feature-flags/new`),
391
- children: [/* @__PURE__ */ C(y, { className: "size-4" }), F("featureFlags.createFlag", "Create Flag")]
394
+ onClick: () => A(`${j}/feature-flags/new`),
395
+ children: [/* @__PURE__ */ x(g, { className: "size-4" }), P("featureFlags.createFlag", "Create Flag")]
392
396
  })
393
397
  })
394
- }) : /* @__PURE__ */ C(k, {
395
- className: "bg-bg-surface border border-border-seam rounded-card shadow-[var(--shadow-pop)]",
396
- data: V,
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,
397
401
  rowKey: (e) => e.id,
398
402
  columns: [
399
403
  {
400
404
  key: "key",
401
- header: F("featureFlags.columnKey", "Key"),
405
+ header: P("featureFlags.columnKey", "Key"),
402
406
  priority: "primary",
403
- cell: (e) => /* @__PURE__ */ C("code", {
407
+ cell: (e) => /* @__PURE__ */ x("code", {
404
408
  className: "text-sm font-mono text-text-primary bg-bg-sunken px-1.5 py-0.5 rounded",
405
409
  children: e.key
406
410
  })
407
411
  },
408
412
  {
409
413
  key: "name",
410
- header: F("featureFlags.columnName", "Name"),
411
- cell: (e) => /* @__PURE__ */ C("span", {
414
+ header: P("featureFlags.columnName", "Name"),
415
+ cell: (e) => /* @__PURE__ */ x("span", {
412
416
  className: "text-sm text-text-primary",
413
417
  children: e.name
414
418
  })
415
419
  },
416
420
  {
417
421
  key: "type",
418
- header: F("featureFlags.columnType", "Type"),
419
- cell: (e) => /* @__PURE__ */ C(h, { flagType: e.flagType })
422
+ header: P("featureFlags.columnType", "Type"),
423
+ cell: (e) => /* @__PURE__ */ x(f, { flagType: e.flagType })
420
424
  },
421
425
  {
422
426
  key: "status",
423
- header: F("featureFlags.columnStatus", "Status"),
424
- cell: (e) => /* @__PURE__ */ C(m, { status: e.status })
427
+ header: P("featureFlags.columnStatus", "Status"),
428
+ cell: (e) => /* @__PURE__ */ x(d, { status: e.status })
425
429
  },
426
430
  {
427
431
  key: "category",
428
- header: F("featureFlags.columnCategory", "Category"),
429
- cell: (e) => /* @__PURE__ */ C("span", {
432
+ header: P("featureFlags.columnCategory", "Category"),
433
+ cell: (e) => /* @__PURE__ */ x("span", {
430
434
  className: "text-sm text-text-secondary",
431
435
  children: e.category || "—"
432
436
  })
433
437
  },
434
438
  {
435
439
  key: "preview",
436
- header: F("featureFlags.columnPreview", "Preview"),
437
- cell: (e) => e.previewable ? /* @__PURE__ */ w("span", {
440
+ header: P("featureFlags.columnPreview", "Preview"),
441
+ cell: (e) => e.previewable ? /* @__PURE__ */ S("span", {
438
442
  className: "inline-flex items-center gap-1.5 text-sm text-[var(--color-status-success)]",
439
- children: [/* @__PURE__ */ C("span", { className: "size-1.5 rounded-full bg-[var(--color-status-success)] motion-safe:animate-vc-glow-pulse" }), F("featureFlags.yes", "Yes")]
440
- }) : /* @__PURE__ */ C("span", {
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", {
441
445
  className: "text-sm text-text-tertiary",
442
- children: F("featureFlags.no", "No")
446
+ children: P("featureFlags.no", "No")
443
447
  })
444
448
  },
445
449
  {
446
450
  key: "product",
447
- header: F("featureFlags.columnProduct", "Product"),
451
+ header: P("featureFlags.columnProduct", "Product"),
448
452
  priority: "hidden-on-mobile",
449
- cell: (e) => /* @__PURE__ */ C("span", {
453
+ cell: (e) => /* @__PURE__ */ x("span", {
450
454
  className: "text-sm text-text-secondary",
451
455
  children: e.product?.name || "—"
452
456
  })
453
457
  },
454
458
  {
455
459
  key: "updated",
456
- header: F("featureFlags.columnUpdated", "Updated"),
460
+ header: P("featureFlags.columnUpdated", "Updated"),
457
461
  priority: "hidden-on-mobile",
458
- cell: (e) => /* @__PURE__ */ C("span", {
462
+ cell: (e) => /* @__PURE__ */ x("span", {
459
463
  className: "text-sm text-text-tertiary",
460
- children: ce(e.updatedAt)
464
+ children: $(e.updatedAt)
461
465
  })
462
466
  }
463
467
  ],
464
- rowActions: (e) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("button", {
468
+ rowActions: (e) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
465
469
  type: "button",
466
- onClick: () => j(`${M}/feature-flags/${e.id}`),
470
+ onClick: () => A(`${j}/feature-flags/${e.id}`),
467
471
  className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-all duration-200",
468
- title: F("featureFlags.viewDetails", "View details"),
469
- children: /* @__PURE__ */ C(v, { size: 16 })
470
- }), /* @__PURE__ */ w(T, {
472
+ title: P("featureFlags.viewDetails", "View details"),
473
+ children: /* @__PURE__ */ x(h, { size: 16 })
474
+ }), /* @__PURE__ */ S(C, {
471
475
  role: "super_admin",
472
- children: [/* @__PURE__ */ C("button", {
476
+ children: [/* @__PURE__ */ x("button", {
473
477
  type: "button",
474
- onClick: () => j(`${M}/feature-flags/${e.id}/edit`),
478
+ onClick: () => A(`${j}/feature-flags/${e.id}/edit`),
475
479
  className: "p-1.5 text-text-secondary hover:text-text-primary hover:bg-bg-sunken rounded-md transition-all duration-200",
476
- title: F("featureFlags.edit", "Edit"),
477
- children: /* @__PURE__ */ C(ee, { size: 16 })
478
- }), /* @__PURE__ */ C("button", {
480
+ title: P("featureFlags.edit", "Edit"),
481
+ children: /* @__PURE__ */ x(v, { size: 16 })
482
+ }), /* @__PURE__ */ x("button", {
479
483
  type: "button",
480
- onClick: () => se(e.id, e.name),
484
+ onClick: () => le(e.id, e.name),
481
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",
482
- title: F("featureFlags.delete", "Delete"),
483
- children: /* @__PURE__ */ C(te, { size: 16 })
486
+ title: P("featureFlags.delete", "Delete"),
487
+ children: /* @__PURE__ */ x(y, { size: 16 })
484
488
  })]
485
489
  })] })
486
490
  }),
487
- ae
491
+ se
488
492
  ]
489
493
  });
490
494
  };
491
495
  //#endregion
492
- export { j as FeatureFlagsListPage };
496
+ export { A as FeatureFlagsListPage };
493
497
 
494
498
  //# sourceMappingURL=FeatureFlagsListPage.js.map