@burdenoff/microfe-bigconsole 2026.1012.4 → 2026.1012.5

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 (129) hide show
  1. package/dist/bigconsole/BigConsoleRoutes.js +149 -140
  2. package/dist/bigconsole/assistant/assistantProduct.js +4 -1
  3. package/dist/bigconsole/assistant/displayCopy.d.ts +32 -0
  4. package/dist/bigconsole/assistant/pageContext.d.ts +14 -0
  5. package/dist/bigconsole/assistant/pageContext.js +6 -1
  6. package/dist/bigconsole/assistant/pageControls.d.ts +81 -0
  7. package/dist/bigconsole/assistant/pageControls.js +169 -0
  8. package/dist/bigconsole/assistant/previewControl.d.ts +16 -0
  9. package/dist/bigconsole/assistant/previewControl.js +10 -0
  10. package/dist/bigconsole/assistant/recordAdapters.js +27 -26
  11. package/dist/bigconsole/assistant/usePreviewControl.d.ts +2 -0
  12. package/dist/bigconsole/assistant/usePreviewControl.js +20 -0
  13. package/dist/bigconsole/components/builder/inspector/AppearanceSection.js +9 -9
  14. package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +31 -31
  15. package/dist/bigconsole/components/common/SortBySelect.d.ts +11 -0
  16. package/dist/bigconsole/components/common/SortBySelect.js +29 -0
  17. package/dist/bigconsole/components/common/index.d.ts +1 -0
  18. package/dist/bigconsole/components/common/index.js +1 -0
  19. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +44 -44
  20. package/dist/bigconsole/components/dashboard/DashboardCanvas.js +36 -36
  21. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +59 -59
  22. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +15 -15
  23. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
  24. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +41 -41
  25. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
  26. package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +34 -34
  27. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +153 -153
  28. package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +21 -21
  29. package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
  30. package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +134 -134
  31. package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +101 -101
  32. package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +31 -31
  33. package/dist/bigconsole/components/dashboard/TemplateLayoutPreview.js +15 -15
  34. package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
  35. package/dist/bigconsole/components/dashboard/WidgetPalette.js +46 -46
  36. package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +37 -37
  37. package/dist/bigconsole/components/datasink/AlertRuleEditor.js +66 -66
  38. package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
  39. package/dist/bigconsole/components/datasink/DataSinkCard.js +51 -50
  40. package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
  41. package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
  42. package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +47 -47
  43. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +91 -91
  44. package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
  45. package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
  46. package/dist/bigconsole/components/parser/ImportParserDialog.js +120 -120
  47. package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
  48. package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +10 -10
  49. package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +77 -76
  50. package/dist/bigconsole/components/preview/AiPreviewPanel.js +96 -95
  51. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +4 -4
  52. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +93 -93
  53. package/dist/bigconsole/components/widgets/PropertiesPanel.js +507 -499
  54. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +14 -14
  55. package/dist/bigconsole/components/widgets/advanced/AdvancedWidgets.js +68 -67
  56. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.d.ts +7 -0
  57. package/dist/bigconsole/components/widgets/advanced/boxPlotDescription.js +12 -0
  58. package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +4 -4
  59. package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
  60. package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
  61. package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
  62. package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
  63. package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
  64. package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
  65. package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +4 -4
  66. package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
  67. package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
  68. package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
  69. package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
  70. package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
  71. package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
  72. package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
  73. package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
  74. package/dist/bigconsole/components/workflow/WorkflowOpenGuard.js +15 -15
  75. package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +15 -15
  76. package/dist/bigconsole/constants/backendErrors.js +94 -0
  77. package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
  78. package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +67 -67
  79. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.d.ts +14 -0
  80. package/dist/bigconsole/hooks/useDashboardLayoutBaseline.js +32 -0
  81. package/dist/bigconsole/hooks/useDataSinkAlerts.d.ts +23 -0
  82. package/dist/bigconsole/hooks/useDataSinkAlerts.js +138 -113
  83. package/dist/bigconsole/hooks/useDrilldown.js +3 -3
  84. package/dist/bigconsole/hooks/useGlobalFilters.js +3 -3
  85. package/dist/bigconsole/pages/AdminPage.js +130 -130
  86. package/dist/bigconsole/pages/DashboardBuilderPage.js +72 -60
  87. package/dist/bigconsole/pages/DashboardViewPage.js +244 -221
  88. package/dist/bigconsole/pages/DashboardsPage.js +269 -221
  89. package/dist/bigconsole/pages/DataParsersPage.js +180 -157
  90. package/dist/bigconsole/pages/DataSinkAlertsPage.js +62 -55
  91. package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -234
  92. package/dist/bigconsole/pages/DataSinkViewPage.js +1 -1
  93. package/dist/bigconsole/pages/DataSinksPage.js +335 -299
  94. package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
  95. package/dist/bigconsole/pages/InsightsPage.js +279 -265
  96. package/dist/bigconsole/pages/OverviewPage.js +47 -47
  97. package/dist/bigconsole/pages/ParserBuilderPage.js +229 -213
  98. package/dist/bigconsole/pages/ParserViewPage.js +97 -97
  99. package/dist/bigconsole/pages/PipelineBuilderPage.js +256 -214
  100. package/dist/bigconsole/pages/PipelineViewPage.js +146 -146
  101. package/dist/bigconsole/pages/PipelinesPage.js +107 -88
  102. package/dist/bigconsole/pages/SettingsPage.js +179 -173
  103. package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
  104. package/dist/bigconsole/pages/WorkflowViewPage.js +1 -1
  105. package/dist/bigconsole/pages/WorkflowsPage.js +141 -141
  106. package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +12 -12
  107. package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
  108. package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +69 -69
  109. package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
  110. package/dist/bigconsole/store/widgetStore.d.ts +12 -0
  111. package/dist/bigconsole/store/widgetStore.js +3 -1
  112. package/dist/bigconsole/utils/backendError.d.ts +18 -0
  113. package/dist/bigconsole/utils/backendError.js +42 -0
  114. package/dist/bigconsole/utils/dashboardList.d.ts +28 -0
  115. package/dist/bigconsole/utils/dashboardList.js +15 -0
  116. package/dist/bigconsole/utils/dataSinkList.d.ts +15 -0
  117. package/dist/bigconsole/utils/dataSinkList.js +15 -0
  118. package/dist/bigconsole/utils/formDirty.d.ts +82 -0
  119. package/dist/bigconsole/utils/formDirty.js +21 -0
  120. package/dist/bigconsole/utils/insightsDraft.d.ts +29 -0
  121. package/dist/bigconsole/utils/insightsDraft.js +8 -0
  122. package/dist/bigconsole/utils/layoutBaseline.d.ts +130 -0
  123. package/dist/bigconsole/utils/layoutBaseline.js +96 -0
  124. package/dist/bigconsole/utils/listSort.d.ts +80 -0
  125. package/dist/bigconsole/utils/listSort.js +85 -0
  126. package/dist/bigconsole/utils/widgetFormDirty.d.ts +16 -0
  127. package/dist/bigconsole/utils/widgetFormDirty.js +13 -0
  128. package/dist/bigconsole/workflowOpen.js +15 -14
  129. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
