-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
fix(explore/data-table-pane): intuitive caret icons to expand/collapse data table pane #32271
base: master
Are you sure you want to change the base?
fix(explore/data-table-pane): intuitive caret icons to expand/collapse data table pane #32271
Conversation
…e data table pane Signed-off-by: hainenber <[email protected]>
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.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
Category | Issue | Fix Detected |
---|---|---|
Counter-intuitive caret direction ▹ view |
Files scanned
File Path | Reviewed |
---|---|
superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.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 Documentation ✅ Logging ✅ Error Handling ✅ Readability ✅ Design ✅ 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
const caretIcon = panelOpen ? ( | ||
<Icons.CaretUp | ||
<Icons.CaretDown | ||
iconColor={theme.colors.grayscale.base} | ||
aria-label={t('Collapse data panel')} | ||
/> | ||
) : ( | ||
<Icons.CaretDown | ||
<Icons.CaretUp | ||
iconColor={theme.colors.grayscale.base} | ||
aria-label={t('Expand data panel')} | ||
/> |
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.
Counter-intuitive caret direction 
Tell me more
What is the issue?
The caret icon direction is counterintuitive to the panel's state. When the panel is open, a downward caret suggests closing, but here it's reversed.
Why this matters
This creates a confusing user experience as the visual cue (caret direction) contradicts the standard UI pattern where up means expand and down means collapse.
Suggested change ∙ Feature Preview
const caretIcon = panelOpen ? (
<Icons.CaretUp
iconColor={theme.colors.grayscale.base}
aria-label={t('Collapse data panel')}
/>
) : (
<Icons.CaretDown
iconColor={theme.colors.grayscale.base}
aria-label={t('Expand data panel')}
/>
);
💬 Chat with Korbit by mentioning @korbit-ai.
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.
@korbit-ai if the panel is currently collapsed, caret direction should give the visual cue that user can expand it and vice versa.
It's the case with VSCode's terminal pane, notice the caret icon second one from left
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.
Thanks for your response @hainenber. That's a valid point, and having consistency with VSCode's visualization is a good reason to stick to the current icon direction. We should make sure to keep the design consistent with what users are familiar with. This will give us more leverage on improving user experience. However, in most UI design patterns you'll find that the downward caret is used to signify 'dropdown' or 'expand'. This is to cater to new users or those who are not familiar with this behavior in VSCode, which was my initial consideration. Maybe a user study or A/B testing can help us better evaluate this change.
thanks for reply, Kasia. I'm still kinda confused as the header The data table pane is at the bottom so it's much more intuitive, at least for me, to see a collapsed pane with an "up" caret. The expansion would go upward as hinted by the "up" icon Screen.Recording.2025-02-19.at.08.44.19.mov |
fix(explore/data-table-pane): intuitive caret icons to expand/collapse data table pane
SUMMARY
The caret icons shown in the footer's data table pane is quite confusing: it should be
up
when someone needs to expand the pane and vice versa for collapse case.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before


After


TESTING INSTRUCTIONS
ADDITIONAL INFORMATION