Skip to content

Add drag-and-drop site reordering with sortOrder persistence#2498

Open
mikaoelitiana wants to merge 22 commits intoAutomattic:trunkfrom
mikaoelitiana:588-reorder-sites-list
Open

Add drag-and-drop site reordering with sortOrder persistence#2498
mikaoelitiana wants to merge 22 commits intoAutomattic:trunkfrom
mikaoelitiana:588-reorder-sites-list

Conversation

@mikaoelitiana
Copy link

@mikaoelitiana mikaoelitiana commented Jan 28, 2026

Summary

This PR implements drag-and-drop site reordering functionality. Users can now reorder sites in the sidebar by dragging and dropping them, with the new sort order being saved to disk. Existing sites without a sort order will be sorted alphabetically after those with an explicit order.

The main changes involve making site items draggable and updating sortOrder property upon item drop. This new field is added to the data stored locally.

Enregistrement.de.l.ecran.2026-02-03.a.10.23.36.mov

Resolves #588

@mikaoelitiana mikaoelitiana marked this pull request as ready for review February 3, 2026 09:28
@profucius
Copy link

Hi there, thanks for taking this feature! I watched your video above and it looks great so far.

@wojtekn wojtekn mentioned this pull request Feb 4, 2026
@wojtekn
Copy link
Contributor

wojtekn commented Feb 4, 2026

Thanks for working on that @mikaoelitiana .

I think we could drop the drag indicator to keep the interface cleaner.

I opened #2531 to trigger CI.

@wojtekn wojtekn requested a review from a team February 4, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Reorder sites on the left sidebar

3 participants