@burdenoff/microfe-bigconsole 2026.1112.2 → 2026.1113.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bigconsole/components/datasink/DataSinkCard.js +60 -58
- package/dist/bigconsole/components/widgets/WidgetWrapper.js +123 -121
- package/dist/bigconsole/context/BigConsoleContext.d.ts +2 -0
- package/dist/bigconsole/context/BigConsoleContext.js +14 -12
- package/dist/bigconsole/pages/DashboardViewPage.js +241 -239
- package/dist/bigconsole/pages/DashboardsPage.js +265 -262
- package/dist/bigconsole/pages/DataSinkViewPage.js +253 -251
- package/dist/bigconsole/pages/DataSinksPage.js +162 -160
- package/dist/bigconsole/pages/SettingsPage.js +127 -123
- package/dist/bigconsole/proactive/actions.d.ts +16 -0
- package/dist/bigconsole/proactive/actions.js +34 -0
- package/dist/bigconsole/proactive/activityEntity.d.ts +5 -0
- package/dist/bigconsole/proactive/activityEntity.js +27 -0
- package/dist/bigconsole/proactive/entities.d.ts +16 -0
- package/dist/bigconsole/proactive/entities.js +20 -0
- package/dist/bigconsole/proactive/index.d.ts +15 -0
- package/dist/bigconsole/proactive/index.js +5 -0
- package/dist/bigconsole/proactive/routes.d.ts +11 -0
- package/dist/bigconsole/proactive/routes.js +6 -0
- package/dist/bigconsole/types/index.d.ts +7 -0
- package/dist/generated/wspace-operations.js +213 -19
- package/dist/node_modules/zod/v4/classic/errors.js +42 -0
- package/dist/node_modules/zod/v4/classic/parse.js +5 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +622 -0
- package/dist/node_modules/zod/v4/core/api.js +427 -0
- package/dist/node_modules/zod/v4/core/checks.js +141 -0
- package/dist/node_modules/zod/v4/core/core.js +82 -0
- package/dist/node_modules/zod/v4/core/doc.js +27 -0
- package/dist/node_modules/zod/v4/core/errors.js +88 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +190 -0
- package/dist/node_modules/zod/v4/core/memoizer.js +186 -0
- package/dist/node_modules/zod/v4/core/parse.js +157 -0
- package/dist/node_modules/zod/v4/core/regexes.js +32 -0
- package/dist/node_modules/zod/v4/core/registries.js +39 -0
- package/dist/node_modules/zod/v4/core/schemas.js +856 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +328 -0
- package/dist/node_modules/zod/v4/core/util.js +415 -0
- package/dist/node_modules/zod/v4/core/versions.js +7 -0
- package/dist/node_modules/zod/v4/locales/en.js +94 -0
- package/package.json +8 -4
|
@@ -11,42 +11,42 @@ import { useI18n as _ } from "@burdenoff/fe-libs/shared/providers/shell/I18nProv
|
|
|
11
11
|
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
12
12
|
// src/bigconsole/pages/SettingsPage.tsx
|
|
13
13
|
var b = a(function() {
|
|
14
|
-
let { currentUser: n, workspaceId: r } = e();
|
|
15
|
-
return /* @__PURE__ */ v(x, {}, t(n?.id, r));
|
|
16
|
-
}), x = function() {
|
|
17
|
-
let { t
|
|
18
|
-
i(
|
|
14
|
+
let { currentUser: n, workspaceId: r, settingsExtension: i } = e();
|
|
15
|
+
return /* @__PURE__ */ v(x, { extension: i }, t(n?.id, r));
|
|
16
|
+
}), x = function({ extension: e }) {
|
|
17
|
+
let { t } = _(), a = r(), [b, x] = c(n), [S, C] = c(!1), [w, T] = c(!1), [E, D] = c(!1), [O, k] = c(b), A = i(b, O), j = a.loaded || a.loadError, M = a.settings, [N, P] = c(M);
|
|
18
|
+
i(M, N) && (P(M), A || (x(M), k(M))), g({
|
|
19
19
|
id: "bigconsole-settings",
|
|
20
|
-
label:
|
|
21
|
-
dirty:
|
|
20
|
+
label: t("bigconsole.assistant.unsaved.settingsPage", "the settings page"),
|
|
21
|
+
dirty: A
|
|
22
22
|
}), s(() => {
|
|
23
|
-
if (
|
|
24
|
-
let e = setTimeout(() =>
|
|
23
|
+
if (S) {
|
|
24
|
+
let e = setTimeout(() => C(!1), 2e3);
|
|
25
25
|
return () => clearTimeout(e);
|
|
26
26
|
}
|
|
27
|
-
}, [
|
|
28
|
-
let
|
|
29
|
-
|
|
27
|
+
}, [S]);
|
|
28
|
+
let F = o((e, t) => {
|
|
29
|
+
x((n) => ({
|
|
30
30
|
...n,
|
|
31
31
|
[e]: t
|
|
32
32
|
}));
|
|
33
|
-
}, []), { save:
|
|
34
|
-
|
|
35
|
-
}, []),
|
|
36
|
-
let e =
|
|
37
|
-
|
|
33
|
+
}, []), { save: I, reset: L } = a, R = o((e, t) => {
|
|
34
|
+
D(!1), C(t !== null), T(t === null), t && (k(t), P(t), x((n) => i(n, e) ? n : t));
|
|
35
|
+
}, []), z = o(async () => {
|
|
36
|
+
let e = b;
|
|
37
|
+
D(!0), T(!1), R(e, await I(e));
|
|
38
38
|
}, [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
]),
|
|
43
|
-
let e =
|
|
44
|
-
|
|
39
|
+
R,
|
|
40
|
+
I,
|
|
41
|
+
b
|
|
42
|
+
]), B = o(async () => {
|
|
43
|
+
let e = b;
|
|
44
|
+
D(!0), T(!1), R(e, await L());
|
|
45
45
|
}, [
|
|
46
|
+
R,
|
|
46
47
|
L,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
]), B = {
|
|
48
|
+
b
|
|
49
|
+
]), V = {
|
|
50
50
|
width: "100%",
|
|
51
51
|
padding: "8px 12px",
|
|
52
52
|
borderRadius: "var(--radius-button)",
|
|
@@ -54,17 +54,17 @@ var b = a(function() {
|
|
|
54
54
|
backgroundColor: "var(--color-bg-canvas)",
|
|
55
55
|
color: "var(--color-text-primary)",
|
|
56
56
|
fontSize: "var(--font-size-body-sm)"
|
|
57
|
-
},
|
|
57
|
+
}, H = {
|
|
58
58
|
display: "block",
|
|
59
59
|
fontSize: "var(--font-size-body-sm)",
|
|
60
60
|
fontWeight: "var(--font-weight-medium)",
|
|
61
61
|
color: "var(--color-text-primary)",
|
|
62
62
|
marginBottom: 4
|
|
63
|
-
},
|
|
63
|
+
}, U = {
|
|
64
64
|
fontSize: "var(--font-size-body-sm)",
|
|
65
65
|
color: "var(--color-text-muted)",
|
|
66
66
|
marginTop: 4
|
|
67
|
-
},
|
|
67
|
+
}, W = {
|
|
68
68
|
backgroundColor: "var(--color-bg-surface)",
|
|
69
69
|
border: "1px solid var(--color-border-seam)",
|
|
70
70
|
borderRadius: "var(--radius-card)",
|
|
@@ -111,7 +111,7 @@ var b = a(function() {
|
|
|
111
111
|
fontWeight: "var(--font-weight-bold)",
|
|
112
112
|
color: "var(--color-text-primary)"
|
|
113
113
|
},
|
|
114
|
-
children: /* @__PURE__ */ v(m, { children:
|
|
114
|
+
children: /* @__PURE__ */ v(m, { children: t("bigconsole.settings.header.title", "Settings") })
|
|
115
115
|
})]
|
|
116
116
|
}), /* @__PURE__ */ v("p", {
|
|
117
117
|
style: {
|
|
@@ -119,7 +119,7 @@ var b = a(function() {
|
|
|
119
119
|
color: "var(--color-text-secondary)",
|
|
120
120
|
marginTop: 4
|
|
121
121
|
},
|
|
122
|
-
children:
|
|
122
|
+
children: t("bigconsole.settings.header.subtitle", "Configure BigConsole preferences")
|
|
123
123
|
})] }),
|
|
124
124
|
/* @__PURE__ */ y("div", {
|
|
125
125
|
style: {
|
|
@@ -127,8 +127,8 @@ var b = a(function() {
|
|
|
127
127
|
gap: 8
|
|
128
128
|
},
|
|
129
129
|
children: [/* @__PURE__ */ y("button", {
|
|
130
|
-
onClick: () => void
|
|
131
|
-
disabled:
|
|
130
|
+
onClick: () => void B(),
|
|
131
|
+
disabled: E || !j,
|
|
132
132
|
style: {
|
|
133
133
|
display: "flex",
|
|
134
134
|
alignItems: "center",
|
|
@@ -144,19 +144,19 @@ var b = a(function() {
|
|
|
144
144
|
children: [
|
|
145
145
|
/* @__PURE__ */ v(l, { size: 14 }),
|
|
146
146
|
" ",
|
|
147
|
-
|
|
147
|
+
t("bigconsole.settings.actions.reset", "Reset")
|
|
148
148
|
]
|
|
149
149
|
}), /* @__PURE__ */ y("button", {
|
|
150
|
-
onClick: () => void
|
|
151
|
-
disabled:
|
|
152
|
-
"aria-busy":
|
|
150
|
+
onClick: () => void z(),
|
|
151
|
+
disabled: E || !j,
|
|
152
|
+
"aria-busy": E,
|
|
153
153
|
style: {
|
|
154
154
|
display: "flex",
|
|
155
155
|
alignItems: "center",
|
|
156
156
|
gap: 6,
|
|
157
157
|
padding: "8px 16px",
|
|
158
158
|
borderRadius: "var(--radius-button)",
|
|
159
|
-
backgroundColor:
|
|
159
|
+
backgroundColor: S ? "var(--color-status-success-bg)" : "var(--color-action-primary-bg)",
|
|
160
160
|
color: "var(--color-action-primary-text)",
|
|
161
161
|
fontWeight: "var(--font-weight-medium)",
|
|
162
162
|
fontSize: "var(--font-size-body-sm)",
|
|
@@ -167,29 +167,29 @@ var b = a(function() {
|
|
|
167
167
|
children: [
|
|
168
168
|
/* @__PURE__ */ v(u, { size: 14 }),
|
|
169
169
|
" ",
|
|
170
|
-
|
|
170
|
+
E ? t("bigconsole.settings.actions.saving", "Saving…") : S ? t("bigconsole.settings.actions.savedToAccount", "Saved") : t("bigconsole.settings.actions.saveToAccount", "Save")
|
|
171
171
|
]
|
|
172
172
|
})]
|
|
173
173
|
})
|
|
174
174
|
]
|
|
175
175
|
}),
|
|
176
|
-
|
|
176
|
+
w && /* @__PURE__ */ v("p", {
|
|
177
177
|
role: "alert",
|
|
178
178
|
className: "mb-form-gap text-status-error-text",
|
|
179
|
-
children:
|
|
179
|
+
children: t("bigconsole.settings.actions.saveFailed", "Your preferences could not be saved. Check your connection and try again.")
|
|
180
180
|
}),
|
|
181
|
-
|
|
181
|
+
a.loadError && /* @__PURE__ */ v("p", {
|
|
182
182
|
role: "status",
|
|
183
183
|
className: "mb-form-gap text-text-muted",
|
|
184
|
-
children:
|
|
184
|
+
children: t("bigconsole.settings.loadFailed", "Your saved preferences could not be loaded. The values shown are the last ones this browser used.")
|
|
185
185
|
}),
|
|
186
186
|
/* @__PURE__ */ v(h, {
|
|
187
187
|
className: "mb-[var(--space-sectionGap)]",
|
|
188
|
-
children:
|
|
188
|
+
children: t("bigconsole.settings.accountDefaultsPurpose", "These defaults apply when you add dashboard pages, widgets and data sinks, and display preferences update existing widgets. They are saved to your account for this workspace, so they follow you on every device and browser. They do not change existing page layouts, widget refresh schedules or data sink cache settings, and are not shared with your team.")
|
|
189
189
|
}),
|
|
190
190
|
/* @__PURE__ */ y("fieldset", {
|
|
191
|
-
disabled: !
|
|
192
|
-
"aria-busy": !
|
|
191
|
+
disabled: !j,
|
|
192
|
+
"aria-busy": !j,
|
|
193
193
|
className: "m-0 min-w-0 border-0 p-0",
|
|
194
194
|
children: [
|
|
195
195
|
/* @__PURE__ */ y(p, {
|
|
@@ -201,98 +201,98 @@ var b = a(function() {
|
|
|
201
201
|
color: "var(--color-text-primary)",
|
|
202
202
|
marginBottom: 16
|
|
203
203
|
},
|
|
204
|
-
children:
|
|
204
|
+
children: t("bigconsole.settings.dashboardDefaults.title", "Dashboard Defaults")
|
|
205
205
|
}), /* @__PURE__ */ y("div", {
|
|
206
206
|
className: "grid gap-form-gap md:grid-cols-3",
|
|
207
207
|
children: [
|
|
208
208
|
/* @__PURE__ */ y("div", { children: [
|
|
209
209
|
/* @__PURE__ */ v("label", {
|
|
210
210
|
htmlFor: "grid-cols",
|
|
211
|
-
style:
|
|
212
|
-
children:
|
|
211
|
+
style: H,
|
|
212
|
+
children: t("bigconsole.settings.dashboardDefaults.gridColumns.label", "Grid Columns")
|
|
213
213
|
}),
|
|
214
214
|
/* @__PURE__ */ v("input", {
|
|
215
215
|
id: "grid-cols",
|
|
216
216
|
type: "number",
|
|
217
217
|
min: 4,
|
|
218
218
|
max: 24,
|
|
219
|
-
value:
|
|
220
|
-
onChange: (e) =>
|
|
221
|
-
style:
|
|
219
|
+
value: b.defaultGridColumns,
|
|
220
|
+
onChange: (e) => F("defaultGridColumns", Math.min(24, Math.max(4, Number(e.target.value) || 12))),
|
|
221
|
+
style: V
|
|
222
222
|
}),
|
|
223
223
|
/* @__PURE__ */ v("p", {
|
|
224
|
-
style:
|
|
225
|
-
children:
|
|
224
|
+
style: U,
|
|
225
|
+
children: t("bigconsole.settings.dashboardDefaults.gridColumns.help", "Number of columns in the dashboard grid (4-24)")
|
|
226
226
|
})
|
|
227
227
|
] }),
|
|
228
228
|
/* @__PURE__ */ y("div", { children: [
|
|
229
229
|
/* @__PURE__ */ v("label", {
|
|
230
230
|
htmlFor: "widget-height",
|
|
231
|
-
style:
|
|
232
|
-
children:
|
|
231
|
+
style: H,
|
|
232
|
+
children: t("bigconsole.settings.dashboardDefaults.widgetHeight.label", "Default Widget Height")
|
|
233
233
|
}),
|
|
234
234
|
/* @__PURE__ */ v("input", {
|
|
235
235
|
id: "widget-height",
|
|
236
236
|
type: "number",
|
|
237
237
|
min: 2,
|
|
238
238
|
max: 12,
|
|
239
|
-
value:
|
|
240
|
-
onChange: (e) =>
|
|
241
|
-
style:
|
|
239
|
+
value: b.defaultWidgetHeight,
|
|
240
|
+
onChange: (e) => F("defaultWidgetHeight", Math.min(12, Math.max(2, Number(e.target.value) || 4))),
|
|
241
|
+
style: V
|
|
242
242
|
}),
|
|
243
243
|
/* @__PURE__ */ v("p", {
|
|
244
|
-
style:
|
|
245
|
-
children:
|
|
244
|
+
style: U,
|
|
245
|
+
children: t("bigconsole.settings.dashboardDefaults.widgetHeight.help", "Default height units for new widgets (2-12)")
|
|
246
246
|
})
|
|
247
247
|
] }),
|
|
248
248
|
/* @__PURE__ */ y("div", { children: [
|
|
249
249
|
/* @__PURE__ */ v("label", {
|
|
250
250
|
htmlFor: "refresh-interval",
|
|
251
|
-
style:
|
|
252
|
-
children:
|
|
251
|
+
style: H,
|
|
252
|
+
children: t("bigconsole.settings.dashboardDefaults.refreshInterval.label", "Auto-Refresh Interval (seconds)")
|
|
253
253
|
}),
|
|
254
254
|
/* @__PURE__ */ y("select", {
|
|
255
255
|
id: "refresh-interval",
|
|
256
|
-
value:
|
|
257
|
-
onChange: (e) =>
|
|
258
|
-
style:
|
|
256
|
+
value: b.defaultRefreshInterval,
|
|
257
|
+
onChange: (e) => F("defaultRefreshInterval", parseInt(e.target.value)),
|
|
258
|
+
style: V,
|
|
259
259
|
children: [
|
|
260
260
|
/* @__PURE__ */ v("option", {
|
|
261
261
|
value: 0,
|
|
262
|
-
children:
|
|
262
|
+
children: t("bigconsole.settings.dashboardDefaults.refreshInterval.disabled", "Disabled")
|
|
263
263
|
}),
|
|
264
264
|
/* @__PURE__ */ v("option", {
|
|
265
265
|
value: 10,
|
|
266
|
-
children:
|
|
266
|
+
children: t("bigconsole.settings.dashboardDefaults.refreshInterval.seconds10", "10 seconds")
|
|
267
267
|
}),
|
|
268
268
|
/* @__PURE__ */ v("option", {
|
|
269
269
|
value: 30,
|
|
270
|
-
children:
|
|
270
|
+
children: t("bigconsole.settings.dashboardDefaults.refreshInterval.seconds30", "30 seconds")
|
|
271
271
|
}),
|
|
272
272
|
/* @__PURE__ */ v("option", {
|
|
273
273
|
value: 60,
|
|
274
|
-
children:
|
|
274
|
+
children: t("bigconsole.settings.dashboardDefaults.refreshInterval.minute1", "1 minute")
|
|
275
275
|
}),
|
|
276
276
|
/* @__PURE__ */ v("option", {
|
|
277
277
|
value: 300,
|
|
278
|
-
children:
|
|
278
|
+
children: t("bigconsole.settings.dashboardDefaults.refreshInterval.minutes5", "5 minutes")
|
|
279
279
|
}),
|
|
280
280
|
/* @__PURE__ */ v("option", {
|
|
281
281
|
value: 600,
|
|
282
|
-
children:
|
|
282
|
+
children: t("bigconsole.settings.dashboardDefaults.refreshInterval.minutes10", "10 minutes")
|
|
283
283
|
})
|
|
284
284
|
]
|
|
285
285
|
}),
|
|
286
286
|
/* @__PURE__ */ v("p", {
|
|
287
|
-
style:
|
|
288
|
-
children:
|
|
287
|
+
style: U,
|
|
288
|
+
children: t("bigconsole.settings.dashboardDefaults.refreshInterval.help", "How often widgets refresh their data automatically")
|
|
289
289
|
})
|
|
290
290
|
] })
|
|
291
291
|
]
|
|
292
292
|
})]
|
|
293
293
|
}),
|
|
294
294
|
/* @__PURE__ */ y("div", {
|
|
295
|
-
style:
|
|
295
|
+
style: W,
|
|
296
296
|
children: [/* @__PURE__ */ v("h2", {
|
|
297
297
|
style: {
|
|
298
298
|
fontSize: "var(--font-size-body-md)",
|
|
@@ -300,7 +300,7 @@ var b = a(function() {
|
|
|
300
300
|
color: "var(--color-text-primary)",
|
|
301
301
|
marginBottom: 16
|
|
302
302
|
},
|
|
303
|
-
children:
|
|
303
|
+
children: t("bigconsole.settings.cache.title", "Cache")
|
|
304
304
|
}), /* @__PURE__ */ y("div", {
|
|
305
305
|
className: "grid gap-form-gap md:grid-cols-2",
|
|
306
306
|
children: [/* @__PURE__ */ y("div", {
|
|
@@ -310,22 +310,22 @@ var b = a(function() {
|
|
|
310
310
|
justifyContent: "space-between"
|
|
311
311
|
},
|
|
312
312
|
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
|
|
313
|
-
style: V,
|
|
314
|
-
children: e("bigconsole.settings.cache.enable.label", "Enable Cache")
|
|
315
|
-
}), /* @__PURE__ */ v("p", {
|
|
316
313
|
style: H,
|
|
317
|
-
children:
|
|
314
|
+
children: t("bigconsole.settings.cache.enable.label", "Enable Cache")
|
|
315
|
+
}), /* @__PURE__ */ v("p", {
|
|
316
|
+
style: U,
|
|
317
|
+
children: t("bigconsole.settings.cache.newSinkHelp", "Enable caching by default for new data sinks")
|
|
318
318
|
})] }), /* @__PURE__ */ v("button", {
|
|
319
|
-
onClick: () =>
|
|
319
|
+
onClick: () => F("cacheEnabled", !b.cacheEnabled),
|
|
320
320
|
role: "switch",
|
|
321
|
-
"aria-checked":
|
|
322
|
-
"aria-label":
|
|
321
|
+
"aria-checked": b.cacheEnabled,
|
|
322
|
+
"aria-label": t("bigconsole.settings.cache.enable.label", "Enable Cache"),
|
|
323
323
|
style: {
|
|
324
324
|
width: 44,
|
|
325
325
|
flexShrink: 0,
|
|
326
326
|
height: 24,
|
|
327
327
|
borderRadius: 12,
|
|
328
|
-
backgroundColor:
|
|
328
|
+
backgroundColor: b.cacheEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
329
329
|
border: "none",
|
|
330
330
|
cursor: "pointer",
|
|
331
331
|
position: "relative",
|
|
@@ -338,34 +338,34 @@ var b = a(function() {
|
|
|
338
338
|
backgroundColor: "var(--color-action-primary-text)",
|
|
339
339
|
position: "absolute",
|
|
340
340
|
top: 3,
|
|
341
|
-
left:
|
|
341
|
+
left: b.cacheEnabled ? 23 : 3,
|
|
342
342
|
transition: "left 200ms"
|
|
343
343
|
} })
|
|
344
344
|
})]
|
|
345
|
-
}),
|
|
345
|
+
}), b.cacheEnabled && /* @__PURE__ */ y("div", { children: [
|
|
346
346
|
/* @__PURE__ */ v("label", {
|
|
347
347
|
htmlFor: "cache-ttl",
|
|
348
|
-
style:
|
|
349
|
-
children:
|
|
348
|
+
style: H,
|
|
349
|
+
children: t("bigconsole.settings.cache.ttl.label", "Cache TTL (seconds)")
|
|
350
350
|
}),
|
|
351
351
|
/* @__PURE__ */ v("input", {
|
|
352
352
|
id: "cache-ttl",
|
|
353
353
|
type: "number",
|
|
354
354
|
min: 30,
|
|
355
355
|
max: 3600,
|
|
356
|
-
value:
|
|
357
|
-
onChange: (e) =>
|
|
358
|
-
style:
|
|
356
|
+
value: b.cacheTTLSeconds,
|
|
357
|
+
onChange: (e) => F("cacheTTLSeconds", Math.min(3600, Math.max(30, Number(e.target.value) || 300))),
|
|
358
|
+
style: V
|
|
359
359
|
}),
|
|
360
360
|
/* @__PURE__ */ v("p", {
|
|
361
|
-
style:
|
|
362
|
-
children:
|
|
361
|
+
style: U,
|
|
362
|
+
children: t("bigconsole.settings.cache.ttl.help", "How long cached data is considered fresh (30-3600)")
|
|
363
363
|
})
|
|
364
364
|
] })]
|
|
365
365
|
})]
|
|
366
366
|
}),
|
|
367
367
|
/* @__PURE__ */ y("div", {
|
|
368
|
-
style:
|
|
368
|
+
style: W,
|
|
369
369
|
children: [/* @__PURE__ */ v("h2", {
|
|
370
370
|
style: {
|
|
371
371
|
fontSize: "var(--font-size-body-md)",
|
|
@@ -373,7 +373,7 @@ var b = a(function() {
|
|
|
373
373
|
color: "var(--color-text-primary)",
|
|
374
374
|
marginBottom: 16
|
|
375
375
|
},
|
|
376
|
-
children:
|
|
376
|
+
children: t("bigconsole.settings.display.title", "Display")
|
|
377
377
|
}), /* @__PURE__ */ y("div", {
|
|
378
378
|
className: "grid gap-form-gap md:grid-cols-3",
|
|
379
379
|
children: [
|
|
@@ -384,22 +384,22 @@ var b = a(function() {
|
|
|
384
384
|
justifyContent: "space-between"
|
|
385
385
|
},
|
|
386
386
|
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
|
|
387
|
-
style: V,
|
|
388
|
-
children: e("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders")
|
|
389
|
-
}), /* @__PURE__ */ v("p", {
|
|
390
387
|
style: H,
|
|
391
|
-
children:
|
|
388
|
+
children: t("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders")
|
|
389
|
+
}), /* @__PURE__ */ v("p", {
|
|
390
|
+
style: U,
|
|
391
|
+
children: t("bigconsole.settings.display.widgetBorders.help", "Display borders around widgets in dashboards")
|
|
392
392
|
})] }), /* @__PURE__ */ v("button", {
|
|
393
|
-
onClick: () =>
|
|
393
|
+
onClick: () => F("showWidgetBorders", !b.showWidgetBorders),
|
|
394
394
|
role: "switch",
|
|
395
|
-
"aria-checked":
|
|
396
|
-
"aria-label":
|
|
395
|
+
"aria-checked": b.showWidgetBorders,
|
|
396
|
+
"aria-label": t("bigconsole.settings.display.widgetBorders.label", "Show Widget Borders"),
|
|
397
397
|
style: {
|
|
398
398
|
width: 44,
|
|
399
399
|
flexShrink: 0,
|
|
400
400
|
height: 24,
|
|
401
401
|
borderRadius: 12,
|
|
402
|
-
backgroundColor:
|
|
402
|
+
backgroundColor: b.showWidgetBorders ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
403
403
|
border: "none",
|
|
404
404
|
cursor: "pointer",
|
|
405
405
|
position: "relative",
|
|
@@ -412,7 +412,7 @@ var b = a(function() {
|
|
|
412
412
|
backgroundColor: "var(--color-action-primary-text)",
|
|
413
413
|
position: "absolute",
|
|
414
414
|
top: 3,
|
|
415
|
-
left:
|
|
415
|
+
left: b.showWidgetBorders ? 23 : 3,
|
|
416
416
|
transition: "left 200ms"
|
|
417
417
|
} })
|
|
418
418
|
})]
|
|
@@ -424,22 +424,22 @@ var b = a(function() {
|
|
|
424
424
|
justifyContent: "space-between"
|
|
425
425
|
},
|
|
426
426
|
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
|
|
427
|
-
style: V,
|
|
428
|
-
children: e("bigconsole.settings.display.compactMode.label", "Compact Mode")
|
|
429
|
-
}), /* @__PURE__ */ v("p", {
|
|
430
427
|
style: H,
|
|
431
|
-
children:
|
|
428
|
+
children: t("bigconsole.settings.display.compactMode.label", "Compact Mode")
|
|
429
|
+
}), /* @__PURE__ */ v("p", {
|
|
430
|
+
style: U,
|
|
431
|
+
children: t("bigconsole.settings.display.compactMode.help", "Reduce padding and spacing for more content")
|
|
432
432
|
})] }), /* @__PURE__ */ v("button", {
|
|
433
|
-
onClick: () =>
|
|
433
|
+
onClick: () => F("compactMode", !b.compactMode),
|
|
434
434
|
role: "switch",
|
|
435
|
-
"aria-checked":
|
|
436
|
-
"aria-label":
|
|
435
|
+
"aria-checked": b.compactMode,
|
|
436
|
+
"aria-label": t("bigconsole.settings.display.compactMode.label", "Compact Mode"),
|
|
437
437
|
style: {
|
|
438
438
|
width: 44,
|
|
439
439
|
flexShrink: 0,
|
|
440
440
|
height: 24,
|
|
441
441
|
borderRadius: 12,
|
|
442
|
-
backgroundColor:
|
|
442
|
+
backgroundColor: b.compactMode ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
443
443
|
border: "none",
|
|
444
444
|
cursor: "pointer",
|
|
445
445
|
position: "relative",
|
|
@@ -452,7 +452,7 @@ var b = a(function() {
|
|
|
452
452
|
backgroundColor: "var(--color-action-primary-text)",
|
|
453
453
|
position: "absolute",
|
|
454
454
|
top: 3,
|
|
455
|
-
left:
|
|
455
|
+
left: b.compactMode ? 23 : 3,
|
|
456
456
|
transition: "left 200ms"
|
|
457
457
|
} })
|
|
458
458
|
})]
|
|
@@ -464,22 +464,22 @@ var b = a(function() {
|
|
|
464
464
|
justifyContent: "space-between"
|
|
465
465
|
},
|
|
466
466
|
children: [/* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("label", {
|
|
467
|
-
style: V,
|
|
468
|
-
children: e("bigconsole.settings.display.animations.label", "Animations")
|
|
469
|
-
}), /* @__PURE__ */ v("p", {
|
|
470
467
|
style: H,
|
|
471
|
-
children:
|
|
468
|
+
children: t("bigconsole.settings.display.animations.label", "Animations")
|
|
469
|
+
}), /* @__PURE__ */ v("p", {
|
|
470
|
+
style: U,
|
|
471
|
+
children: t("bigconsole.settings.display.animations.help", "Enable transition animations and effects")
|
|
472
472
|
})] }), /* @__PURE__ */ v("button", {
|
|
473
|
-
onClick: () =>
|
|
473
|
+
onClick: () => F("animationsEnabled", !b.animationsEnabled),
|
|
474
474
|
role: "switch",
|
|
475
|
-
"aria-checked":
|
|
476
|
-
"aria-label":
|
|
475
|
+
"aria-checked": b.animationsEnabled,
|
|
476
|
+
"aria-label": t("bigconsole.settings.display.animations.label", "Animations"),
|
|
477
477
|
style: {
|
|
478
478
|
width: 44,
|
|
479
479
|
flexShrink: 0,
|
|
480
480
|
height: 24,
|
|
481
481
|
borderRadius: 12,
|
|
482
|
-
backgroundColor:
|
|
482
|
+
backgroundColor: b.animationsEnabled ? "var(--color-action-primary-bg)" : "var(--color-bg-sunken)",
|
|
483
483
|
border: "none",
|
|
484
484
|
cursor: "pointer",
|
|
485
485
|
position: "relative",
|
|
@@ -492,7 +492,7 @@ var b = a(function() {
|
|
|
492
492
|
backgroundColor: "var(--color-action-primary-text)",
|
|
493
493
|
position: "absolute",
|
|
494
494
|
top: 3,
|
|
495
|
-
left:
|
|
495
|
+
left: b.animationsEnabled ? 23 : 3,
|
|
496
496
|
transition: "left 200ms"
|
|
497
497
|
} })
|
|
498
498
|
})]
|
|
@@ -501,7 +501,11 @@ var b = a(function() {
|
|
|
501
501
|
})]
|
|
502
502
|
})
|
|
503
503
|
]
|
|
504
|
-
})
|
|
504
|
+
}),
|
|
505
|
+
e ? /* @__PURE__ */ v("div", {
|
|
506
|
+
"data-testid": "bigconsole-settings-extension",
|
|
507
|
+
children: e
|
|
508
|
+
}) : null
|
|
505
509
|
]
|
|
506
510
|
})
|
|
507
511
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ApolloClient } from '@apollo/client';
|
|
2
|
+
import { ProactiveActionHandler } from '@burdenoff/fe-libs/shared/proactive';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
export declare const RETRY_EVENT_DELIVERY_ARGS: z.ZodObject<{
|
|
5
|
+
eventId: z.ZodString;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
/** The event is gone, or the person may not read it. */
|
|
8
|
+
export declare class ProactiveEventNotFoundError extends Error {
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
11
|
+
/** The event is no longer failed (delivered, or already being retried). */
|
|
12
|
+
export declare class ProactiveEventNotRetryableError extends Error {
|
|
13
|
+
constructor();
|
|
14
|
+
}
|
|
15
|
+
/** The BigConsole handlers, by action type, for `ProactiveProvider`'s `actions`. */
|
|
16
|
+
export declare function createBigConsoleProactiveActions(client: ApolloClient): Readonly<Record<string, ProactiveActionHandler>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GetEventLogDocument as e, RetryEventDeliveryDocument as t } from "../../generated/wspace-operations.js";
|
|
2
|
+
import { BigConsoleWidgetEventStatus as n } from "../../generated/wspace-types.js";
|
|
3
|
+
import { BIGCONSOLE_PROACTIVE_ACTION as r } from "./entities.js";
|
|
4
|
+
import { strictObject as i, string as a } from "../../node_modules/zod/v4/classic/schemas.js";
|
|
5
|
+
import { defineProactiveAction as o } from "@burdenoff/fe-libs/shared/proactive";
|
|
6
|
+
// src/bigconsole/proactive/actions.ts
|
|
7
|
+
var s = a().trim().min(1).max(255).regex(/^[A-Za-z0-9][A-Za-z0-9_-]*$/), c = i({ eventId: s }), l = class extends Error {
|
|
8
|
+
constructor() {
|
|
9
|
+
super("This event could not be found."), this.name = "ProactiveEventNotFoundError";
|
|
10
|
+
}
|
|
11
|
+
}, u = class extends Error {
|
|
12
|
+
constructor() {
|
|
13
|
+
super("This event is no longer waiting for a retry."), this.name = "ProactiveEventNotRetryableError";
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
function d(i) {
|
|
17
|
+
return { [r.retryEventDelivery]: o({
|
|
18
|
+
args: c,
|
|
19
|
+
run: async ({ eventId: r }) => {
|
|
20
|
+
let { data: a } = await i.query({
|
|
21
|
+
query: e,
|
|
22
|
+
variables: { id: r },
|
|
23
|
+
fetchPolicy: "network-only"
|
|
24
|
+
}), o = a?.getEventLog;
|
|
25
|
+
if (!o) throw new l();
|
|
26
|
+
if (o.status !== n.Failed) throw new u();
|
|
27
|
+
await i.mutate({
|
|
28
|
+
mutation: t,
|
|
29
|
+
variables: { eventId: r }
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}) };
|
|
33
|
+
}
|
|
34
|
+
export { l as ProactiveEventNotFoundError, u as ProactiveEventNotRetryableError, c as RETRY_EVENT_DELIVERY_ARGS, d as createBigConsoleProactiveActions };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ProactiveActivityEntity } from '@burdenoff/fe-libs/shared/proactive';
|
|
2
|
+
/** The open entity for a location, or null when it is not one the pack knows. */
|
|
3
|
+
export declare function bigConsoleProactiveEntityFor(pathname: string, search: string): ProactiveActivityEntity | null;
|
|
4
|
+
/** The open entity, read from the current location (`getActivityEntity`). */
|
|
5
|
+
export declare function currentBigConsoleProactiveEntity(): ProactiveActivityEntity | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { resolveBigConsoleConversationContext as e } from "../assistant/pageContext.js";
|
|
2
|
+
import { BIGCONSOLE_PROACTIVE_ENTITY as t } from "./entities.js";
|
|
3
|
+
// src/bigconsole/proactive/activityEntity.ts
|
|
4
|
+
var n = {
|
|
5
|
+
BIGCONSOLE_DATASINK: t.dataSink,
|
|
6
|
+
BIGCONSOLE_DASHBOARD: t.dashboard
|
|
7
|
+
};
|
|
8
|
+
function r(t, r) {
|
|
9
|
+
let { entityType: i, entityId: a } = e(t, r);
|
|
10
|
+
if (!i || !a) return null;
|
|
11
|
+
let o = n[i];
|
|
12
|
+
if (!o) return null;
|
|
13
|
+
let s;
|
|
14
|
+
try {
|
|
15
|
+
s = decodeURIComponent(a);
|
|
16
|
+
} catch {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
return {
|
|
20
|
+
entityType: o,
|
|
21
|
+
entityId: s
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function i() {
|
|
25
|
+
return typeof window > "u" ? null : r(window.location.pathname, window.location.search);
|
|
26
|
+
}
|
|
27
|
+
export { r as bigConsoleProactiveEntityFor, i as currentBigConsoleProactiveEntity };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const BIGCONSOLE_PROACTIVE_ENTITY: {
|
|
2
|
+
readonly dataSink: "data_sink";
|
|
3
|
+
readonly dashboard: "dashboard";
|
|
4
|
+
};
|
|
5
|
+
export type BigConsoleProactiveEntityType = (typeof BIGCONSOLE_PROACTIVE_ENTITY)[keyof typeof BIGCONSOLE_PROACTIVE_ENTITY];
|
|
6
|
+
/** The product-registered action types of the pack (the built-ins are fe-libs'). */
|
|
7
|
+
export declare const BIGCONSOLE_PROACTIVE_ACTION: {
|
|
8
|
+
readonly retryEventDelivery: "retry-event-delivery";
|
|
9
|
+
};
|
|
10
|
+
/** The attribute that lets a suggestion about this data sink pin to an element. */
|
|
11
|
+
export declare function dataSinkSuggestAnchorProps(dataSinkId: string | null | undefined): Record<string, string>;
|
|
12
|
+
/**
|
|
13
|
+
* The attribute that lets a suggestion about this dashboard, or about one of
|
|
14
|
+
* its widgets when `widgetId` is given, pin to an element.
|
|
15
|
+
*/
|
|
16
|
+
export declare function dashboardSuggestAnchorProps(dashboardId: string | null | undefined, widgetId?: string | null): Record<string, string>;
|