@burdenoff/microfe-product 2026.520.1 → 2026.520.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/product-management/ProductManagementRoutes.d.ts.map +1 -1
- package/dist/product-management/ProductManagementRoutes.js +72 -73
- package/dist/product-management/ProductManagementRoutes.js.map +1 -1
- package/dist/product-management/modules/content-pages/components/ContentPageForm.js +4 -4
- package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +4 -4
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.d.ts.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +22 -21
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +9 -9
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.d.ts.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +33 -32
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
- package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +6 -6
- package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +4 -4
- package/dist/product-management/modules/products/components/ProductForm.js +6 -6
- package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +6 -6
- package/package.json +1 -1
- package/dist/product/pages/ProductsLandingPage.d.ts +0 -10
- package/dist/product/pages/ProductsLandingPage.d.ts.map +0 -1
- package/dist/product/pages/ProductsLandingPage.js +0 -66
- package/dist/product/pages/ProductsLandingPage.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductManagementRoutes.d.ts","sourceRoot":"","sources":["../../src/product-management/ProductManagementRoutes.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductManagementRoutes.d.ts","sourceRoot":"","sources":["../../src/product-management/ProductManagementRoutes.tsx"],"names":[],"mappings":"AA0HA;;;GAGG;AACH,wBAAgB,uBAAuB,4CAyMtC"}
|
|
@@ -1,176 +1,175 @@
|
|
|
1
1
|
import { LoadingState as e } from "./shared/components/feedback/LoadingState.js";
|
|
2
2
|
import { ErrorState as t } from "./shared/components/feedback/ErrorState.js";
|
|
3
3
|
import { ProductsListPage as n } from "./modules/products/pages/ProductsListPage.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { ErrorBoundary as d } from "@burdenoff/fe-libs/shared/components";
|
|
4
|
+
import { Suspense as r, lazy as i } from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { FeatureGate as s } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
7
|
+
import { Route as c, Routes as l } from "react-router-dom";
|
|
8
|
+
import { ErrorBoundary as u } from "@burdenoff/fe-libs/shared/components";
|
|
10
9
|
//#region src/product-management/ProductManagementRoutes.tsx
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
fallback:
|
|
15
|
-
children: /* @__PURE__ */
|
|
16
|
-
fallback: /* @__PURE__ */
|
|
10
|
+
var d = i(() => import("./modules/products/pages/ProductCreatePage.js").then((e) => ({ default: e.ProductCreatePage }))), f = i(() => import("./modules/products/pages/ProductDetailPage.js").then((e) => ({ default: e.ProductDetailPage }))), p = i(() => import("./modules/products/pages/ProductEditPage.js").then((e) => ({ default: e.ProductEditPage }))), m = i(() => import("./modules/shortcuts/pages/ShortcutsListPage.js").then((e) => ({ default: e.ShortcutsListPage }))), h = i(() => import("./modules/shortcuts/pages/ShortcutCreatePage.js").then((e) => ({ default: e.ShortcutCreatePage }))), g = i(() => import("./modules/shortcuts/pages/ShortcutDetailPage.js").then((e) => ({ default: e.ShortcutDetailPage }))), _ = i(() => import("./modules/shortcuts/pages/ShortcutEditPage.js").then((e) => ({ default: e.ShortcutEditPage }))), v = i(() => import("./modules/content-pages/pages/ContentPagesListPage.js").then((e) => ({ default: e.ContentPagesListPage }))), y = i(() => import("./modules/content-pages/pages/ContentPageCreatePage.js").then((e) => ({ default: e.ContentPageCreatePage }))), b = i(() => import("./modules/content-pages/pages/ContentPageDetailPage.js").then((e) => ({ default: e.ContentPageDetailPage }))), x = i(() => import("./modules/content-pages/pages/ContentPageEditPage.js").then((e) => ({ default: e.ContentPageEditPage }))), S = i(() => import("./modules/press-kit/pages/PressKitListPage.js").then((e) => ({ default: e.PressKitListPage }))), C = i(() => import("./modules/press-kit/pages/PressKitCreatePage.js").then((e) => ({ default: e.PressKitCreatePage }))), w = i(() => import("./modules/press-kit/pages/PressKitDetailPage.js").then((e) => ({ default: e.PressKitDetailPage }))), T = i(() => import("./modules/press-kit/pages/PressKitEditPage.js").then((e) => ({ default: e.PressKitEditPage }))), E = i(() => import("./modules/feature-flags/pages/FeatureFlagsListPage.js").then((e) => ({ default: e.FeatureFlagsListPage }))), D = i(() => import("./modules/feature-flags/pages/FeatureFlagCreatePage.js").then((e) => ({ default: e.FeatureFlagCreatePage }))), O = i(() => import("./modules/feature-flags/pages/FeatureFlagDetailPage.js").then((e) => ({ default: e.FeatureFlagDetailPage }))), k = i(() => import("./modules/feature-flags/pages/FeatureFlagEditPage.js").then((e) => ({ default: e.FeatureFlagEditPage }))), A = /* @__PURE__ */ a(t, { message: "Something went wrong loading this page." });
|
|
11
|
+
function j({ children: t }) {
|
|
12
|
+
return /* @__PURE__ */ a(u, {
|
|
13
|
+
fallback: A,
|
|
14
|
+
children: /* @__PURE__ */ a(r, {
|
|
15
|
+
fallback: /* @__PURE__ */ a(e, {}),
|
|
17
16
|
children: t
|
|
18
17
|
})
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
|
-
function
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
20
|
+
function M() {
|
|
21
|
+
return /* @__PURE__ */ o(l, { children: [
|
|
22
|
+
/* @__PURE__ */ a(c, {
|
|
24
23
|
index: !0,
|
|
25
|
-
element: /* @__PURE__ */
|
|
24
|
+
element: /* @__PURE__ */ a(n, {})
|
|
26
25
|
}),
|
|
27
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ a(c, {
|
|
28
27
|
path: "all",
|
|
29
|
-
element: /* @__PURE__ */
|
|
28
|
+
element: /* @__PURE__ */ a(n, {})
|
|
30
29
|
}),
|
|
31
|
-
/* @__PURE__ */
|
|
30
|
+
/* @__PURE__ */ a(c, {
|
|
32
31
|
path: "new",
|
|
33
|
-
element: /* @__PURE__ */
|
|
32
|
+
element: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(d, {}) })
|
|
34
33
|
}),
|
|
35
|
-
/* @__PURE__ */
|
|
34
|
+
/* @__PURE__ */ a(c, {
|
|
36
35
|
path: ":id",
|
|
37
|
-
element: /* @__PURE__ */
|
|
36
|
+
element: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(f, {}) })
|
|
38
37
|
}),
|
|
39
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ a(c, {
|
|
40
39
|
path: ":id/edit",
|
|
41
|
-
element: /* @__PURE__ */
|
|
40
|
+
element: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(p, {}) })
|
|
42
41
|
}),
|
|
43
|
-
/* @__PURE__ */
|
|
42
|
+
/* @__PURE__ */ a(c, {
|
|
44
43
|
path: "shortcuts",
|
|
45
|
-
element: /* @__PURE__ */
|
|
44
|
+
element: /* @__PURE__ */ a(s, {
|
|
46
45
|
flag: "vibecontrols.shortcuts",
|
|
47
46
|
defaultValue: !0,
|
|
48
|
-
children: /* @__PURE__ */
|
|
47
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(m, {}) })
|
|
49
48
|
})
|
|
50
49
|
}),
|
|
51
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ a(c, {
|
|
52
51
|
path: "shortcuts/new",
|
|
53
|
-
element: /* @__PURE__ */
|
|
52
|
+
element: /* @__PURE__ */ a(s, {
|
|
54
53
|
flag: "vibecontrols.shortcuts",
|
|
55
54
|
defaultValue: !0,
|
|
56
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(h, {}) })
|
|
57
56
|
})
|
|
58
57
|
}),
|
|
59
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ a(c, {
|
|
60
59
|
path: "shortcuts/:id",
|
|
61
|
-
element: /* @__PURE__ */
|
|
60
|
+
element: /* @__PURE__ */ a(s, {
|
|
62
61
|
flag: "vibecontrols.shortcuts",
|
|
63
62
|
defaultValue: !0,
|
|
64
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(g, {}) })
|
|
65
64
|
})
|
|
66
65
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ a(c, {
|
|
68
67
|
path: "shortcuts/:id/edit",
|
|
69
|
-
element: /* @__PURE__ */
|
|
68
|
+
element: /* @__PURE__ */ a(s, {
|
|
70
69
|
flag: "vibecontrols.shortcuts",
|
|
71
70
|
defaultValue: !0,
|
|
72
|
-
children: /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(_, {}) })
|
|
73
72
|
})
|
|
74
73
|
}),
|
|
75
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ a(c, {
|
|
76
75
|
path: "content-pages",
|
|
77
|
-
element: /* @__PURE__ */
|
|
76
|
+
element: /* @__PURE__ */ a(s, {
|
|
78
77
|
flag: "vibecontrols.content-pages",
|
|
79
78
|
defaultValue: !0,
|
|
80
|
-
children: /* @__PURE__ */
|
|
79
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(v, {}) })
|
|
81
80
|
})
|
|
82
81
|
}),
|
|
83
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ a(c, {
|
|
84
83
|
path: "content-pages/new",
|
|
85
|
-
element: /* @__PURE__ */
|
|
84
|
+
element: /* @__PURE__ */ a(s, {
|
|
86
85
|
flag: "vibecontrols.content-pages",
|
|
87
86
|
defaultValue: !0,
|
|
88
|
-
children: /* @__PURE__ */
|
|
87
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(y, {}) })
|
|
89
88
|
})
|
|
90
89
|
}),
|
|
91
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ a(c, {
|
|
92
91
|
path: "content-pages/:id",
|
|
93
|
-
element: /* @__PURE__ */
|
|
92
|
+
element: /* @__PURE__ */ a(s, {
|
|
94
93
|
flag: "vibecontrols.content-pages",
|
|
95
94
|
defaultValue: !0,
|
|
96
|
-
children: /* @__PURE__ */
|
|
95
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(b, {}) })
|
|
97
96
|
})
|
|
98
97
|
}),
|
|
99
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ a(c, {
|
|
100
99
|
path: "content-pages/:id/edit",
|
|
101
|
-
element: /* @__PURE__ */
|
|
100
|
+
element: /* @__PURE__ */ a(s, {
|
|
102
101
|
flag: "vibecontrols.content-pages",
|
|
103
102
|
defaultValue: !0,
|
|
104
|
-
children: /* @__PURE__ */
|
|
103
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(x, {}) })
|
|
105
104
|
})
|
|
106
105
|
}),
|
|
107
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ a(c, {
|
|
108
107
|
path: "press-kit",
|
|
109
|
-
element: /* @__PURE__ */
|
|
108
|
+
element: /* @__PURE__ */ a(s, {
|
|
110
109
|
flag: "vibecontrols.press-kit",
|
|
111
110
|
defaultValue: !0,
|
|
112
|
-
children: /* @__PURE__ */
|
|
111
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(S, {}) })
|
|
113
112
|
})
|
|
114
113
|
}),
|
|
115
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ a(c, {
|
|
116
115
|
path: "press-kit/new",
|
|
117
|
-
element: /* @__PURE__ */
|
|
116
|
+
element: /* @__PURE__ */ a(s, {
|
|
118
117
|
flag: "vibecontrols.press-kit",
|
|
119
118
|
defaultValue: !0,
|
|
120
|
-
children: /* @__PURE__ */
|
|
119
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(C, {}) })
|
|
121
120
|
})
|
|
122
121
|
}),
|
|
123
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ a(c, {
|
|
124
123
|
path: "press-kit/:id",
|
|
125
|
-
element: /* @__PURE__ */
|
|
124
|
+
element: /* @__PURE__ */ a(s, {
|
|
126
125
|
flag: "vibecontrols.press-kit",
|
|
127
126
|
defaultValue: !0,
|
|
128
|
-
children: /* @__PURE__ */
|
|
127
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(w, {}) })
|
|
129
128
|
})
|
|
130
129
|
}),
|
|
131
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ a(c, {
|
|
132
131
|
path: "press-kit/:id/edit",
|
|
133
|
-
element: /* @__PURE__ */
|
|
132
|
+
element: /* @__PURE__ */ a(s, {
|
|
134
133
|
flag: "vibecontrols.press-kit",
|
|
135
134
|
defaultValue: !0,
|
|
136
|
-
children: /* @__PURE__ */
|
|
135
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(T, {}) })
|
|
137
136
|
})
|
|
138
137
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ a(c, {
|
|
140
139
|
path: "feature-flags",
|
|
141
|
-
element: /* @__PURE__ */
|
|
140
|
+
element: /* @__PURE__ */ a(s, {
|
|
142
141
|
flag: "vibecontrols.feature-flags",
|
|
143
142
|
defaultValue: !0,
|
|
144
|
-
children: /* @__PURE__ */
|
|
143
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(E, {}) })
|
|
145
144
|
})
|
|
146
145
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ a(c, {
|
|
148
147
|
path: "feature-flags/new",
|
|
149
|
-
element: /* @__PURE__ */
|
|
148
|
+
element: /* @__PURE__ */ a(s, {
|
|
150
149
|
flag: "vibecontrols.feature-flags",
|
|
151
150
|
defaultValue: !0,
|
|
152
|
-
children: /* @__PURE__ */
|
|
151
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(D, {}) })
|
|
153
152
|
})
|
|
154
153
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ a(c, {
|
|
156
155
|
path: "feature-flags/:id",
|
|
157
|
-
element: /* @__PURE__ */
|
|
156
|
+
element: /* @__PURE__ */ a(s, {
|
|
158
157
|
flag: "vibecontrols.feature-flags",
|
|
159
158
|
defaultValue: !0,
|
|
160
|
-
children: /* @__PURE__ */
|
|
159
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(O, {}) })
|
|
161
160
|
})
|
|
162
161
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ a(c, {
|
|
164
163
|
path: "feature-flags/:id/edit",
|
|
165
|
-
element: /* @__PURE__ */
|
|
164
|
+
element: /* @__PURE__ */ a(s, {
|
|
166
165
|
flag: "vibecontrols.feature-flags",
|
|
167
166
|
defaultValue: !0,
|
|
168
|
-
children: /* @__PURE__ */
|
|
167
|
+
children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(k, {}) })
|
|
169
168
|
})
|
|
170
169
|
})
|
|
171
170
|
] });
|
|
172
171
|
}
|
|
173
172
|
//#endregion
|
|
174
|
-
export {
|
|
173
|
+
export { M as ProductManagementRoutes };
|
|
175
174
|
|
|
176
175
|
//# sourceMappingURL=ProductManagementRoutes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductManagementRoutes.js","names":[],"sources":["../../src/product-management/ProductManagementRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, type ReactNode } from 'react';\nimport { Route, Routes } from 'react-router-dom';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { FeatureGate } from '@burdenoff/fe-libs/shared/feature-flags';\n\nimport { LoadingState } from './shared/components/feedback/LoadingState';\nimport { ErrorState } from './shared/components/feedback/ErrorState';\n\n// Eager load - main entry point\nimport { ProductsListPage } from './modules/products/pages/ProductsListPage';\nimport { ProductsLandingPage } from '../product/pages/ProductsLandingPage';\n\n// Lazy load - secondary pages\nconst ProductCreatePage = lazy(() =>\n import('./modules/products/pages/ProductCreatePage').then((m) => ({\n default: m.ProductCreatePage,\n }))\n);\nconst ProductDetailPage = lazy(() =>\n import('./modules/products/pages/ProductDetailPage').then((m) => ({\n default: m.ProductDetailPage,\n }))\n);\nconst ProductEditPage = lazy(() =>\n import('./modules/products/pages/ProductEditPage').then((m) => ({ default: m.ProductEditPage }))\n);\n\n// Shortcuts pages - lazy loaded\nconst ShortcutsListPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutsListPage').then((m) => ({\n default: m.ShortcutsListPage,\n }))\n);\nconst ShortcutCreatePage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutCreatePage').then((m) => ({\n default: m.ShortcutCreatePage,\n }))\n);\nconst ShortcutDetailPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutDetailPage').then((m) => ({\n default: m.ShortcutDetailPage,\n }))\n);\nconst ShortcutEditPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutEditPage').then((m) => ({\n default: m.ShortcutEditPage,\n }))\n);\n\n// Content Pages - lazy loaded\nconst ContentPagesListPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPagesListPage').then((m) => ({\n default: m.ContentPagesListPage,\n }))\n);\nconst ContentPageCreatePage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageCreatePage').then((m) => ({\n default: m.ContentPageCreatePage,\n }))\n);\nconst ContentPageDetailPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageDetailPage').then((m) => ({\n default: m.ContentPageDetailPage,\n }))\n);\nconst ContentPageEditPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageEditPage').then((m) => ({\n default: m.ContentPageEditPage,\n }))\n);\nconst PressKitListPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitListPage').then((m) => ({\n default: m.PressKitListPage,\n }))\n);\nconst PressKitCreatePage = lazy(() =>\n import('./modules/press-kit/pages/PressKitCreatePage').then((m) => ({\n default: m.PressKitCreatePage,\n }))\n);\nconst PressKitDetailPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitDetailPage').then((m) => ({\n default: m.PressKitDetailPage,\n }))\n);\nconst PressKitEditPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitEditPage').then((m) => ({\n default: m.PressKitEditPage,\n }))\n);\n\n// Feature Flags - lazy loaded\nconst FeatureFlagsListPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagsListPage').then((m) => ({\n default: m.FeatureFlagsListPage,\n }))\n);\nconst FeatureFlagCreatePage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagCreatePage').then((m) => ({\n default: m.FeatureFlagCreatePage,\n }))\n);\nconst FeatureFlagDetailPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagDetailPage').then((m) => ({\n default: m.FeatureFlagDetailPage,\n }))\n);\nconst FeatureFlagEditPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagEditPage').then((m) => ({\n default: m.FeatureFlagEditPage,\n }))\n);\n\nconst pageFallback = <ErrorState message=\"Something went wrong loading this page.\" />;\n\nfunction SuspensePage({ children }: { children: ReactNode }) {\n return (\n <ErrorBoundary fallback={pageFallback}>\n <Suspense fallback={<LoadingState />}>{children}</Suspense>\n </ErrorBoundary>\n );\n}\n\n/**\n * ProductManagementRoutes\n * Routes start from root (/) since parent route is /products/*\n */\nexport function ProductManagementRoutes() {\n return (\n <Routes>\n <Route index element={<ProductsLandingPage />} />\n <Route path=\"all\" element={<ProductsListPage />} />\n <Route\n path=\"new\"\n element={\n <SuspensePage>\n <ProductCreatePage />\n </SuspensePage>\n }\n />\n <Route\n path=\":id\"\n element={\n <SuspensePage>\n <ProductDetailPage />\n </SuspensePage>\n }\n />\n <Route\n path=\":id/edit\"\n element={\n <SuspensePage>\n <ProductEditPage />\n </SuspensePage>\n }\n />\n\n {/* Keyboard Shortcuts Routes */}\n <Route\n path=\"shortcuts\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutsListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/new\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Content Pages Routes */}\n <Route\n path=\"content-pages\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPagesListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/new\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Press Kit Routes */}\n <Route\n path=\"press-kit\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/new\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Feature Flags Routes */}\n <Route\n path=\"feature-flags\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagsListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/new\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <Suspens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C,GAAD,EAAyB,CAAA,EACZ,CAAA;IACH,CAAA;GAEhB,CAAA;EACF,kBAAC,GAAD;GACE,MAAK;GACL,SACE,kBAAC,GAAD;IAAa,MAAK;IAA6B,cAAc;cAC3D,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAuB,CAAA,EACV,CAAA;IACH,CAAA;GAEhB,CAAA;EACK,EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"ProductManagementRoutes.js","names":[],"sources":["../../src/product-management/ProductManagementRoutes.tsx"],"sourcesContent":["import { lazy, Suspense, type ReactNode } from 'react';\nimport { Route, Routes } from 'react-router-dom';\nimport { ErrorBoundary } from '@burdenoff/fe-libs/shared/components';\nimport { FeatureGate } from '@burdenoff/fe-libs/shared/feature-flags';\n\nimport { LoadingState } from './shared/components/feedback/LoadingState';\nimport { ErrorState } from './shared/components/feedback/ErrorState';\n\n// Eager load - main entry point\nimport { ProductsListPage } from './modules/products/pages/ProductsListPage';\n\n// Lazy load - secondary pages\nconst ProductCreatePage = lazy(() =>\n import('./modules/products/pages/ProductCreatePage').then((m) => ({\n default: m.ProductCreatePage,\n }))\n);\nconst ProductDetailPage = lazy(() =>\n import('./modules/products/pages/ProductDetailPage').then((m) => ({\n default: m.ProductDetailPage,\n }))\n);\nconst ProductEditPage = lazy(() =>\n import('./modules/products/pages/ProductEditPage').then((m) => ({ default: m.ProductEditPage }))\n);\n\n// Shortcuts pages - lazy loaded\nconst ShortcutsListPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutsListPage').then((m) => ({\n default: m.ShortcutsListPage,\n }))\n);\nconst ShortcutCreatePage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutCreatePage').then((m) => ({\n default: m.ShortcutCreatePage,\n }))\n);\nconst ShortcutDetailPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutDetailPage').then((m) => ({\n default: m.ShortcutDetailPage,\n }))\n);\nconst ShortcutEditPage = lazy(() =>\n import('./modules/shortcuts/pages/ShortcutEditPage').then((m) => ({\n default: m.ShortcutEditPage,\n }))\n);\n\n// Content Pages - lazy loaded\nconst ContentPagesListPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPagesListPage').then((m) => ({\n default: m.ContentPagesListPage,\n }))\n);\nconst ContentPageCreatePage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageCreatePage').then((m) => ({\n default: m.ContentPageCreatePage,\n }))\n);\nconst ContentPageDetailPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageDetailPage').then((m) => ({\n default: m.ContentPageDetailPage,\n }))\n);\nconst ContentPageEditPage = lazy(() =>\n import('./modules/content-pages/pages/ContentPageEditPage').then((m) => ({\n default: m.ContentPageEditPage,\n }))\n);\nconst PressKitListPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitListPage').then((m) => ({\n default: m.PressKitListPage,\n }))\n);\nconst PressKitCreatePage = lazy(() =>\n import('./modules/press-kit/pages/PressKitCreatePage').then((m) => ({\n default: m.PressKitCreatePage,\n }))\n);\nconst PressKitDetailPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitDetailPage').then((m) => ({\n default: m.PressKitDetailPage,\n }))\n);\nconst PressKitEditPage = lazy(() =>\n import('./modules/press-kit/pages/PressKitEditPage').then((m) => ({\n default: m.PressKitEditPage,\n }))\n);\n\n// Feature Flags - lazy loaded\nconst FeatureFlagsListPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagsListPage').then((m) => ({\n default: m.FeatureFlagsListPage,\n }))\n);\nconst FeatureFlagCreatePage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagCreatePage').then((m) => ({\n default: m.FeatureFlagCreatePage,\n }))\n);\nconst FeatureFlagDetailPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagDetailPage').then((m) => ({\n default: m.FeatureFlagDetailPage,\n }))\n);\nconst FeatureFlagEditPage = lazy(() =>\n import('./modules/feature-flags/pages/FeatureFlagEditPage').then((m) => ({\n default: m.FeatureFlagEditPage,\n }))\n);\n\nconst pageFallback = <ErrorState message=\"Something went wrong loading this page.\" />;\n\nfunction SuspensePage({ children }: { children: ReactNode }) {\n return (\n <ErrorBoundary fallback={pageFallback}>\n <Suspense fallback={<LoadingState />}>{children}</Suspense>\n </ErrorBoundary>\n );\n}\n\n/**\n * ProductManagementRoutes\n * Routes start from root (/) since parent route is /products/*\n */\nexport function ProductManagementRoutes() {\n return (\n <Routes>\n {/* Host-shell sidebar is the canonical Products nav; no in-page tabs here. */}\n <Route index element={<ProductsListPage />} />\n {/* `/products/all` aliases the index for legacy bookmarks. */}\n <Route path=\"all\" element={<ProductsListPage />} />\n <Route\n path=\"new\"\n element={\n <SuspensePage>\n <ProductCreatePage />\n </SuspensePage>\n }\n />\n <Route\n path=\":id\"\n element={\n <SuspensePage>\n <ProductDetailPage />\n </SuspensePage>\n }\n />\n <Route\n path=\":id/edit\"\n element={\n <SuspensePage>\n <ProductEditPage />\n </SuspensePage>\n }\n />\n\n {/* Keyboard Shortcuts Routes */}\n <Route\n path=\"shortcuts\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutsListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/new\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"shortcuts/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.shortcuts\" defaultValue={true}>\n <SuspensePage>\n <ShortcutEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Content Pages Routes */}\n <Route\n path=\"content-pages\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPagesListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/new\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"content-pages/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.content-pages\" defaultValue={true}>\n <SuspensePage>\n <ContentPageEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Press Kit Routes */}\n <Route\n path=\"press-kit\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/new\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"press-kit/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.press-kit\" defaultValue={true}>\n <SuspensePage>\n <PressKitEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n\n {/* Feature Flags Routes */}\n <Route\n path=\"feature-flags\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagsListPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/new\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagCreatePage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/:id\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagDetailPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n <Route\n path=\"feature-flags/:id/edit\"\n element={\n <FeatureGate flag=\"vibecontrols.feature-flags\" defaultValue={true}>\n <SuspensePage>\n <FeatureFlagEditPage />\n </SuspensePage>\n </FeatureGate>\n }\n />\n </Routes>\n );\n}\n"],"mappings":";;;;;;;;;AAYA,IAAM,IAAoB,QACxB,OAAO,iDAA8C,MAAM,OAAO,EAChE,SAAS,EAAE,mBACZ,EAAE,CACJ,EACK,IAAoB,QACxB,OAAO,iDAA8C,MAAM,OAAO,EAChE,SAAS,EAAE,mBACZ,EAAE,CACJ,EACK,IAAkB,QACtB,OAAO,+CAA4C,MAAM,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,CACjG,EAGK,IAAoB,QACxB,OAAO,kDAA+C,MAAM,OAAO,EACjE,SAAS,EAAE,mBACZ,EAAE,CACJ,EACK,IAAqB,QACzB,OAAO,mDAAgD,MAAM,OAAO,EAClE,SAAS,EAAE,oBACZ,EAAE,CACJ,EACK,IAAqB,QACzB,OAAO,mDAAgD,MAAM,OAAO,EAClE,SAAS,EAAE,oBACZ,EAAE,CACJ,EACK,IAAmB,QACvB,OAAO,iDAA8C,MAAM,OAAO,EAChE,SAAS,EAAE,kBACZ,EAAE,CACJ,EAGK,IAAuB,QAC3B,OAAO,yDAAsD,MAAM,OAAO,EACxE,SAAS,EAAE,sBACZ,EAAE,CACJ,EACK,IAAwB,QAC5B,OAAO,0DAAuD,MAAM,OAAO,EACzE,SAAS,EAAE,uBACZ,EAAE,CACJ,EACK,IAAwB,QAC5B,OAAO,0DAAuD,MAAM,OAAO,EACzE,SAAS,EAAE,uBACZ,EAAE,CACJ,EACK,IAAsB,QAC1B,OAAO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A;EACF,kBAAC,GAAD;GACE,MAAK;GACL,SACE,kBAAC,GAAD;IAAa,MAAK;IAA6B,cAAc;cAC3D,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAyB,CAAA,EACZ,CAAA;IACH,CAAA;GAEhB,CAAA;EACF,kBAAC,GAAD;GACE,MAAK;GACL,SACE,kBAAC,GAAD;IAAa,MAAK;IAA6B,cAAc;cAC3D,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAyB,CAAA,EACZ,CAAA;IACH,CAAA;GAEhB,CAAA;EACF,kBAAC,GAAD;GACE,MAAK;GACL,SACE,kBAAC,GAAD;IAAa,MAAK;IAA6B,cAAc;cAC3D,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD,EAAuB,CAAA,EACV,CAAA;IACH,CAAA;GAEhB,CAAA;EACK,EAAA,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { TagInput as t } from "../../../shared/components/input/TagInput.js";
|
|
3
|
+
import { ZodError as n } from "../../../../node_modules/zod/v4/classic/errors.js";
|
|
4
4
|
import { createContentPageSchema as r, updateContentPageSchema as i } from "../schemas/index.js";
|
|
5
5
|
import { useCallback as a, useRef as o, useState as s } from "react";
|
|
6
6
|
import { Bold as c, Code as l, Eye as u, EyeOff as d, Heading as f, Italic as p, Link as m, List as h, ListOrdered as g, Loader2 as _, Quote as v } from "lucide-react";
|
|
@@ -109,7 +109,7 @@ function w({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
109
109
|
let e = c ? i : r, t = { ...h };
|
|
110
110
|
return t.sortOrder = typeof h.sortOrder == "string" ? parseInt(h.sortOrder, 10) || 0 : h.sortOrder, t.seoTitle || delete t.seoTitle, t.seoDescription || delete t.seoDescription, t.seoKeywords || delete t.seoKeywords, t.productId || delete t.productId, t.contentFormat ||= "markdown", t.excerpt || delete t.excerpt, t.thumbnail || delete t.thumbnail, t.author || delete t.author, t.publishedAt || delete t.publishedAt, t.readingTime || delete t.readingTime, t.category || delete t.category, e.parse(t), A({}), !0;
|
|
111
111
|
} catch (e) {
|
|
112
|
-
if (e instanceof
|
|
112
|
+
if (e instanceof n) {
|
|
113
113
|
let t = {};
|
|
114
114
|
e.issues.forEach((e) => {
|
|
115
115
|
let n = e.path.join(".");
|
|
@@ -767,7 +767,7 @@ function w({ contentPage: c, onSubmit: l, onCancel: f, loading: p }) {
|
|
|
767
767
|
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
768
768
|
children: "Tags"
|
|
769
769
|
}),
|
|
770
|
-
/* @__PURE__ */ y(
|
|
770
|
+
/* @__PURE__ */ y(t, {
|
|
771
771
|
value: v,
|
|
772
772
|
onChange: w,
|
|
773
773
|
disabled: p
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { TagInput as t } from "../../../shared/components/input/TagInput.js";
|
|
3
|
+
import { ZodError as n } from "../../../../node_modules/zod/v4/classic/errors.js";
|
|
4
4
|
import { createFeatureFlagSchema as r, updateFeatureFlagSchema as i } from "../schemas/index.js";
|
|
5
5
|
import { useState as a } from "react";
|
|
6
6
|
import { Save as o, X as s } from "lucide-react";
|
|
@@ -31,7 +31,7 @@ var u = ({ featureFlag: u, onSubmit: d, onCancel: f, loading: p = !1 }) => {
|
|
|
31
31
|
}
|
|
32
32
|
return Object.keys(e).length > 0 ? (x(e), !1) : (x({}), !0);
|
|
33
33
|
} catch (e) {
|
|
34
|
-
if (e instanceof
|
|
34
|
+
if (e instanceof n) {
|
|
35
35
|
let t = {};
|
|
36
36
|
e.issues.forEach((e) => {
|
|
37
37
|
t[e.path.join(".")] = e.message;
|
|
@@ -312,7 +312,7 @@ var u = ({ featureFlag: u, onSubmit: d, onCancel: f, loading: p = !1 }) => {
|
|
|
312
312
|
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
313
313
|
children: h("featureFlags.tags", "Tags")
|
|
314
314
|
}),
|
|
315
|
-
/* @__PURE__ */ c(
|
|
315
|
+
/* @__PURE__ */ c(t, {
|
|
316
316
|
value: v,
|
|
317
317
|
onChange: y,
|
|
318
318
|
disabled: p
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlagCreatePage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FeatureFlagCreatePage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAS1C,eAAO,MAAM,qBAAqB,EAAE,EAkEnC,CAAC"}
|
|
@@ -1,54 +1,55 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
2
|
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { FeatureFlagForm as n } from "../components/FeatureFlagForm.js";
|
|
4
|
+
import { useCreateFeatureFlag as r } from "../hooks/useFeatureFlags.js";
|
|
5
5
|
import { useState as i } from "react";
|
|
6
6
|
import { AlertTriangle as a, ArrowLeft as o } from "lucide-react";
|
|
7
7
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
import { useFeatureFlags as l } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
8
9
|
//#region src/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.tsx
|
|
9
|
-
var
|
|
10
|
-
let { navigate:
|
|
11
|
-
|
|
10
|
+
var u = () => {
|
|
11
|
+
let { navigate: u, basePath: d } = t(), { createFeatureFlag: f, loading: p } = r(), { refreshFlags: m } = l(), [h, g] = i(null), _ = e(), v = async (e) => {
|
|
12
|
+
g(null);
|
|
12
13
|
try {
|
|
13
|
-
let t = await
|
|
14
|
-
t.data?.createFeatureFlag?.id ?
|
|
14
|
+
let t = await f(e);
|
|
15
|
+
t.data?.createFeatureFlag?.id ? (m(), u(`${d}/feature-flags/${t.data.createFeatureFlag.id}`)) : t.errors?.length && g(t.errors[0].message || "Failed to create feature flag");
|
|
15
16
|
} catch (e) {
|
|
16
|
-
|
|
17
|
+
g(e instanceof Error ? e.message : "An unexpected error occurred");
|
|
17
18
|
}
|
|
18
|
-
},
|
|
19
|
-
|
|
19
|
+
}, y = () => {
|
|
20
|
+
u(`${d}/feature-flags`);
|
|
20
21
|
};
|
|
21
22
|
return /* @__PURE__ */ c("div", {
|
|
22
23
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
23
24
|
children: [
|
|
24
25
|
/* @__PURE__ */ c("button", {
|
|
25
|
-
onClick:
|
|
26
|
+
onClick: y,
|
|
26
27
|
className: "inline-flex items-center gap-2 text-text-secondary hover:text-text-primary mb-4 transition-all duration-200",
|
|
27
|
-
children: [/* @__PURE__ */ s(o, { size: 18 }),
|
|
28
|
+
children: [/* @__PURE__ */ s(o, { size: 18 }), _("featureFlags.backToFeatureFlags", "Back to Feature Flags")]
|
|
28
29
|
}),
|
|
29
30
|
/* @__PURE__ */ s("h1", {
|
|
30
31
|
className: "text-2xl font-bold text-text-primary mb-1",
|
|
31
|
-
children:
|
|
32
|
+
children: _("featureFlags.createFeatureFlag", "Create Feature Flag")
|
|
32
33
|
}),
|
|
33
34
|
/* @__PURE__ */ s("p", {
|
|
34
35
|
className: "text-sm text-text-secondary mb-6",
|
|
35
|
-
children:
|
|
36
|
+
children: _("featureFlags.createFlagSubtitle", "Define a new feature flag to control feature rollout across products and workspaces.")
|
|
36
37
|
}),
|
|
37
|
-
|
|
38
|
+
h && /* @__PURE__ */ c("div", {
|
|
38
39
|
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)]",
|
|
39
40
|
children: [/* @__PURE__ */ s(a, {
|
|
40
41
|
size: 16,
|
|
41
42
|
className: "shrink-0"
|
|
42
|
-
}),
|
|
43
|
+
}), h]
|
|
43
44
|
}),
|
|
44
45
|
/* @__PURE__ */ s("div", {
|
|
45
46
|
className: "max-w-2xl",
|
|
46
47
|
children: /* @__PURE__ */ s("div", {
|
|
47
48
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
48
|
-
children: /* @__PURE__ */ s(
|
|
49
|
-
onSubmit:
|
|
50
|
-
onCancel:
|
|
51
|
-
loading:
|
|
49
|
+
children: /* @__PURE__ */ s(n, {
|
|
50
|
+
onSubmit: v,
|
|
51
|
+
onCancel: y,
|
|
52
|
+
loading: p
|
|
52
53
|
})
|
|
53
54
|
})
|
|
54
55
|
})
|
|
@@ -56,6 +57,6 @@ var l = () => {
|
|
|
56
57
|
});
|
|
57
58
|
};
|
|
58
59
|
//#endregion
|
|
59
|
-
export {
|
|
60
|
+
export { u as FeatureFlagCreatePage };
|
|
60
61
|
|
|
61
62
|
//# sourceMappingURL=FeatureFlagCreatePage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlagCreatePage.js","names":[],"sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.tsx"],"sourcesContent":["/**\n * Feature Flag Create Page\n */\nimport { AlertTriangle, ArrowLeft } from 'lucide-react';\nimport { type FC, useState } from 'react';\nimport { useTr } from '../../../shared/hooks/useTr';\n\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { FeatureFlagForm } from '../components/FeatureFlagForm';\nimport { useCreateFeatureFlag } from '../hooks/useFeatureFlags';\nimport type { CreateFeatureFlagInput, UpdateFeatureFlagInput } from '../types';\n\nexport const FeatureFlagCreatePage: FC = () => {\n const { navigate, basePath } = useProductConsole();\n const { createFeatureFlag, loading } = useCreateFeatureFlag();\n const [submitError, setSubmitError] = useState<string | null>(null);\n const tr = useTr();\n\n const handleSubmit = async (data: CreateFeatureFlagInput | UpdateFeatureFlagInput) => {\n setSubmitError(null);\n try {\n const result = await createFeatureFlag(data as CreateFeatureFlagInput);\n if (result.data?.createFeatureFlag?.id) {\n navigate(`${basePath}/feature-flags/${result.data.createFeatureFlag.id}`);\n } else if (result.errors?.length) {\n setSubmitError(result.errors[0].message || 'Failed to create feature flag');\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`);\n };\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n {/* Back button */}\n <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.backToFeatureFlags', 'Back to Feature Flags')}\n </button>\n\n {/* Header */}\n <h1 className=\"text-2xl font-bold text-text-primary mb-1\">\n {tr('featureFlags.createFeatureFlag', 'Create Feature Flag')}\n </h1>\n <p className=\"text-sm text-text-secondary mb-6\">\n {tr(\n 'featureFlags.createFlagSubtitle',\n 'Define a new feature flag to control feature rollout across products and workspaces.'\n )}\n </p>\n\n {/* Error banner */}\n {submitError && (\n <div className=\"max-w-2xl mb-4 flex items-center gap-2 p-3 bg-[var(--color-status-error-bg)] border border-[var(--color-status-error)] rounded-lg text-sm text-[var(--color-status-error)]\">\n <AlertTriangle size={16} className=\"shrink-0\" />\n {submitError}\n </div>\n )}\n\n {/* Form */}\n <div className=\"max-w-2xl\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <FeatureFlagForm onSubmit={handleSubmit} onCancel={handleCancel} loading={loading} />\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"FeatureFlagCreatePage.js","names":[],"sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.tsx"],"sourcesContent":["/**\n * Feature Flag Create Page\n */\nimport { AlertTriangle, ArrowLeft } from 'lucide-react';\nimport { type FC, useState } from 'react';\nimport { useFeatureFlags } from '@burdenoff/fe-libs/shared/feature-flags';\nimport { useTr } from '../../../shared/hooks/useTr';\n\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { FeatureFlagForm } from '../components/FeatureFlagForm';\nimport { useCreateFeatureFlag } from '../hooks/useFeatureFlags';\nimport type { CreateFeatureFlagInput, UpdateFeatureFlagInput } from '../types';\n\nexport const FeatureFlagCreatePage: FC = () => {\n const { navigate, basePath } = useProductConsole();\n const { createFeatureFlag, loading } = useCreateFeatureFlag();\n const { refreshFlags } = useFeatureFlags();\n const [submitError, setSubmitError] = useState<string | null>(null);\n const tr = useTr();\n\n const handleSubmit = async (data: CreateFeatureFlagInput | UpdateFeatureFlagInput) => {\n setSubmitError(null);\n try {\n const result = await createFeatureFlag(data as CreateFeatureFlagInput);\n if (result.data?.createFeatureFlag?.id) {\n // Refresh the gate cache so FeatureGate components see the new flag immediately.\n void refreshFlags();\n navigate(`${basePath}/feature-flags/${result.data.createFeatureFlag.id}`);\n } else if (result.errors?.length) {\n setSubmitError(result.errors[0].message || 'Failed to create feature flag');\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`);\n };\n\n return (\n <div className=\"min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300\">\n {/* Back button */}\n <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.backToFeatureFlags', 'Back to Feature Flags')}\n </button>\n\n {/* Header */}\n <h1 className=\"text-2xl font-bold text-text-primary mb-1\">\n {tr('featureFlags.createFeatureFlag', 'Create Feature Flag')}\n </h1>\n <p className=\"text-sm text-text-secondary mb-6\">\n {tr(\n 'featureFlags.createFlagSubtitle',\n 'Define a new feature flag to control feature rollout across products and workspaces.'\n )}\n </p>\n\n {/* Error banner */}\n {submitError && (\n <div className=\"max-w-2xl mb-4 flex items-center gap-2 p-3 bg-[var(--color-status-error-bg)] border border-[var(--color-status-error)] rounded-lg text-sm text-[var(--color-status-error)]\">\n <AlertTriangle size={16} className=\"shrink-0\" />\n {submitError}\n </div>\n )}\n\n {/* Form */}\n <div className=\"max-w-2xl\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <FeatureFlagForm onSubmit={handleSubmit} onCancel={handleCancel} loading={loading} />\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;AAaA,IAAa,UAAkC;CAC7C,IAAM,EAAE,aAAU,gBAAa,GAAmB,EAC5C,EAAE,sBAAmB,eAAY,GAAsB,EACvD,EAAE,oBAAiB,GAAiB,EACpC,CAAC,GAAa,KAAkB,EAAwB,KAAK,EAC7D,IAAK,GAAO,EAEZ,IAAe,OAAO,MAA0D;AACpF,IAAe,KAAK;AACpB,MAAI;GACF,IAAM,IAAS,MAAM,EAAkB,EAA+B;AACtE,GAAI,EAAO,MAAM,mBAAmB,MAE7B,GAAc,EACnB,EAAS,GAAG,EAAS,iBAAiB,EAAO,KAAK,kBAAkB,KAAK,IAChE,EAAO,QAAQ,UACxB,EAAe,EAAO,OAAO,GAAG,WAAW,gCAAgC;WAEtE,GAAc;AAErB,KADgB,aAAe,QAAQ,EAAI,UAAU,+BAC9B;;IAIrB,UAAqB;AACzB,IAAS,GAAG,EAAS,gBAAgB;;AAGvC,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf;GAEE,kBAAC,UAAD;IACE,SAAS;IACT,WAAU;cAFZ,CAIE,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA,EACtB,EAAG,mCAAmC,wBAAwB,CACxD;;GAGT,kBAAC,MAAD;IAAI,WAAU;cACX,EAAG,kCAAkC,sBAAsB;IACzD,CAAA;GACL,kBAAC,KAAD;IAAG,WAAU;cACV,EACC,mCACA,uFACD;IACC,CAAA;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;MAAiB,UAAU;MAAc,UAAU;MAAuB;MAAW,CAAA;KACjF,CAAA;IACF,CAAA;GACF"}
|
|
@@ -3,12 +3,12 @@ import { useProductConsole as t } from "../../../providers/ProductConsoleProvide
|
|
|
3
3
|
import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
|
|
4
4
|
import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
|
|
5
5
|
import { nativeConfirm as i, nativeImpact as a, nativeNotify as o } from "../../../../utils/nativeBridge.js";
|
|
6
|
-
import "../../../shared/
|
|
7
|
-
import {
|
|
8
|
-
import { FeatureFlagTypeBadge as c } from "../components/FeatureFlagTypeBadge.js";
|
|
6
|
+
import { TagList as s } from "../../../shared/components/TagList.js";
|
|
7
|
+
import { AuditHistoryTab as c } from "../../../shared/components/AuditHistoryTab.js";
|
|
9
8
|
import { useDeleteFeatureFlag as l, useFeatureFlag as u } from "../hooks/useFeatureFlags.js";
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
9
|
+
import "../../../shared/index.js";
|
|
10
|
+
import { FeatureFlagStatusBadge as d } from "../components/FeatureFlagStatusBadge.js";
|
|
11
|
+
import { FeatureFlagTypeBadge as f } from "../components/FeatureFlagTypeBadge.js";
|
|
12
12
|
import { ArrowLeft as p, SquarePen as m, Trash2 as h } from "lucide-react";
|
|
13
13
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
14
14
|
import { useParams as v } from "react-router-dom";
|
|
@@ -72,8 +72,8 @@ var y = () => {
|
|
|
72
72
|
className: "text-2xl font-bold text-text-primary",
|
|
73
73
|
children: S.name
|
|
74
74
|
}),
|
|
75
|
-
/* @__PURE__ */ g(
|
|
76
|
-
/* @__PURE__ */ g(
|
|
75
|
+
/* @__PURE__ */ g(d, { status: S.status }),
|
|
76
|
+
/* @__PURE__ */ g(f, { flagType: S.flagType })
|
|
77
77
|
]
|
|
78
78
|
}),
|
|
79
79
|
/* @__PURE__ */ g("code", {
|
|
@@ -86,7 +86,7 @@ var y = () => {
|
|
|
86
86
|
}),
|
|
87
87
|
S.tags && S.tags.length > 0 && /* @__PURE__ */ g("div", {
|
|
88
88
|
className: "mt-2",
|
|
89
|
-
children: /* @__PURE__ */ g(
|
|
89
|
+
children: /* @__PURE__ */ g(s, { tags: S.tags })
|
|
90
90
|
})
|
|
91
91
|
] }), /* @__PURE__ */ _("div", {
|
|
92
92
|
className: "flex items-center gap-2",
|
|
@@ -214,7 +214,7 @@ var y = () => {
|
|
|
214
214
|
children: [/* @__PURE__ */ g("h2", {
|
|
215
215
|
className: "text-lg font-semibold text-text-primary p-6 pb-0",
|
|
216
216
|
children: D("featureFlags.activityHistory", "Activity History")
|
|
217
|
-
}), /* @__PURE__ */ g(
|
|
217
|
+
}), /* @__PURE__ */ g(c, {
|
|
218
218
|
resourceId: S.id,
|
|
219
219
|
resourceType: "FeatureFlag"
|
|
220
220
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlagEditPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagEditPage.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FeatureFlagEditPage.d.ts","sourceRoot":"","sources":["../../../../../src/product-management/modules/feature-flags/pages/FeatureFlagEditPage.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,EAAE,EAAY,MAAM,OAAO,CAAC;AAW1C,eAAO,MAAM,mBAAmB,EAAE,EAmGjC,CAAC"}
|
|
@@ -2,87 +2,88 @@ import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
|
2
2
|
import { useProductConsole as t } from "../../../providers/ProductConsoleProvider.js";
|
|
3
3
|
import { LoadingState as n } from "../../../shared/components/feedback/LoadingState.js";
|
|
4
4
|
import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.js";
|
|
5
|
+
import { FeatureFlagForm as i } from "../components/FeatureFlagForm.js";
|
|
6
|
+
import { useFeatureFlag as a, useUpdateFeatureFlag as o } from "../hooks/useFeatureFlags.js";
|
|
5
7
|
import "../../../shared/index.js";
|
|
6
|
-
import { useFeatureFlag as i, useUpdateFeatureFlag as a } from "../hooks/useFeatureFlags.js";
|
|
7
|
-
import { FeatureFlagForm as o } from "../components/FeatureFlagForm.js";
|
|
8
8
|
import { useState as s } from "react";
|
|
9
9
|
import { AlertTriangle as c, ArrowLeft as l } from "lucide-react";
|
|
10
10
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
|
-
import {
|
|
11
|
+
import { useFeatureFlags as f } from "@burdenoff/fe-libs/shared/feature-flags";
|
|
12
|
+
import { useParams as p } from "react-router-dom";
|
|
12
13
|
//#region src/product-management/modules/feature-flags/pages/FeatureFlagEditPage.tsx
|
|
13
|
-
var
|
|
14
|
-
let { id:
|
|
15
|
-
|
|
14
|
+
var m = () => {
|
|
15
|
+
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) => {
|
|
16
|
+
T(null);
|
|
16
17
|
try {
|
|
17
|
-
let t = await
|
|
18
|
-
t.data?.updateFeatureFlag?.id ?
|
|
18
|
+
let t = await x(m, e);
|
|
19
|
+
t.data?.updateFeatureFlag?.id ? (C(), h(`${g}/feature-flags/${m}`)) : t.errors?.length ? T(t.errors[0].message || "Failed to update feature flag") : h(`${g}/feature-flags/${m}`);
|
|
19
20
|
} catch (e) {
|
|
20
|
-
|
|
21
|
+
T(e instanceof Error ? e.message : "An unexpected error occurred");
|
|
21
22
|
}
|
|
22
|
-
},
|
|
23
|
-
|
|
23
|
+
}, O = () => {
|
|
24
|
+
h(`${g}/feature-flags/${m}`);
|
|
24
25
|
};
|
|
25
|
-
return
|
|
26
|
+
return v ? /* @__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: E("featureFlags.loadingFeatureFlag", "Loading feature flag...") })
|
|
29
|
+
}) : y ? /* @__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: y.message,
|
|
32
33
|
action: {
|
|
33
|
-
label:
|
|
34
|
-
onClick: () =>
|
|
34
|
+
label: E("productCommon.retry", "Retry"),
|
|
35
|
+
onClick: () => b()
|
|
35
36
|
}
|
|
36
37
|
})
|
|
37
|
-
}) :
|
|
38
|
+
}) : _ ? /* @__PURE__ */ d("div", {
|
|
38
39
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-300",
|
|
39
40
|
children: [
|
|
40
41
|
/* @__PURE__ */ d("button", {
|
|
41
|
-
onClick:
|
|
42
|
+
onClick: O,
|
|
42
43
|
className: "inline-flex items-center gap-2 text-text-secondary hover:text-text-primary mb-4 transition-all duration-200",
|
|
43
|
-
children: [/* @__PURE__ */ u(l, { size: 18 }),
|
|
44
|
+
children: [/* @__PURE__ */ u(l, { size: 18 }), E("featureFlags.backToFlagDetails", "Back to Flag Details")]
|
|
44
45
|
}),
|
|
45
46
|
/* @__PURE__ */ u("h1", {
|
|
46
47
|
className: "text-2xl font-bold text-text-primary mb-1",
|
|
47
|
-
children:
|
|
48
|
+
children: E("featureFlags.editFeatureFlag", "Edit Feature Flag")
|
|
48
49
|
}),
|
|
49
50
|
/* @__PURE__ */ d("p", {
|
|
50
51
|
className: "text-sm text-text-secondary mb-6",
|
|
51
52
|
children: [
|
|
52
|
-
|
|
53
|
+
E("featureFlags.updateConfigurationFor", "Update the configuration for"),
|
|
53
54
|
" ",
|
|
54
55
|
/* @__PURE__ */ u("code", {
|
|
55
56
|
className: "font-mono bg-muted px-1 rounded",
|
|
56
|
-
children:
|
|
57
|
+
children: _.key
|
|
57
58
|
})
|
|
58
59
|
]
|
|
59
60
|
}),
|
|
60
|
-
|
|
61
|
+
w && /* @__PURE__ */ d("div", {
|
|
61
62
|
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)]",
|
|
62
63
|
children: [/* @__PURE__ */ u(c, {
|
|
63
64
|
size: 16,
|
|
64
65
|
className: "shrink-0"
|
|
65
|
-
}),
|
|
66
|
+
}), w]
|
|
66
67
|
}),
|
|
67
68
|
/* @__PURE__ */ u("div", {
|
|
68
69
|
className: "max-w-2xl",
|
|
69
70
|
children: /* @__PURE__ */ u("div", {
|
|
70
71
|
className: "bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]",
|
|
71
|
-
children: /* @__PURE__ */ u(
|
|
72
|
-
featureFlag:
|
|
73
|
-
onSubmit:
|
|
74
|
-
onCancel:
|
|
75
|
-
loading:
|
|
72
|
+
children: /* @__PURE__ */ u(i, {
|
|
73
|
+
featureFlag: _,
|
|
74
|
+
onSubmit: D,
|
|
75
|
+
onCancel: O,
|
|
76
|
+
loading: S
|
|
76
77
|
})
|
|
77
78
|
})
|
|
78
79
|
})
|
|
79
80
|
]
|
|
80
81
|
}) : /* @__PURE__ */ u("div", {
|
|
81
82
|
className: "min-h-full bg-[var(--color-bg-canvas)] p-6",
|
|
82
|
-
children: /* @__PURE__ */ u(r, { message:
|
|
83
|
+
children: /* @__PURE__ */ u(r, { message: E("featureFlags.featureFlagNotFound", "Feature flag not found") })
|
|
83
84
|
});
|
|
84
85
|
};
|
|
85
86
|
//#endregion
|
|
86
|
-
export {
|
|
87
|
+
export { m as FeatureFlagEditPage };
|
|
87
88
|
|
|
88
89
|
//# 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 { useTr } from '../../../shared/hooks/useTr';\n\nimport { useProductConsole } from '../../../providers/ProductConsoleProvider';\nimport { ErrorState, LoadingState } from '../../../shared';\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 [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 navigate(`${basePath}/feature-flags/${id}`);\n } else if (result.errors?.length) {\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-300\">\n {/* Back button */}\n <button\n onClick={handleCancel}\n className=\"inline-flex items-center gap-2 text-text-secondary hover:text-text-primary mb-4 transition-all duration-200\"\n >\n <ArrowLeft size={18} />\n {tr('featureFlags.backToFlagDetails', 'Back to Flag Details')}\n </button>\n\n {/* Header */}\n <h1 className=\"text-2xl font-bold text-text-primary mb-1\">\n {tr('featureFlags.editFeatureFlag', 'Edit Feature Flag')}\n </h1>\n <p className=\"text-sm text-text-secondary mb-6\">\n {tr('featureFlags.updateConfigurationFor', 'Update the configuration for')}{' '}\n <code className=\"font-mono bg-muted px-1 rounded\">{featureFlag.key}</code>\n </p>\n\n {/* Error banner */}\n {submitError && (\n <div className=\"max-w-2xl mb-4 flex items-center gap-2 p-3 bg-[var(--color-status-error-bg)] border border-[var(--color-status-error)] rounded-lg text-sm text-[var(--color-status-error)]\">\n <AlertTriangle size={16} className=\"shrink-0\" />\n {submitError}\n </div>\n )}\n\n {/* Form */}\n <div className=\"max-w-2xl\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <FeatureFlagForm\n featureFlag={featureFlag}\n onSubmit={handleSubmit}\n onCancel={handleCancel}\n loading={updating}\n />\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":"
|
|
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, LoadingState } from '../../../shared';\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?.length) {\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-300\">\n {/* Back button */}\n <button\n onClick={handleCancel}\n className=\"inline-flex items-center gap-2 text-text-secondary hover:text-text-primary mb-4 transition-all duration-200\"\n >\n <ArrowLeft size={18} />\n {tr('featureFlags.backToFlagDetails', 'Back to Flag Details')}\n </button>\n\n {/* Header */}\n <h1 className=\"text-2xl font-bold text-text-primary mb-1\">\n {tr('featureFlags.editFeatureFlag', 'Edit Feature Flag')}\n </h1>\n <p className=\"text-sm text-text-secondary mb-6\">\n {tr('featureFlags.updateConfigurationFor', 'Update the configuration for')}{' '}\n <code className=\"font-mono bg-muted px-1 rounded\">{featureFlag.key}</code>\n </p>\n\n {/* Error banner */}\n {submitError && (\n <div className=\"max-w-2xl mb-4 flex items-center gap-2 p-3 bg-[var(--color-status-error-bg)] border border-[var(--color-status-error)] rounded-lg text-sm text-[var(--color-status-error)]\">\n <AlertTriangle size={16} className=\"shrink-0\" />\n {submitError}\n </div>\n )}\n\n {/* Form */}\n <div className=\"max-w-2xl\">\n <div className=\"bg-surface border border-default rounded-lg p-6 shadow-[var(--shadow-elevation-1)]\">\n <FeatureFlagForm\n featureFlag={featureFlag}\n onSubmit={handleSubmit}\n onCancel={handleCancel}\n loading={updating}\n />\n </div>\n </div>\n </div>\n );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,kBAAC,KAAD;IAAG,WAAU;cAAb;KACG,EAAG,uCAAuC,+BAA+B;KAAE;KAC5E,kBAAC,QAAD;MAAM,WAAU;gBAAmC,EAAY;MAAW,CAAA;KACxE;;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;MA7CJ,kBAAC,OAAD;EAAK,WAAU;YACb,kBAAC,GAAD,EAAY,SAAS,EAAG,oCAAoC,yBAAyB,EAAI,CAAA;EACrF,CAAA"}
|
|
@@ -6,10 +6,10 @@ 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 { EmptyState as l } from "../../../shared/components/feedback/EmptyState.js";
|
|
9
|
+
import { useCreateFeatureFlag as u, useDeleteFeatureFlag as d, useFeatureFlags as f, useUpdateFeatureFlag as p } from "../hooks/useFeatureFlags.js";
|
|
9
10
|
import "../../../shared/index.js";
|
|
10
|
-
import { FeatureFlagStatusBadge as
|
|
11
|
-
import { FeatureFlagTypeBadge as
|
|
12
|
-
import { useCreateFeatureFlag as f, useDeleteFeatureFlag as p, useFeatureFlags as m, useUpdateFeatureFlag as h } from "../hooks/useFeatureFlags.js";
|
|
11
|
+
import { FeatureFlagStatusBadge as m } from "../components/FeatureFlagStatusBadge.js";
|
|
12
|
+
import { FeatureFlagTypeBadge as h } from "../components/FeatureFlagTypeBadge.js";
|
|
13
13
|
import { useState as g } from "react";
|
|
14
14
|
import { Download as _, Eye as v, Flag as y, Plus as b, RefreshCw as x, Sparkles as S, SquarePen as C, Trash2 as w } from "lucide-react";
|
|
15
15
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
@@ -187,7 +187,7 @@ var O = [
|
|
|
187
187
|
], k = () => {
|
|
188
188
|
let { navigate: k, basePath: A } = t(), [j, M] = g(""), N = e(), [P, F] = g(""), [I, L] = g(""), R = {};
|
|
189
189
|
j && (R.search = j), P && (R.status = P), I && (R.category = I);
|
|
190
|
-
let { featureFlags: z, total: B, loading: V, error: H, refetch: U } =
|
|
190
|
+
let { featureFlags: z, total: B, loading: V, error: H, refetch: U } = f(R, { limit: 100 }), { deleteFeatureFlag: W } = d(), { createFeatureFlag: G } = u(), { updateFeatureFlag: K } = p(), [q, J] = g(!1), Y = async () => {
|
|
191
191
|
s("light");
|
|
192
192
|
let e = "This will create default VibeControls feature flags and reconcile defaultValue on any that already exist. Continue?", t = await o({
|
|
193
193
|
title: "Seed defaults",
|
|
@@ -432,11 +432,11 @@ var O = [
|
|
|
432
432
|
}),
|
|
433
433
|
/* @__PURE__ */ T("td", {
|
|
434
434
|
className: "px-4 py-3",
|
|
435
|
-
children: /* @__PURE__ */ T(
|
|
435
|
+
children: /* @__PURE__ */ T(h, { flagType: e.flagType })
|
|
436
436
|
}),
|
|
437
437
|
/* @__PURE__ */ T("td", {
|
|
438
438
|
className: "px-4 py-3",
|
|
439
|
-
children: /* @__PURE__ */ T(
|
|
439
|
+
children: /* @__PURE__ */ T(m, { status: e.status })
|
|
440
440
|
}),
|
|
441
441
|
/* @__PURE__ */ T("td", {
|
|
442
442
|
className: "px-4 py-3 text-sm text-text-secondary",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
2
|
import { useProducts as t } from "../../products/hooks/useProducts.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { TagInput as n } from "../../../shared/components/input/TagInput.js";
|
|
4
|
+
import { ZodError as r } from "../../../../node_modules/zod/v4/classic/errors.js";
|
|
5
5
|
import { useCreatePressKitAssetUpload as i } from "../hooks/usePressKitAssets.js";
|
|
6
6
|
import { PRESS_KIT_CATEGORIES as a } from "../types/index.js";
|
|
7
7
|
import { createPressKitAssetSchema as o, updatePressKitAssetSchema as s } from "../schemas/index.js";
|
|
@@ -52,7 +52,7 @@ function g({ asset: g, onSubmit: v, onCancel: y, loading: b }) {
|
|
|
52
52
|
let e = S ? s : o, t = { ...w };
|
|
53
53
|
return t.description || delete t.description, t.fileName || delete t.fileName, t.fileSize ?? delete t.fileSize, t.mimeType || delete t.mimeType, t.thumbnailUrl || delete t.thumbnailUrl, t.version || delete t.version, e.parse(t), k({}), !0;
|
|
54
54
|
} catch (e) {
|
|
55
|
-
if (e instanceof
|
|
55
|
+
if (e instanceof r) {
|
|
56
56
|
let t = {};
|
|
57
57
|
e.issues.forEach((e) => {
|
|
58
58
|
t[e.path.join(".")] = e.message;
|
|
@@ -494,7 +494,7 @@ function g({ asset: g, onSubmit: v, onCancel: y, loading: b }) {
|
|
|
494
494
|
children: [/* @__PURE__ */ p("h3", {
|
|
495
495
|
className: "text-sm font-semibold text-text-secondary uppercase tracking-wider",
|
|
496
496
|
children: x("pressKit.tags", "Tags")
|
|
497
|
-
}), /* @__PURE__ */ p(
|
|
497
|
+
}), /* @__PURE__ */ p(n, {
|
|
498
498
|
value: E,
|
|
499
499
|
onChange: D,
|
|
500
500
|
disabled: b
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
2
2
|
import { ProductStatus as t } from "../types/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { TagInput as n } from "../../../shared/components/input/TagInput.js";
|
|
4
|
+
import { ZodError as r } from "../../../../node_modules/zod/v4/classic/errors.js";
|
|
5
|
+
import { createProductSchema as i, updateProductSchema as a } from "../schemas/index.js";
|
|
6
6
|
import { useState as o } from "react";
|
|
7
7
|
import { ChevronDown as s, ChevronRight as c, Loader2 as l, Plus as u, Shield as d, X as f } from "lucide-react";
|
|
8
8
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
@@ -71,13 +71,13 @@ function g({ product: g, onSubmit: _, onCancel: v, loading: y }) {
|
|
|
71
71
|
}), t;
|
|
72
72
|
}, I = () => {
|
|
73
73
|
try {
|
|
74
|
-
let e = g ?
|
|
74
|
+
let e = g ? a : i, t = {
|
|
75
75
|
...x,
|
|
76
76
|
socialLinks: F()
|
|
77
77
|
};
|
|
78
78
|
return e.parse(t), O({}), !0;
|
|
79
79
|
} catch (e) {
|
|
80
|
-
if (e instanceof
|
|
80
|
+
if (e instanceof r) {
|
|
81
81
|
let t = {};
|
|
82
82
|
e.issues.forEach((e) => {
|
|
83
83
|
let n = e.path.join(".");
|
|
@@ -270,7 +270,7 @@ function g({ product: g, onSubmit: _, onCancel: v, loading: y }) {
|
|
|
270
270
|
className: "block text-sm font-medium text-text-primary mb-1",
|
|
271
271
|
children: b("products.tags", "Tags")
|
|
272
272
|
}),
|
|
273
|
-
/* @__PURE__ */ p(
|
|
273
|
+
/* @__PURE__ */ p(n, {
|
|
274
274
|
value: T,
|
|
275
275
|
onChange: E,
|
|
276
276
|
disabled: y
|
|
@@ -5,9 +5,9 @@ import { ErrorState as r } from "../../../shared/components/feedback/ErrorState.
|
|
|
5
5
|
import { SearchInput as i } from "../../../shared/components/input/SearchInput.js";
|
|
6
6
|
import { nativeConfirm as a, nativeImpact as o, nativeNotify as s } from "../../../../utils/nativeBridge.js";
|
|
7
7
|
import { useDeleteShortcut as c, useSeedDefaultShortcuts as l, useShortcuts as u, useToggleShortcut as d } from "../hooks/useShortcuts.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { ShortcutCategories as f } from "../types/index.js";
|
|
9
|
+
import { ShortcutCategoryBadge as p } from "../components/ShortcutCategoryBadge.js";
|
|
10
|
+
import { ShortcutKeyBadge as m } from "../components/ShortcutKeyBadge.js";
|
|
11
11
|
import { useState as h } from "react";
|
|
12
12
|
import { Eye as g, Plus as _, RefreshCw as v, Sparkles as y, SquarePen as b, ToggleLeft as x, ToggleRight as S, Trash2 as C } from "lucide-react";
|
|
13
13
|
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
@@ -111,7 +111,7 @@ function D() {
|
|
|
111
111
|
children: [/* @__PURE__ */ w("option", {
|
|
112
112
|
value: "",
|
|
113
113
|
children: k("shortcuts.allCategories", "All Categories")
|
|
114
|
-
}), Object.values(
|
|
114
|
+
}), Object.values(f).map((e) => /* @__PURE__ */ w("option", {
|
|
115
115
|
value: e,
|
|
116
116
|
children: e
|
|
117
117
|
}, e))]
|
|
@@ -206,7 +206,7 @@ function D() {
|
|
|
206
206
|
children: [
|
|
207
207
|
/* @__PURE__ */ w("td", {
|
|
208
208
|
className: "px-6 py-4",
|
|
209
|
-
children: /* @__PURE__ */ w(
|
|
209
|
+
children: /* @__PURE__ */ w(m, {
|
|
210
210
|
shortcutKey: e.shortcutKey,
|
|
211
211
|
isSequence: e.isSequence
|
|
212
212
|
})
|
|
@@ -223,7 +223,7 @@ function D() {
|
|
|
223
223
|
}),
|
|
224
224
|
/* @__PURE__ */ w("td", {
|
|
225
225
|
className: "px-6 py-4",
|
|
226
|
-
children: /* @__PURE__ */ w(
|
|
226
|
+
children: /* @__PURE__ */ w(p, { category: e.category })
|
|
227
227
|
}),
|
|
228
228
|
/* @__PURE__ */ w("td", {
|
|
229
229
|
className: "px-6 py-4",
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ProductsLandingPage
|
|
3
|
-
*
|
|
4
|
-
* Tabbed landing page for the Product microfrontend. Renders the existing
|
|
5
|
-
* sub-pages (products, create, shortcuts, content pages, feature flags)
|
|
6
|
-
* inside a Tabs container. The active tab is reflected in the `?tab=` URL
|
|
7
|
-
* search param.
|
|
8
|
-
*/
|
|
9
|
-
export declare function ProductsLandingPage(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
//# sourceMappingURL=ProductsLandingPage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsLandingPage.d.ts","sourceRoot":"","sources":["../../../src/product/pages/ProductsLandingPage.tsx"],"names":[],"mappings":"AAWA;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,4CAwDlC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ProductsListPage as e } from "../../product-management/modules/products/pages/ProductsListPage.js";
|
|
2
|
-
import { ProductCreatePage as t } from "../../product-management/modules/products/pages/ProductCreatePage.js";
|
|
3
|
-
import { ShortcutsListPage as n } from "../../product-management/modules/shortcuts/pages/ShortcutsListPage.js";
|
|
4
|
-
import { ContentPagesListPage as r } from "../../product-management/modules/content-pages/pages/ContentPagesListPage.js";
|
|
5
|
-
import { FeatureFlagsListPage as i } from "../../product-management/modules/feature-flags/pages/FeatureFlagsListPage.js";
|
|
6
|
-
import { useMemo as a } from "react";
|
|
7
|
-
import { useI18n as o } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
|
-
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
9
|
-
import { useSearchParams as l } from "react-router-dom";
|
|
10
|
-
import { Tabs as u } from "@burdenoff/fe-libs/chrome";
|
|
11
|
-
//#region src/product/pages/ProductsLandingPage.tsx
|
|
12
|
-
function d() {
|
|
13
|
-
let [d, f] = l(), { t: p } = o(), m = (e, t) => {
|
|
14
|
-
let n = p(e);
|
|
15
|
-
return n === e ? t : n;
|
|
16
|
-
}, h = a(() => [
|
|
17
|
-
{
|
|
18
|
-
id: "all",
|
|
19
|
-
label: m("productLanding.tabs.all", "All Products")
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
id: "new",
|
|
23
|
-
label: m("productLanding.tabs.new", "Create Product")
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
id: "shortcuts",
|
|
27
|
-
label: m("productLanding.tabs.shortcuts", "Shortcuts")
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: "content-pages",
|
|
31
|
-
label: m("productLanding.tabs.contentPages", "Content Pages")
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "feature-flags",
|
|
35
|
-
label: m("productLanding.tabs.featureFlags", "Feature Flags")
|
|
36
|
-
}
|
|
37
|
-
], [p]), g = d.get("tab") ?? h[0].id;
|
|
38
|
-
return /* @__PURE__ */ c("div", {
|
|
39
|
-
className: "flex flex-col h-full",
|
|
40
|
-
children: [/* @__PURE__ */ s("div", {
|
|
41
|
-
className: "border-b border-border-subtle px-4 pt-3",
|
|
42
|
-
children: /* @__PURE__ */ s(u, {
|
|
43
|
-
items: h,
|
|
44
|
-
activeTabId: g,
|
|
45
|
-
onTabChange: (e) => {
|
|
46
|
-
let t = new URLSearchParams(d);
|
|
47
|
-
e === h[0].id ? t.delete("tab") : t.set("tab", e), f(t, { replace: !0 });
|
|
48
|
-
},
|
|
49
|
-
variant: "underline"
|
|
50
|
-
})
|
|
51
|
-
}), /* @__PURE__ */ c("div", {
|
|
52
|
-
className: "flex-1 min-h-0 overflow-auto",
|
|
53
|
-
children: [
|
|
54
|
-
g === "all" && /* @__PURE__ */ s(e, {}),
|
|
55
|
-
g === "new" && /* @__PURE__ */ s(t, {}),
|
|
56
|
-
g === "shortcuts" && /* @__PURE__ */ s(n, {}),
|
|
57
|
-
g === "content-pages" && /* @__PURE__ */ s(r, {}),
|
|
58
|
-
g === "feature-flags" && /* @__PURE__ */ s(i, {})
|
|
59
|
-
]
|
|
60
|
-
})]
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
export { d as ProductsLandingPage };
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=ProductsLandingPage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsLandingPage.js","names":[],"sources":["../../../src/product/pages/ProductsLandingPage.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { useSearchParams } from 'react-router-dom';\nimport { Tabs, type TabItem } from '@burdenoff/fe-libs/chrome';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\nimport { ProductsListPage } from '../../product-management/modules/products/pages/ProductsListPage';\nimport { ProductCreatePage } from '../../product-management/modules/products/pages/ProductCreatePage';\nimport { ShortcutsListPage } from '../../product-management/modules/shortcuts/pages/ShortcutsListPage';\nimport { ContentPagesListPage } from '../../product-management/modules/content-pages/pages/ContentPagesListPage';\nimport { FeatureFlagsListPage } from '../../product-management/modules/feature-flags/pages/FeatureFlagsListPage';\n\n/**\n * ProductsLandingPage\n *\n * Tabbed landing page for the Product microfrontend. Renders the existing\n * sub-pages (products, create, shortcuts, content pages, feature flags)\n * inside a Tabs container. The active tab is reflected in the `?tab=` URL\n * search param.\n */\nexport function ProductsLandingPage() {\n const [params, setParams] = useSearchParams();\n const { t } = useI18n();\n const tr = (key: string, fallback: string) => {\n const translated = t(key);\n return translated === key ? fallback : translated;\n };\n\n const tabs: TabItem[] = useMemo(\n () => [\n { id: 'all', label: tr('productLanding.tabs.all', 'All Products') },\n { id: 'new', label: tr('productLanding.tabs.new', 'Create Product') },\n { id: 'shortcuts', label: tr('productLanding.tabs.shortcuts', 'Shortcuts') },\n {\n id: 'content-pages',\n label: tr('productLanding.tabs.contentPages', 'Content Pages'),\n },\n {\n id: 'feature-flags',\n label: tr('productLanding.tabs.featureFlags', 'Feature Flags'),\n },\n ],\n [t]\n );\n\n const activeId = params.get('tab') ?? tabs[0].id;\n\n const handleTabChange = (id: string) => {\n const next = new URLSearchParams(params);\n if (id === tabs[0].id) {\n next.delete('tab');\n } else {\n next.set('tab', id);\n }\n setParams(next, { replace: true });\n };\n\n return (\n <div className=\"flex flex-col h-full\">\n <div className=\"border-b border-border-subtle px-4 pt-3\">\n <Tabs\n items={tabs}\n activeTabId={activeId}\n onTabChange={handleTabChange}\n variant=\"underline\"\n />\n </div>\n <div className=\"flex-1 min-h-0 overflow-auto\">\n {activeId === 'all' && <ProductsListPage />}\n {activeId === 'new' && <ProductCreatePage />}\n {activeId === 'shortcuts' && <ShortcutsListPage />}\n {activeId === 'content-pages' && <ContentPagesListPage />}\n {activeId === 'feature-flags' && <FeatureFlagsListPage />}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;AAmBA,SAAgB,IAAsB;CACpC,IAAM,CAAC,GAAQ,KAAa,GAAiB,EACvC,EAAE,SAAM,GAAS,EACjB,KAAM,GAAa,MAAqB;EAC5C,IAAM,IAAa,EAAE,EAAI;AACzB,SAAO,MAAe,IAAM,IAAW;IAGnC,IAAkB,QAChB;EACJ;GAAE,IAAI;GAAO,OAAO,EAAG,2BAA2B,eAAe;GAAE;EACnE;GAAE,IAAI;GAAO,OAAO,EAAG,2BAA2B,iBAAiB;GAAE;EACrE;GAAE,IAAI;GAAa,OAAO,EAAG,iCAAiC,YAAY;GAAE;EAC5E;GACE,IAAI;GACJ,OAAO,EAAG,oCAAoC,gBAAgB;GAC/D;EACD;GACE,IAAI;GACJ,OAAO,EAAG,oCAAoC,gBAAgB;GAC/D;EACF,EACD,CAAC,EAAE,CACJ,EAEK,IAAW,EAAO,IAAI,MAAM,IAAI,EAAK,GAAG;AAY9C,QACE,kBAAC,OAAD;EAAK,WAAU;YAAf,CACE,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC,GAAD;IACE,OAAO;IACP,aAAa;IACb,cAhBiB,MAAe;KACtC,IAAM,IAAO,IAAI,gBAAgB,EAAO;AAMxC,KALI,MAAO,EAAK,GAAG,KACjB,EAAK,OAAO,MAAM,GAElB,EAAK,IAAI,OAAO,EAAG,EAErB,EAAU,GAAM,EAAE,SAAS,IAAM,CAAC;;IAU5B,SAAQ;IACR,CAAA;GACE,CAAA,EACN,kBAAC,OAAD;GAAK,WAAU;aAAf;IACG,MAAa,SAAS,kBAAC,GAAD,EAAoB,CAAA;IAC1C,MA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