@burdenoff/microfe-bigconsole 2026.924.2 → 2026.924.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/BigConsoleRoutes.js +137 -138
- package/dist/bigconsole/BigConsoleRoutes.js.map +1 -1
- package/dist/bigconsole/assistant/previewController.js +10 -10
- package/dist/bigconsole/components/DrilldownDashboardRenderer.js +17 -17
- package/dist/bigconsole/components/builder/inspector/DataBindingSection.js +32 -32
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +52 -52
- package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/DashboardCanvas.js +7 -7
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js +53 -0
- package/dist/bigconsole/components/dashboard/DashboardStatusPill.js.map +1 -0
- package/dist/bigconsole/components/dashboard/DashboardToolbar.js +60 -60
- package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js +21 -21
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterChip.js +30 -30
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterEditor.js +36 -36
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/FilterPresetSelector.js +34 -34
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js +38 -38
- package/dist/bigconsole/components/dashboard/GlobalFiltersBar/GlobalFiltersBar.js.map +1 -1
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +121 -121
- package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
- package/dist/bigconsole/components/dashboard/PublishToStoreDialog.js +22 -22
- package/dist/bigconsole/components/dashboard/SavedViewsDropdown/SavedViewsDropdown.js +46 -46
- package/dist/bigconsole/components/dashboard/ShareDialog/EmbedTab.js +53 -53
- package/dist/bigconsole/components/dashboard/TemplatePicker/TemplatePicker.js +1 -1
- package/dist/bigconsole/components/dashboard/WidgetPalette.js +47 -47
- package/dist/bigconsole/components/dashboard/index.js +1 -0
- package/dist/bigconsole/components/datasink/CacheTTLSelector.js +35 -35
- package/dist/bigconsole/components/datasink/DataSinkDeleteDialog.js +18 -18
- package/dist/bigconsole/components/datasink/DataSinkRefreshDialog.js +20 -20
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js +30 -29
- package/dist/bigconsole/components/datasink/DataSinkStatusBadge.js.map +1 -1
- package/dist/bigconsole/components/datasink/ImportDataGuideDialog.js +48 -48
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +103 -103
- package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
- package/dist/bigconsole/components/datasink/RefreshTypeSelector.js +35 -35
- package/dist/bigconsole/components/overview/DashboardGuide.js +214 -0
- package/dist/bigconsole/components/overview/DashboardGuide.js.map +1 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js +97 -0
- package/dist/bigconsole/components/overview/DataHealthCard.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js +32 -0
- package/dist/bigconsole/components/overview/OverviewQuickActions.js.map +1 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js +57 -0
- package/dist/bigconsole/components/overview/OverviewStatCard.js.map +1 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js +107 -0
- package/dist/bigconsole/components/overview/RecentDashboardsPanel.js.map +1 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js +119 -0
- package/dist/bigconsole/components/overview/dashboardGuideSteps.js.map +1 -0
- package/dist/bigconsole/components/overview/index.js +8 -0
- package/dist/bigconsole/components/overview/overviewModel.js +119 -0
- package/dist/bigconsole/components/overview/overviewModel.js.map +1 -0
- package/dist/bigconsole/components/overview/useOverviewData.js +48 -0
- package/dist/bigconsole/components/overview/useOverviewData.js.map +1 -0
- package/dist/bigconsole/components/parser/DataSinkSelector.js +40 -40
- package/dist/bigconsole/components/parser/ImportParserDialog.js +127 -127
- package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
- package/dist/bigconsole/components/parser/ParserSelector.js +51 -51
- package/dist/bigconsole/components/preview/AiPreviewContent.js +5 -5
- package/dist/bigconsole/components/preview/AiPreviewMiniPanel.js +33 -33
- package/dist/bigconsole/components/preview/AiPreviewPanel.js +38 -38
- package/dist/bigconsole/components/widgets/ActionConfigDialog.js +13 -13
- package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js +70 -70
- package/dist/bigconsole/components/widgets/PropertiesPanel.js +28 -28
- package/dist/bigconsole/components/widgets/calendar/CalendarWidget.js +25 -25
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +48 -48
- package/dist/bigconsole/components/widgets/comments/WidgetComments.js +46 -46
- package/dist/bigconsole/components/widgets/event-logs/EventLogViewer.js +61 -61
- package/dist/bigconsole/components/widgets/form/FormWidget.js +36 -36
- package/dist/bigconsole/components/widgets/gauge/GaugeConfig.js +42 -42
- package/dist/bigconsole/components/widgets/heatmap/HeatmapConfig.js +25 -25
- package/dist/bigconsole/components/widgets/kanban/KanbanWidget.js +21 -21
- package/dist/bigconsole/components/widgets/list/ListConfig.js +30 -30
- package/dist/bigconsole/components/widgets/metric-card/MetricCardConfig.js +38 -38
- package/dist/bigconsole/components/widgets/metric-card/SparklineChart.js +9 -9
- package/dist/bigconsole/components/widgets/metric-card/TrendIndicator.js +9 -9
- package/dist/bigconsole/components/widgets/pivot-table/PivotTableWidget.js +49 -49
- package/dist/bigconsole/components/widgets/progress/ProgressConfig.js +39 -39
- package/dist/bigconsole/components/widgets/table/TableConfig.js +73 -73
- package/dist/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.js +64 -64
- package/dist/bigconsole/customWidget/CustomWidgetBuilderSheet.js +10 -10
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js +68 -68
- package/dist/bigconsole/customWidget/CustomWidgetProposalPanel.js.map +1 -1
- package/dist/bigconsole/pages/AdminPage.js +136 -136
- package/dist/bigconsole/pages/DashboardBuilderPage.js +10 -10
- package/dist/bigconsole/pages/DashboardViewPage.js +61 -61
- package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DashboardsPage.js +327 -348
- package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
- package/dist/bigconsole/pages/DataParsersPage.js +5 -5
- package/dist/bigconsole/pages/DataSinkBuilderPage.js +10 -10
- package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinkViewPage.js +83 -83
- package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
- package/dist/bigconsole/pages/DataSinksPage.js +11 -11
- package/dist/bigconsole/pages/DataSourcesPage.js +5 -5
- package/dist/bigconsole/pages/InsightsPage.js +315 -315
- package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
- package/dist/bigconsole/pages/OverviewPage.js +244 -0
- package/dist/bigconsole/pages/OverviewPage.js.map +1 -0
- package/dist/bigconsole/pages/ParserBuilderPage.js +5 -5
- package/dist/bigconsole/pages/ParserViewPage.js +98 -98
- package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelineBuilderPage.js +8 -8
- package/dist/bigconsole/pages/PipelineViewPage.js +46 -46
- package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
- package/dist/bigconsole/pages/PipelinesPage.js +80 -80
- package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
- package/dist/bigconsole/pages/SettingsPage.js +70 -70
- package/dist/bigconsole/pages/WidgetDemoPage.js +42 -42
- package/dist/bigconsole/pages/WorkflowViewPage.js +200 -200
- package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
- package/dist/bigconsole/pages/WorkflowsPage.js +78 -78
- package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
- package/dist/bigconsole/renderers/adapters/AdaptiveCardRenderer.js +34 -34
- package/dist/bigconsole/renderers/adapters/BlockKitRenderer.js +79 -79
- package/dist/bigconsole/renderers/adapters/CustomRenderer.js +46 -46
- package/dist/bigconsole/utils/createDialogParam.js +14 -0
- package/dist/bigconsole/utils/createDialogParam.js.map +1 -0
- package/dist/generated/global-operations.js +1 -1
- package/dist/generated/wspace-operations.js +285 -222
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/shared/hooks/useTr.js +10 -7
- package/dist/shared/hooks/useTr.js.map +1 -1
- package/package.json +1 -1
- package/dist/bigconsole/pages/HomePage.js +0 -318
- package/dist/bigconsole/pages/HomePage.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "../../../hooks/useEventWebhooks.js";
|
|
2
2
|
import { memo as t, useCallback as n, useState as r } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
+
import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
5
5
|
//#region src/bigconsole/components/widgets/webhook-config/WebhookConfigPanel.tsx
|
|
6
6
|
var c = {
|
|
7
7
|
container: {
|
|
@@ -229,43 +229,43 @@ var c = {
|
|
|
229
229
|
color: "var(--color-text-placeholder)",
|
|
230
230
|
marginTop: "4px"
|
|
231
231
|
}
|
|
232
|
-
}, l = t(function({ webhook: e, dashboardId: t, widgetId: n, onSave:
|
|
233
|
-
let { t: d } =
|
|
234
|
-
return /* @__PURE__ */
|
|
232
|
+
}, l = t(function({ webhook: e, dashboardId: t, widgetId: n, onSave: i, onCancel: l, loading: u }) {
|
|
233
|
+
let { t: d } = s(), [f, p] = r(e?.eventPattern || "widget:*:clicked"), [m, h] = r(e?.webhookUrl || ""), [g, _] = r(e?.method || "POST"), [v, y] = r(e?.headers ? JSON.stringify(e.headers, null, 2) : "");
|
|
234
|
+
return /* @__PURE__ */ o("form", {
|
|
235
235
|
style: c.form,
|
|
236
236
|
onSubmit: async (r) => {
|
|
237
237
|
r.preventDefault();
|
|
238
|
-
let
|
|
238
|
+
let a;
|
|
239
239
|
if (v.trim()) try {
|
|
240
|
-
|
|
240
|
+
a = JSON.parse(v);
|
|
241
241
|
} catch {
|
|
242
242
|
alert(d("bigconsole.widget.webhookConfig.invalidJson", "Invalid JSON in headers field"));
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
|
-
e ? await
|
|
245
|
+
e ? await i({
|
|
246
246
|
id: e.id,
|
|
247
247
|
eventPattern: f,
|
|
248
248
|
webhookUrl: m,
|
|
249
249
|
method: g,
|
|
250
|
-
headers:
|
|
251
|
-
}) : await
|
|
250
|
+
headers: a || null
|
|
251
|
+
}) : await i({
|
|
252
252
|
dashboardId: t,
|
|
253
253
|
widgetId: n,
|
|
254
254
|
eventPattern: f,
|
|
255
255
|
webhookUrl: m,
|
|
256
256
|
method: g,
|
|
257
|
-
headers:
|
|
257
|
+
headers: a
|
|
258
258
|
});
|
|
259
259
|
},
|
|
260
260
|
children: [
|
|
261
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ o("div", {
|
|
262
262
|
style: c.formGroup,
|
|
263
263
|
children: [
|
|
264
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ a("label", {
|
|
265
265
|
style: c.label,
|
|
266
266
|
children: d("bigconsole.widget.webhookConfig.eventPatternLabel", "Event Pattern *")
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ a("input", {
|
|
269
269
|
type: "text",
|
|
270
270
|
value: f,
|
|
271
271
|
onChange: (e) => p(e.target.value),
|
|
@@ -273,18 +273,18 @@ var c = {
|
|
|
273
273
|
style: c.input,
|
|
274
274
|
required: !0
|
|
275
275
|
}),
|
|
276
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ a("p", {
|
|
277
277
|
style: c.helpText,
|
|
278
278
|
children: d("bigconsole.widget.webhookConfig.eventPatternHelp", "Use * as wildcard. Examples: widget:*:clicked, *:submit, button:save:*")
|
|
279
279
|
})
|
|
280
280
|
]
|
|
281
281
|
}),
|
|
282
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ o("div", {
|
|
283
283
|
style: c.formGroup,
|
|
284
|
-
children: [/* @__PURE__ */
|
|
284
|
+
children: [/* @__PURE__ */ a("label", {
|
|
285
285
|
style: c.label,
|
|
286
286
|
children: d("bigconsole.widget.webhookConfig.webhookUrlLabel", "Webhook URL *")
|
|
287
|
-
}), /* @__PURE__ */
|
|
287
|
+
}), /* @__PURE__ */ a("input", {
|
|
288
288
|
type: "url",
|
|
289
289
|
value: m,
|
|
290
290
|
onChange: (e) => h(e.target.value),
|
|
@@ -293,59 +293,59 @@ var c = {
|
|
|
293
293
|
required: !0
|
|
294
294
|
})]
|
|
295
295
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
296
|
+
/* @__PURE__ */ o("div", {
|
|
297
297
|
style: c.formGroup,
|
|
298
|
-
children: [/* @__PURE__ */
|
|
298
|
+
children: [/* @__PURE__ */ a("label", {
|
|
299
299
|
style: c.label,
|
|
300
300
|
children: d("bigconsole.widget.webhookConfig.httpMethodLabel", "HTTP Method")
|
|
301
|
-
}), /* @__PURE__ */
|
|
301
|
+
}), /* @__PURE__ */ o("select", {
|
|
302
302
|
value: g,
|
|
303
303
|
onChange: (e) => _(e.target.value),
|
|
304
304
|
style: c.select,
|
|
305
305
|
children: [
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ a("option", {
|
|
307
307
|
value: "POST",
|
|
308
308
|
children: "POST"
|
|
309
309
|
}),
|
|
310
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ a("option", {
|
|
311
311
|
value: "PUT",
|
|
312
312
|
children: "PUT"
|
|
313
313
|
}),
|
|
314
|
-
/* @__PURE__ */
|
|
314
|
+
/* @__PURE__ */ a("option", {
|
|
315
315
|
value: "PATCH",
|
|
316
316
|
children: "PATCH"
|
|
317
317
|
}),
|
|
318
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ a("option", {
|
|
319
319
|
value: "GET",
|
|
320
320
|
children: "GET"
|
|
321
321
|
}),
|
|
322
|
-
/* @__PURE__ */
|
|
322
|
+
/* @__PURE__ */ a("option", {
|
|
323
323
|
value: "DELETE",
|
|
324
324
|
children: "DELETE"
|
|
325
325
|
})
|
|
326
326
|
]
|
|
327
327
|
})]
|
|
328
328
|
}),
|
|
329
|
-
/* @__PURE__ */
|
|
329
|
+
/* @__PURE__ */ o("div", {
|
|
330
330
|
style: c.formGroup,
|
|
331
|
-
children: [/* @__PURE__ */
|
|
331
|
+
children: [/* @__PURE__ */ a("label", {
|
|
332
332
|
style: c.label,
|
|
333
333
|
children: d("bigconsole.widget.webhookConfig.customHeadersLabel", "Custom Headers (JSON)")
|
|
334
|
-
}), /* @__PURE__ */
|
|
334
|
+
}), /* @__PURE__ */ a("textarea", {
|
|
335
335
|
value: v,
|
|
336
336
|
onChange: (e) => y(e.target.value),
|
|
337
337
|
placeholder: "{\n \"Authorization\": \"Bearer your-token\"\n}",
|
|
338
338
|
style: c.textarea
|
|
339
339
|
})]
|
|
340
340
|
}),
|
|
341
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ o("div", {
|
|
342
342
|
style: c.formActions,
|
|
343
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ a("button", {
|
|
344
344
|
type: "button",
|
|
345
345
|
onClick: l,
|
|
346
346
|
style: c.cancelButton,
|
|
347
347
|
children: d("bigconsole.widget.webhookConfig.cancel", "Cancel")
|
|
348
|
-
}), /* @__PURE__ */
|
|
348
|
+
}), /* @__PURE__ */ a("button", {
|
|
349
349
|
type: "submit",
|
|
350
350
|
disabled: u,
|
|
351
351
|
style: c.saveButton,
|
|
@@ -355,18 +355,18 @@ var c = {
|
|
|
355
355
|
]
|
|
356
356
|
});
|
|
357
357
|
}), u = t(function({ webhook: e, onEdit: t, onDelete: n, onToggle: r, onTest: l, testResult: u, testing: d }) {
|
|
358
|
-
let { t: f } =
|
|
359
|
-
return /* @__PURE__ */
|
|
358
|
+
let { t: f } = s();
|
|
359
|
+
return /* @__PURE__ */ o("div", {
|
|
360
360
|
style: c.webhookCard,
|
|
361
361
|
children: [
|
|
362
|
-
/* @__PURE__ */
|
|
362
|
+
/* @__PURE__ */ a("div", {
|
|
363
363
|
style: c.webhookHeader,
|
|
364
|
-
children: /* @__PURE__ */
|
|
364
|
+
children: /* @__PURE__ */ o("div", {
|
|
365
365
|
style: c.webhookTitle,
|
|
366
|
-
children: [/* @__PURE__ */
|
|
366
|
+
children: [/* @__PURE__ */ a("span", {
|
|
367
367
|
style: c.webhookName,
|
|
368
368
|
children: e.eventPattern
|
|
369
|
-
}), /* @__PURE__ */
|
|
369
|
+
}), /* @__PURE__ */ a("span", {
|
|
370
370
|
style: {
|
|
371
371
|
...c.statusBadge,
|
|
372
372
|
...e.isActive ? c.activeBadge : c.inactiveBadge
|
|
@@ -375,33 +375,33 @@ var c = {
|
|
|
375
375
|
})]
|
|
376
376
|
})
|
|
377
377
|
}),
|
|
378
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ o("div", {
|
|
379
379
|
style: c.webhookDetails,
|
|
380
380
|
children: [
|
|
381
381
|
f("bigconsole.widget.webhookConfig.methodLabel", "Method:"),
|
|
382
382
|
" ",
|
|
383
|
-
/* @__PURE__ */
|
|
383
|
+
/* @__PURE__ */ a("strong", { children: e.method })
|
|
384
384
|
]
|
|
385
385
|
}),
|
|
386
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ a("div", {
|
|
387
387
|
style: c.webhookUrl,
|
|
388
388
|
children: e.webhookUrl
|
|
389
389
|
}),
|
|
390
|
-
u && /* @__PURE__ */
|
|
390
|
+
u && /* @__PURE__ */ a("div", {
|
|
391
391
|
role: "status",
|
|
392
392
|
style: {
|
|
393
393
|
...c.testResult,
|
|
394
394
|
...u.success ? c.testSuccess : c.testFailure
|
|
395
395
|
},
|
|
396
|
-
children: u.success ? /* @__PURE__ */
|
|
396
|
+
children: u.success ? /* @__PURE__ */ a(i, { children: f("bigconsole.widget.webhookConfig.testSuccess", "Test successful! Status: {{statusCode}}, Latency: {{latencyMs}}ms", {
|
|
397
397
|
statusCode: u.statusCode ?? "",
|
|
398
398
|
latencyMs: u.latencyMs ?? ""
|
|
399
|
-
}) }) : /* @__PURE__ */
|
|
399
|
+
}) }) : /* @__PURE__ */ a(i, { children: f("bigconsole.widget.webhookConfig.testFailure", "Test failed: {{error}}", { error: u.errorMessage || f("bigconsole.widget.webhookConfig.unknownError", "Unknown error") }) })
|
|
400
400
|
}),
|
|
401
|
-
/* @__PURE__ */
|
|
401
|
+
/* @__PURE__ */ o("div", {
|
|
402
402
|
style: c.webhookActions,
|
|
403
403
|
children: [
|
|
404
|
-
/* @__PURE__ */
|
|
404
|
+
/* @__PURE__ */ a("button", {
|
|
405
405
|
onClick: t,
|
|
406
406
|
style: {
|
|
407
407
|
...c.actionButton,
|
|
@@ -409,7 +409,7 @@ var c = {
|
|
|
409
409
|
},
|
|
410
410
|
children: f("bigconsole.widget.webhookConfig.edit", "Edit")
|
|
411
411
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
412
|
+
/* @__PURE__ */ a("button", {
|
|
413
413
|
onClick: l,
|
|
414
414
|
disabled: d,
|
|
415
415
|
style: {
|
|
@@ -418,7 +418,7 @@ var c = {
|
|
|
418
418
|
},
|
|
419
419
|
children: d ? f("bigconsole.widget.webhookConfig.testing", "Testing...") : f("bigconsole.widget.webhookConfig.test", "Test")
|
|
420
420
|
}),
|
|
421
|
-
/* @__PURE__ */
|
|
421
|
+
/* @__PURE__ */ a("button", {
|
|
422
422
|
onClick: r,
|
|
423
423
|
style: {
|
|
424
424
|
...c.actionButton,
|
|
@@ -426,7 +426,7 @@ var c = {
|
|
|
426
426
|
},
|
|
427
427
|
children: e.isActive ? f("bigconsole.widget.webhookConfig.disable", "Disable") : f("bigconsole.widget.webhookConfig.enable", "Enable")
|
|
428
428
|
}),
|
|
429
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ a("button", {
|
|
430
430
|
onClick: n,
|
|
431
431
|
style: {
|
|
432
432
|
...c.actionButton,
|
|
@@ -438,10 +438,10 @@ var c = {
|
|
|
438
438
|
})
|
|
439
439
|
]
|
|
440
440
|
});
|
|
441
|
-
}), d = t(function({ dashboardId: t, widgetId:
|
|
442
|
-
let { t: p } =
|
|
441
|
+
}), d = t(function({ dashboardId: t, widgetId: i, onWebhookCreated: d, onWebhookDeleted: f }) {
|
|
442
|
+
let { t: p } = s(), [m, h] = r(!1), [g, _] = r(null), [v, y] = r({}), [b, x] = r(null), { webhooks: S, loading: C, createWebhook: w, updateWebhook: T, deleteWebhook: E, toggleWebhook: D, testWebhook: O } = e({
|
|
443
443
|
dashboardId: t,
|
|
444
|
-
widgetId:
|
|
444
|
+
widgetId: i
|
|
445
445
|
}), k = n(async (e) => {
|
|
446
446
|
if ("id" in e) await T(e) && (_(null), h(!1));
|
|
447
447
|
else {
|
|
@@ -472,50 +472,50 @@ var c = {
|
|
|
472
472
|
}, []), P = n(() => {
|
|
473
473
|
h(!1), _(null);
|
|
474
474
|
}, []);
|
|
475
|
-
return /* @__PURE__ */
|
|
475
|
+
return /* @__PURE__ */ o("div", {
|
|
476
476
|
style: c.container,
|
|
477
477
|
"data-testid": "webhook-config-panel",
|
|
478
478
|
children: [
|
|
479
|
-
!m && /* @__PURE__ */
|
|
479
|
+
!m && /* @__PURE__ */ a("div", {
|
|
480
480
|
style: c.header,
|
|
481
|
-
children: /* @__PURE__ */
|
|
481
|
+
children: /* @__PURE__ */ a("button", {
|
|
482
482
|
type: "button",
|
|
483
483
|
onClick: () => h(!0),
|
|
484
484
|
style: c.addButton,
|
|
485
485
|
children: p("bigconsole.widget.webhookConfig.addWebhook", "+ Add Webhook")
|
|
486
486
|
})
|
|
487
487
|
}),
|
|
488
|
-
m && /* @__PURE__ */
|
|
488
|
+
m && /* @__PURE__ */ a(l, {
|
|
489
489
|
webhook: g || void 0,
|
|
490
490
|
dashboardId: t,
|
|
491
|
-
widgetId:
|
|
491
|
+
widgetId: i,
|
|
492
492
|
onSave: k,
|
|
493
493
|
onCancel: P,
|
|
494
494
|
loading: C
|
|
495
495
|
}),
|
|
496
|
-
C && S.length === 0 ? /* @__PURE__ */
|
|
496
|
+
C && S.length === 0 ? /* @__PURE__ */ a("div", {
|
|
497
497
|
style: c.emptyState,
|
|
498
498
|
role: "status",
|
|
499
|
-
children: /* @__PURE__ */
|
|
499
|
+
children: /* @__PURE__ */ a("p", {
|
|
500
500
|
style: c.emptyTitle,
|
|
501
501
|
children: p("bigconsole.widget.webhookConfig.loading", "Loading...")
|
|
502
502
|
})
|
|
503
|
-
}) : S.length === 0 ? /* @__PURE__ */
|
|
503
|
+
}) : S.length === 0 ? /* @__PURE__ */ o("div", {
|
|
504
504
|
style: c.emptyState,
|
|
505
505
|
role: "status",
|
|
506
|
-
children: [/* @__PURE__ */
|
|
506
|
+
children: [/* @__PURE__ */ a("p", {
|
|
507
507
|
style: c.emptyTitle,
|
|
508
508
|
children: p("bigconsole.widget.webhookConfig.noWebhooks", "No webhooks configured")
|
|
509
|
-
}), /* @__PURE__ */
|
|
509
|
+
}), /* @__PURE__ */ a("p", {
|
|
510
510
|
style: {
|
|
511
511
|
fontSize: "var(--font-size-body-sm)",
|
|
512
512
|
marginTop: "8px"
|
|
513
513
|
},
|
|
514
514
|
children: p("bigconsole.widget.webhookConfig.noWebhooksHelp", "Add a webhook to receive events when actions are triggered.")
|
|
515
515
|
})]
|
|
516
|
-
}) : /* @__PURE__ */
|
|
516
|
+
}) : /* @__PURE__ */ a("div", {
|
|
517
517
|
style: c.webhookList,
|
|
518
|
-
children: S.map((e) => /* @__PURE__ */
|
|
518
|
+
children: S.map((e) => /* @__PURE__ */ a(u, {
|
|
519
519
|
webhook: e,
|
|
520
520
|
onEdit: () => N(e),
|
|
521
521
|
onDelete: () => A(e.id),
|
|
@@ -5,9 +5,9 @@ import "../hooks/index.js";
|
|
|
5
5
|
import { selectActiveProposalSinks as r } from "./proposalSource.js";
|
|
6
6
|
import i from "./CustomWidgetProposalPanel.js";
|
|
7
7
|
import { memo as a, useCallback as o, useMemo as s } from "react";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import { Sheet as c, SheetContent as l, SheetDescription as u, SheetHeader as d, SheetTitle as f } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
10
|
+
import { useI18n as h } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
11
11
|
//#region src/bigconsole/customWidget/CustomWidgetBuilderSheet.tsx
|
|
12
12
|
var g = {
|
|
13
13
|
x: 0,
|
|
@@ -15,7 +15,7 @@ var g = {
|
|
|
15
15
|
width: 6,
|
|
16
16
|
height: 4
|
|
17
17
|
}, _ = "default", v = a(function({ isOpen: a, onClose: v, dashboardId: y, pageId: b, source: x }) {
|
|
18
|
-
let { t: S } =
|
|
18
|
+
let { t: S } = h(), { dataSinks: C } = t({ skipFetch: !a }), { createWidget: w } = e(b, y, { skipFetch: !0 }), T = y === _, { parsers: E, executeParser: D } = n({
|
|
19
19
|
consoleId: y,
|
|
20
20
|
skipFetch: !a
|
|
21
21
|
}), { parsers: O } = n({
|
|
@@ -57,10 +57,10 @@ var g = {
|
|
|
57
57
|
y,
|
|
58
58
|
S
|
|
59
59
|
]);
|
|
60
|
-
return /* @__PURE__ */
|
|
60
|
+
return /* @__PURE__ */ p(c, {
|
|
61
61
|
open: a,
|
|
62
62
|
onOpenChange: (e) => !e && v(),
|
|
63
|
-
children: /* @__PURE__ */
|
|
63
|
+
children: /* @__PURE__ */ m(l, {
|
|
64
64
|
style: {
|
|
65
65
|
width: "min(480px, 100vw)",
|
|
66
66
|
maxWidth: "100vw",
|
|
@@ -68,20 +68,20 @@ var g = {
|
|
|
68
68
|
display: "flex",
|
|
69
69
|
flexDirection: "column"
|
|
70
70
|
},
|
|
71
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ m(d, {
|
|
72
72
|
style: {
|
|
73
73
|
padding: "var(--space-cardPadding)",
|
|
74
74
|
borderBottom: "1px solid var(--color-border-subtle)",
|
|
75
75
|
backgroundColor: "var(--color-bg-surface)",
|
|
76
76
|
flexShrink: 0
|
|
77
77
|
},
|
|
78
|
-
children: [/* @__PURE__ */
|
|
79
|
-
}), /* @__PURE__ */
|
|
78
|
+
children: [/* @__PURE__ */ p(f, { children: S("bigconsole.widget.customWidget.sheet.title", "AI custom widget") }), /* @__PURE__ */ p(u, { children: S("bigconsole.widget.customWidget.sheet.description", "Describe a widget, review the proposal, then approve it onto the dashboard.") })]
|
|
79
|
+
}), /* @__PURE__ */ p("div", {
|
|
80
80
|
style: {
|
|
81
81
|
flex: 1,
|
|
82
82
|
minHeight: 0
|
|
83
83
|
},
|
|
84
|
-
children: /* @__PURE__ */
|
|
84
|
+
children: /* @__PURE__ */ p(i, {
|
|
85
85
|
sinks: k,
|
|
86
86
|
parsers: A,
|
|
87
87
|
resolvePreviewData: j,
|