Repository navigation
feat(ui): title dialog on create, delete confirmation, zen width - #15
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-editorat 1440px had no visible effect because.editor-bodycaps the text at 760px, so it is dropped and the reading column stays at 760px in zen.Verification:
npm run buildandvue-tsc --noEmitpass