Skip to content
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

Page sort mode #2778

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Page sort mode #2778

wants to merge 6 commits into from

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Mar 8, 2024

What is this pull request for?

In order to prevent accidental moves (that would alter the page url) users now need to enable sortable mode.

We hide the tooltip on the page icon (which is the draggable handle) in order to make it easier to see that move cursor for
locked pages. Also hiding page actions.

Coloring the background light yellow indicates that we now are in a special mode.

Screenshots

Bildschirmfoto am 2024-03-07 um 12 06 06

Checklist

We do not need to serialize elements while moving a page.
Faster responses with less data to transfer
We want to give the user a visual feedback that the
page get persisted after dragndrop sorting.

Also this prevents users from accidentilly move more than
one page at a time.
If an error happens during dragndrop sort, we reload
the Sitemap in order to restore the tree before it got
moved around.

This should prevent errors from piling up.
We only want to persist the changes if the sitemap was
actually changed.

Preventing double submitting the same change on the previous
node and the new node we only persist if the event was
triggered on the new node.
In order to make short actions not distracting we wait
with the background color to appear and give it a nice
transition
In order to prevent accidental moves (that would alter the page
url) users now need to enable sortable mode.

We hide the tooltip on the page icon (which is the draggable
handle) in order to make it easier to see that move cursor for
locked pages.

Coloring the background light yellow indicates that we now
are in a special mode.
Copy link

github-actions bot commented May 8, 2024

This pull request has not seen any activiy in a long time.
Probably because of missing tests or a necessary rebase.
This PR will be closed in 7 days if no further activity happens.

@github-actions github-actions bot added the Stale label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant