@meshmakers/octo-meshboard 3.4.170 → 3.4.190

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/README.md CHANGED
@@ -290,6 +290,15 @@ interface PersistentQueryDataSource {
290
290
  type: 'persistentQuery';
291
291
  queryRtId: string;
292
292
  queryName?: string;
293
+ queryFamily?: 'runtime' | 'streamData';
294
+ /**
295
+ * Stream-data opt-out. When `true`, the active MeshBoard time filter is NOT
296
+ * bound to this widget's `streamDataArgs.from/.to`, so the saved query's own
297
+ * time range wins. Default auto-binds the time filter. SD-only (ignored for
298
+ * runtime queries). Exposed in the config dialog as the
299
+ * "Ignore MeshBoard time filter" toggle, shown only for stream-data queries.
300
+ */
301
+ ignoreTimeFilter?: boolean;
293
302
  }
294
303
  ```
295
304
 
@@ -392,6 +401,23 @@ interface MeshBoardTimeFilterConfig {
392
401
  }
393
402
  ```
394
403
 
404
+ ### Stream-data widgets: automatic time-range binding
405
+
406
+ For widgets backed by a **stream-data** persistent query, the active time filter
407
+ is auto-bound to the query's `streamDataArgs.from/.to` — you do **not** need to add
408
+ a `fieldFilter` on `timestamp`. This pushes the range down to the backend
409
+ (CrateDB `DATE_BIN` / downsampling bucket sizing) instead of post-filtering rows.
410
+
411
+ The binding is resolved centrally by
412
+ `MeshBoardStateService.resolveStreamDataTimeArgs(ignoreTimeFilter)`; every
413
+ stream-data widget calls it.
414
+
415
+ **Per-widget opt-out:** the config dialog of each stream-data widget shows an
416
+ **"Ignore MeshBoard time filter"** toggle (only when the selected query is a
417
+ stream-data query). Enabling it sets `ignoreTimeFilter: true` on the data source
418
+ so the saved query's intrinsic time range wins. Runtime queries ignore the time
419
+ filter binding entirely and never show the toggle.
420
+
395
421
  ## Services
396
422
 
397
423
  ### MeshBoardStateService