-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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(dashboard): drag and drop indicator UX #26699
fix(dashboard): drag and drop indicator UX #26699
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #26699 +/- ##
==========================================
+ Coverage 67.19% 67.20% +0.01%
==========================================
Files 1899 1899
Lines 74369 74398 +29
Branches 8274 8287 +13
==========================================
+ Hits 49971 50000 +29
- Misses 22343 22349 +6
+ Partials 2055 2049 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/testenv up |
@justinpark Ephemeral environment creation is currently limited to committers. |
/testenv up |
@michael-s-molina Ephemeral environment spinning up at http://18.236.117.76:8080. Credentials are |
@justinpark this looks and feels so much better! definitely a much needed improvement :) A few things I noticed:
|
agree with Sophie on all of the above! Definitely an improvement to the dnd, thank you @justinpark one comment about the header thing Sophie mentioned: when you try to hover over it it shows a red box (error), which gave me an idea. I think maybe it could be used in places where there is not enough space to place the item, for example if the row is full. What do you think? |
@yousoph Sorry for the late response. Here are my answers.
Given that the tab (in the header) will occupy the whole row, including the right panel as shown in the following screenshot, it seems more logical for this highlight area to indicate its transition into a global header layout.
As discussed during our plans for further D&D improvements, I've earmarked this particular enhancement for @rtexelm's project. In the interim, this version will highlight in red (instead of the primary color) when you hover over the drop area, as shown in the following screenshot.
I tried to reproduce the same problem but cannot get the issue yet. please let me know if you find the problem again. |
I had a similar thought as well, but there are complexities when it comes to dropping an existing component into a space that's just enough. (For instance, the highlight box should not turn red when item [1] is dropped into a zone without space, as it's possible to reorder among the same row items. However, it should turn red when item [4] is dropped into a zone without space.)
Therefore, I've decided to retain the post notification as it is currently displayed. |
04b1319
to
e4fdc64
Compare
@michael-s-molina could you help this code review? |
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. |
(cherry picked from commit ac8c283)
(cherry picked from commit 8e2b534)
SUMMARY
Following up #26313
This commit addresses and resolves the issue of an unclear drop zone indicator that was negatively impacting the user experience in the dashboard editor.
When a component was being dragged towards the edge of the tab container or the row/column containers, multiple drop indicators were often displayed. This created confusion about the exact insertion point of the element. [fig. 1]
The root of the problem was that these dashboard components were wrapped by both draggable and droppable interfaces, which led to overlapping and conflicting drop zones. This commit modifies this by making the dashboard components draggable only, and builds a distinct, non-conflicting area for the drop zone. Moreover, it also highlights the drop zone during the dragging process to clearly indicate where the element will be placed. [fig. 2]
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
before--dashboard-indicator.mov
After:
after--dashboard-indicator.mov
TESTING INSTRUCTIONS
Go to dashboard and edit mode
Drag and drag multiple components and then save
Verify the dashboard shown as designed
ADDITIONAL INFORMATION