1
  import e from "../../../hooks/useWidgetComments.js";
2
2
  import { useCallback as t, useEffect as n, useRef as r, useState as i } from "react";
3
3
  import { Check as a, CornerDownRight as o, Loader2 as s, MessageSquare as c, RotateCcw as l, Send as u, Trash2 as d, X as f } from "lucide-react";
4
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
5
- import { useI18n as h } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
4
+ import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
5
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
6
6
  //#region src/bigconsole/components/widgets/comments/WidgetComments.tsx
7
7
  function g(e, t) {
8
8
  return e("bigconsole.widget.comments.authorLabel", "User {{id}}", { id: t.slice(0, 6) });
@@ -15,62 +15,62 @@ function _(e) {
15
15
  }).format(t);
16
16
  }
17
17
  var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply: s }) => {
18
- let { t: c } = h(), u = !!e.resolvedAt, f = e.content.text ?? e.content.markdown ?? "";
19
- return /* @__PURE__ */ p("div", {
18
+ let { t: c } = p(), u = !!e.resolvedAt, f = e.content.text ?? e.content.markdown ?? "";
19
+ return /* @__PURE__ */ m("div", {
20
20
  className: t ? "pl-6" : "",
21
- children: /* @__PURE__ */ m("div", {
21
+ children: /* @__PURE__ */ h("div", {
22
22
  className: "rounded-md border border-[var(--color-border-default)] bg-bg-surface p-2.5",
23
23
  children: [
24
- /* @__PURE__ */ m("div", {
24
+ /* @__PURE__ */ h("div", {
25
25
  className: "flex items-center justify-between gap-2",
26
- children: [/* @__PURE__ */ p("span", {
26
+ children: [/* @__PURE__ */ m("span", {
27
27
  className: "text-xs font-medium text-text-primary",
28
28
  children: g(c, e.authorId)
29
- }), /* @__PURE__ */ p("span", {
29
+ }), /* @__PURE__ */ m("span", {
30
30
  className: "text-[10px] text-text-muted tabular-nums",
31
31
  children: _(e.createdAt)
32
32
  })]
33
33
  }),
34
- /* @__PURE__ */ p("p", {
34
+ /* @__PURE__ */ m("p", {
35
35
  className: "mt-1 whitespace-pre-wrap break-words text-sm text-text-secondary",
36
36
  children: f
37
37
  }),
38
- /* @__PURE__ */ m("div", {
38
+ /* @__PURE__ */ h("div", {
39
39
  className: "mt-1.5 flex items-center gap-2",
40
40
  children: [
41
- u && /* @__PURE__ */ m("span", {
41
+ u && /* @__PURE__ */ h("span", {
42
42
  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",
43
43
  children: [
44
- /* @__PURE__ */ p(a, { className: "h-3 w-3" }),
44
+ /* @__PURE__ */ m(a, { className: "h-3 w-3" }),
45
45
  " ",
46
46
  c("bigconsole.widget.comments.resolvedBadge", "Resolved")
47
47
  ]
48
48
  }),
49
- s && /* @__PURE__ */ m("button", {
49
+ s && /* @__PURE__ */ h("button", {
50
50
  type: "button",
51
51
  disabled: n,
52
52
  onClick: () => s(e.id),
53
53
  className: "inline-flex items-center gap-1 text-[11px] text-text-muted hover:text-text-primary disabled:opacity-50",
54
54
  children: [
55
- /* @__PURE__ */ p(o, { className: "h-3 w-3" }),
55
+ /* @__PURE__ */ m(o, { className: "h-3 w-3" }),
56
56
  " ",
57
57
  c("bigconsole.widget.comments.reply", "Reply")
58
58
  ]
59
59
  }),
60
- /* @__PURE__ */ m("button", {
60
+ /* @__PURE__ */ h("button", {
61
61
  type: "button",
62
62
  disabled: n,
63
63
  onClick: () => r(e.id, !u),
64
64
  className: "inline-flex items-center gap-1 text-[11px] text-text-muted hover:text-text-primary disabled:opacity-50",
65
- children: [p(u ? l : a, { className: "h-3 w-3" }), u ? c("bigconsole.widget.comments.reopen", "Reopen") : c("bigconsole.widget.comments.resolve", "Resolve")]
65
+ children: [m(u ? l : a, { className: "h-3 w-3" }), u ? c("bigconsole.widget.comments.reopen", "Reopen") : c("bigconsole.widget.comments.resolve", "Resolve")]
66
66
  }),
67
- /* @__PURE__ */ m("button", {
67
+ /* @__PURE__ */ h("button", {
68
68
  type: "button",
69
69
  disabled: n,
70
70
  onClick: () => i(e.id),
71
71
  className: "inline-flex items-center gap-1 text-[11px] text-status-error-text hover:opacity-80 disabled:opacity-50",
72
72
  children: [
73
- /* @__PURE__ */ p(d, { className: "h-3 w-3" }),
73
+ /* @__PURE__ */ m(d, { className: "h-3 w-3" }),
74
74
  " ",
75
75
  c("bigconsole.widget.comments.delete", "Delete")
76
76
  ]
@@ -81,13 +81,13 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
81
81
  })
82
82
  });
83
83
  }, y = ({ placeholder: e, busy: t, autoFocus: n, onSubmit: r, onCancel: a }) => {
84
- let { t: o } = h(), [c, l] = i(""), d = async () => {
84
+ let { t: o } = p(), [c, l] = i(""), d = async () => {
85
85
  let e = c.trim();
86
86
  e && await r(e) !== !1 && l("");
87
87
  };
88
- return /* @__PURE__ */ m("div", {
88
+ return /* @__PURE__ */ h("div", {
89
89
  className: "flex items-end gap-2",
90
- children: [/* @__PURE__ */ p("textarea", {
90
+ children: [/* @__PURE__ */ m("textarea", {
91
91
  autoFocus: n,
92
92
  value: c,
93
93
  onChange: (e) => l(e.target.value),
@@ -97,26 +97,26 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
97
97
  rows: 2,
98
98
  placeholder: e,
99
99
  className: "flex-1 resize-none rounded-md border border-[var(--color-border-default)] bg-bg-surface px-2.5 py-1.5 text-sm text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-action-primary-bg"
100
- }), /* @__PURE__ */ m("div", {
100
+ }), /* @__PURE__ */ h("div", {
101
101
  className: "flex flex-col gap-1",
102
- children: [/* @__PURE__ */ p("button", {
102
+ children: [/* @__PURE__ */ m("button", {
103
103
  type: "button",
104
104
  disabled: t || !c.trim(),
105
105
  onClick: () => void d(),
106
106
  title: o("bigconsole.widget.comments.postTitle", "Post (⌘/Ctrl + Enter)"),
107
107
  className: "inline-flex items-center justify-center rounded-md bg-action-primary-bg p-1.5 text-action-primary-text hover:opacity-90 disabled:opacity-50",
108
- children: t ? /* @__PURE__ */ p(s, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ p(u, { className: "h-4 w-4" })
109
- }), a && /* @__PURE__ */ p("button", {
108
+ children: t ? /* @__PURE__ */ m(s, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ m(u, { className: "h-4 w-4" })
109
+ }), a && /* @__PURE__ */ m("button", {
110
110
  type: "button",
111
111
  onClick: a,
112
112
  className: "inline-flex items-center justify-center rounded-md border border-[var(--color-border-default)] p-1.5 text-text-muted hover:text-text-primary",
113
113
  title: o("bigconsole.widget.comments.cancelReplyTitle", "Cancel reply"),
114
- children: /* @__PURE__ */ p(f, { className: "h-4 w-4" })
114
+ children: /* @__PURE__ */ m(f, { className: "h-4 w-4" })
115
115
  })]
116
116
  })]
117
117
  });
118
118
  }, b = ({ widgetId: a, onClose: o }) => {
119
- let { t: l } = h(), { threads: u, count: d, loading: g, error: _, mutating: b, addComment: x, resolveComment: S, deleteComment: C } = e(a), [w, T] = i(null), [E, D] = i(!1), O = r(null);
119
+ let { t: l } = p(), { threads: u, count: d, loading: g, error: _, mutating: b, addComment: x, resolveComment: S, deleteComment: C } = e(a), [w, T] = i(null), [E, D] = i(!1), O = r(null);
120
120
  n(() => {
121
121
  if (!E) return;
122
122
  let e = O.current;
@@ -129,7 +129,7 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
129
129
  let n = await x(e, t);
130
130
  return n && (t ? T(null) : D(!0)), n;
131
131
  }, [x]);
132
- return /* @__PURE__ */ m("div", {
132
+ return /* @__PURE__ */ h("div", {
133
133
  className: "absolute inset-0 z-40 flex flex-col bg-bg-surface/98 backdrop-blur-sm",
134
134
  role: "dialog",
135
135
  "aria-label": l("bigconsole.widget.comments.dialogAriaLabel", "Widget comments"),
@@ -139,66 +139,66 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
139
139
  e.key === "Escape" && (e.stopPropagation(), o());
140
140
  },
141
141
  children: [
142
- /* @__PURE__ */ m("div", {
142
+ /* @__PURE__ */ h("div", {
143
143
  className: "flex min-w-0 items-center justify-between gap-2 border-b border-[var(--color-border-subtle)] bg-bg-surface px-3 py-2 sm:px-4",
144
- children: [/* @__PURE__ */ m("h3", {
144
+ children: [/* @__PURE__ */ h("h3", {
145
145
  className: "flex min-w-0 items-center gap-2 text-sm font-semibold leading-tight tracking-tight text-text-primary",
146
146
  children: [
147
- /* @__PURE__ */ p(c, {
147
+ /* @__PURE__ */ m(c, {
148
148
  "aria-hidden": "true",
149
149
  className: "h-icon-sm w-icon-sm shrink-0 text-text-secondary"
150
150
  }),
151
151
  l("bigconsole.widget.comments.title", "Comments"),
152
- /* @__PURE__ */ p("span", {
152
+ /* @__PURE__ */ m("span", {
153
153
  className: "rounded-full bg-bg-sunken px-1.5 py-0.5 text-[10px] text-text-secondary tabular-nums",
154
154
  children: d
155
155
  })
156
156
  ]
157
- }), /* @__PURE__ */ p("button", {
157
+ }), /* @__PURE__ */ m("button", {
158
158
  type: "button",
159
159
  onClick: o,
160
160
  "aria-label": l("bigconsole.widget.comments.closeAriaLabel", "Close comments"),
161
161
  className: "shrink-0 rounded-button p-1 text-text-muted hover:bg-bg-sunken hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-bg-surface",
162
- children: /* @__PURE__ */ p(f, { className: "h-4 w-4" })
162
+ children: /* @__PURE__ */ m(f, { className: "h-4 w-4" })
163
163
  })]
164
164
  }),
165
- /* @__PURE__ */ m("div", {
165
+ /* @__PURE__ */ h("div", {
166
166
  ref: O,
167
167
  className: "flex-1 space-y-3 overflow-auto p-3",
168
168
  children: [
169
- g && u.length === 0 && /* @__PURE__ */ p("div", {
169
+ g && u.length === 0 && /* @__PURE__ */ m("div", {
170
170
  className: "flex items-center justify-center py-8 text-text-muted",
171
- children: /* @__PURE__ */ p(s, { className: "h-5 w-5 animate-spin" })
171
+ children: /* @__PURE__ */ m(s, { className: "h-5 w-5 animate-spin" })
172
172
  }),
173
- _ && !g && /* @__PURE__ */ p("p", {
173
+ _ && !g && /* @__PURE__ */ m("p", {
174
174
  role: "alert",
175
175
  className: "rounded-input border border-[var(--color-status-error-border)] bg-status-error-bg-subtle px-2.5 py-2 text-xs text-[var(--color-status-error-text)]",
176
176
  children: l("bigconsole.widget.comments.loadError", "Couldn’t load comments.")
177
177
  }),
178
- !g && !_ && u.length === 0 && /* @__PURE__ */ p("p", {
178
+ !g && !_ && u.length === 0 && /* @__PURE__ */ m("p", {
179
179
  className: "py-8 text-center text-sm text-text-muted",
180
180
  children: l("bigconsole.widget.comments.empty", "No comments yet. Start the conversation.")
181
181
  }),
182
- u.map(({ comment: e, replies: t }) => /* @__PURE__ */ m("div", {
182
+ u.map(({ comment: e, replies: t }) => /* @__PURE__ */ h("div", {
183
183
  className: "space-y-2",
184
184
  children: [
185
- /* @__PURE__ */ p(v, {
185
+ /* @__PURE__ */ m(v, {
186
186
  comment: e,
187
187
  busy: b,
188
188
  onResolve: (e, t) => void S(e, t),
189
189
  onDelete: (e) => void C(e),
190
190
  onReply: (e) => T((t) => t === e ? null : e)
191
191
  }),
192
- t.map((e) => /* @__PURE__ */ p(v, {
192
+ t.map((e) => /* @__PURE__ */ m(v, {
193
193
  comment: e,
194
194
  isReply: !0,
195
195
  busy: b,
196
196
  onResolve: (e, t) => void S(e, t),
197
197
  onDelete: (e) => void C(e)
198
198
  }, e.id)),
199
- w === e.id && /* @__PURE__ */ p("div", {
199
+ w === e.id && /* @__PURE__ */ m("div", {
200
200
  className: "pl-6",
201
- children: /* @__PURE__ */ p(y, {
201
+ children: /* @__PURE__ */ m(y, {
202
202
  placeholder: l("bigconsole.widget.comments.replyPlaceholder", "Write a reply…"),
203
203
  busy: b,
204
204
  autoFocus: !0,
@@ -210,9 +210,9 @@ var v = ({ comment: e, isReply: t, busy: n, onResolve: r, onDelete: i, onReply:
210
210
  }, e.id))
211
211
  ]
212
212
  }),
213
- /* @__PURE__ */ p("div", {
213
+ /* @__PURE__ */ m("div", {
214
214
  className: "border-t border-[var(--color-border-default)] p-3",
215
- children: /* @__PURE__ */ p(y, {
215
+ children: /* @__PURE__ */ m(y, {
216
216
  placeholder: l("bigconsole.widget.comments.addPlaceholder", "Add a comment…"),
217
217
  busy: b,
218
218
  onSubmit: (e) => k(e)
@@ -1,7 +1,7 @@
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 { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
4
- import { useI18n as u } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
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";
5
5
  //#region src/bigconsole/components/widgets/event-logs/EventLogViewer.tsx
6
6
  var d = {
7
7
  container: {
@@ -165,27 +165,27 @@ function p(e, t) {
165
165
  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
166
  }
167
167
  var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpand: m }) {
168
- let { t: h } = u(), g = e.status === "FAILED";
169
- return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ l("tr", { children: [
170
- /* @__PURE__ */ c("td", {
168
+ let { t: h } = s(), g = e.status === "FAILED";
169
+ return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ u("tr", { children: [
170
+ /* @__PURE__ */ l("td", {
171
171
  style: d.td,
172
- children: /* @__PURE__ */ c("button", {
172
+ children: /* @__PURE__ */ l("button", {
173
173
  type: "button",
174
174
  onClick: m,
175
175
  "aria-expanded": o,
176
176
  "aria-label": o ? "Hide event payload" : "Show event payload",
177
177
  style: d.expandButton,
178
- children: /* @__PURE__ */ c("span", {
178
+ children: /* @__PURE__ */ l("span", {
179
179
  "aria-hidden": "true",
180
180
  children: o ? "▾" : "▸"
181
181
  })
182
182
  })
183
183
  }),
184
- /* @__PURE__ */ c("td", {
184
+ /* @__PURE__ */ l("td", {
185
185
  style: d.td,
186
- children: /* @__PURE__ */ l("div", {
186
+ children: /* @__PURE__ */ u("div", {
187
187
  style: d.statusCell,
188
- children: [/* @__PURE__ */ c("span", { children: n(e.status) }), /* @__PURE__ */ c("span", {
188
+ children: [/* @__PURE__ */ l("span", { children: n(e.status) }), /* @__PURE__ */ l("span", {
189
189
  style: {
190
190
  ...d.statusBadge,
191
191
  backgroundColor: `${t(e.status)}20`,
@@ -195,12 +195,12 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
195
195
  })]
196
196
  })
197
197
  }),
198
- /* @__PURE__ */ l("td", {
198
+ /* @__PURE__ */ u("td", {
199
199
  style: d.td,
200
- children: [/* @__PURE__ */ c("div", {
200
+ children: [/* @__PURE__ */ l("div", {
201
201
  style: d.eventName,
202
202
  children: e.eventName
203
- }), e.actionName && /* @__PURE__ */ c("div", {
203
+ }), e.actionName && /* @__PURE__ */ l("div", {
204
204
  style: {
205
205
  fontSize: "11px",
206
206
  color: "var(--color-text-muted)"
@@ -208,22 +208,22 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
208
208
  children: h("bigconsole.widget.eventLog.actionLabel", "Action: {{action}}", { action: e.actionName ?? "" })
209
209
  })]
210
210
  }),
211
- /* @__PURE__ */ c("td", {
211
+ /* @__PURE__ */ l("td", {
212
212
  style: d.td,
213
- children: /* @__PURE__ */ c("div", {
213
+ children: /* @__PURE__ */ l("div", {
214
214
  style: d.timeAgo,
215
215
  children: p(e.createdAt, h)
216
216
  })
217
217
  }),
218
- /* @__PURE__ */ c("td", {
218
+ /* @__PURE__ */ l("td", {
219
219
  style: d.td,
220
- children: e.webhookUrl ? /* @__PURE__ */ c("span", {
220
+ children: e.webhookUrl ? /* @__PURE__ */ l("span", {
221
221
  style: {
222
222
  fontSize: "12px",
223
223
  color: "var(--color-text-muted)"
224
224
  },
225
225
  children: f(e.webhookUrl)
226
- }) : /* @__PURE__ */ c("span", {
226
+ }) : /* @__PURE__ */ l("span", {
227
227
  style: {
228
228
  fontSize: "var(--font-size-body-sm)",
229
229
  color: "var(--color-text-muted)"
@@ -231,9 +231,9 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
231
231
  children: "—"
232
232
  })
233
233
  }),
234
- /* @__PURE__ */ c("td", {
234
+ /* @__PURE__ */ l("td", {
235
235
  style: d.td,
236
- children: g && /* @__PURE__ */ c("button", {
236
+ children: g && /* @__PURE__ */ l("button", {
237
237
  type: "button",
238
238
  onClick: i,
239
239
  disabled: a,
@@ -241,34 +241,34 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
241
241
  children: a ? h("bigconsole.widget.eventLog.retrying", "Retrying…") : h("bigconsole.widget.eventLog.retry", "Retry")
242
242
  })
243
243
  })
244
- ] }), o && /* @__PURE__ */ c("tr", {
244
+ ] }), o && /* @__PURE__ */ l("tr", {
245
245
  style: d.detailRow,
246
- children: /* @__PURE__ */ c("td", {
246
+ children: /* @__PURE__ */ l("td", {
247
247
  colSpan: 6,
248
248
  style: d.td,
249
- children: /* @__PURE__ */ l("div", {
249
+ children: /* @__PURE__ */ u("div", {
250
250
  style: d.detailContent,
251
251
  children: [
252
- /* @__PURE__ */ c("strong", { children: h("bigconsole.widget.eventLog.payload", "Payload:") }),
252
+ /* @__PURE__ */ l("strong", { children: h("bigconsole.widget.eventLog.payload", "Payload:") }),
253
253
  "\n",
254
254
  JSON.stringify(e.payload, null, 2),
255
- e.errorMessage && /* @__PURE__ */ l(s, { children: [
255
+ e.errorMessage && /* @__PURE__ */ u(c, { children: [
256
256
  "\n\n",
257
- /* @__PURE__ */ c("strong", {
257
+ /* @__PURE__ */ l("strong", {
258
258
  style: { color: "var(--color-status-error-text)" },
259
259
  children: h("bigconsole.widget.eventLog.error", "Error:")
260
260
  }),
261
261
  "\n",
262
262
  e.errorMessage
263
263
  ] }),
264
- e.responseCode && /* @__PURE__ */ l(s, { children: [
264
+ e.responseCode && /* @__PURE__ */ u(c, { children: [
265
265
  "\n\n",
266
- /* @__PURE__ */ c("strong", { children: h("bigconsole.widget.eventLog.responseCode", "Response Code:") }),
266
+ /* @__PURE__ */ l("strong", { children: h("bigconsole.widget.eventLog.responseCode", "Response Code:") }),
267
267
  " ",
268
268
  e.responseCode
269
269
  ] }),
270
270
  "\n\n",
271
- /* @__PURE__ */ c("strong", { children: h("bigconsole.widget.eventLog.attempts", "Attempts:") }),
271
+ /* @__PURE__ */ l("strong", { children: h("bigconsole.widget.eventLog.attempts", "Attempts:") }),
272
272
  " ",
273
273
  e.attempts
274
274
  ]
@@ -276,7 +276,7 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
276
276
  })
277
277
  })] });
278
278
  }), h = i(function({ dashboardId: t, widgetId: n, maxHeight: r = "400px", onRetrySuccess: i }) {
279
- let { t: f } = u(), [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
+ 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({
280
280
  dashboardId: t,
281
281
  widgetId: n,
282
282
  status: p || void 0
@@ -290,59 +290,59 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
290
290
  return n.has(e) ? n.delete(e) : n.add(e), n;
291
291
  });
292
292
  }, []);
293
- return /* @__PURE__ */ l("div", {
293
+ return /* @__PURE__ */ u("div", {
294
294
  style: d.container,
295
295
  "data-testid": "event-log-viewer",
296
- children: [/* @__PURE__ */ l("div", {
296
+ children: [/* @__PURE__ */ u("div", {
297
297
  style: d.header,
298
- children: [/* @__PURE__ */ c("div", { children: /* @__PURE__ */ c("span", {
298
+ children: [/* @__PURE__ */ l("div", { children: /* @__PURE__ */ l("span", {
299
299
  style: d.totalCount,
300
300
  children: f("bigconsole.widget.eventLog.eventCount", "{{count}} events", { count: S })
301
- }) }), /* @__PURE__ */ l("div", {
301
+ }) }), /* @__PURE__ */ u("div", {
302
302
  style: d.headerActions,
303
303
  children: [
304
- /* @__PURE__ */ c("label", {
304
+ /* @__PURE__ */ l("label", {
305
305
  htmlFor: "event-log-status-filter",
306
306
  className: "sr-only",
307
307
  children: "Filter events by status"
308
308
  }),
309
- /* @__PURE__ */ l("select", {
309
+ /* @__PURE__ */ u("select", {
310
310
  id: "event-log-status-filter",
311
311
  value: p,
312
312
  onChange: (e) => h(e.target.value),
313
313
  style: d.filterSelect,
314
314
  children: [
315
- /* @__PURE__ */ c("option", {
315
+ /* @__PURE__ */ l("option", {
316
316
  value: "",
317
317
  children: f("bigconsole.widget.eventLog.filter.all", "All Status")
318
318
  }),
319
- /* @__PURE__ */ c("option", {
319
+ /* @__PURE__ */ l("option", {
320
320
  value: "DELIVERED",
321
321
  children: f("bigconsole.widget.eventLog.filter.delivered", "Delivered")
322
322
  }),
323
- /* @__PURE__ */ c("option", {
323
+ /* @__PURE__ */ l("option", {
324
324
  value: "FAILED",
325
325
  children: f("bigconsole.widget.eventLog.filter.failed", "Failed")
326
326
  }),
327
- /* @__PURE__ */ c("option", {
327
+ /* @__PURE__ */ l("option", {
328
328
  value: "PENDING",
329
329
  children: f("bigconsole.widget.eventLog.filter.pending", "Pending")
330
330
  }),
331
- /* @__PURE__ */ c("option", {
331
+ /* @__PURE__ */ l("option", {
332
332
  value: "PROCESSING",
333
333
  children: f("bigconsole.widget.eventLog.filter.processing", "Processing")
334
334
  }),
335
- /* @__PURE__ */ c("option", {
335
+ /* @__PURE__ */ l("option", {
336
336
  value: "RETRYING",
337
337
  children: f("bigconsole.widget.eventLog.filter.retrying", "Retrying")
338
338
  }),
339
- /* @__PURE__ */ c("option", {
339
+ /* @__PURE__ */ l("option", {
340
340
  value: "IGNORED",
341
341
  children: f("bigconsole.widget.eventLog.filter.ignored", "Ignored")
342
342
  })
343
343
  ]
344
344
  }),
345
- /* @__PURE__ */ c("button", {
345
+ /* @__PURE__ */ l("button", {
346
346
  type: "button",
347
347
  onClick: () => E(),
348
348
  style: d.refreshButton,
@@ -350,58 +350,58 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
350
350
  })
351
351
  ]
352
352
  })]
353
- }), x && b.length === 0 ? /* @__PURE__ */ c("div", {
353
+ }), x && b.length === 0 ? /* @__PURE__ */ l("div", {
354
354
  style: d.emptyState,
355
355
  role: "status",
356
- children: /* @__PURE__ */ c("p", {
356
+ children: /* @__PURE__ */ l("p", {
357
357
  style: d.emptyTitle,
358
358
  children: f("bigconsole.widget.eventLog.loading", "Loading...")
359
359
  })
360
- }) : b.length === 0 ? /* @__PURE__ */ l("div", {
360
+ }) : b.length === 0 ? /* @__PURE__ */ u("div", {
361
361
  style: d.emptyState,
362
362
  role: "status",
363
- children: [/* @__PURE__ */ c("p", {
363
+ children: [/* @__PURE__ */ l("p", {
364
364
  style: d.emptyTitle,
365
365
  children: f("bigconsole.widget.eventLog.emptyTitle", "No events found")
366
- }), /* @__PURE__ */ c("p", {
366
+ }), /* @__PURE__ */ l("p", {
367
367
  style: {
368
368
  fontSize: "var(--font-size-body-sm)",
369
369
  marginTop: "8px"
370
370
  },
371
371
  children: f("bigconsole.widget.eventLog.emptyHint", "Events will appear here when actions are triggered.")
372
372
  })]
373
- }) : /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("div", {
373
+ }) : /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("div", {
374
374
  style: {
375
375
  ...d.tableContainer,
376
376
  maxHeight: r,
377
377
  overflowY: "auto"
378
378
  },
379
- children: /* @__PURE__ */ l("table", {
379
+ children: /* @__PURE__ */ u("table", {
380
380
  style: d.table,
381
- children: [/* @__PURE__ */ c("thead", {
381
+ children: [/* @__PURE__ */ l("thead", {
382
382
  style: d.tableHeader,
383
- children: /* @__PURE__ */ l("tr", { children: [
384
- /* @__PURE__ */ c("th", { style: {
383
+ children: /* @__PURE__ */ u("tr", { children: [
384
+ /* @__PURE__ */ l("th", { style: {
385
385
  ...d.th,
386
386
  width: "40px"
387
387
  } }),
388
- /* @__PURE__ */ c("th", {
388
+ /* @__PURE__ */ l("th", {
389
389
  style: d.th,
390
390
  children: f("bigconsole.widget.eventLog.column.status", "Status")
391
391
  }),
392
- /* @__PURE__ */ c("th", {
392
+ /* @__PURE__ */ l("th", {
393
393
  style: d.th,
394
394
  children: f("bigconsole.widget.eventLog.column.event", "Event")
395
395
  }),
396
- /* @__PURE__ */ c("th", {
396
+ /* @__PURE__ */ l("th", {
397
397
  style: d.th,
398
398
  children: f("bigconsole.widget.eventLog.column.time", "Time")
399
399
  }),
400
- /* @__PURE__ */ c("th", {
400
+ /* @__PURE__ */ l("th", {
401
401
  style: d.th,
402
402
  children: f("bigconsole.widget.eventLog.column.webhook", "Webhook")
403
403
  }),
404
- /* @__PURE__ */ c("th", {
404
+ /* @__PURE__ */ l("th", {
405
405
  style: {
406
406
  ...d.th,
407
407
  width: "80px"
@@ -409,7 +409,7 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
409
409
  children: f("bigconsole.widget.eventLog.column.action", "Action")
410
410
  })
411
411
  ] })
412
- }), /* @__PURE__ */ c("tbody", { children: b.map((e) => /* @__PURE__ */ c(m, {
412
+ }), /* @__PURE__ */ l("tbody", { children: b.map((e) => /* @__PURE__ */ l(m, {
413
413
  log: e,
414
414
  onRetry: () => D(e),
415
415
  retrying: v === e.id,
@@ -417,7 +417,7 @@ var m = i(function({ log: e, onRetry: i, retrying: a, expanded: o, onToggleExpan
417
417
  onToggleExpand: () => O(e.id)
418
418
  }, e.id)) })]
419
419
  })
420
- }), C && /* @__PURE__ */ c("button", {
420
+ }), C && /* @__PURE__ */ l("button", {
421
421
  onClick: w,
422
422
  style: d.loadMoreButton,
423
423
  children: f("bigconsole.widget.eventLog.loadMore", "Load More")