feat(viewer): support hardware contract 2.10

This commit is contained in:
Mikhail Chusavitin
2026-04-30 15:49:52 +03:00
parent 39a6f128f1
commit 2a15bc87f1
4 changed files with 102 additions and 15 deletions

View File

@@ -10,7 +10,8 @@ It is designed to be embedded as a module in other Go applications that already
- Render one Reanimator JSON snapshot as HTML
- Read-only presentation of top-level metadata and hardware sections
- Tabular rendering for arrays such as `cpus`, `memory`, `storage`, `pcie_devices`, `power_supplies`, and sensor subsections
- Tabular rendering for arrays such as `cpus`, `memory`, `storage`, `pcie_devices`, `power_supplies`, `event_logs`, and sensor subsections
- Object rendering for singleton/config sections such as `board` and `platform_config`
- Status color coding for fast scanning
- Lightweight section navigation
- Standalone HTML rendering or embeddable HTTP handler

View File

@@ -30,13 +30,16 @@ Preferred order:
6. `pcie_devices`
7. `power_supplies`
8. `sensors`
9. unknown sections
9. `event_logs`
10. `platform_config`
11. unknown sections
## Section Presentation
- singleton object sections render as key-value table
- array sections render as compact data tables
- sensors render as separate subtables for `fans`, `power`, `temperatures`, and `other`
- `platform_config` renders as a key-value table without interpreting setting names or values
## Visual Rules