@burdenoff/microfe-bigconsole 2026.1103.11 → 2026.1104.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/dashboard/LiveCanvasToggle.js +17 -16
- package/dist/bigconsole/components/embed/widgets/HeatmapEmbed.js +6 -3
- package/dist/bigconsole/components/widgets/chart/ChartConfig.js +130 -121
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.d.ts +8 -0
- package/dist/bigconsole/components/widgets/chart/ReferenceLinesEditor.js +159 -0
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.d.ts +2 -1
- package/dist/bigconsole/components/widgets/chart/charts/referenceElements.js +8 -4
- package/dist/bigconsole/components/widgets/chart/referenceLineDraft.d.ts +29 -0
- package/dist/bigconsole/components/widgets/chart/referenceLineDraft.js +58 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.d.ts +5 -0
- package/dist/bigconsole/components/widgets/heatmap/HeatmapWidget.js +81 -58
- package/dist/bigconsole/pages/DashboardViewPage.js +247 -238
- package/dist/bigconsole/utils/liveBoardRefresh.d.ts +31 -0
- package/dist/bigconsole/utils/liveBoardRefresh.js +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Live board refresh cadence (BOFF-10201).
|
|
3
|
+
*
|
|
4
|
+
* While GO LIVE is on, the dashboard view refetches two things:
|
|
5
|
+
*
|
|
6
|
+
* - the board STRUCTURE (dashboard + widget list) every few seconds, so new
|
|
7
|
+
* widgets and pages appear without a reload;
|
|
8
|
+
* - every on-screen widget's DATA (`GetWidget`), so a changed sink payload
|
|
9
|
+
* shows up within seconds.
|
|
10
|
+
*
|
|
11
|
+
* The widget list (`WidgetListFields`) carries no data, so before this change
|
|
12
|
+
* GO LIVE only refreshed structure and the numbers moved on each widget's own
|
|
13
|
+
* `refreshInterval` — 300s on generated boards, never when it is 0. A wall
|
|
14
|
+
* display therefore lagged a sink change by up to five minutes.
|
|
15
|
+
*
|
|
16
|
+
* The data cadence matches fe-libs' short-lived GraphQL read cache
|
|
17
|
+
* (`RECENT_QUERY_CACHE_TTL_MS`, 15s): refetching any faster would be answered
|
|
18
|
+
* from that cache and add requests without adding freshness.
|
|
19
|
+
*/
|
|
20
|
+
/** How often live mode refetches the dashboard and widget list. */
|
|
21
|
+
export declare const LIVE_STRUCTURE_POLL_MS = 3500;
|
|
22
|
+
/** How often live mode refetches every visible widget's data. */
|
|
23
|
+
export declare const LIVE_DATA_REFRESH_MS = 15000;
|
|
24
|
+
/** Whole seconds of the data cadence, for user-facing copy. */
|
|
25
|
+
export declare const LIVE_DATA_REFRESH_SECONDS: number;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the live data refetch is due. `lastRefreshAt` is null before the
|
|
28
|
+
* first refetch, which is always due so the board catches up the moment live
|
|
29
|
+
* mode is switched on or the tab becomes visible again.
|
|
30
|
+
*/
|
|
31
|
+
export declare function isLiveDataRefreshDue(lastRefreshAt: number | null, now: number): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region src/bigconsole/utils/liveBoardRefresh.ts
|
|
2
|
+
var e = 3500, t = 15e3, n = Math.round(t / 1e3);
|
|
3
|
+
function r(e, n) {
|
|
4
|
+
return e === null || n - e >= t;
|
|
5
|
+
}
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as LIVE_DATA_REFRESH_MS, n as LIVE_DATA_REFRESH_SECONDS, e as LIVE_STRUCTURE_POLL_MS, r as isLiveDataRefreshDue };
|