-
Notifications
You must be signed in to change notification settings - Fork 60
Improve Preferences Interface [AARD-1906]
#1150
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
Improve Preferences Interface [AARD-1906]
#1150
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be something to merge after #1070 since it will cause a lot of merge conflicts if we merge it before 😓
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1135 first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small nitpicks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still some persistent issues here, will take over this PR since @rutmanz is out for the week.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check and make sure that the changes made while the panel is open get reverted upon pressing cancel. For me this manifested in disabling/enabling the scoreboard, pressing cancel, and having the scoreboard not revert to whatever previous state it was in (and should still be in).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Personally I don't think that the console.log you added is necessary in the ScoreboardPanel.tsx but I will leave that up to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome looks good.
Also replaces the type assertions in the preference system with more robust generics for type checking
As I briefly mentioned before, in the future please include small refactors like this in separate PRs. I don't want to discourage these types of changes at all (in fact these are my favorite types to review, so please do more of them) just separate them out of feature pushes.
Nice work ⚙️
Description
Propagates preference changes instantly instead of waiting for the panel to close. Also replaces the type assertions in the preference system with more robust generics for type checking
AARD-1906