Skip to content

Conversation

@aronovgj
Copy link

Summary
This PR adds drag & drop support to the Notes UI so notes can be moved between categories directly.

What changed

  • Notes are now draggable (when not read-only).
  • Dropping a note onto a category in the left sidebar updates the note’s category via the existing setCategory() API call.
  • Dropping a note onto “All notes” removes its category (moves it to uncategorized).
  • Sidebar items show a visual highlight while a draggable note is hovered over them.

Files touched

  • NoteItem.vue: sets drag payload (note id) on drag start.
  • CategoriesList.vue: implements drag-over/drop handlers for categories and “All notes”, and hover styling.

First PR, please let me know if I messed something up.

Signed-off-by: Grigorij Aronov <aronovgj@gmx.net>
@enjeck enjeck force-pushed the feat/drag-drop-categories branch from f6c04e3 to 32e1cb7 Compare January 21, 2026 08:03
@@ -1,14 +1,21 @@
<!--
- SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
- SPDX-FileCopyrightText: 2025 Grigorij Aronov aronovgj@gmx.net
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know if we mention individual people or just "Nextcloud contributors" covers it all? @AndyScherzinger

Copy link
Author

Choose a reason for hiding this comment

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

This is how I understood the guidelines. I really don't care.

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.

2 participants