-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
feat(filter): adding inputs to Numerical Range Filter #31726
base: master
Are you sure you want to change the base?
feat(filter): adding inputs to Numerical Range Filter #31726
Conversation
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
@alexandrusoare would it be a good idea to make the inputs optional? Especially in horizontal filter bar orientation the added inputs may be problematic. |
@villebro I think having both the slider and the inputs offer greater control to the user, it's hard setting values just from the slider alone. For the horizontal bar I do agree that it doesn't look good, so what I propose is to have the slider next to the inputs instead of having them one on top of the other. Let me know what you think about this |
I agree with @villebro actually - the plan was to get rid of the slider entirely as it's not really an easy to use pattern. Inputs are better in terms of usability and precision. I think keeping both adds to the clutter and we already have a lot of different elements in this dashboard view. |
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've completed my review and didn't find any issues.
Files scanned
File Path | Reviewed |
---|---|
superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Need a new review? Comment
/korbit-review
on this PR and I'll review your latest changes.Korbit Guide: Usage and Customization
Interacting with Korbit
- You can manually ask Korbit to review your PR using the
/korbit-review
command in a comment at the root of your PR.- You can ask Korbit to generate a new PR description using the
/korbit-generate-pr-description
command in any comment on your PR.- Too many Korbit comments? I can resolve all my comment threads if you use the
/korbit-resolve
command in any comment on your PR.- Chat with Korbit on issues we post by tagging @korbit-ai in your reply.
- Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.
Customizing Korbit
- Check out our docs on how you can make Korbit work best for you and your team.
- Customize Korbit for your organization through the Korbit Console.
Current Korbit Configuration
General Settings
Setting Value Review Schedule Automatic excluding drafts Max Issue Count 10 Automatic PR Descriptions ✅ Issue Categories
Category Enabled Naming ✅ Database Operations ✅ Documentation ✅ Logging ✅ Error Handling ✅ Systems and Environment ✅ Objects and Data Structures ✅ Readability and Maintainability ✅ Asynchronous Processing ✅ Design Patterns ✅ Third-Party Libraries ✅ Performance ✅ Security ✅ Functionality ✅ Feedback and Support
Note
Korbit Pro is free for open source projects 🎉
Looking to add Korbit to your team? Get started with a free 2 week trial here
Reviewers: this PR just left draft state. |
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.
👍 on the cypress test. I'll leave the other two files for people that have more experience with those components.
Something is wrong when working with these inputs in the native filters modal.
1.-.Sample.dashboard.mp4 |
superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx
Outdated
Show resolved
Hide resolved
4fba41c
to
2f482ec
Compare
I am still seeing a bunch of different issues:
Tabbed.Dashboard.mp4 |
Hey @geido , thank you for your feedback. Regarding the first issue, this is something that I could reproduce on master as well, and with all the types of filters, not just the Numerical Range one |
SUMMARY
Adding inputs to the Numerical Range Filter
Fixes #31345
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE
AFTER
BEFORE
AFTER
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
Description by Korbit AI
What change is being made?
Add numerical input fields to the Numerical Range Filter and update tests to reflect and verify this new functionality.
Why are these changes being made?
The current slider interface is being replaced with numerical input fields to improve precision and user control in defining numerical ranges. This enhancement also ensures that the inputs sync to maintain valid ranges dynamically, improving usability. The accompanying tests are updated to ensure the new input behavior works as expected and edge cases are properly handled.