@burdenoff/microfe-bigconsole 2026.1123.6 → 2026.1124.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/dist/bigconsole/asof/AsOfControl.js +2 -2
  2. package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
  3. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
  4. package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
  5. package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
  6. package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
  7. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
  8. package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
  9. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
  10. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
  11. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
  12. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
  13. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
  14. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
  15. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
  16. package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
  17. package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
  18. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
  19. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
  20. package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
  21. package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
  22. package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
  23. package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
  24. package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
  25. package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
  26. package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
  27. package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
  28. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  29. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  30. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  31. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  32. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  33. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  34. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  35. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  36. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  37. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  38. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  39. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  40. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  41. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  42. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  43. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  44. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  45. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  46. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  47. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  48. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  49. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  50. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  51. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  52. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  53. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  54. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  56. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  57. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  58. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  59. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  60. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  61. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  62. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  63. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  64. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  65. package/dist/bigconsole/pages/AdminPage.js +147 -146
  66. package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
  67. package/dist/bigconsole/pages/DashboardsPage.js +638 -855
  68. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  69. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  70. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  71. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  72. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  73. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  74. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  75. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  76. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  77. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  78. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  79. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  80. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  81. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  82. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  83. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  84. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  85. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  86. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  87. package/dist/bigconsole/utils/statusTone.js +44 -0
  88. package/package.json +4 -4
@@ -1,13 +1,13 @@
1
1
  import { ListDataSinksDocument as e, ListEventLogsDocument as t } from "../../generated/wspace-operations.js";
2
2
  import { memo as n, useCallback as r, useMemo as i, useState as a } from "react";
3
3
  import { AlertCircle as o, Database as s, Flag as c, LayoutDashboard as l, RefreshCw as u, ScrollText as d, Search as f } from "lucide-react";
4
- import { Badge as p, Button as m, Card as h, CardContent as g, CardDescription as _, CardHeader as v, CardTitle as y, Input as b, Spinner as x, Tabs as S, TabsContent as C, TabsList as w, TabsTrigger as T } from "@burdenoff/fe-libs/ui";
5
- import { useI18n as E } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
- import { useQuery as D } from "@apollo/client/react";
7
- import { jsx as O, jsxs as k } from "react/jsx-runtime";
8
- import { formatDistanceToNow as A } from "date-fns";
4
+ import { Badge as p, Button as m, Card as h, CardContent as g, CardDescription as _, CardHeader as v, CardTitle as y, Input as b, Spinner as x, Tabs as S, TabsContent as C, TabsList as w, TabsTrigger as T, ThemedSelect as E } from "@burdenoff/fe-libs/ui";
5
+ import { useI18n as D } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
6
+ import { useQuery as O } from "@apollo/client/react";
7
+ import { jsx as k, jsxs as A } from "react/jsx-runtime";
8
+ import { formatDistanceToNow as j } from "date-fns";
9
9
  // src/bigconsole/pages/AdminPage.tsx
