Skip to content

feat(ui): title dialog on create, delete confirmation, zen width - #15

Merged
gnacho merged 3 commits into
mainfrom
fix/ux-create-delete-zen
Sep 13, 2026
Merged

gnacho merged 3 commits into
mainfrom
fix/ux-create-delete-zen

Conversation

@gnacho

@gnacho gnacho commented Sep 13, 2026

Copy link
Copy Markdown
Owner

Closes #11, closes #12, closes #13.

Creating a note no longer persists a default-titled note on click. It opens a dialog prefilled with "New note" and only creates the note once a non-empty title is confirmed; Escape, Cancel and a blank title create nothing. The two silent auto-creates (empty list on load, last note deleted) are gone and fall back to the existing empty state.

Deleting a note now asks for confirmation before calling the API, with a destructive confirm action.

The zen rule capping .note-editor at 1440px had no visible effect because .editor-body caps the text at 760px, so it is dropped and the reading column stays at 760px in zen.

Verification:

  • npm run build and vue-tsc --noEmit pass
  • Browser walkthrough with Playwright: dialog focused and prefilled, Escape and blank title create nothing, create with a title, cancel keeps the note, confirm deletes it, zen keeps 760px, 0 JS errors
  • No regression in the three-column layout or the markdown/YouTube preview

Stop creating a note with a default title on click. New note now opens a
dialog prefilled with "New note" and only creates the note once the user
confirms a non-empty title. Escape, Cancel and a blank title create nothing.

Also drop the two silent auto-creates that produced orphan empty notes: when
the list loads empty and when the last note is deleted. Both now fall back to
the existing empty state.

Closes #11
The trash button deleted the note on the first click. It now opens a
confirmation dialog with a destructive confirm action; only confirming calls
the API and emits the deletion.

Closes #12
The zen rule capped .note-editor at 1440px, but .editor-body caps the text at
760px, so the 1440px rule never had any visible effect. Drop it and keep the
760px reading column centred in zen as well.

Closes #13
@gnacho
gnacho merged commit a9e515b into main Sep 13, 2026
@gnacho
gnacho deleted the fix/ux-create-delete-zen branch September 13, 2026 08:06
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.

Zen mode keeps the reading column at 760px Deleting a note happens without confirmation Creating a note persists an empty note named 'New note'

1 participant