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>
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.

1 participant