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(explore): UX improvements for drag'n'dropping time column #15740
Conversation
Codecov Report
@@ Coverage Diff @@
## master #15740 +/- ##
=======================================
Coverage 76.92% 76.92%
=======================================
Files 983 983
Lines 51609 51624 +15
Branches 6988 6994 +6
=======================================
+ Hits 39698 39710 +12
- Misses 11688 11691 +3
Partials 223 223
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
||
// display temporal column first | ||
const columns = useMemo( | ||
() => |
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.
Is this by design?
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.
yes for now, until we add the generic X axis control.
/testenv up ENABLE_EXPLORE_DRAG_AND_DROP=true |
@junlincc Ephemeral environment spinning up at http://54.202.33.157:8080. Credentials are |
/testenv up FEATURE_ENABLE_EXPLORE_DRAG_AND_DROP=true |
@rusackas Ephemeral environment spinning up at http://54.218.121.251:8080. Credentials are |
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
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
Implements UX improvements for DnD, some of which are prerequisites for drag and dropping time columns.
Changes include:
DndColumnSelect
configurable - we don't display the delete button for time column controlcanDrop
on single selection controls. Before in order to change the selection, user had to remove current selection and drop a new column/metric. Now when control field has a value, user can just drop a new value and it will get swappedBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2021-07-16.at.13.25.06.mov
TESTING INSTRUCTIONS
Instructions for changes related to time column dnd will be described in a PR in superset-ui
To test the new behaviour of single select controls:
0. Set
ENABLE_EXPLORE_DRAG_AND_DROP
to TrueADDITIONAL INFORMATION
CC @junlincc