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
[#581] CodeView#filter: add interactive selection switch #608
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.
Perhaps the indicated selection (i.e. radio button) can update when the user presses but have not entered anything into the filter box. This can provide more user feedback by showing that the selection has changed.
Have edited it as request. |
# Conflicts: # frontend/src/index.jade # frontend/src/static/js/v_authorship.js
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.
I notice the filter box is not "disabled" (looks grey) after switching. Is it intended this way?
It should be the intended behavior mentioned in #581 . |
# Conflicts: # frontend/src/index.jade
hmm... after playing around with the feature, it feels like the previous state was more intuitive although it takes an extra click. What do you guys think? |
@eugenepeh @yamidark @yong24s Your opinions on this? |
Sounds good to me |
Sounds good to me as well |
@damithc I have changed as request, please review the latest commit. |
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 👍
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.
minor nits
Codecov Report
@@ Coverage Diff @@
## master #608 +/- ##
============================================
- Coverage 80.64% 80.22% -0.42%
+ Complexity 537 522 -15
============================================
Files 68 68
Lines 1767 1745 -22
Branches 185 179 -6
============================================
- Hits 1425 1400 -25
- Misses 247 251 +4
+ Partials 95 94 -1
Continue to review full report at Codecov.
|
Fixes #581
The filter selection's radio button serves nothing more than an "indicator".
Changing option doesn't do anything until the corresponding controls are
modified.
It is redundant and inconvenient for users to manually switch the selection.
Instead of disabling the deselected option, let's allow interaction switch
the selection.