Repository navigation
[Frontend] feat(testing-view): highlight measurements that trigger a protection - #686
Open
jeereemiassb wants to merge 2 commits into
Open
jeereemiassb wants to merge 2 commits into
jeereemiassb wants to merge 2 commits into
Conversation
Subscribe to protection/update and keep the last protection of each measurement, keyed by the low 13 bits of the compound protection id. The measurement row turns red with a shield icon until the messages are cleared, since the new protocol sends no recovery event. Measurements are matched by a new optional Variable.adjId (numeric ADJ id), which the new adj/DataPackets catalog has to fill.
jeereemiassb
force-pushed
the
testing-view/protection-highlight
branch
from
December 3, 2026 19:01
bb788c9 to
3423725
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
When the new backend sends
protection/update, the measurement that triggered it turns red in the Telemetry tab: red background, red name and a shield icon. It stays like that until the messages are cleared. The trash button in Messages now clears the protections too, and its tooltip says so.How
(position << 13) | measurementId, soaddProtectionkeeps the last protection of each measurement underid & 0x1FFF, inactiveProtections(messages slice).VariableItemmatches a measurement through a new optionalVariable.adjId: its numeric ADJ id.Depends on
Nothing gets highlighted yet, because:
adj/DataPackets,VariableItemneeds each measurement's numericid: either filladjIdwith it, or, ifVariable.idbecomes that number, compare againstvariable.idand dropadjId.protection/updateis published by [Backend] feat(backend): payload an websocket modules #680 (backend/websocket), which also points the frontend-kit at the new websocket endpoint.Notes
adj/ProtectionPackets, which this PR doesn't fetch.Testing
pnpm --filter testing-view buildandpnpm --filter testing-view testpass locally, andeslintpasses on the changed files. The frontend CI doesn't run for PRs intonew-backend.protection/updateon this base yet.