@burdenoff/microfe-bigconsole 2026.1123.7 → 2026.1124.2

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 (109) 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/fleet/FleetChildrenPanel.d.ts +4 -0
  29. package/dist/bigconsole/components/fleet/FleetChildrenPanel.js +174 -184
  30. package/dist/bigconsole/components/fleet/FleetCopySection.d.ts +13 -0
  31. package/dist/bigconsole/components/fleet/FleetCopySection.js +266 -0
  32. package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
  33. package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
  34. package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
  35. package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
  36. package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
  37. package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
  38. package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
  39. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
  40. package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
  41. package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
  42. package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
  43. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
  44. package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
  45. package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
  46. package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
  47. package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
  48. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
  49. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
  50. package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
  51. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
  52. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
  53. package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
  54. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
  55. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
  56. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
  57. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
  58. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
  59. package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
  60. package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
  61. package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
  62. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
  63. package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
  64. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
  65. package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
  66. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
  67. package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
  68. package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
  69. package/dist/bigconsole/hooks/useFleetBreadcrumb.d.ts +8 -1
  70. package/dist/bigconsole/hooks/useFleetBreadcrumb.js +4 -1
  71. package/dist/bigconsole/hooks/useFleetChildren.d.ts +2 -0
  72. package/dist/bigconsole/hooks/useFleetChildren.js +10 -6
  73. package/dist/bigconsole/hooks/useFleetCopyActions.d.ts +23 -0
  74. package/dist/bigconsole/hooks/useFleetCopyActions.js +74 -0
  75. package/dist/bigconsole/hooks/useFleetFlags.d.ts +16 -0
  76. package/dist/bigconsole/hooks/useFleetFlags.js +79 -0
  77. package/dist/bigconsole/hooks/useOwnerBoundRun.d.ts +33 -0
  78. package/dist/bigconsole/hooks/useOwnerBoundRun.js +41 -0
  79. package/dist/bigconsole/pages/AdminPage.js +147 -146
  80. package/dist/bigconsole/pages/DashboardViewPage.js +292 -287
  81. package/dist/bigconsole/pages/DashboardsPage.js +647 -864
  82. package/dist/bigconsole/pages/DataParsersPage.js +5 -0
  83. package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
  84. package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
  85. package/dist/bigconsole/pages/DataSinksPage.js +210 -186
  86. package/dist/bigconsole/pages/InsightsPage.js +386 -383
  87. package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
  88. package/dist/bigconsole/pages/ParserViewPage.js +2 -0
  89. package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
  90. package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
  91. package/dist/bigconsole/pages/PipelinesPage.js +198 -165
  92. package/dist/bigconsole/pages/SettingsPage.js +160 -160
  93. package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
  94. package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
  95. package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
  96. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
  97. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
  98. package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
  99. package/dist/bigconsole/utils/dashboardGallery.js +93 -0
  100. package/dist/bigconsole/utils/fleetFlags.d.ts +22 -0
  101. package/dist/bigconsole/utils/fleetFlags.js +40 -0
  102. package/dist/bigconsole/utils/fleetTree.d.ts +9 -0
  103. package/dist/bigconsole/utils/fleetTree.js +5 -1
  104. package/dist/bigconsole/utils/statusTone.d.ts +17 -0
  105. package/dist/bigconsole/utils/statusTone.js +44 -0
  106. package/dist/generated/wspace-operations.d.ts +101 -0
  107. package/dist/generated/wspace-operations.js +609 -90
  108. package/dist/generated/wspace-types.js +6 -4
  109. package/package.json +4 -4
@@ -1,14 +1,15 @@
1
1
  import { REFERENCE_LINE_INTENTS as e, addReferenceLine as t, parseReferenceValue as n, removeReferenceLine as r, updateReferenceLine as i } from "./referenceLineDraft.js";
2
2
  import { memo as a, useCallback as o, useEffect as s, useState as c } from "react";
3
- import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
3
+ import { ThemedSelect as l } from "@burdenoff/fe-libs/ui";
4
+ import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
5
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
5
6
  // src/bigconsole/components/widgets/chart/ReferenceLinesEditor.tsx
