@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.
- package/dist/product/pages/ContentPageViewPage.js +41 -36
- package/dist/product/pages/ContentPageViewPage.js.map +1 -1
- package/dist/product/pages/ProductCatalogPage.js +63 -50
- package/dist/product/pages/ProductCatalogPage.js.map +1 -1
- package/dist/product/pages/ProductViewPage.js +220 -178
- package/dist/product/pages/ProductViewPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +7 -7
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +28 -26
- package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +119 -90
- package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +33 -31
- package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +171 -161
- package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +26 -24
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +152 -125
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +36 -34
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +144 -136
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +4 -4
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +28 -26
- package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +111 -84
- package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +33 -31
- package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +85 -75
- package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductForm.js +8 -8
- package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
- package/dist/product-management/modules/products/components/ProductPlans.js +136 -147
- package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductCreatePage.js +28 -26
- package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductDetailPage.js +170 -140
- package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductEditPage.js +32 -30
- package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
- package/dist/product-management/modules/products/pages/ProductsListPage.js +219 -202
- package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +3 -3
- package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +28 -23
- package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +228 -209
- package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +31 -26
- package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +209 -198
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
- package/dist/product-management/shared/components/AuditHistoryTab.js +19 -17
- package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
- package/dist/product-management/shared/components/feedback/EmptyState.js +2 -20
- package/package.json +2 -2
- 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
|
|
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
|
-
className: "text-2xl font-
|
|
48
|
-
children:
|
|
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
|
-
|
|
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-2xl font-
|
|
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 {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
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
|
|
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
|
-
],
|
|
190
|
-
let { navigate:
|
|
191
|
-
|
|
192
|
-
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 () => {
|
|
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
|
|
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
|
-
|
|
207
|
-
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]));
|
|
208
207
|
try {
|
|
209
|
-
for (let e of
|
|
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
|
|
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
|
|
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
|
-
|
|
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),
|
|
236
|
-
},
|
|
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
|
|
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
|
|
250
|
+
await G(e), J(), c("success"), W();
|
|
252
251
|
} catch (e) {
|
|
253
252
|
throw c("error"), e;
|
|
254
253
|
}
|
|
255
|
-
},
|
|
256
|
-
if (
|
|
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__ */
|
|
257
|
+
children: /* @__PURE__ */ x(n, { message: P("featureFlags.loadingFeatureFlags", "Loading feature flags...") })
|
|
259
258
|
});
|
|
260
|
-
if (
|
|
259
|
+
if (U) return /* @__PURE__ */ x("div", {
|
|
261
260
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
262
|
-
children: /* @__PURE__ */
|
|
263
|
-
message:
|
|
261
|
+
children: /* @__PURE__ */ x(r, {
|
|
262
|
+
message: U.message,
|
|
264
263
|
action: {
|
|
265
|
-
label:
|
|
266
|
-
onClick: () =>
|
|
264
|
+
label: P("productCommon.retry", "Retry"),
|
|
265
|
+
onClick: () => W()
|
|
267
266
|
}
|
|
268
267
|
})
|
|
269
268
|
});
|
|
270
|
-
let
|
|
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__ */
|
|
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__ */
|
|
279
|
-
className: "flex items-center justify-between mb-6",
|
|
280
|
-
children: [/* @__PURE__ */
|
|
281
|
-
className: "text-2xl font-
|
|
282
|
-
children:
|
|
283
|
-
}), /* @__PURE__ */
|
|
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
|
-
|
|
285
|
+
P("featureFlags.subtitle", "Manage platform-wide feature flags."),
|
|
287
286
|
" ",
|
|
288
|
-
|
|
287
|
+
V,
|
|
289
288
|
" ",
|
|
290
|
-
|
|
289
|
+
V === 1 ? P("featureFlags.flagTotal", "flag total") : P("featureFlags.flagsTotal", "flags total"),
|
|
291
290
|
"."
|
|
292
291
|
]
|
|
293
|
-
})] }), /* @__PURE__ */
|
|
292
|
+
})] }), /* @__PURE__ */ x(C, {
|
|
294
293
|
role: "super_admin",
|
|
295
|
-
children: /* @__PURE__ */
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
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
|
|
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__ */
|
|
318
|
+
/* @__PURE__ */ x("div", {
|
|
316
319
|
className: "flex-1 min-w-[250px]",
|
|
317
|
-
children: /* @__PURE__ */
|
|
318
|
-
value:
|
|
319
|
-
onChange:
|
|
320
|
-
placeholder:
|
|
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__ */
|
|
324
|
-
value:
|
|
325
|
-
onChange: (e) =>
|
|
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__ */
|
|
331
|
+
/* @__PURE__ */ x("option", {
|
|
329
332
|
value: "",
|
|
330
|
-
children:
|
|
333
|
+
children: P("featureFlags.allStatuses", "All Statuses")
|
|
331
334
|
}),
|
|
332
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ x("option", {
|
|
333
336
|
value: "ACTIVE",
|
|
334
|
-
children:
|
|
337
|
+
children: P("featureFlags.statusActive", "Active")
|
|
335
338
|
}),
|
|
336
|
-
/* @__PURE__ */
|
|
339
|
+
/* @__PURE__ */ x("option", {
|
|
337
340
|
value: "ARCHIVED",
|
|
338
|
-
children:
|
|
341
|
+
children: P("featureFlags.statusArchived", "Archived")
|
|
339
342
|
})
|
|
340
343
|
]
|
|
341
344
|
}),
|
|
342
|
-
|
|
343
|
-
value:
|
|
344
|
-
onChange: (e) =>
|
|
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__ */
|
|
349
|
+
children: [/* @__PURE__ */ x("option", {
|
|
347
350
|
value: "",
|
|
348
|
-
children:
|
|
349
|
-
}),
|
|
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__ */
|
|
357
|
+
/* @__PURE__ */ x("button", {
|
|
355
358
|
type: "button",
|
|
356
|
-
onClick: () =>
|
|
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:
|
|
359
|
-
children: /* @__PURE__ */
|
|
361
|
+
title: P("productCommon.refresh", "Refresh"),
|
|
362
|
+
children: /* @__PURE__ */ x(_, { size: 18 })
|
|
360
363
|
}),
|
|
361
|
-
|
|
364
|
+
B.length > 0 && /* @__PURE__ */ x("button", {
|
|
362
365
|
type: "button",
|
|
363
|
-
onClick: () => a("feature-flags",
|
|
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:
|
|
378
|
-
children: /* @__PURE__ */
|
|
380
|
+
title: P("featureFlags.exportCsv", "Export as CSV"),
|
|
381
|
+
children: /* @__PURE__ */ x(m, { size: 18 })
|
|
379
382
|
})
|
|
380
383
|
]
|
|
381
384
|
}),
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
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:
|
|
405
|
+
header: P("featureFlags.columnKey", "Key"),
|
|
398
406
|
priority: "primary",
|
|
399
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
407
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
415
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
420
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
425
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
433
|
-
cell: (e) => e.previewable ? /* @__PURE__ */
|
|
434
|
-
className: "text-sm text-[var(--color-status-success)]",
|
|
435
|
-
children:
|
|
436
|
-
}) : /* @__PURE__ */
|
|
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:
|
|
446
|
+
children: P("featureFlags.no", "No")
|
|
439
447
|
})
|
|
440
448
|
},
|
|
441
449
|
{
|
|
442
450
|
key: "product",
|
|
443
|
-
header:
|
|
451
|
+
header: P("featureFlags.columnProduct", "Product"),
|
|
444
452
|
priority: "hidden-on-mobile",
|
|
445
|
-
cell: (e) => /* @__PURE__ */
|
|
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:
|
|
460
|
+
header: P("featureFlags.columnUpdated", "Updated"),
|
|
453
461
|
priority: "hidden-on-mobile",
|
|
454
|
-
cell: (e) => /* @__PURE__ */
|
|
462
|
+
cell: (e) => /* @__PURE__ */ x("span", {
|
|
455
463
|
className: "text-sm text-text-tertiary",
|
|
456
|
-
children:
|
|
464
|
+
children: $(e.updatedAt)
|
|
457
465
|
})
|
|
458
466
|
}
|
|
459
467
|
],
|
|
460
|
-
rowActions: (e) => /* @__PURE__ */
|
|
468
|
+
rowActions: (e) => /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("button", {
|
|
461
469
|
type: "button",
|
|
462
|
-
onClick: () =>
|
|
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:
|
|
465
|
-
children: /* @__PURE__ */
|
|
466
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
476
|
+
children: [/* @__PURE__ */ x("button", {
|
|
469
477
|
type: "button",
|
|
470
|
-
onClick: () =>
|
|
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:
|
|
473
|
-
children: /* @__PURE__ */
|
|
474
|
-
}), /* @__PURE__ */
|
|
480
|
+
title: P("featureFlags.edit", "Edit"),
|
|
481
|
+
children: /* @__PURE__ */ x(v, { size: 16 })
|
|
482
|
+
}), /* @__PURE__ */ x("button", {
|
|
475
483
|
type: "button",
|
|
476
|
-
onClick: () =>
|
|
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:
|
|
479
|
-
children: /* @__PURE__ */
|
|
486
|
+
title: P("featureFlags.delete", "Delete"),
|
|
487
|
+
children: /* @__PURE__ */ x(y, { size: 16 })
|
|
480
488
|
})]
|
|
481
489
|
})] })
|
|
482
490
|
}),
|
|
483
|
-
|
|
491
|
+
se
|
|
484
492
|
]
|
|
485
493
|
});
|
|
486
494
|
};
|
|
487
495
|
//#endregion
|
|
488
|
-
export {
|
|
496
|
+
export { A as FeatureFlagsListPage };
|
|
489
497
|
|
|
490
498
|
//# sourceMappingURL=FeatureFlagsListPage.js.map
|