Skip to content

feat(ui): drag a note onto a sidebar category - #16

Merged
gnacho merged 1 commit into
mainfrom
feat/issue-7-drag-note-category
Sep 13, 2026
Merged

gnacho merged 1 commit into
mainfrom
feat/issue-7-drag-note-category

Conversation

@gnacho

@gnacho gnacho commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Closes #7.

Note rows are draggable and the sidebar categories and Uncategorized accept drops. Dropping on a category assigns it; dropping on Uncategorized clears it. All notes is not a drop target because it is a filter, and dropping a note on its current category is a no-op. The hovered target is highlighted only when the drop would change something.

The note's category and etag are updated from the response, the same way the editor's category select does it. A failed drop leaves the note unchanged and surfaces the error in the note list.

Verification:

  • npm run build and vue-tsc --noEmit pass
  • Browser walkthrough with Playwright: a real drag moves the note and survives a reload, dragging back to Uncategorized works, no highlight or drop on the current category or on All notes, dragend clears the state, 0 JS errors

Note rows are draggable and the sidebar categories and Uncategorized accept
drops. Dropping on a category assigns it, dropping on Uncategorized clears it.
All notes is not a drop target because it is a filter, and dropping a note on
its current category is a no-op. The hovered target is highlighted only when
the drop would change something.

The note's category and etag are updated from the response, the same way the
editor's category select does it. A failed drop leaves the note unchanged and
surfaces the error in the note list.

Closes #7
@gnacho
gnacho merged commit 3edf44c into main Sep 13, 2026
@gnacho
gnacho deleted the feat/issue-7-drag-note-category branch September 13, 2026 08:24
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.

Drag a note from the list onto a sidebar category to assign it

1 participant