6
- var f = "w-full min-w-0 px-3 py-2 text-sm text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg";
7
- function p({ id: e, value: t, onCommit: r, allowEmpty: i, placeholder: a }) {
7
+ var p = "w-full min-w-0 px-3 py-2 text-sm text-text-primary bg-bg-surface border border-border-default rounded-md focus:outline-none focus:ring-2 focus:ring-action-primary-bg";
8
+ function m({ id: e, value: t, onCommit: r, allowEmpty: i, placeholder: a }) {
8
9
  let [o, l] = c(t === void 0 ? "" : String(t));
9
10
  return s(() => {
10
11
  l((e) => n(e) === (t ?? null) ? e : t === void 0 ? "" : String(t));
11
- }, [t]), /* @__PURE__ */ u("input", {
12
+ }, [t]), /* @__PURE__ */ d("input", {
12
13
  id: e,
13
14
  type: "number",
14
15
  inputMode: "decimal",
@@ -21,98 +22,98 @@ function p({ id: e, value: t, onCommit: r, allowEmpty: i, placeholder: a }) {
21
22
  t === null ? i && e.target.value.trim() === "" && r(void 0) : r(t);
22
23
  },
23
24
  onBlur: () => l(t === void 0 ? "" : String(t)),
24
- className: f
25
+ className: p
25
26
  });
26
27
  }
27
- var m = a(function({ lines: n, onChange: a }) {
28
- let { t: s } = l(), c = o((e) => ({
28
+ var h = a(function({ lines: n, onChange: a }) {
29
+ let { t: s } = u(), c = o((e) => ({
29
30
  danger: s("bigconsole.widget.config.chart.referenceLines.color.danger", "Red (danger)"),
30
31
  warning: s("bigconsole.widget.config.chart.referenceLines.color.warning", "Amber (warning)"),
31
32
  success: s("bigconsole.widget.config.chart.referenceLines.color.success", "Green (success)"),
32
33
  info: s("bigconsole.widget.config.chart.referenceLines.color.info", "Blue (info)"),
33
34
  neutral: s("bigconsole.widget.config.chart.referenceLines.color.neutral", "Grey (neutral)")
34
- })[e], [s]), m = (e, t) => a(i(n, e, t)), h = n.length >= 10;
35
- return /* @__PURE__ */ d("div", {
35
+ })[e], [s]), h = (e, t) => a(i(n, e, t)), g = n.length >= 10;
36
+ return /* @__PURE__ */ f("div", {
36
37
  className: "min-w-0 space-y-3",
37
38
  "data-testid": "chart-reference-lines",
38
39
  children: [
39
- /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("p", {
40
+ /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
40
41
  className: "block text-sm font-medium text-text-primary",
41
42
  children: s("bigconsole.widget.config.chart.referenceLines.title", "Reference lines")
42
- }), /* @__PURE__ */ u("p", {
43
+ }), /* @__PURE__ */ d("p", {
43
44
  className: "text-xs text-text-secondary",
44
45
  children: s("bigconsole.widget.config.chart.referenceLines.help", "Draw a target, limit or threshold across the chart. Add an upper value to shade a band.")
45
46
  })] }),
46
47
  n.map((t, i) => {
47
- let o = `chart-ref-line-${i}`, l = i + 1;
48
- return /* @__PURE__ */ d("fieldset", {
48
+ let o = `chart-ref-line-${i}`, u = i + 1;
49
+ return /* @__PURE__ */ f("fieldset", {
49
50
  className: "min-w-0 space-y-2 rounded-md border border-[var(--color-border-subtle)] p-3",
50
51
  "data-testid": o,
51
52
  children: [
52
- /* @__PURE__ */ d("legend", {
53
+ /* @__PURE__ */ f("legend", {
53
54
  className: "px-1 text-xs font-medium text-text-secondary",
54
55
  children: [
55
- s("bigconsole.widget.config.chart.referenceLines.itemLegend", "Line {{number}}", { number: l }),
56
+ s("bigconsole.widget.config.chart.referenceLines.itemLegend", "Line {{number}}", { number: u }),
56
57
  t.axis === "x" ? ` · ${s("bigconsole.widget.config.chart.referenceLines.xAxis", "X axis")}` : "",
57
58
  t.relativeTo ? ` · ${t.relativeTo.mode === "percentChange" ? s("bigconsole.widget.config.chart.referenceLines.relativePercent", "% from {{field}}", { field: t.relativeTo.field }) : s("bigconsole.widget.config.chart.referenceLines.relativeDifference", "Difference from {{field}}", { field: t.relativeTo.field })}` : ""
58
59
  ]
59
60
  }),
60
- /* @__PURE__ */ d("div", {
61
+ /* @__PURE__ */ f("div", {
61
62
  className: "grid grid-cols-1 gap-2 sm:grid-cols-2",
62
63
  children: [
63
- /* @__PURE__ */ d("div", {
64
+ /* @__PURE__ */ f("div", {
64
65
  className: "min-w-0",
65
- children: [/* @__PURE__ */ u("label", {
66
+ children: [/* @__PURE__ */ d("label", {
66
67
  htmlFor: `${o}-value`,
67
68
  className: "mb-1 block text-xs font-medium text-text-primary",
68
69
  children: s("bigconsole.widget.config.chart.referenceLines.value", "Value")
69
- }), /* @__PURE__ */ u(p, {
70
+ }), /* @__PURE__ */ d(m, {
70
71
  id: `${o}-value`,
71
72
  value: t.value,
72
- onCommit: (e) => e !== void 0 && m(i, { value: e })
73
+ onCommit: (e) => e !== void 0 && h(i, { value: e })
73
74
  })]
74
75
  }),
75
- /* @__PURE__ */ d("div", {
76
+ /* @__PURE__ */ f("div", {
76
77
  className: "min-w-0",
77
- children: [/* @__PURE__ */ u("label", {
78
+ children: [/* @__PURE__ */ d("label", {
78
79
  htmlFor: `${o}-value2`,
79
80
  className: "mb-1 block text-xs font-medium text-text-primary",
80
81
  children: s("bigconsole.widget.config.chart.referenceLines.value2", "Band upper value")
81
- }), /* @__PURE__ */ u(p, {
82
+ }), /* @__PURE__ */ d(m, {
82
83
  id: `${o}-value2`,
83
84
  value: t.value2,
84
85
  allowEmpty: !0,
85
86
  placeholder: s("bigconsole.widget.config.chart.optionalPlaceholder", "Optional"),
86
- onCommit: (e) => m(i, { value2: e })
87
+ onCommit: (e) => h(i, { value2: e })
87
88
  })]
88
89
  }),
89
- /* @__PURE__ */ d("div", {
90
+ /* @__PURE__ */ f("div", {
90
91
  className: "min-w-0",
91
- children: [/* @__PURE__ */ u("label", {
92
+ children: [/* @__PURE__ */ d("label", {
92
93
  htmlFor: `${o}-label`,
93
94
  className: "mb-1 block text-xs font-medium text-text-primary",
94
95
  children: s("bigconsole.widget.config.chart.referenceLines.label", "Label")
95
- }), /* @__PURE__ */ u("input", {
96
+ }), /* @__PURE__ */ d("input", {
96
97
  id: `${o}-label`,
97
98
  type: "text",
98
99
  value: t.label ?? "",
99
100
  placeholder: s("bigconsole.widget.config.chart.referenceLines.labelPlaceholder", "e.g., 2% control limit"),
100
- onChange: (e) => m(i, { label: e.target.value === "" ? void 0 : e.target.value }),
101
- className: f
101
+ onChange: (e) => h(i, { label: e.target.value === "" ? void 0 : e.target.value }),
102
+ className: p
102
103
  })]
103
104
  }),
104
- /* @__PURE__ */ d("div", {
105
+ /* @__PURE__ */ f("div", {
105
106
  className: "min-w-0",
106
- children: [/* @__PURE__ */ u("label", {
107
+ children: [/* @__PURE__ */ d("label", {
107
108
  htmlFor: `${o}-color`,
108
109
  className: "mb-1 block text-xs font-medium text-text-primary",
109
110
  children: s("bigconsole.widget.config.chart.referenceLines.color", "Color")
110
- }), /* @__PURE__ */ u("select", {
111
+ }), /* @__PURE__ */ d(l, {
111
112
  id: `${o}-color`,
112
113
  value: t.color ?? "danger",
113
- onChange: (e) => m(i, { color: e.target.value }),
114
- className: f,
115
- children: e.map((e) => /* @__PURE__ */ u("option", {
114
+ onChange: (e) => h(i, { color: e.target.value }),
115
+ className: p,
116
+ children: e.map((e) => /* @__PURE__ */ d("option", {
116
117
  value: e,
117
118
  children: c(e)
118
119
  }, e))
@@ -120,43 +121,43 @@ var m = a(function({ lines: n, onChange: a }) {
120
121
  })
121
122
  ]
122
123
  }),
123
- /* @__PURE__ */ d("div", {
124
+ /* @__PURE__ */ f("div", {
124
125
  className: "flex flex-wrap items-center justify-between gap-2",
125
- children: [/* @__PURE__ */ d("label", {
126
+ children: [/* @__PURE__ */ f("label", {
126
127
  className: "flex items-center gap-2",
127
- children: [/* @__PURE__ */ u("input", {
128
+ children: [/* @__PURE__ */ d("input", {
128
129
  type: "checkbox",
129
130
  checked: t.dashed !== !1,
130
131
  disabled: t.value2 !== void 0,
131
- onChange: (e) => m(i, { dashed: e.target.checked }),
132
+ onChange: (e) => h(i, { dashed: e.target.checked }),
132
133
  className: "h-4 w-4 rounded border-border-default bg-bg-surface text-action-primary-bg focus:ring-action-primary-bg"
133
- }), /* @__PURE__ */ u("span", {
134
+ }), /* @__PURE__ */ d("span", {
134
135
  className: "text-sm text-text-primary",
135
136
  children: s("bigconsole.widget.config.chart.referenceLines.dashed", "Dashed")
136
137
  })]
137
- }), /* @__PURE__ */ u("button", {
138
+ }), /* @__PURE__ */ d("button", {
138
139
  type: "button",
139
140
  onClick: () => a(r(n, i)),
140
141
  className: "min-h-control-md rounded-button px-2 text-sm font-medium text-[var(--color-status-error-text)] hover:bg-status-error-bg-subtle focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
141
- "aria-label": s("bigconsole.widget.config.chart.referenceLines.removeAria", "Remove line {{number}}", { number: l }),
142
+ "aria-label": s("bigconsole.widget.config.chart.referenceLines.removeAria", "Remove line {{number}}", { number: u }),
142
143
  children: s("bigconsole.widget.config.chart.referenceLines.remove", "Remove")
143
144
  })]
144
145
  })
145
146
  ]
146
147
  }, o);
147
148
  }),
148
- /* @__PURE__ */ u("button", {
149
+ /* @__PURE__ */ d("button", {
149
150
  type: "button",
150
- disabled: h,
151
+ disabled: g,
151
152
  onClick: () => a(t(n)),
152
153
  className: "inline-flex min-h-control-md items-center rounded-button border border-border-default px-3 text-sm font-medium text-text-primary hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
153
154
  children: s("bigconsole.widget.config.chart.referenceLines.add", "+ Add reference line")
154
155
  }),
155
- h && /* @__PURE__ */ u("p", {
156
+ g && /* @__PURE__ */ d("p", {
156
157
  className: "text-xs text-text-secondary",
157
158
  children: s("bigconsole.widget.config.chart.referenceLines.limit", "A chart can have up to {{limit}} reference lines.", { limit: 10 })
158
159
  })
159
160
  ]
160
161
  });
161
162
  });
162
- export { m as ReferenceLinesEditor, m as default };
163
+ export { h as ReferenceLinesEditor, h as default };
@@ -44,7 +44,7 @@ var E = ({ comment: e, isReply: t, busy: n, memberNames: r, onResolve: a, onDele
44
44
  className: "mt-1.5 flex items-center gap-2",
45
45
  children: [
46
46
  d && /* @__PURE__ */ C("span", {
47
- className: "inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium bg-status-success-bg text-status-success-text",
47
+ className: "inline-flex items-center gap-1 rounded px-1.5 py-0.5 text-[10px] font-medium border border-[var(--color-status-success-border)] bg-[var(--color-status-success-bgSubtle)] text-[var(--color-status-success-text)]",
48
48
  children: [
49
49
  /* @__PURE__ */ S(p, { className: "h-3 w-3" }),
50
50
  " ",
@@ -1,9 +1,10 @@
1
1
  import e, { getEventStatusColor as t, getEventStatusIcon as n, getEventStatusLabel as r } from "../../../hooks/useEventLogs.js";
2
2
  import { memo as i, useCallback as a, useState as o } from "react";
3
- import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
3
+ import { ThemedSelect as s } from "@burdenoff/fe-libs/ui";
4
+ import { useI18n as c } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
5
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
5
6
  // src/bigconsole/components/widgets/event-logs/EventLogViewer.tsx
6
- var d = {
7
+ var f = {
7
8
  container: {
8
9
  display: "flex",
9
10
  flexDirection: "column",
@@ -153,41 +154,41 @@ var d = {
153
154
  color: "var(--color-text-secondary)"
154
155
  }
155
156
  };
156
- function f(e) {
157
+ function p(e) {
157
158
  try {
158
159
  return new URL(e).hostname;
159
160
  } catch {
160
161
  return e;
161
162
  }
162
163
  }
163
- function p(e, t) {
164
+ function m(e, t) {
164
165
  let n = new Date(e), r = (/* @__PURE__ */ new Date()).getTime() - n.getTime(), i = Math.floor(r / 6e4), a = Math.floor(i / 60), o = Math.floor(a / 24);
165
166
  return i < 1 ? t("bigconsole.widget.eventLog.time.justNow", "Just now") : i < 60 ? t("bigconsole.widget.eventLog.time.minutesAgo", "{{count}}m ago", { count: i }) : a < 24 ? t("bigconsole.widget.eventLog.time.hoursAgo", "{{count}}h ago", { count: a }) : o < 7 ? t("bigconsole.widget.eventLog.time.daysAgo", "{{count}}d ago", { count: o }) : n.toLocaleDateString();
166
167
  }
167
- var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpand: m }) {
168
- let { t: h } = s(), g = e.status === "FAILED";
169
- return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ u("tr", { children: [
170
- /* @__PURE__ */ l("td", {
171
- style: d.td,
172
- children: /* @__PURE__ */ l("button", {
168
+ var h = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpand: s }) {
169
+ let { t: h } = c(), g = e.status === "FAILED";
170
+ return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ d("tr", { children: [
171
+ /* @__PURE__ */ u("td", {
172
+ style: f.td,
173
+ children: /* @__PURE__ */ u("button", {
173
174
  type: "button",
174
- onClick: m,
175
+ onClick: s,
175
176
  "aria-expanded": o,
176
177
  "aria-label": o ? "Hide event payload" : "Show event payload",
177
- style: d.expandButton,
178
- children: /* @__PURE__ */ l("span", {
178
+ style: f.expandButton,
179
+ children: /* @__PURE__ */ u("span", {
179
180
  "aria-hidden": "true",
180
181
  children: o ? "▾" : "▸"
181
182
  })
182
183
  })
183
184
  }),
184
- /* @__PURE__ */ l("td", {
185
- style: d.td,
186
- children: /* @__PURE__ */ u("div", {
187
- style: d.statusCell,
188
- children: [/* @__PURE__ */ l("span", { children: n(e.status) }), /* @__PURE__ */ l("span", {
185
+ /* @__PURE__ */ u("td", {
186
+ style: f.td,
187
+ children: /* @__PURE__ */ d("div", {
188
+ style: f.statusCell,
189
+ children: [/* @__PURE__ */ u("span", { children: n(e.status) }), /* @__PURE__ */ u("span", {
189
190
  style: {
190
- ...d.statusBadge,
191
+ ...f.statusBadge,
191
192
  backgroundColor: `${t(e.status)}20`,
192
193
  color: t(e.status)
193
194
  },
@@ -195,12 +196,12 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
195
196
  })]
196
197
  })
197
198
  }),
198
- /* @__PURE__ */ u("td", {
199
- style: d.td,
200
- children: [/* @__PURE__ */ l("div", {
201
- style: d.eventName,
199
+ /* @__PURE__ */ d("td", {
200
+ style: f.td,
201
+ children: [/* @__PURE__ */ u("div", {
202
+ style: f.eventName,
202
203
  children: e.eventName
203
- }), e.actionName && /* @__PURE__ */ l("div", {
204
+ }), e.actionName && /* @__PURE__ */ u("div", {
204
205
  style: {
205
206
  fontSize: "11px",
206
207
  color: "var(--color-text-muted)"
@@ -208,22 +209,22 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
208
209
  children: h("bigconsole.widget.eventLog.actionLabel", "Action: {{action}}", { action: e.actionName ?? "" })
209
210
  })]
210
211
  }),
211
- /* @__PURE__ */ l("td", {
212
- style: d.td,
213
- children: /* @__PURE__ */ l("div", {
214
- style: d.timeAgo,
215
- children: p(e.createdAt, h)
212
+ /* @__PURE__ */ u("td", {
213
+ style: f.td,
214
+ children: /* @__PURE__ */ u("div", {
215
+ style: f.timeAgo,
216
+ children: m(e.createdAt, h)
216
217
  })
217
218
  }),
218
- /* @__PURE__ */ l("td", {
219
- style: d.td,
220
- children: e.webhookUrl ? /* @__PURE__ */ l("span", {
219
+ /* @__PURE__ */ u("td", {
220
+ style: f.td,
221
+ children: e.webhookUrl ? /* @__PURE__ */ u("span", {
221
222
  style: {
222
223
  fontSize: "12px",
223
224
  color: "var(--color-text-muted)"
224
225
  },
225
- children: f(e.webhookUrl)
226
- }) : /* @__PURE__ */ l("span", {
226
+ children: p(e.webhookUrl)
227
+ }) : /* @__PURE__ */ u("span", {
227
228
  style: {
228
229
  fontSize: "var(--font-size-body-sm)",
229
230
  color: "var(--color-text-muted)"
@@ -231,197 +232,197 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
231
232
  children: "—"
232
233
  })
233
234
  }),
234
- /* @__PURE__ */ l("td", {
235
- style: d.td,
236
- children: g && /* @__PURE__ */ l("button", {
235
+ /* @__PURE__ */ u("td", {
236
+ style: f.td,
237
+ children: g && /* @__PURE__ */ u("button", {
237
238
  type: "button",
238
239
  onClick: i,
239
240
  disabled: a,
240
- style: d.retryButton,
241
+ style: f.retryButton,
241
242
  children: a ? h("bigconsole.widget.eventLog.retrying", "Retrying…") : h("bigconsole.widget.eventLog.retry", "Retry")
242
243
  })
243
244
  })
244
- ] }), o && /* @__PURE__ */ l("tr", {
245
- style: d.detailRow,
246
- children: /* @__PURE__ */ l("td", {
245
+ ] }), o && /* @__PURE__ */ u("tr", {
246
+ style: f.detailRow,
247
+ children: /* @__PURE__ */ u("td", {
247
248
  colSpan: 6,
248
- style: d.td,
249
- children: /* @__PURE__ */ u("div", {
250
- style: d.detailContent,
249
+ style: f.td,
250
+ children: /* @__PURE__ */ d("div", {
251
+ style: f.detailContent,
251
252
  children: [
252
- /* @__PURE__ */ l("strong", { children: h("bigconsole.widget.eventLog.payload", "Payload:") }),
253
+ /* @__PURE__ */ u("strong", { children: h("bigconsole.widget.eventLog.payload", "Payload:") }),
253
254
  "\n",
254
255
  JSON.stringify(e.payload, null, 2),
255
- e.errorMessage && /* @__PURE__ */ u(c, { children: [
256
+ e.errorMessage && /* @__PURE__ */ d(l, { children: [
256
257
  "\n\n",
257
- /* @__PURE__ */ l("strong", {
258
+ /* @__PURE__ */ u("strong", {
258
259
  style: { color: "var(--color-status-error-text)" },
259
260
  children: h("bigconsole.widget.eventLog.error", "Error:")
260
261
  }),
261
262
  "\n",
262
263
  e.errorMessage
263
264
  ] }),
264
- e.responseCode && /* @__PURE__ */ u(c, { children: [
265
+ e.responseCode && /* @__PURE__ */ d(l, { children: [
265
266
  "\n\n",
266
- /* @__PURE__ */ l("strong", { children: h("bigconsole.widget.eventLog.responseCode", "Response Code:") }),
267
+ /* @__PURE__ */ u("strong", { children: h("bigconsole.widget.eventLog.responseCode", "Response Code:") }),
267
268
  " ",
268
269
  e.responseCode
269
270
  ] }),
270
271
  "\n\n",
271
- /* @__PURE__ */ l("strong", { children: h("bigconsole.widget.eventLog.attempts", "Attempts:") }),
272
+ /* @__PURE__ */ u("strong", { children: h("bigconsole.widget.eventLog.attempts", "Attempts:") }),
272
273
  " ",
273
274
  e.attempts
274
275
  ]
275
276
  })
276
277
  })
277
278
  })] });
278
- }), h = i(function({ dashboardId: t, widgetId: n, maxHeight: r = "400px", onRetrySuccess: i }) {
279
- let { t: f } = s(), [p, h] = o(""), [g, _] = o(/* @__PURE__ */ new Set()), [v, y] = o(null), { logs: b, loading: x, totalCount: S, hasMore: C, loadMore: w, retryDelivery: T, refetch: E } = e({
279
+ }), g = i(function({ dashboardId: t, widgetId: n, maxHeight: r = "400px", onRetrySuccess: i }) {
280
+ let { t: p } = c(), [m, g] = o(""), [_, v] = o(/* @__PURE__ */ new Set()), [y, b] = o(null), { logs: x, loading: S, totalCount: C, hasMore: w, loadMore: T, retryDelivery: E, refetch: D } = e({
280
281
  dashboardId: t,
281
282
  widgetId: n,
282
- status: p || void 0
283
- }), D = a(async (e) => {
284
- y(e.id);
285
- let t = await T(e.id);
286
- y(null), t && i?.(t);
287
- }, [T, i]), O = a((e) => {
288
- _((t) => {
283
+ status: m || void 0
284
+ }), O = a(async (e) => {
285
+ b(e.id);
286
+ let t = await E(e.id);
287
+ b(null), t && i?.(t);
288
+ }, [E, i]), k = a((e) => {
289
+ v((t) => {
289
290
  let n = new Set(t);
290
291
  return n.has(e) ? n.delete(e) : n.add(e), n;
291
292
  });
292
293
  }, []);
293
- return /* @__PURE__ */ u("div", {
294
- style: d.container,
294
+ return /* @__PURE__ */ d("div", {
295
+ style: f.container,
295
296
  "data-testid": "event-log-viewer",
296
- children: [/* @__PURE__ */ u("div", {
297
- style: d.header,
298
- children: [/* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("span", {
299
- style: d.totalCount,
300
- children: f("bigconsole.widget.eventLog.eventCount", "{{count}} events", { count: S })
301
- }) }), /* @__PURE__ */ u("div", {
302
- style: d.headerActions,
297
+ children: [/* @__PURE__ */ d("div", {
298
+ style: f.header,
299
+ children: [/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u("span", {
300
+ style: f.totalCount,
301
+ children: p("bigconsole.widget.eventLog.eventCount", "{{count}} events", { count: C })
302
+ }) }), /* @__PURE__ */ d("div", {
303
+ style: f.headerActions,
303
304
  children: [
304
- /* @__PURE__ */ l("label", {
305
+ /* @__PURE__ */ u("label", {
305
306
  htmlFor: "event-log-status-filter",
306
307
  className: "sr-only",
307
308
  children: "Filter events by status"
308
309
  }),
309
- /* @__PURE__ */ u("select", {
310
+ /* @__PURE__ */ d(s, {
310
311
  id: "event-log-status-filter",
311
- value: p,
312
- onChange: (e) => h(e.target.value),
313
- style: d.filterSelect,
312
+ value: m,
313
+ onChange: (e) => g(e.target.value),
314
+ style: f.filterSelect,
314
315
  children: [
315
- /* @__PURE__ */ l("option", {
316
+ /* @__PURE__ */ u("option", {
316
317
  value: "",
317
- children: f("bigconsole.widget.eventLog.filter.all", "All Status")
318
+ children: p("bigconsole.widget.eventLog.filter.all", "All Status")
318
319
  }),
319
- /* @__PURE__ */ l("option", {
320
+ /* @__PURE__ */ u("option", {
320
321
  value: "DELIVERED",
321
- children: f("bigconsole.widget.eventLog.filter.delivered", "Delivered")
322
+ children: p("bigconsole.widget.eventLog.filter.delivered", "Delivered")
322
323
  }),
323
- /* @__PURE__ */ l("option", {
324
+ /* @__PURE__ */ u("option", {
324
325
  value: "FAILED",
325
- children: f("bigconsole.widget.eventLog.filter.failed", "Failed")
326
+ children: p("bigconsole.widget.eventLog.filter.failed", "Failed")
326
327
  }),
327
- /* @__PURE__ */ l("option", {
328
+ /* @__PURE__ */ u("option", {
328
329
  value: "PENDING",
329
- children: f("bigconsole.widget.eventLog.filter.pending", "Pending")
330
+ children: p("bigconsole.widget.eventLog.filter.pending", "Pending")
330
331
  }),
331
- /* @__PURE__ */ l("option", {
332
+ /* @__PURE__ */ u("option", {
332
333
  value: "PROCESSING",
333
- children: f("bigconsole.widget.eventLog.filter.processing", "Processing")
334
+ children: p("bigconsole.widget.eventLog.filter.processing", "Processing")
334
335
  }),
335
- /* @__PURE__ */ l("option", {
336
+ /* @__PURE__ */ u("option", {
336
337
  value: "RETRYING",
337
- children: f("bigconsole.widget.eventLog.filter.retrying", "Retrying")
338
+ children: p("bigconsole.widget.eventLog.filter.retrying", "Retrying")
338
339
  }),
339
- /* @__PURE__ */ l("option", {
340
+ /* @__PURE__ */ u("option", {
340
341
  value: "IGNORED",
341
- children: f("bigconsole.widget.eventLog.filter.ignored", "Ignored")
342
+ children: p("bigconsole.widget.eventLog.filter.ignored", "Ignored")
342
343
  })
343
344
  ]
344
345
  }),
345
- /* @__PURE__ */ l("button", {
346
+ /* @__PURE__ */ u("button", {
346
347
  type: "button",
347
- onClick: () => E(),
348
- style: d.refreshButton,
349
- children: f("bigconsole.widget.eventLog.refresh", "Refresh")
348
+ onClick: () => D(),
349
+ style: f.refreshButton,
350
+ children: p("bigconsole.widget.eventLog.refresh", "Refresh")
350
351
  })
351
352
  ]
352
353
  })]
353
- }), x && b.length === 0 ? /* @__PURE__ */ l("div", {
354
- style: d.emptyState,
354
+ }), S && x.length === 0 ? /* @__PURE__ */ u("div", {
355
+ style: f.emptyState,
355
356
  role: "status",
356
- children: /* @__PURE__ */ l("p", {
357
- style: d.emptyTitle,
358
- children: f("bigconsole.widget.eventLog.loading", "Loading...")
357
+ children: /* @__PURE__ */ u("p", {
358
+ style: f.emptyTitle,
359
+ children: p("bigconsole.widget.eventLog.loading", "Loading...")
359
360
  })
360
- }) : b.length === 0 ? /* @__PURE__ */ u("div", {
361
- style: d.emptyState,
361
+ }) : x.length === 0 ? /* @__PURE__ */ d("div", {
362
+ style: f.emptyState,
362
363
  role: "status",
363
- children: [/* @__PURE__ */ l("p", {
364
- style: d.emptyTitle,
365
- children: f("bigconsole.widget.eventLog.emptyTitle", "No events found")
366
- }), /* @__PURE__ */ l("p", {
364
+ children: [/* @__PURE__ */ u("p", {
365
+ style: f.emptyTitle,
366
+ children: p("bigconsole.widget.eventLog.emptyTitle", "No events found")
367
+ }), /* @__PURE__ */ u("p", {
367
368
  style: {
368
369
  fontSize: "var(--font-size-body-sm)",
369
370
  marginTop: "8px"
370
371
  },
371
- children: f("bigconsole.widget.eventLog.emptyHint", "Events will appear here when actions are triggered.")
372
+ children: p("bigconsole.widget.eventLog.emptyHint", "Events will appear here when actions are triggered.")
372
373
  })]
373
- }) : /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("div", {
374
+ }) : /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", {
374
375
  style: {
375
- ...d.tableContainer,
376
+ ...f.tableContainer,
376
377
  maxHeight: r,
377
378
  overflowY: "auto"
378
379
  },
379
- children: /* @__PURE__ */ u("table", {
380
- style: d.table,
381
- children: [/* @__PURE__ */ l("thead", {
382
- style: d.tableHeader,
383
- children: /* @__PURE__ */ u("tr", { children: [
384
- /* @__PURE__ */ l("th", { style: {
385
- ...d.th,
380
+ children: /* @__PURE__ */ d("table", {
381
+ style: f.table,
382
+ children: [/* @__PURE__ */ u("thead", {
383
+ style: f.tableHeader,
384
+ children: /* @__PURE__ */ d("tr", { children: [
385
+ /* @__PURE__ */ u("th", { style: {
386
+ ...f.th,
386
387
  width: "40px"
387
388
  } }),
388
- /* @__PURE__ */ l("th", {
389
- style: d.th,
390
- children: f("bigconsole.widget.eventLog.column.status", "Status")
389
+ /* @__PURE__ */ u("th", {
390
+ style: f.th,
391
+ children: p("bigconsole.widget.eventLog.column.status", "Status")
391
392
  }),
392
- /* @__PURE__ */ l("th", {
393
- style: d.th,
394
- children: f("bigconsole.widget.eventLog.column.event", "Event")
393
+ /* @__PURE__ */ u("th", {
394
+ style: f.th,
395
+ children: p("bigconsole.widget.eventLog.column.event", "Event")
395
396
  }),
396
- /* @__PURE__ */ l("th", {
397
- style: d.th,
398
- children: f("bigconsole.widget.eventLog.column.time", "Time")
397
+ /* @__PURE__ */ u("th", {
398
+ style: f.th,
399
+ children: p("bigconsole.widget.eventLog.column.time", "Time")
399
400
  }),
400
- /* @__PURE__ */ l("th", {
401
- style: d.th,
402
- children: f("bigconsole.widget.eventLog.column.webhook", "Webhook")
401
+ /* @__PURE__ */ u("th", {
402
+ style: f.th,
403
+ children: p("bigconsole.widget.eventLog.column.webhook", "Webhook")
403
404
  }),
404
- /* @__PURE__ */ l("th", {
405
+ /* @__PURE__ */ u("th", {
405
406
  style: {
406
- ...d.th,
407
+ ...f.th,
407
408
  width: "80px"
408
409
  },
409
- children: f("bigconsole.widget.eventLog.column.action", "Action")
410
+ children: p("bigconsole.widget.eventLog.column.action", "Action")
410
411
  })
411
412
  ] })
412
- }), /* @__PURE__ */ l("tbody", { children: b.map((e) => /* @__PURE__ */ l(m, {
413
+ }), /* @__PURE__ */ u("tbody", { children: x.map((e) => /* @__PURE__ */ u(h, {
413
414
  log: e,
414
- onRetry: () => D(e),
415
- retrying: v === e.id,
416
- expanded: g.has(e.id),
417
- onToggleExpand: () => O(e.id)
415
+ onRetry: () => O(e),
416
+ retrying: y === e.id,
417
+ expanded: _.has(e.id),
418
+ onToggleExpand: () => k(e.id)
418
419
  }, e.id)) })]
419
420
  })
420
- }), C && /* @__PURE__ */ l("button", {
421
- onClick: w,
422
- style: d.loadMoreButton,
423
- children: f("bigconsole.widget.eventLog.loadMore", "Load More")
421
+ }), w && /* @__PURE__ */ u("button", {
422
+ onClick: T,
423
+ style: f.loadMoreButton,
424
+ children: p("bigconsole.widget.eventLog.loadMore", "Load More")
424
425
  })] })]
425
426
  });
426
427
  });
427
- export { h as EventLogViewer, h as default };
428
+ export { g as EventLogViewer, g as default };