- Issue created by @danielveza
- First commit to issue 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
6 months ago 3:50am 23 August 2024 - Status changed to Needs work
6 months 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
6 months 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 balintbrews
- Status changed to Postponed
6 months ago 11:37pm 4 September 2024 - 🇳🇱Netherlands balintbrews Amsterdam, NL
Let's land 📌 Mitigate class pollution from injected CSS Needs review first and adjust the CSS class names accordingly.
- Status changed to Needs work
6 months ago 4:49pm 5 September 2024 - 🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺
📌 Mitigate class pollution from injected CSS Needs review is in.
- 🇳🇱Netherlands balintbrews Amsterdam, NL
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
6 months 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
- 🇳🇱Netherlands balintbrews Amsterdam, NL
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!
- 🇳🇱Netherlands balintbrews Amsterdam, NL
Just waiting for a final 👍🏻 from @jessebaker.
-
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
6 months ago 8:04am 6 September 2024 - 🇺🇸United States Kristen Pol Santa Cruz, CA, USA
Just tested with latest changes and it looks good, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.