@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.
- package/dist/product/pages/ContentPageViewPage.js +40 -36
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- package/dist/product/pages/ProductCatalogPage.js +71 -63
- package/dist/product/pages/ProductCatalogPage.js.map +1 -1
- package/dist/product/pages/ProductViewPage.js +218 -181
- package/dist/product/pages/ProductViewPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +27 -25
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +99 -72
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +32 -30
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +96 -91
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +25 -23
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +136 -111
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +35 -33
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +130 -126
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +27 -25
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +95 -70
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +32 -30
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +63 -58
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductPlans.js +132 -143
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.js +27 -25
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +142 -114
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductEditPage.js +31 -29
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.js +218 -210
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +27 -22
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +156 -129
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +30 -25
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +140 -132
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
- package/dist/product-management/shared/components/AuditHistoryTab.js +18 -16
- package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
- 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
|
|
14
|
-
let { id:
|
|
15
|
-
|
|
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
|
|
18
|
-
t.data?.updateFeatureFlag?.id ? (
|
|
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
|
-
|
|
21
|
+
D(e instanceof Error ? e.message : "An unexpected error occurred");
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
-
|
|
23
|
+
}, A = () => {
|
|
24
|
+
_(`${v}/feature-flags/${g}`);
|
|
24
25
|
};
|
|
25
|
-
return
|
|
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:
|
|
28
|
-
}) :
|
|
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:
|
|
32
|
+
message: x.message,
|
|
32
33
|
action: {
|
|
33
|
-
label:
|
|
34
|
-
onClick: () =>
|
|
34
|
+
label: O("productCommon.retry", "Retry"),
|
|
35
|
+
onClick: () => S()
|
|
35
36
|
}
|
|
36
37
|
})
|
|
37
|
-
}) :
|
|
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:
|
|
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 }),
|
|
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:
|
|
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
|
-
|
|
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:
|
|
58
|
+
children: y.key
|
|
58
59
|
})
|
|
59
60
|
]
|
|
60
61
|
}),
|
|
61
|
-
|
|
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
|
-
}),
|
|
71
|
+
}), E]
|
|
67
72
|
}),
|
|
68
73
|
/* @__PURE__ */ u("div", {
|
|
69
74
|
className: "max-w-2xl",
|
|
70
|
-
children: /* @__PURE__ */ u(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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:
|
|
85
|
+
children: /* @__PURE__ */ u(r, { message: O("featureFlags.featureFlagNotFound", "Feature flag not found") })
|
|
84
86
|
});
|
|
85
87
|
};
|
|
86
88
|
//#endregion
|
|
87
|
-
export {
|
|
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 <
|
|
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
|
|
10
|
-
import { FeatureFlagStatusBadge as
|
|
11
|
-
import { FeatureFlagTypeBadge as
|
|
12
|
-
import { useState as
|
|
13
|
-
import { Download as
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import { useFeatureFlags as
|
|
16
|
-
import { PermissionGate as
|
|
17
|
-
import { Button as
|
|
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
|
|
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
|
-
],
|
|
189
|
-
let { navigate:
|
|
190
|
-
|
|
191
|
-
let { featureFlags:
|
|
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
|
|
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
|
-
|
|
206
|
-
let n = 0, r = 0, i = [], a = new Map(
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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),
|
|
235
|
-
},
|
|
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
|
|
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
|
|
250
|
+
await G(e), J(), c("success"), W();
|
|
251
251
|
} catch (e) {
|
|
252
252
|
throw c("error"), e;
|
|
253
253
|
}
|
|
254
|
-
},
|
|
255
|
-
if (
|
|
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__ */
|
|
257
|
+
children: /* @__PURE__ */ x(n, { message: P("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
|
|
258
258
|
});
|
|
259
|
-
if (
|
|
259
|
+
if (U) return /* @__PURE__ */ x("div", {
|
|
260
260
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
261
|
-
children: /* @__PURE__ */
|
|
262
|
-
message:
|
|
261
|
+
children: /* @__PURE__ */ x(r, {
|
|
262
|
+
message: U.message,
|
|
263
263
|
action: {
|
|
264
|
-
label:
|
|
265
|
-
onClick: () =>
|
|
264
|
+
label: P("productCommon.retry", "Retry"),
|
|
265
|
+
onClick: () => W()
|
|
266
266
|
}
|
|
267
267
|
})
|
|
268
268
|
});
|
|
269
|
-
let
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
282
|
-
}), /* @__PURE__ */
|
|
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
|
-
|
|
285
|
+
P("featureFlags.subtitle", "Manage platform-wide feature flags."),
|
|
286
286
|
" ",
|
|
287
|
-
|
|
287
|
+
V,
|
|
288
288
|
" ",
|
|
289
|
-
|
|
289
|
+
V === 1 ? P("featureFlags.flagTotal", "flag total") : P("featureFlags.flagsTotal", "flags total"),
|
|
290
290
|
"."
|
|
291
291
|
]
|
|
292
|
-
})] }), /* @__PURE__ */ C
|
|
292
|
+
})] }), /* @__PURE__ */ x(C, {
|
|
293
293
|
role: "super_admin",
|
|
294
|
-
children: /* @__PURE__ */
|
|
294
|
+
children: /* @__PURE__ */ x(oe, {
|
|
295
295
|
primary: {
|
|
296
|
-
label:
|
|
297
|
-
onSelect: () =>
|
|
298
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
301
|
+
label: Y ? P("featureFlags.seeding", "Seeding...") : P("featureFlags.seedDefaults", "Seed Defaults"),
|
|
302
302
|
onSelect: () => {
|
|
303
|
-
|
|
303
|
+
ce();
|
|
304
304
|
},
|
|
305
|
-
disabled:
|
|
306
|
-
icon: /* @__PURE__ */
|
|
305
|
+
disabled: Y,
|
|
306
|
+
icon: /* @__PURE__ */ x(re, { className: "size-4" })
|
|
307
307
|
}]
|
|
308
308
|
})
|
|
309
309
|
})]
|
|
310
310
|
}),
|
|
311
|
-
/* @__PURE__ */
|
|
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__ */
|
|
318
|
+
/* @__PURE__ */ x("div", {
|
|
315
319
|
className: "flex-1 min-w-[250px]",
|
|
316
|
-
children: /* @__PURE__ */
|
|
317
|
-
value:
|
|
318
|
-
onChange:
|
|
319
|
-
placeholder:
|
|
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__ */
|
|
323
|
-
value:
|
|
324
|
-
onChange: (e) =>
|
|
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__ */
|
|
331
|
+
/* @__PURE__ */ x("option", {
|
|
328
332
|
value: "",
|
|
329
|
-
children:
|
|
333
|
+
children: P("featureFlags.allStatuses", "All Statuses")
|
|
330
334
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ x("option", {
|
|
332
336
|
value: "ACTIVE",
|
|
333
|
-
children:
|
|
337
|
+
children: P("featureFlags.statusActive", "Active")
|
|
334
338
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ x("option", {
|
|
336
340
|
value: "ARCHIVED",
|
|
337
|
-
children:
|
|
341
|
+
children: P("featureFlags.statusArchived", "Archived")
|
|
338
342
|
})
|
|
339
343
|
]
|
|
340
344
|
}),
|
|
341
|
-
|
|
342
|
-
value:
|
|
343
|
-
onChange: (e) =>
|
|
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__ */
|
|
349
|
+
children: [/* @__PURE__ */ x("option", {
|
|
346
350
|
value: "",
|
|
347
|
-
children:
|
|
348
|
-
}),
|
|
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__ */
|
|
357
|
+
/* @__PURE__ */ x("button", {
|
|
354
358
|
type: "button",
|
|
355
|
-
onClick: () =>
|
|
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:
|
|
358
|
-
children: /* @__PURE__ */
|
|
361
|
+
title: P("productCommon.refresh", "Refresh"),
|
|
362
|
+
children: /* @__PURE__ */ x(_, { size: 18 })
|
|
359
363
|
}),
|
|
360
|
-
|
|
364
|
+
B.length > 0 && /* @__PURE__ */ x("button", {
|
|
361
365
|
type: "button",
|
|
362
|
-
onClick: () => a("feature-flags",
|
|
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:
|
|
377
|
-
children: /* @__PURE__ */
|
|
380
|
+
title: P("featureFlags.exportCsv", "Export as CSV"),
|
|
381
|
+
children: /* @__PURE__ */ x(m, { size: 18 })
|
|
378
382
|
})
|
|
379
383
|
]
|
|
380
384
|
}),
|
|
381
|
-
|
|
385
|
+
B.length === 0 ? /* @__PURE__ */ x(w, {
|
|
382
386
|
treatment: "insight",
|
|
383
387
|
className: "animate-in fade-in duration-200",
|
|
384
|
-
children: /* @__PURE__ */
|
|
385
|
-
illustration:
|
|
386
|
-
title:
|
|
387
|
-
description:
|
|
388
|
-
action: /* @__PURE__ */
|
|
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: () =>
|
|
391
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
395
|
-
className: "bg-bg-surface border border-
|
|
396
|
-
data:
|
|
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:
|
|
405
|
+
header: P("featureFlags.columnKey", "Key"),
|
|
402
406
|
priority: "primary",
|
|
403
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
411
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
419
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
424
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
429
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
437
|
-
cell: (e) => e.previewable ? /* @__PURE__ */
|
|
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__ */
|
|
440
|
-
}) : /* @__PURE__ */
|
|
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:
|
|
446
|
+
children: P("featureFlags.no", "No")
|
|
443
447
|
})
|
|
444
448
|
},
|
|
445
449
|
{
|
|
446
450
|
key: "product",
|
|
447
|
-
header:
|
|
451
|
+
header: P("featureFlags.columnProduct", "Product"),
|
|
448
452
|
priority: "hidden-on-mobile",
|
|
449
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
460
|
+
header: P("featureFlags.columnUpdated", "Updated"),
|
|
457
461
|
priority: "hidden-on-mobile",
|
|
458
|
-
cell: (e) => /* @__PURE__ */
|
|
462
|
+
cell: (e) => /* @__PURE__ */ x("span", {
|
|
459
463
|
className: "text-sm text-text-tertiary",
|
|
460
|
-
children:
|
|
464
|
+
children: $(e.updatedAt)
|
|
461
465
|
})
|
|
462
466
|
}
|
|
463
467
|
],
|
|
464
|
-
rowActions: (e) => /* @__PURE__ */
|
|
468
|
+
rowActions: (e) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
|
|
465
469
|
type: "button",
|
|
466
|
-
onClick: () =>
|
|
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:
|
|
469
|
-
children: /* @__PURE__ */
|
|
470
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
476
|
+
children: [/* @__PURE__ */ x("button", {
|
|
473
477
|
type: "button",
|
|
474
|
-
onClick: () =>
|
|
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:
|
|
477
|
-
children: /* @__PURE__ */
|
|
478
|
-
}), /* @__PURE__ */
|
|
480
|
+
title: P("featureFlags.edit", "Edit"),
|
|
481
|
+
children: /* @__PURE__ */ x(v, { size: 16 })
|
|
482
|
+
}), /* @__PURE__ */ x("button", {
|
|
479
483
|
type: "button",
|
|
480
|
-
onClick: () =>
|
|
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:
|
|
483
|
-
children: /* @__PURE__ */
|
|
486
|
+
title: P("featureFlags.delete", "Delete"),
|
|
487
|
+
children: /* @__PURE__ */ x(y, { size: 16 })
|
|
484
488
|
})]
|
|
485
489
|
})] })
|
|
486
490
|
}),
|
|
487
|
-
|
|
491
|
+
se
|
|
488
492
|
]
|
|
489
493
|
});
|
|
490
494
|
};
|
|
491
495
|
//#endregion
|
|
492
|
-
export {
|
|
496
|
+
export { A as FeatureFlagsListPage };
|
|
493
497
|
|
|
494
498
|
//# sourceMappingURL=FeatureFlagsListPage.js.map
|