-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Migrate Funnel visualization to React #4267
Conversation
Everything as usual - I need to add some tests, but the rest is ready for review 🙂 |
2950943
to
48694c6
Compare
48694c6
to
4b244b8
Compare
Can you explain what you mean here? |
There was "Auto sort" option: when it was |
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.
A bug I found:
- Edit viz for https://deploy-preview-4267--redash-preview.netlify.com/queries/47#111
- Change Step Column Name to "count"
- Change back to "name"
Expected - all column names return to "name"
Actual - some column names remain "count"
(I presume this has to do with non-uniqueness of count values)
@ranbena Column name options are not connected - you can choose them independently. So that's okay if you change one and others remains unchanged. But when trying to reproduce your bug, I found another one (in renderer), so anyway there is something to fix 🙂 |
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.
👌
Are we sure people would ever want to sort funnel values in an ascending order? If we decide to keep the extra option (sort order), we need to make sure that the current UX is kept, which is: when you pick the values column you get a sorted result by the values column in a descending order. At the moment, after picking the values column you need to manually pick sort column and change the the order. |
@arikfr While I think it's not a problem to change two more fields (Funnel does not have so much options as, say, Chart), but I got your point. What about compromise: when user select a value column, and sort column is not set or is the same as value column - change sort column as well and set reverse order. WDYT? |
We should strive for things to become simpler and not to complicated everything equally 😆 If 99% of the time people want some behavior we better provide it as the default.
Yes this can work. We need to change the name of the "Reverse order" setting. Because for humans, in the context of funnels, the descending order is the right order. We can change it "Descending Sort" and it will be on by default. |
Okay. Then I'll experiment with it later and will ping you 👍 |
4b0bf34
to
cf43983
Compare
@arikfr I decided to bring back "Auto Sort" option, but renamed it to "Custom Sorting" (see screenshots/check preview), and added sort direction dropdown (wasn't available prior to this PR): |
👍 |
What type of PR is this? (check all applicable)
Description
100
)0.01%
..1000%
)d3
dependencyRelated Tickets & Documents
#3301 (Migrate Visualizations to React -> Funnel)
Mobile & Desktop Screenshots/Recordings (if there are UI changes)