feat: add modal dialog, paged results, scan status, and trend value table components
- Introduced ModalDialog component for displaying modal dialogs with accessibility features. - Added PagedResults component to handle pagination of items with customizable rendering. - Created ScanStatus component to display the status of a scan with elapsed time. - Implemented TrendValueTable component for displaying trend data in a paginated table format. - Added measurement utility functions for formatting and validating measurement values. - Included tests for measurement functions and trend series fetching logic to ensure correctness.
This commit is contained in:
1 parent
c19c77334f
commit
a8b6cd4061
23 files changed
+1479
-2157
No files matched your search
@@ -1,6 +1,14 @@
|
||||
export const DEFAULT_TREND_PRESET = "1";
|
||||
export const DEFAULT_MAX_TREND_SERIES = 10;
|
||||
export const MAX_TREND_SERIES = 100;
|
||||
export const DEFAULT_TREND_ROWS = 20_000;
|
||||
export const MIN_TREND_ROWS = 100;
|
||||
export const MAX_TREND_ROWS = 50_000;
|
||||
const MAX_TREND_SAMPLES = 250_000;
|
||||
|
||||
export function maxTrendRowsForSeries(seriesCount) {
|
||||
return Math.min(MAX_TREND_ROWS, Math.floor(MAX_TREND_SAMPLES / Math.max(1, seriesCount || 1)));
|
||||
}
|
||||
|
||||
export const TREND_PRESETS = [
|
||||
{ value: "0.0034722222", label: "5 min" },
|
||||
|
||||
Reference in new issue
Block a user