@burdenoff/microfe-bigconsole 2026.1123.7 → 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.
- package/dist/bigconsole/asof/AsOfControl.js +2 -2
- package/dist/bigconsole/components/dashboard/DashboardCommentsDrawer.js +107 -106
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.d.ts +34 -0
- package/dist/bigconsole/components/dashboard/DashboardGalleryCard.js +123 -0
- package/dist/bigconsole/components/dashboard/DashboardReviewDialog.js +1 -1
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +19 -35
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +119 -116
- package/dist/bigconsole/components/dashboard/LiveCanvasToggle.js +1 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.d.ts +0 -1
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +172 -170
- package/dist/bigconsole/components/dashboard/ShareDialog/ShareDialog.js +210 -208
- package/dist/bigconsole/components/dashboard/TemplateInstallOptions.js +97 -97
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -0
- package/dist/bigconsole/components/datasink/AlertExecutionHistory.js +92 -92
- package/dist/bigconsole/components/datasink/AlertRuleEditor.js +149 -149
- package/dist/bigconsole/components/datasink/AnomalyDetectorPanel.js +54 -54
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -37
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +4 -4
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +130 -129
- package/dist/bigconsole/components/datasink/SetupStateBadge.js +24 -33
- package/dist/bigconsole/components/datasink/SinkWorkflowLinkForm.js +38 -38
- package/dist/bigconsole/components/explore/CreateQueryWidget.js +57 -56
- package/dist/bigconsole/components/explore/SqlDraftEditor.js +140 -140
- package/dist/bigconsole/components/explore/VisualBuilder.js +85 -84
- package/dist/bigconsole/components/explore/queryAccess/GrantsPanel.js +168 -167
- package/dist/bigconsole/components/explore/queryAccess/QueryAccessAdmin.js +2 -2
- package/dist/bigconsole/components/explore/queryAccess/RelationEditor.js +118 -117
- package/dist/bigconsole/components/insights/BoardLintPanel.js +2 -2
- package/dist/bigconsole/components/insights/OutlierSpottingDialog.js +123 -123
- package/dist/bigconsole/components/kpi-change/KpiChangePanel.js +2 -2
- package/dist/bigconsole/components/narrative/NarrativePanel.js +1 -1
- package/dist/bigconsole/components/overview/DataHealthCard.js +3 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +3 -0
- package/dist/bigconsole/components/parser/ParserStatusBadge.js +25 -28
- package/dist/bigconsole/components/pipeline/PipelineScopePicker.js +23 -22
- package/dist/bigconsole/components/pipeline/PipelineStatusBadge.js +15 -26
- package/dist/bigconsole/components/reconcile/KpiReconcileDialog.js +24 -24
- package/dist/bigconsole/components/settings/WidgetCatalogSection.js +1 -1
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +188 -187
- package/dist/bigconsole/components/widgets/FilterNotAppliedNotice.js +1 -1
- package/dist/bigconsole/components/widgets/UnsupportedDataSourceNotice.js +1 -1
- package/dist/bigconsole/components/widgets/WidgetCompareView.js +3 -1
- package/dist/bigconsole/components/widgets/WidgetHeader.js +1 -1
- package/dist/bigconsole/components/widgets/advanced/AdvancedWidgetConfig.js +45 -44
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +151 -147
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +48 -47
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +1 -1
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +139 -138
- package/dist/bigconsole/components/widgets/form/FormWidget.js +149 -148
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +80 -77
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +58 -56
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +75 -73
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +86 -85
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +80 -77
- package/dist/bigconsole/components/widgets/retention/RetentionView.js +1 -1
- package/dist/bigconsole/components/widgets/table/TableConfig.js +214 -211
- package/dist/bigconsole/components/widgets/table/TablePagination.js +59 -58
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +140 -138
- package/dist/bigconsole/components/widgets/widget-actions/WidgetActions.js +74 -66
- package/dist/bigconsole/components/workflow/WorkflowSinkLinkForm.js +48 -48
- package/dist/bigconsole/components/workflow/WorkflowStatusBadge.js +28 -37
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +69 -69
- package/dist/bigconsole/hooks/useDashboardListQuery.d.ts +22 -0
- package/dist/bigconsole/hooks/useDashboardListQuery.js +39 -0
- package/dist/bigconsole/pages/AdminPage.js +147 -146
- package/dist/bigconsole/pages/DashboardViewPage.js +2 -0
- package/dist/bigconsole/pages/DashboardsPage.js +638 -855
- package/dist/bigconsole/pages/DataParsersPage.js +5 -0
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +4 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +263 -261
- package/dist/bigconsole/pages/DataSinksPage.js +210 -186
- package/dist/bigconsole/pages/InsightsPage.js +386 -383
- package/dist/bigconsole/pages/ParserBuilderPage.js +413 -413
- package/dist/bigconsole/pages/ParserViewPage.js +2 -0
- package/dist/bigconsole/pages/PipelineBuilderPage.js +279 -276
- package/dist/bigconsole/pages/PipelineViewPage.js +3 -0
- package/dist/bigconsole/pages/PipelinesPage.js +198 -165
- package/dist/bigconsole/pages/SettingsPage.js +160 -160
- package/dist/bigconsole/pages/WidgetDemoPage.js +2 -0
- package/dist/bigconsole/pages/WorkflowViewPage.js +5 -0
- package/dist/bigconsole/pages/WorkflowsPage.js +144 -123
- package/dist/bigconsole/providers/BigConsoleQuotaProvider.js +1 -1
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +123 -122
- package/dist/bigconsole/utils/dashboardGallery.d.ts +84 -0
- package/dist/bigconsole/utils/dashboardGallery.js +93 -0
- package/dist/bigconsole/utils/statusTone.d.ts +17 -0
- package/dist/bigconsole/utils/statusTone.js +44 -0
- 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 {
|
|
4
|
-
import {
|
|
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
|
|
7
|
-
function
|
|
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__ */
|
|
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:
|
|
25
|
+
className: p
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
|
-
var
|
|
28
|
-
let { t: s } =
|
|
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]),
|
|
35
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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}`,
|
|
48
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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:
|
|
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__ */
|
|
61
|
+
/* @__PURE__ */ f("div", {
|
|
61
62
|
className: "grid grid-cols-1 gap-2 sm:grid-cols-2",
|
|
62
63
|
children: [
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ f("div", {
|
|
64
65
|
className: "min-w-0",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
70
|
+
}), /* @__PURE__ */ d(m, {
|
|
70
71
|
id: `${o}-value`,
|
|
71
72
|
value: t.value,
|
|
72
|
-
onCommit: (e) => e !== void 0 &&
|
|
73
|
+
onCommit: (e) => e !== void 0 && h(i, { value: e })
|
|
73
74
|
})]
|
|
74
75
|
}),
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ f("div", {
|
|
76
77
|
className: "min-w-0",
|
|
77
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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) =>
|
|
87
|
+
onCommit: (e) => h(i, { value2: e })
|
|
87
88
|
})]
|
|
88
89
|
}),
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ f("div", {
|
|
90
91
|
className: "min-w-0",
|
|
91
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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) =>
|
|
101
|
-
className:
|
|
101
|
+
onChange: (e) => h(i, { label: e.target.value === "" ? void 0 : e.target.value }),
|
|
102
|
+
className: p
|
|
102
103
|
})]
|
|
103
104
|
}),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ f("div", {
|
|
105
106
|
className: "min-w-0",
|
|
106
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
111
|
+
}), /* @__PURE__ */ d(l, {
|
|
111
112
|
id: `${o}-color`,
|
|
112
113
|
value: t.color ?? "danger",
|
|
113
|
-
onChange: (e) =>
|
|
114
|
-
className:
|
|
115
|
-
children: e.map((e) => /* @__PURE__ */
|
|
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__ */
|
|
124
|
+
/* @__PURE__ */ f("div", {
|
|
124
125
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
125
|
-
children: [/* @__PURE__ */
|
|
126
|
+
children: [/* @__PURE__ */ f("label", {
|
|
126
127
|
className: "flex items-center gap-2",
|
|
127
|
-
children: [/* @__PURE__ */
|
|
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) =>
|
|
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__ */
|
|
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__ */
|
|
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:
|
|
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__ */
|
|
149
|
+
/* @__PURE__ */ d("button", {
|
|
149
150
|
type: "button",
|
|
150
|
-
disabled:
|
|
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
|
-
|
|
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 {
|
|
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-
|
|
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 {
|
|
4
|
-
import {
|
|
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
|
|
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
|
|
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
|
|
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
|
|
168
|
-
let { t: h } =
|
|
169
|
-
return /* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
style:
|
|
172
|
-
children: /* @__PURE__ */
|
|
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:
|
|
175
|
+
onClick: s,
|
|
175
176
|
"aria-expanded": o,
|
|
176
177
|
"aria-label": o ? "Hide event payload" : "Show event payload",
|
|
177
|
-
style:
|
|
178
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
185
|
-
style:
|
|
186
|
-
children: /* @__PURE__ */
|
|
187
|
-
style:
|
|
188
|
-
children: [/* @__PURE__ */
|
|
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
|
-
...
|
|
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__ */
|
|
199
|
-
style:
|
|
200
|
-
children: [/* @__PURE__ */
|
|
201
|
-
style:
|
|
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__ */
|
|
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__ */
|
|
212
|
-
style:
|
|
213
|
-
children: /* @__PURE__ */
|
|
214
|
-
style:
|
|
215
|
-
children:
|
|
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__ */
|
|
219
|
-
style:
|
|
220
|
-
children: e.webhookUrl ? /* @__PURE__ */
|
|
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:
|
|
226
|
-
}) : /* @__PURE__ */
|
|
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__ */
|
|
235
|
-
style:
|
|
236
|
-
children: g && /* @__PURE__ */
|
|
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:
|
|
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__ */
|
|
245
|
-
style:
|
|
246
|
-
children: /* @__PURE__ */
|
|
245
|
+
] }), o && /* @__PURE__ */ u("tr", {
|
|
246
|
+
style: f.detailRow,
|
|
247
|
+
children: /* @__PURE__ */ u("td", {
|
|
247
248
|
colSpan: 6,
|
|
248
|
-
style:
|
|
249
|
-
children: /* @__PURE__ */
|
|
250
|
-
style:
|
|
249
|
+
style: f.td,
|
|
250
|
+
children: /* @__PURE__ */ d("div", {
|
|
251
|
+
style: f.detailContent,
|
|
251
252
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
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__ */
|
|
256
|
+
e.errorMessage && /* @__PURE__ */ d(l, { children: [
|
|
256
257
|
"\n\n",
|
|
257
|
-
/* @__PURE__ */
|
|
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__ */
|
|
265
|
+
e.responseCode && /* @__PURE__ */ d(l, { children: [
|
|
265
266
|
"\n\n",
|
|
266
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
}),
|
|
279
|
-
let { t:
|
|
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:
|
|
283
|
-
}),
|
|
284
|
-
|
|
285
|
-
let t = await
|
|
286
|
-
|
|
287
|
-
}, [
|
|
288
|
-
|
|
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__ */
|
|
294
|
-
style:
|
|
294
|
+
return /* @__PURE__ */ d("div", {
|
|
295
|
+
style: f.container,
|
|
295
296
|
"data-testid": "event-log-viewer",
|
|
296
|
-
children: [/* @__PURE__ */
|
|
297
|
-
style:
|
|
298
|
-
children: [/* @__PURE__ */
|
|
299
|
-
style:
|
|
300
|
-
children:
|
|
301
|
-
}) }), /* @__PURE__ */
|
|
302
|
-
style:
|
|
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__ */
|
|
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__ */
|
|
310
|
+
/* @__PURE__ */ d(s, {
|
|
310
311
|
id: "event-log-status-filter",
|
|
311
|
-
value:
|
|
312
|
-
onChange: (e) =>
|
|
313
|
-
style:
|
|
312
|
+
value: m,
|
|
313
|
+
onChange: (e) => g(e.target.value),
|
|
314
|
+
style: f.filterSelect,
|
|
314
315
|
children: [
|
|
315
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ u("option", {
|
|
316
317
|
value: "",
|
|
317
|
-
children:
|
|
318
|
+
children: p("bigconsole.widget.eventLog.filter.all", "All Status")
|
|
318
319
|
}),
|
|
319
|
-
/* @__PURE__ */
|
|
320
|
+
/* @__PURE__ */ u("option", {
|
|
320
321
|
value: "DELIVERED",
|
|
321
|
-
children:
|
|
322
|
+
children: p("bigconsole.widget.eventLog.filter.delivered", "Delivered")
|
|
322
323
|
}),
|
|
323
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ u("option", {
|
|
324
325
|
value: "FAILED",
|
|
325
|
-
children:
|
|
326
|
+
children: p("bigconsole.widget.eventLog.filter.failed", "Failed")
|
|
326
327
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
+
/* @__PURE__ */ u("option", {
|
|
328
329
|
value: "PENDING",
|
|
329
|
-
children:
|
|
330
|
+
children: p("bigconsole.widget.eventLog.filter.pending", "Pending")
|
|
330
331
|
}),
|
|
331
|
-
/* @__PURE__ */
|
|
332
|
+
/* @__PURE__ */ u("option", {
|
|
332
333
|
value: "PROCESSING",
|
|
333
|
-
children:
|
|
334
|
+
children: p("bigconsole.widget.eventLog.filter.processing", "Processing")
|
|
334
335
|
}),
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
+
/* @__PURE__ */ u("option", {
|
|
336
337
|
value: "RETRYING",
|
|
337
|
-
children:
|
|
338
|
+
children: p("bigconsole.widget.eventLog.filter.retrying", "Retrying")
|
|
338
339
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ u("option", {
|
|
340
341
|
value: "IGNORED",
|
|
341
|
-
children:
|
|
342
|
+
children: p("bigconsole.widget.eventLog.filter.ignored", "Ignored")
|
|
342
343
|
})
|
|
343
344
|
]
|
|
344
345
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ u("button", {
|
|
346
347
|
type: "button",
|
|
347
|
-
onClick: () =>
|
|
348
|
-
style:
|
|
349
|
-
children:
|
|
348
|
+
onClick: () => D(),
|
|
349
|
+
style: f.refreshButton,
|
|
350
|
+
children: p("bigconsole.widget.eventLog.refresh", "Refresh")
|
|
350
351
|
})
|
|
351
352
|
]
|
|
352
353
|
})]
|
|
353
|
-
}),
|
|
354
|
-
style:
|
|
354
|
+
}), S && x.length === 0 ? /* @__PURE__ */ u("div", {
|
|
355
|
+
style: f.emptyState,
|
|
355
356
|
role: "status",
|
|
356
|
-
children: /* @__PURE__ */
|
|
357
|
-
style:
|
|
358
|
-
children:
|
|
357
|
+
children: /* @__PURE__ */ u("p", {
|
|
358
|
+
style: f.emptyTitle,
|
|
359
|
+
children: p("bigconsole.widget.eventLog.loading", "Loading...")
|
|
359
360
|
})
|
|
360
|
-
}) :
|
|
361
|
-
style:
|
|
361
|
+
}) : x.length === 0 ? /* @__PURE__ */ d("div", {
|
|
362
|
+
style: f.emptyState,
|
|
362
363
|
role: "status",
|
|
363
|
-
children: [/* @__PURE__ */
|
|
364
|
-
style:
|
|
365
|
-
children:
|
|
366
|
-
}), /* @__PURE__ */
|
|
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:
|
|
372
|
+
children: p("bigconsole.widget.eventLog.emptyHint", "Events will appear here when actions are triggered.")
|
|
372
373
|
})]
|
|
373
|
-
}) : /* @__PURE__ */
|
|
374
|
+
}) : /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", {
|
|
374
375
|
style: {
|
|
375
|
-
...
|
|
376
|
+
...f.tableContainer,
|
|
376
377
|
maxHeight: r,
|
|
377
378
|
overflowY: "auto"
|
|
378
379
|
},
|
|
379
|
-
children: /* @__PURE__ */
|
|
380
|
-
style:
|
|
381
|
-
children: [/* @__PURE__ */
|
|
382
|
-
style:
|
|
383
|
-
children: /* @__PURE__ */
|
|
384
|
-
/* @__PURE__ */
|
|
385
|
-
...
|
|
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__ */
|
|
389
|
-
style:
|
|
390
|
-
children:
|
|
389
|
+
/* @__PURE__ */ u("th", {
|
|
390
|
+
style: f.th,
|
|
391
|
+
children: p("bigconsole.widget.eventLog.column.status", "Status")
|
|
391
392
|
}),
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
style:
|
|
394
|
-
children:
|
|
393
|
+
/* @__PURE__ */ u("th", {
|
|
394
|
+
style: f.th,
|
|
395
|
+
children: p("bigconsole.widget.eventLog.column.event", "Event")
|
|
395
396
|
}),
|
|
396
|
-
/* @__PURE__ */
|
|
397
|
-
style:
|
|
398
|
-
children:
|
|
397
|
+
/* @__PURE__ */ u("th", {
|
|
398
|
+
style: f.th,
|
|
399
|
+
children: p("bigconsole.widget.eventLog.column.time", "Time")
|
|
399
400
|
}),
|
|
400
|
-
/* @__PURE__ */
|
|
401
|
-
style:
|
|
402
|
-
children:
|
|
401
|
+
/* @__PURE__ */ u("th", {
|
|
402
|
+
style: f.th,
|
|
403
|
+
children: p("bigconsole.widget.eventLog.column.webhook", "Webhook")
|
|
403
404
|
}),
|
|
404
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ u("th", {
|
|
405
406
|
style: {
|
|
406
|
-
...
|
|
407
|
+
...f.th,
|
|
407
408
|
width: "80px"
|
|
408
409
|
},
|
|
409
|
-
children:
|
|
410
|
+
children: p("bigconsole.widget.eventLog.column.action", "Action")
|
|
410
411
|
})
|
|
411
412
|
] })
|
|
412
|
-
}), /* @__PURE__ */
|
|
413
|
+
}), /* @__PURE__ */ u("tbody", { children: x.map((e) => /* @__PURE__ */ u(h, {
|
|
413
414
|
log: e,
|
|
414
|
-
onRetry: () =>
|
|
415
|
-
retrying:
|
|
416
|
-
expanded:
|
|
417
|
-
onToggleExpand: () =>
|
|
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
|
-
}),
|
|
421
|
-
onClick:
|
|
422
|
-
style:
|
|
423
|
-
children:
|
|
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 {
|
|
428
|
+
export { g as EventLogViewer, g as default };
|