Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show runstate on instruments page #84

Merged
merged 7 commits into from
Dec 6, 2024

Conversation

rerpha
Copy link
Contributor

@rerpha rerpha commented Dec 4, 2024

Adds the runstate to the instruments page by using the same mechanism as the wall display rather than rewriting all the instlist-handling for each page.

the main changes are that i've moved the logic for subscribing to the instlist and runstate pvs then parsing them to a component in app/components/InstrumentsDisplay.tsx and then used that for both, but with a different "sorting" method.

This PR also adds a load of snapshot tests to each of the groups so we can easily track when things break - ideally we'd also have unit tests for these as, despite saying we've got a much higher coverage number, we aren't really testing logic thinly.

@rerpha rerpha marked this pull request as ready for review December 4, 2024 21:26
@Tom-Willemsen Tom-Willemsen merged commit 7d04721 into main Dec 6, 2024
3 checks passed
@Tom-Willemsen Tom-Willemsen deleted the show_runstate_on_instruments_page branch December 6, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants