feat: Store & Forward packets support with custom view (closes #97) #98
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "97_store_n_forward_support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Migration: - Refactor `compactLegacyStoreForwardDetails` to tolerate both string and int `rr` (via new `resolveLegacyRR` helper). A row with a numeric `rr` and a stale `role` key was previously aborting the migration with a confusing JSON type-mismatch error. - Add `TestApply_CompactsStoreForwardDetails_AdditionalShapes` covering: nonEmptyRaw compactness (`{}`/`null`/`[]` are dropped), heartbeat sub-payload round-trip, mixed legacy shape (int rr preserved, role stripped), and from/to preservation. - Add `TestApply_CompactsStoreForwardDetails_MissingRRFailsLoudly` seeding a legacy row with no `rr` and asserting the migration aborts with "missing rr" and rolls back (schema version unchanged, row's details_json unchanged). Renderer: - Add tab switch test (Details -> Raw -> Details) verifying the structured panels are removed when Raw is active and the JSON view shows the rr key. - Add one test per sub-payload grid (stats / history / heartbeat) asserting the human-readable labels render - catches typos or dropped keys in the *Labels maps. - Add a test that both from and to render as separate node links when both are populated. Co-Authored-By: Claude <noreply@anthropic.com>