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