Repository navigation
fix(write): group the copy items above the paste items in the Edit menu - #43
Merged
Merged
Conversation
Write added "Copy as ▸" after the shell's "Paste without formatting", so it sat below the paste items. It now follows Copy, and only "Paste as Markdown" follows the paste items: Cut, Copy, Copy as ▸, then Paste, Paste without formatting, Paste as Markdown. Wonky-Task: T-23 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Wonky task: Linked to T-23: All copy buttons in the Edit menu should be grouped together. |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Wonky task review: T-23: All copy buttons in the Edit menu should be grouped togetherScreenshot: the description has an image of the changed UI. The pull request properly reorders the items in the Edit menu to group copy and paste actions together. The requested widget tests were implemented and they correctly assert the changes. Everything looks ready.
Scope: Tests: Added. Menu structure tests and an interaction widget test were added. Specs: Updated. The menu ordering documentation in the specs has been updated appropriately. Facts
Reviewed commit |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Wonky-Task: T-23
Wonky-Claim: D7AC-4R6Z
Summary
Write's Edit menu extends the shell's (Cut, Copy, Paste, Paste without formatting). Write inserted Copy as ▸ after Paste without formatting, so it sat below the paste items. It's now inserted after Copy, and only Paste as Markdown still follows the paste items (
wonky_write/lib/config/write_menus.dart). The menu reads: Cut, Copy, Copy as ▸ (Markdown / Plain text / HTML), then Paste, Paste without formatting, Paste as Markdown.No command, shortcut, label or clipboard behaviour changed, and the menus of the other apps are untouched (the change is only in Write's menu builder). Write's right-click menu already had this order.
Spec: the §7.2 table in
specs/wonky_write/05-screens-menus-toolbar.mdalready listed this order; a sentence below it now says the copy items form one group directly above the paste items.Acceptance criteria
menubar.editon the document screen), and I checked it by hand in a release build.Test plan
dart analyzeanddart formatare cleanflutter testinwonky_write: 829 passed)write_menus_test.dart: the Edit menu's clipboard items are in the order Cut, Copy, Copy as ▸, Paste, Paste without formatting, Paste as Markdown.write_document_screen_test.dart(light and dark): opens the Edit menu from the menubar, checks the items' top-to-bottom order on screen, and that nothing sits between the copy group and the paste group.mainand pass with the change./write/on localhost:8082), light and dark.🤖 Generated with Claude Code