Skip to content

feat: add drag & drop sort#972

Merged
perber merged 2 commits into
mainfrom
feature/drag-drop-in-sort-page
May 8, 2026
Merged

feat: add drag & drop sort#972
perber merged 2 commits into
mainfrom
feature/drag-drop-in-sort-page

Conversation

@perber
Copy link
Copy Markdown
Owner

@perber perber commented May 8, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 8, 2026 13:04
@perber perber linked an issue May 8, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds drag-and-drop reordering (with keyboard support) to the existing “Sort pages” dialog in the LeafWiki UI, enhancing the page/section children sorting workflow.

Changes:

  • Introduces @dnd-kit (core/sortable/utilities) to support drag & drop sorting.
  • Updates SortPagesDialog to render sortable items with a drag handle, and adds A→Z / Z→A sorting actions.
  • Extends dialog styling to accommodate the new toolbar, drag handle, and updated flex layout.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
ui/leafwiki-ui/src/index.css Adds styles for the sort dialog toolbar and drag handle; adjusts item layout for draggable UI.
ui/leafwiki-ui/src/features/page/SortPagesDialog.tsx Implements drag-and-drop sorting with @dnd-kit, adds alphabetical sort buttons, and refactors list items into a sortable component.
ui/leafwiki-ui/package.json Adds @dnd-kit dependencies required for drag-and-drop sorting.
ui/leafwiki-ui/package-lock.json Locks newly added @dnd-kit transitive dependencies.
Files not reviewed (1)
  • ui/leafwiki-ui/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ui/leafwiki-ui/src/features/page/SortPagesDialog.tsx
@perber perber merged commit b4eef98 into main May 8, 2026
6 checks passed
@perber perber deleted the feature/drag-drop-in-sort-page branch May 8, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve sort dialog UX: Drag & drop ordering

2 participants