fix(beszel-mock): improve mock data fidelity and demo coverage
- Use correct time intervals per period (not always 1min) - Return newest-first sort order matching real Beszel API - Pass systemId into time series records - Stable container sets per system (deterministic from system def) - Fix pi-cluster arch to aarch64 - Clamp cpu/mem percentages to [0, 100] - Add beszelSystemStats widget to demo seed
This commit is contained in:
2 files changed
+144
-146
No files matched your search
@@ -412,8 +412,9 @@ const buildDemoWidgets = (appIds: string[]): DemoWidget[] => [
|
||||
// Row 9: beszelSystemGrid + beszelAlerts = 12
|
||||
{ kind: "beszelSystemGrid", width: 8, height: 3, needsIntegration: true },
|
||||
{ kind: "beszelAlerts", width: 4, height: 3, needsIntegration: true },
|
||||
// Row 10: beszelSystemTable = 12
|
||||
{ kind: "beszelSystemTable", width: 12, height: 3, needsIntegration: true },
|
||||
// Row 10: beszelSystemTable + beszelSystemStats = 12
|
||||
{ kind: "beszelSystemTable", width: 6, height: 3, needsIntegration: true },
|
||||
{ kind: "beszelSystemStats", width: 6, height: 4, needsIntegration: true },
|
||||
// Row 11: notebook + dockerContainers + weather = 12
|
||||
{ kind: "notebook", width: 4, height: 4, needsIntegration: false },
|
||||
{ kind: "dockerContainers", width: 6, height: 2, needsIntegration: false },
|
||||
|
||||
Reference in new issue
Block a user