Double-click a note in the list to toggle open/closed #14

Merged
Lemarkis merged 1 commit from feat/toggle-note-from-list into main 2026-09-14 11:33:28 +00:00
Owner

Summary

  • Double-clicking a note in the main list now toggles it open/closed. Previously clicking always opened it (or just refocused an already-open one) - there was no way to close a note from the list.
  • Closing mirrors the note window's own X button: content is kept, only the window goes away (close_note).
  • A single mouse click intentionally does nothing; keyboard activation (Enter/Space) still toggles, since it has no dblclick equivalent to mirror.
  • Added a CHANGELOG.md entry.

Test plan

  • npm run check (0 errors, 0 warnings)
  • npm run test (106 passed, incl. new coverage for single-click no-op / double-click toggle / keyboard activation, and the open-vs-close branching in main/+page.svelte)
  • Manually confirmed the original single-click version of this toggle (open closes, closed opens) in the running app; the double-click switch itself relies on the automated coverage above, not re-verified by hand

🤖 Generated with Claude Code

## Summary - Double-clicking a note in the main list now toggles it open/closed. Previously clicking always opened it (or just refocused an already-open one) - there was no way to close a note from the list. - Closing mirrors the note window's own X button: content is kept, only the window goes away (`close_note`). - A single mouse click intentionally does nothing; keyboard activation (Enter/Space) still toggles, since it has no dblclick equivalent to mirror. - Added a `CHANGELOG.md` entry. ## Test plan - [x] `npm run check` (0 errors, 0 warnings) - [x] `npm run test` (106 passed, incl. new coverage for single-click no-op / double-click toggle / keyboard activation, and the open-vs-close branching in `main/+page.svelte`) - [x] Manually confirmed the original single-click version of this toggle (open closes, closed opens) in the running app; the double-click switch itself relies on the automated coverage above, not re-verified by hand 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Double-click a note in the list to toggle open/closed
All checks were successful
CI / frontend (pull_request) Successful in 25s
CI / backend (pull_request) Successful in 2m40s
fcacd2a6f9
Previously clicking a note in the main list always opened it (or just
refocused it if already open) - there was no way to close a note from the
list itself. Double-click now toggles: open a closed note, close an
already-open one (mirrors the note window's own X button - content is
kept, only the window goes away).

A single mouse click intentionally does nothing now, but keyboard
activation (Enter/Space) still toggles, since it has no dblclick
equivalent to mirror.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Lemarkis deleted branch feat/toggle-note-from-list 2026-09-14 11:33:28 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Lemarkis/Mark-it!14
No description provided.