- Issue created by @DanielVeza
- ๐ฎ๐ณIndia Gauravvv Delhi, India
gauravvvv โ made their first commit to this issueโs fork.
- Merge request !200Striping height and color updated to improve UX of adding new section โ (Closed) created by Unnamed author
- Status changed to Needs review
28 days ago 3:50am 23 August 2024 - Status changed to Needs work
27 days ago 5:19am 23 August 2024 Overall looks good to me.Now it makes the UX for dragging much cleaner.
Can you please update the issue summary and attach the screenshots forbefore
andafter
in the User interface changes section?- ๐ซ๐ฎFinland lauriii Finland
We could probably add further clarity by highlighting the slot where the component / section would be added.
This might be something to consider in a follow-up but I'm wondering if we could be opinionated about section templates and as a UX enhancement, only allow adding them to the main level. After the section has been added to the page, the user can drag the components to any shape they wish. Thoughts?
- ๐ซ๐ฎFinland lauriii Finland
I also realized that I'm not seeing this striping on my environment at all; instead I'm seeing a button with the name of the component ๐ค
- ๐ฌ๐งUnited Kingdom jessebaker
RE #8 Have you tried a cache clear since checking out this branch? I think that is what I did to resolve the same issue.
- ๐ฌ๐งUnited Kingdom jessebaker
In Site Studio's Visual Page Builder the target slot (or Dropzone to use their terminology) is highlighted with a dotted border when you are dragging and hovering over the slot. I think we should have something similar.
- ๐ซ๐ฎFinland lauriii Finland
- ๐ซ๐ฎFinland lauriii Finland
I opened ๐ Retain the space consumed by a component when it's being dragged Fixed which is a related issue. We don't need to solve for that here but it's probably good to keep that goal in mind.
- ๐ฌ๐งUnited Kingdom jessebaker
RE #7
I'm wondering if we could be opinionated about section templates and as a UX enhancement, only allow adding them to the main level.
I don't think this would be beneficial for two reasons
1) If the issue is that it is difficult with the current UI to accurately place the thing you are drag/dropping into nested slots then we will still need to solve that problem for components so just preventing sections from working in that way would just be a sticky plaster
2) Ultimately I don't think we need to restrict users in that way - As an example, a given user's particular page layout may be based around having a large layout component that has a slot for all the page content and they would want to place their sections inside that larger component. - Merge request !215#3469822: Highlight slot with a border where component/section is about to be placed โ (Merged) created by DanielVeza
- ๐ณ๐ฟNew Zealand DanielVeza Brisbane, AU
- ๐ซ๐ฎFinland lauriii Finland
Opened ๐ Retain the placement of components within the preview when inserting a component Active which would help further improve this.
- ๐ง๐ชBelgium Wim Leers Ghent ๐ง๐ช๐ช๐บ
FYI this is a de facto blocker to #3471085, because this likely would solve that bug report too, per @lauriii at #3471085-6: [PP-1] Dragging into slots doesn't work well โ .
- Status changed to Needs review
18 days ago 2:42am 2 September 2024 - ๐ณ๐ฟNew Zealand DanielVeza Brisbane, AU
My MR is green, the phpcs being out of date will be resolved by ๐ Improve UX of adding new sections Needs review , I don't think that needs to block this from getting in.
The MR does not contain the changes that make the ghost area bigger, as I don't think thats required anymore with the border being applied
- ๐ง๐ชBelgium Wim Leers Ghent ๐ง๐ช๐ช๐บ
๐ Retain the placement of components within the preview when inserting a component Active landed, let's land this next? ๐
- Assigned to balintk
- Status changed to Postponed
15 days ago 11:37pm 4 September 2024 - ๐ญ๐บHungary balintk
Let's land ๐ Mitigate class pollution from injected CSS Needs review first and adjust the CSS class names accordingly.
- Status changed to Needs work
14 days ago 4:49pm 5 September 2024 - ๐ง๐ชBelgium Wim Leers Ghent ๐ง๐ช๐ช๐บ
๐ Mitigate class pollution from injected CSS Needs review is in.
- ๐ญ๐บHungary balintk
The MR is now ready for review. I adjusted the styling a bit to address a few things:
- Use an outline instead of a border so components are not moving due to the size of outline;
- Set a 100% height for the slots;
- Increase the height of the ghost element โ the blue line showing where something will be placed โ and add some horizontal space to play better with the slot outline visually;
- Introduce CSS variables to keep design tokens standardized.
- Assigned to jessebaker
- Status changed to Needs review
14 days ago 8:04pm 5 September 2024 - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Played around with this using some column components we created awhile ago. It seems to do what is intended (see video).
Components move out of the slots but that is due to this one I guess: ๐ Adding a component with slots does not register the slots as children Fixed
- ๐ญ๐บHungary balintk
Thanks for taking the time to test the changes, Kristen! And yes, that issue you linked to is going to address that problem very soon!
-
jessebaker โ
committed 4e1753c4 on 0.x authored by
danielveza โ
Issue #3469822 by danielveza, balintbrews, gauravvvv, kristen pol:...
-
jessebaker โ
committed 4e1753c4 on 0.x authored by
danielveza โ
- Issue was unassigned.
- Status changed to Fixed
13 days ago 8:04am 6 September 2024 - ๐บ๐ธUnited States Kristen Pol Santa Cruz, CA, USA
Just tested with latest changes and it looks good, thanks!