1.9 KiB
1.9 KiB
Runtime Flows
Render Snapshot Flow
- receive one Reanimator JSON snapshot from the caller
- decode the payload into generic/object structures without dropping unknown fields
- identify known top-level sections
- build presentation sections in preferred order
- for each array section, build the union of keys across rows
- order columns with known fields first and unknown fields after
- render the page
Status Presentation Flow
- read the raw
statusvalue from the payload - normalize only for presentation matching (
OK,Warning,Critical,Unknown,Empty) - apply status badge class
- in dense table layouts, render
statusas an icon-only column with an empty header when it improves scanning - preserve the raw status value in accessible labeling even when the visible cell shows only a pictogram
Severity Presentation Flow
- read the raw
severityvalue from the payload - map the raw value only to a presentation glyph/color class
- when a table includes
severity, add a leftmost icon-only column for it - keep the original textual
severitycolumn visible in the table - preserve the raw severity value in accessible labeling for the pictogram cell
Unknown Field Invariant
- if a field exists in the input, it must remain visible somewhere in the output
- unknown fields may appear after known fields in a section table
- unknown top-level sections may be rendered after known sections
- the viewer must never silently discard fields because they are new or unexpected
Non-Augmentation Invariant
- do not compute aggregate health summaries unless they already exist in the JSON
- do not derive warnings/failures counters
- do not infer statuses for missing fields
- do not merge or rewrite source values
Simplicity Rule
- prefer server-rendered HTML
- keep JavaScript optional and presentation-only
- do not introduce a frontend framework without a concrete present need