10
- var j = [
10
+ var M = [
11
11
  {
12
12
  id: "flag-1",
13
13
  key: "bigconsole.ai-insights",
@@ -33,7 +33,7 @@ var j = [
33
33
  scope: "organization"
34
34
  }
35
35
  ];
36
- function M(e) {
36
+ function N(e) {
37
37
  if (e == null || e === 0) return "0 B";
38
38
  let t = [
39
39
  "B",
@@ -44,168 +44,168 @@ function M(e) {
44
44
  ], n = Math.floor(Math.log(e) / Math.log(1024));
45
45
  return `${(e / 1024 ** n).toFixed(2)} ${t[n]}`;
46
46
  }
47
- function N(e) {
47
+ function P(e) {
48
48
  if (!e) return "—";
49
49
  try {
50
- return A(new Date(e), { addSuffix: !0 });
50
+ return j(new Date(e), { addSuffix: !0 });
51
51
  } catch {
52
52
  return e;
53
53
  }
54
54
  }
55
- var P = n(function() {
56
- let { t } = E(), n = r((e, n) => {
55
+ var F = n(function() {
56
+ let { t } = D(), n = r((e, n) => {
57
57
  let r = t(e);
58
58
  return r === e ? n : r;
59
- }, [t]), [c, d] = a(""), { data: S, loading: C, error: w, refetch: T } = D(e, {
59
+ }, [t]), [c, d] = a(""), { data: S, loading: C, error: w, refetch: T } = O(e, {
60
60
  variables: {
61
61
  first: 50,
62
62
  search: c || void 0
63
63
  },
64
64
  notifyOnNetworkStatusChange: !0
65
- }), A = i(() => (S?.listDataSinks?.edges ?? []).map((e) => e.node), [S]);
66
- return /* @__PURE__ */ k("div", {
65
+ }), E = i(() => (S?.listDataSinks?.edges ?? []).map((e) => e.node), [S]);
66
+ return /* @__PURE__ */ A("div", {
67
67
  className: "space-y-6",
68
68
  children: [
69
- /* @__PURE__ */ k("div", {
69
+ /* @__PURE__ */ A("div", {
70
70
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
71
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
71
+ children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h2", {
72
72
  className: "text-lg font-semibold text-text-primary",
73
73
  children: n("bigconsole.admin.registry.title", "Widget & Data-sink Registry")
74
- }), /* @__PURE__ */ O("p", {
74
+ }), /* @__PURE__ */ k("p", {
75
75
  className: "text-sm text-text-secondary",
76
76
  children: n("bigconsole.admin.registry.subtitle", "Browse and govern dashboards, widgets, and data sinks across the organization.")
77
- })] }), /* @__PURE__ */ k("div", {
77
+ })] }), /* @__PURE__ */ A("div", {
78
78
  className: "flex items-center gap-2",
79
- children: [/* @__PURE__ */ k("div", {
79
+ children: [/* @__PURE__ */ A("div", {
80
80
  className: "relative",
81
- children: [/* @__PURE__ */ O(f, { className: "absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-text-tertiary" }), /* @__PURE__ */ O(b, {
81
+ children: [/* @__PURE__ */ k(f, { className: "absolute left-2.5 top-1/2 h-4 w-4 -translate-y-1/2 text-text-tertiary" }), /* @__PURE__ */ k(b, {
82
82
  type: "text",
83
83
  placeholder: n("bigconsole.admin.registry.search", "Search data sinks..."),
84
84
  value: c,
85
85
  onChange: (e) => d(e.target.value),
86
86
  className: "pl-9 w-full sm:w-64"
87
87
  })]
88
- }), /* @__PURE__ */ O(m, {
88
+ }), /* @__PURE__ */ k(m, {
89
89
  variant: "outline",
90
90
  size: "icon",
91
91
  onClick: () => T(),
92
92
  disabled: C,
93
93
  "aria-label": n("bigconsole.admin.registry.refresh", "Refresh"),
94
- children: /* @__PURE__ */ O(u, { className: `h-4 w-4 ${C ? "animate-spin" : ""}` })
94
+ children: /* @__PURE__ */ k(u, { className: `h-4 w-4 ${C ? "animate-spin" : ""}` })
95
95
  })]
96
96
  })]
97
97
  }),
98
- /* @__PURE__ */ k(h, {
98
+ /* @__PURE__ */ A(h, {
99
99
  className: "border-dashed border-border-default bg-bg-surface/50",
100
- children: [/* @__PURE__ */ k(v, {
100
+ children: [/* @__PURE__ */ A(v, {
101
101
  className: "pb-3",
102
- children: [/* @__PURE__ */ k(y, {
102
+ children: [/* @__PURE__ */ A(y, {
103
103
  className: "text-base font-medium text-text-primary flex items-center gap-2",
104
- children: [/* @__PURE__ */ O(l, { className: "h-4 w-4 text-text-secondary" }), n("bigconsole.admin.registry.widgets", "Widget Registry")]
105
- }), /* @__PURE__ */ O(_, {
104
+ children: [/* @__PURE__ */ k(l, { className: "h-4 w-4 text-text-secondary" }), n("bigconsole.admin.registry.widgets", "Widget Registry")]
105
+ }), /* @__PURE__ */ k(_, {
106
106
  className: "text-sm text-text-secondary",
107
107
  children: n("bigconsole.admin.registry.widgets.description", "Cross-workspace widget listing requires a backend query that supports organization-scoped pagination (listWidgets currently requires pageId).")
108
108
  })]
109
- }), /* @__PURE__ */ O(g, { children: /* @__PURE__ */ k("div", {
109
+ }), /* @__PURE__ */ k(g, { children: /* @__PURE__ */ A("div", {
110
110
  className: "flex items-start gap-3 rounded-md bg-warning-bg/10 p-3 text-sm text-warning-fg",
111
- children: [/* @__PURE__ */ O(o, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
111
+ children: [/* @__PURE__ */ k(o, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
112
112
  className: "font-medium",
113
113
  children: n("bigconsole.admin.registry.widgets.gap.title", "Backend gap")
114
- }), /* @__PURE__ */ O("p", {
114
+ }), /* @__PURE__ */ k("p", {
115
115
  className: "mt-1 text-text-secondary",
116
116
  children: n("bigconsole.admin.registry.widgets.gap.body", "Add adminBigConsoleWidgets(organizationId, first, after) to global or workspace schema, then wire it here.")
117
117
  })] })]
118
118
  }) })]
119
119
  }),
120
- /* @__PURE__ */ k(h, {
120
+ /* @__PURE__ */ A(h, {
121
121
  className: "bg-bg-surface border-border-default",
122
- children: [/* @__PURE__ */ k(v, {
122
+ children: [/* @__PURE__ */ A(v, {
123
123
  className: "pb-3",
124
- children: [/* @__PURE__ */ k(y, {
124
+ children: [/* @__PURE__ */ A(y, {
125
125
  className: "text-base font-medium text-text-primary flex items-center gap-2",
126
- children: [/* @__PURE__ */ O(s, { className: "h-4 w-4 text-text-secondary" }), n("bigconsole.admin.registry.datasinks", "Data-sink Registry")]
127
- }), /* @__PURE__ */ O(_, {
126
+ children: [/* @__PURE__ */ k(s, { className: "h-4 w-4 text-text-secondary" }), n("bigconsole.admin.registry.datasinks", "Data-sink Registry")]
127
+ }), /* @__PURE__ */ k(_, {
128
128
  className: "text-sm text-text-secondary",
129
129
  children: n("bigconsole.admin.registry.datasinks.description", "Live view of data sinks across the organization.")
130
130
  })]
131
- }), /* @__PURE__ */ O(g, { children: w ? /* @__PURE__ */ O("div", {
131
+ }), /* @__PURE__ */ k(g, { children: w ? /* @__PURE__ */ k("div", {
132
132
  className: "rounded-md bg-danger-bg/10 p-4 text-sm text-danger-fg",
133
133
  children: w.message
134
- }) : C && !S ? /* @__PURE__ */ O("div", {
134
+ }) : C && !S ? /* @__PURE__ */ k("div", {
135
135
  className: "flex items-center justify-center py-12",
136
- children: /* @__PURE__ */ O(x, { className: "h-8 w-8" })
137
- }) : A.length === 0 ? /* @__PURE__ */ O("div", {
136
+ children: /* @__PURE__ */ k(x, { className: "h-8 w-8" })
137
+ }) : E.length === 0 ? /* @__PURE__ */ k("div", {
138
138
  className: "text-center py-12 text-text-secondary text-sm",
139
139
  children: n("bigconsole.admin.registry.datasinks.empty", "No data sinks found.")
140
- }) : /* @__PURE__ */ O("div", {
140
+ }) : /* @__PURE__ */ k("div", {
141
141
  className: "overflow-x-auto",
142
- children: /* @__PURE__ */ k("table", {
142
+ children: /* @__PURE__ */ A("table", {
143
143
  className: "w-full text-sm",
144
- children: [/* @__PURE__ */ O("thead", { children: /* @__PURE__ */ k("tr", {
144
+ children: [/* @__PURE__ */ k("thead", { children: /* @__PURE__ */ A("tr", {
145
145
  className: "border-b border-border-default text-left text-text-secondary",
146
146
  children: [
147
- /* @__PURE__ */ O("th", {
147
+ /* @__PURE__ */ k("th", {
148
148
  className: "pb-3 pr-4 font-medium",
149
149
  children: n("bigconsole.admin.registry.datasinks.name", "Name")
150
150
  }),
151
- /* @__PURE__ */ O("th", {
151
+ /* @__PURE__ */ k("th", {
152
152
  className: "pb-3 pr-4 font-medium",
153
153
  children: n("bigconsole.admin.registry.datasinks.status", "Status")
154
154
  }),
155
- /* @__PURE__ */ O("th", {
155
+ /* @__PURE__ */ k("th", {
156
156
  className: "pb-3 pr-4 font-medium",
157
157
  children: n("bigconsole.admin.registry.datasinks.size", "Size")
158
158
  }),
159
- /* @__PURE__ */ O("th", {
159
+ /* @__PURE__ */ k("th", {
160
160
  className: "pb-3 pr-4 font-medium",
161
161
  children: n("bigconsole.admin.registry.datasinks.links", "Links")
162
162
  }),
163
- /* @__PURE__ */ O("th", {
163
+ /* @__PURE__ */ k("th", {
164
164
  className: "pb-3 pr-4 font-medium",
165
165
  children: n("bigconsole.admin.registry.datasinks.refreshed", "Refreshed")
166
166
  }),
167
- /* @__PURE__ */ O("th", {
167
+ /* @__PURE__ */ k("th", {
168
168
  className: "pb-3 font-medium",
169
169
  children: n("bigconsole.admin.registry.datasinks.active", "Active")
170
170
  })
171
171
  ]
172
- }) }), /* @__PURE__ */ O("tbody", {
172
+ }) }), /* @__PURE__ */ k("tbody", {
173
173
  className: "text-text-primary",
174
- children: A.map((e) => /* @__PURE__ */ k("tr", {
174
+ children: E.map((e) => /* @__PURE__ */ A("tr", {
175
175
  className: "border-b border-border-seam last:border-0",
176
176
  children: [
177
- /* @__PURE__ */ k("td", {
177
+ /* @__PURE__ */ A("td", {
178
178
  className: "py-3 pr-4",
179
- children: [/* @__PURE__ */ O("div", {
179
+ children: [/* @__PURE__ */ k("div", {
180
180
  className: "font-medium",
181
181
  children: e.name || e.key
182
- }), /* @__PURE__ */ O("div", {
182
+ }), /* @__PURE__ */ k("div", {
183
183
  className: "text-xs text-text-tertiary",
184
184
  children: e.key
185
185
  })]
186
186
  }),
187
- /* @__PURE__ */ O("td", {
187
+ /* @__PURE__ */ k("td", {
188
188
  className: "py-3 pr-4",
189
- children: /* @__PURE__ */ O(p, {
189
+ children: /* @__PURE__ */ k(p, {
190
190
  variant: e.status === "ready" ? "default" : "secondary",
191
191
  children: e.status
192
192
  })
193
193
  }),
194
- /* @__PURE__ */ O("td", {
194
+ /* @__PURE__ */ k("td", {
195
195
  className: "py-3 pr-4 tabular-nums",
196
- children: M(e.sizeBytes)
196
+ children: N(e.sizeBytes)
197
197
  }),
198
- /* @__PURE__ */ O("td", {
198
+ /* @__PURE__ */ k("td", {
199
199
  className: "py-3 pr-4 tabular-nums",
200
200
  children: e.linkedWorkflowCount ?? 0
201
201
  }),
202
- /* @__PURE__ */ O("td", {
202
+ /* @__PURE__ */ k("td", {
203
203
  className: "py-3 pr-4 text-text-secondary",
204
- children: N(e.lastRefreshedAt)
204
+ children: P(e.lastRefreshedAt)
205
205
  }),
206
- /* @__PURE__ */ O("td", {
206
+ /* @__PURE__ */ k("td", {
207
207
  className: "py-3",
208
- children: /* @__PURE__ */ O(p, {
208
+ children: /* @__PURE__ */ k(p, {
209
209
  variant: e.isActive ? "default" : "outline",
210
210
  children: e.isActive ? "Yes" : "No"
211
211
  })
@@ -218,71 +218,71 @@ var P = n(function() {
218
218
  })
219
219
  ]
220
220
  });
221
- }), F = n(function() {
222
- let { t: e } = E(), t = r((t, n) => {
221
+ }), I = n(function() {
222
+ let { t: e } = D(), t = r((t, n) => {
223
223
  let r = e(t);
224
224
  return r === t ? n : r;
225
- }, [e]), [n, i] = a(j), s = r((e) => {
225
+ }, [e]), [n, i] = a(M), s = r((e) => {
226
226
  i((t) => t.map((t) => t.id === e ? {
227
227
  ...t,
228
228
  enabled: !t.enabled
229
229
  } : t));
230
230
  }, []);
231
- return /* @__PURE__ */ k("div", {
231
+ return /* @__PURE__ */ A("div", {
232
232
  className: "space-y-6",
233
233
  children: [
234
- /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
234
+ /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h2", {
235
235
  className: "text-lg font-semibold text-text-primary",
236
236
  children: t("bigconsole.admin.featureFlags.title", "Org-level Feature Flags")
237
- }), /* @__PURE__ */ O("p", {
237
+ }), /* @__PURE__ */ k("p", {
238
238
  className: "text-sm text-text-secondary",
239
239
  children: t("bigconsole.admin.featureFlags.subtitle", "Manage BigConsole features across organizations and workspaces.")
240
240
  })] }),
241
- /* @__PURE__ */ k("div", {
241
+ /* @__PURE__ */ A("div", {
242
242
  className: "flex items-start gap-3 rounded-md bg-info-bg/10 p-3 text-sm text-info-fg",
243
- children: [/* @__PURE__ */ O(o, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
243
+ children: [/* @__PURE__ */ k(o, { className: "mt-0.5 h-4 w-4 shrink-0" }), /* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
244
244
  className: "font-medium",
245
245
  children: t("bigconsole.admin.featureFlags.placeholder.title", "Placeholder data")
246
- }), /* @__PURE__ */ O("p", {
246
+ }), /* @__PURE__ */ k("p", {
247
247
  className: "mt-1 text-text-secondary",
248
248
  children: t("bigconsole.admin.featureFlags.placeholder.body", "Wire this to the feature-flag service admin API (list/upsert organization feature flags) when available.")
249
249
  })] })]
250
250
  }),
251
- /* @__PURE__ */ O("div", {
251
+ /* @__PURE__ */ k("div", {
252
252
  className: "grid gap-4",
253
- children: n.map((e) => /* @__PURE__ */ O(h, {
253
+ children: n.map((e) => /* @__PURE__ */ k(h, {
254
254
  className: "bg-bg-surface border-border-default",
255
- children: /* @__PURE__ */ O(g, {
255
+ children: /* @__PURE__ */ k(g, {
256
256
  className: "p-4",
257
- children: /* @__PURE__ */ k("div", {
257
+ children: /* @__PURE__ */ A("div", {
258
258
  className: "flex flex-col gap-4 sm:flex-row sm:items-start sm:justify-between",
259
- children: [/* @__PURE__ */ k("div", {
259
+ children: [/* @__PURE__ */ A("div", {
260
260
  className: "space-y-1",
261
261
  children: [
262
- /* @__PURE__ */ k("div", {
262
+ /* @__PURE__ */ A("div", {
263
263
  className: "flex items-center gap-2",
264
264
  children: [
265
- /* @__PURE__ */ O(c, { className: "h-4 w-4 text-text-secondary" }),
266
- /* @__PURE__ */ O("span", {
265
+ /* @__PURE__ */ k(c, { className: "h-4 w-4 text-text-secondary" }),
266
+ /* @__PURE__ */ k("span", {
267
267
  className: "font-medium text-text-primary",
268
268
  children: e.name
269
269
  }),
270
- /* @__PURE__ */ O(p, {
270
+ /* @__PURE__ */ k(p, {
271
271
  variant: "outline",
272
272
  children: e.scope
273
273
  })
274
274
  ]
275
275
  }),
276
- /* @__PURE__ */ O("p", {
276
+ /* @__PURE__ */ k("p", {
277
277
  className: "text-sm text-text-secondary",
278
278
  children: e.description
279
279
  }),
280
- /* @__PURE__ */ O("code", {
280
+ /* @__PURE__ */ k("code", {
281
281
  className: "text-xs text-text-tertiary bg-bg-sunken px-1.5 py-0.5 rounded",
282
282
  children: e.key
283
283
  })
284
284
  ]
285
- }), /* @__PURE__ */ O(m, {
285
+ }), /* @__PURE__ */ k(m, {
286
286
  variant: e.enabled ? "default" : "outline",
287
287
  size: "sm",
288
288
  onClick: () => s(e.id),
@@ -295,138 +295,139 @@ var P = n(function() {
295
295
  })
296
296
  ]
297
297
  });
298
- }), I = n(function() {
299
- let { t: e } = E(), n = r((t, n) => {
298
+ }), L = n(function() {
299
+ let { t: e } = D(), n = r((t, n) => {
300
300
  let r = e(t);
301
301
  return r === t ? n : r;
302
- }, [e]), [o, s] = a("all"), { data: c, loading: l, error: d, refetch: f } = D(t, {
302
+ }, [e]), [o, s] = a("all"), { data: c, loading: l, error: d, refetch: f } = O(t, {
303
303
  variables: {
304
304
  first: 50,
305
305
  status: o === "all" ? void 0 : o
306
306
  },
307
307
  notifyOnNetworkStatusChange: !0
308
308
  }), _ = i(() => (c?.listEventLogs?.edges ?? []).map((e) => e.node), [c]);
309
- return /* @__PURE__ */ k("div", {
309
+ return /* @__PURE__ */ A("div", {
310
310
  className: "space-y-6",
311
- children: [/* @__PURE__ */ k("div", {
311
+ children: [/* @__PURE__ */ A("div", {
312
312
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
313
- children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
313
+ children: [/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("h2", {
314
314
  className: "text-lg font-semibold text-text-primary",
315
315
  children: n("bigconsole.admin.auditLog.title", "Audit Log Viewer")
316
- }), /* @__PURE__ */ O("p", {
316
+ }), /* @__PURE__ */ k("p", {
317
317
  className: "text-sm text-text-secondary",
318
318
  children: n("bigconsole.admin.auditLog.subtitle", "Widget event delivery log. Organization-level audit trail requires a dedicated admin audit query.")
319
- })] }), /* @__PURE__ */ k("div", {
319
+ })] }), /* @__PURE__ */ A("div", {
320
320
  className: "flex items-center gap-2",
321
- children: [/* @__PURE__ */ k("select", {
321
+ children: [/* @__PURE__ */ A(E, {
322
+ "aria-label": n("bigconsole.admin.auditLog.status", "Status"),
322
323
  value: o,
323
324
  onChange: (e) => s(e.target.value),
324
325
  className: "h-9 rounded-md border border-border-default bg-bg-surface px-3 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-focus-ring",
325
326
  children: [
326
- /* @__PURE__ */ O("option", {
327
+ /* @__PURE__ */ k("option", {
327
328
  value: "all",
328
329
  children: n("bigconsole.admin.auditLog.filter.all", "All statuses")
329
330
  }),
330
- /* @__PURE__ */ O("option", {
331
+ /* @__PURE__ */ k("option", {
331
332
  value: "success",
332
333
  children: n("bigconsole.admin.auditLog.filter.success", "Success")
333
334
  }),
334
- /* @__PURE__ */ O("option", {
335
+ /* @__PURE__ */ k("option", {
335
336
  value: "failed",
336
337
  children: n("bigconsole.admin.auditLog.filter.failed", "Failed")
337
338
  })
338
339
  ]
339
- }), /* @__PURE__ */ O(m, {
340
+ }), /* @__PURE__ */ k(m, {
340
341
  variant: "outline",
341
342
  size: "icon",
342
343
  onClick: () => f(),
343
344
  disabled: l,
344
345
  "aria-label": n("bigconsole.admin.auditLog.refresh", "Refresh"),
345
- children: /* @__PURE__ */ O(u, { className: `h-4 w-4 ${l ? "animate-spin" : ""}` })
346
+ children: /* @__PURE__ */ k(u, { className: `h-4 w-4 ${l ? "animate-spin" : ""}` })
346
347
  })]
347
348
  })]
348
- }), /* @__PURE__ */ O(h, {
349
+ }), /* @__PURE__ */ k(h, {
349
350
  className: "bg-bg-surface border-border-default",
350
- children: /* @__PURE__ */ O(g, {
351
+ children: /* @__PURE__ */ k(g, {
351
352
  className: "p-0",
352
- children: d ? /* @__PURE__ */ O("div", {
353
+ children: d ? /* @__PURE__ */ k("div", {
353
354
  className: "rounded-md bg-danger-bg/10 p-4 text-sm text-danger-fg",
354
355
  children: d.message
355
- }) : l && !c ? /* @__PURE__ */ O("div", {
356
+ }) : l && !c ? /* @__PURE__ */ k("div", {
356
357
  className: "flex items-center justify-center py-12",
357
- children: /* @__PURE__ */ O(x, { className: "h-8 w-8" })
358
- }) : _.length === 0 ? /* @__PURE__ */ O("div", {
358
+ children: /* @__PURE__ */ k(x, { className: "h-8 w-8" })
359
+ }) : _.length === 0 ? /* @__PURE__ */ k("div", {
359
360
  className: "text-center py-12 text-text-secondary text-sm",
360
361
  children: n("bigconsole.admin.auditLog.empty", "No audit events found.")
361
- }) : /* @__PURE__ */ O("div", {
362
+ }) : /* @__PURE__ */ k("div", {
362
363
  className: "overflow-x-auto",
363
- children: /* @__PURE__ */ k("table", {
364
+ children: /* @__PURE__ */ A("table", {
364
365
  className: "w-full text-sm",
365
- children: [/* @__PURE__ */ O("thead", { children: /* @__PURE__ */ k("tr", {
366
+ children: [/* @__PURE__ */ k("thead", { children: /* @__PURE__ */ A("tr", {
366
367
  className: "border-b border-border-default text-left text-text-secondary",
367
368
  children: [
368
- /* @__PURE__ */ O("th", {
369
+ /* @__PURE__ */ k("th", {
369
370
  className: "pb-3 pr-4 font-medium p-4",
370
371
  children: n("bigconsole.admin.auditLog.event", "Event")
371
372
  }),
372
- /* @__PURE__ */ O("th", {
373
+ /* @__PURE__ */ k("th", {
373
374
  className: "pb-3 pr-4 font-medium",
374
375
  children: n("bigconsole.admin.auditLog.action", "Action")
375
376
  }),
376
- /* @__PURE__ */ O("th", {
377
+ /* @__PURE__ */ k("th", {
377
378
  className: "pb-3 pr-4 font-medium",
378
379
  children: n("bigconsole.admin.auditLog.status", "Status")
379
380
  }),
380
- /* @__PURE__ */ O("th", {
381
+ /* @__PURE__ */ k("th", {
381
382
  className: "pb-3 pr-4 font-medium",
382
383
  children: n("bigconsole.admin.auditLog.widget", "Widget")
383
384
  }),
384
- /* @__PURE__ */ O("th", {
385
+ /* @__PURE__ */ k("th", {
385
386
  className: "pb-3 pr-4 font-medium",
386
387
  children: n("bigconsole.admin.auditLog.dashboard", "Dashboard")
387
388
  }),
388
- /* @__PURE__ */ O("th", {
389
+ /* @__PURE__ */ k("th", {
389
390
  className: "pb-3 font-medium",
390
391
  children: n("bigconsole.admin.auditLog.time", "Time")
391
392
  })
392
393
  ]
393
- }) }), /* @__PURE__ */ O("tbody", {
394
+ }) }), /* @__PURE__ */ k("tbody", {
394
395
  className: "text-text-primary",
395
- children: _.map((e) => /* @__PURE__ */ k("tr", {
396
+ children: _.map((e) => /* @__PURE__ */ A("tr", {
396
397
  className: "border-b border-border-seam last:border-0",
397
398
  children: [
398
- /* @__PURE__ */ k("td", {
399
+ /* @__PURE__ */ A("td", {
399
400
  className: "py-3 pr-4 p-4",
400
- children: [/* @__PURE__ */ O("div", {
401
+ children: [/* @__PURE__ */ k("div", {
401
402
  className: "font-medium",
402
403
  children: e.eventName
403
- }), e.errorMessage && /* @__PURE__ */ O("div", {
404
+ }), e.errorMessage && /* @__PURE__ */ k("div", {
404
405
  className: "text-xs text-danger-fg mt-1 max-w-xs truncate",
405
406
  children: e.errorMessage
406
407
  })]
407
408
  }),
408
- /* @__PURE__ */ O("td", {
409
+ /* @__PURE__ */ k("td", {
409
410
  className: "py-3 pr-4",
410
411
  children: e.actionName || "—"
411
412
  }),
412
- /* @__PURE__ */ O("td", {
413
+ /* @__PURE__ */ k("td", {
413
414
  className: "py-3 pr-4",
414
- children: /* @__PURE__ */ O(p, {
415
+ children: /* @__PURE__ */ k(p, {
415
416
  variant: e.status === "success" ? "default" : e.status === "failed" ? "destructive" : "secondary",
416
417
  children: e.status
417
418
  })
418
419
  }),
419
- /* @__PURE__ */ O("td", {
420
+ /* @__PURE__ */ k("td", {
420
421
  className: "py-3 pr-4 font-mono text-xs text-text-tertiary",
421
422
  children: e.widgetId || "—"
422
423
  }),
423
- /* @__PURE__ */ O("td", {
424
+ /* @__PURE__ */ k("td", {
424
425
  className: "py-3 pr-4 font-mono text-xs text-text-tertiary",
425
426
  children: e.dashboardId || "—"
426
427
  }),
427
- /* @__PURE__ */ O("td", {
428
+ /* @__PURE__ */ k("td", {
428
429
  className: "py-3 text-text-secondary",
429
- children: N(e.createdAt)
430
+ children: P(e.createdAt)
430
431
  })
431
432
  ]
432
433
  }, e.id))
@@ -436,66 +437,66 @@ var P = n(function() {
436
437
  })
437
438
  })]
438
439
  });
439
- }), L = n(function() {
440
- let { t: e } = E(), t = r((t, n) => {
440
+ }), R = n(function() {
441
+ let { t: e } = D(), t = r((t, n) => {
441
442
  let r = e(t);
442
443
  return r === t ? n : r;
443
444
  }, [e]), [n, i] = a("registry");
444
- return /* @__PURE__ */ O("div", {
445
+ return /* @__PURE__ */ k("div", {
445
446
  className: "min-h-screen bg-bg-base p-6",
446
- children: /* @__PURE__ */ k("div", {
447
+ children: /* @__PURE__ */ A("div", {
447
448
  className: "mx-auto max-w-7xl space-y-6",
448
- children: [/* @__PURE__ */ k("div", {
449
+ children: [/* @__PURE__ */ A("div", {
449
450
  className: "space-y-1",
450
- children: [/* @__PURE__ */ O("h1", {
451
+ children: [/* @__PURE__ */ k("h1", {
451
452
  className: "text-2xl font-bold text-text-primary",
452
453
  children: t("bigconsole.admin.title", "BigConsole Admin")
453
- }), /* @__PURE__ */ O("p", {
454
+ }), /* @__PURE__ */ k("p", {
454
455
  className: "text-sm text-text-secondary",
455
456
  children: t("bigconsole.admin.description", "Product-specific administration and governance for BigConsole.")
456
457
  })]
457
- }), /* @__PURE__ */ k(S, {
458
+ }), /* @__PURE__ */ A(S, {
458
459
  value: n,
459
460
  onValueChange: (e) => i(e),
460
461
  children: [
461
- /* @__PURE__ */ k(w, {
462
+ /* @__PURE__ */ A(w, {
462
463
  className: "bg-bg-surface border border-border-default",
463
464
  children: [
464
- /* @__PURE__ */ k(T, {
465
+ /* @__PURE__ */ A(T, {
465
466
  value: "registry",
466
467
  className: "flex items-center gap-2",
467
- children: [/* @__PURE__ */ O(l, { className: "h-4 w-4" }), t("bigconsole.admin.tab.registry", "Registry")]
468
+ children: [/* @__PURE__ */ k(l, { className: "h-4 w-4" }), t("bigconsole.admin.tab.registry", "Registry")]
468
469
  }),
469
- /* @__PURE__ */ k(T, {
470
+ /* @__PURE__ */ A(T, {
470
471
  value: "feature-flags",
471
472
  className: "flex items-center gap-2",
472
- children: [/* @__PURE__ */ O(c, { className: "h-4 w-4" }), t("bigconsole.admin.tab.featureFlags", "Feature Flags")]
473
+ children: [/* @__PURE__ */ k(c, { className: "h-4 w-4" }), t("bigconsole.admin.tab.featureFlags", "Feature Flags")]
473
474
  }),
474
- /* @__PURE__ */ k(T, {
475
+ /* @__PURE__ */ A(T, {
475
476
  value: "audit-log",
476
477
  className: "flex items-center gap-2",
477
- children: [/* @__PURE__ */ O(d, { className: "h-4 w-4" }), t("bigconsole.admin.tab.auditLog", "Audit Log")]
478
+ children: [/* @__PURE__ */ k(d, { className: "h-4 w-4" }), t("bigconsole.admin.tab.auditLog", "Audit Log")]
478
479
  })
479
480
  ]
480
481
  }),
481
- /* @__PURE__ */ O(C, {
482
+ /* @__PURE__ */ k(C, {
482
483
  value: "registry",
483
484
  className: "mt-6",
484
- children: /* @__PURE__ */ O(P, {})
485
+ children: /* @__PURE__ */ k(F, {})
485
486
  }),
486
- /* @__PURE__ */ O(C, {
487
+ /* @__PURE__ */ k(C, {
487
488
  value: "feature-flags",
488
489
  className: "mt-6",
489
- children: /* @__PURE__ */ O(F, {})
490
+ children: /* @__PURE__ */ k(I, {})
490
491
  }),
491
- /* @__PURE__ */ O(C, {
492
+ /* @__PURE__ */ k(C, {
492
493
  value: "audit-log",
493
494
  className: "mt-6",
494
- children: /* @__PURE__ */ O(I, {})
495
+ children: /* @__PURE__ */ k(L, {})
495
496
  })
496
497
  ]
497
498
  })]
498
499
  })
499
500
  });
500
501
  });
501
- export { L as AdminPage };
502
+ export { R as AdminPage };
@@ -369,6 +369,8 @@ var y = d(function() {
369
369
  style: { padding: "var(--space-pagePadding)" },
370
370
  children: /* @__PURE__ */ _(Ie, {
371
371
  illustration: "empty-data",
372
+ kind: "not-found",
373
+ size: "page",
372
374
  title: d("bigconsole.dashboards.view.notFoundTitle", "Dashboard not found"),
373
375
  description: /* @__PURE__ */ v(g, { children: [d("bigconsole.dashboards.view.notFoundDescription", "The dashboard you're looking for doesn't exist or has been deleted."), /* @__PURE__ */ _("span", {
374
376
  className: "mt-2 block font-mono text-xs text-text-muted break-all",