You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(web): open memo actions on right-click - #6611
Right-clicking plain text or whitespace on a memo card opens its existing More menu at the pointer. This lets readers act on a long memo even when its header has scrolled out of view. Both entry points use the same actions, permissions and delete confirmation.
Links, images, text selections and the inline editor keep their browser context menus. Touch users can tap More. Escape returns focus to the card without scrolling.
No actionable comments were generated in the recent review.
Walkthrough
Memo cards now open the action menu for eligible secondary-click and Ctrl+primary-click gestures. The menu uses the click position as its anchor. Gestures on native interactive elements, touch input, and selected text retain browser context-menu behavior. Closing the menu with Escape or an item press restores focus to the card.
Suggested reviewers: johnnyjoygh
Severity of issue fixed: Low
Merge Risk: Minimal · up to 0608a
This change lets users right-click a memo card to open its existing action menu at the pointer. Links, images, selected text, touch input and the inline editor keep their browser context menus. No concrete merge-blocking risk was found. Native mobile text-selection behavior has not been checked on a device.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title states the primary change: right-clicking a memo card now opens its existing More (action) menu. It matches the changeset, which adds a card-level context-menu hook and wires it to MemoActio…
Description check
The description explains the feature: right-clicking plain text or whitespace on a memo card opens the existing More menu at the pointer. It also covers exceptions (links, images, text selections, inl…
Linked Issues check
[#6594] requests that right-clicking a note open the note's existing three-dot menu. The PR adds this. useMemoContextMenu (web/src/components/MemoActionMenu/useMemoContextMenu.ts) opens `MemoActionM…
Out of Scope Changes check
All changed files relate to the right-click menu objective. MemoActionMenu, types.ts, useMemoContextMenu.ts, MemoView, MemoHeader, and the MemoView types change add the card-to-menu wiring and anchor.…
Full details: Title check
Explanation
The title states the primary change: right-clicking a memo card now opens its existing More (action) menu. It matches the changeset, which adds a card-level context-menu hook and wires it to MemoActionMenu. The title is short, single-sentence, and specific.
Full details: Description check
Explanation
The description explains the feature: right-clicking plain text or whitespace on a memo card opens the existing More menu at the pointer. It also covers exceptions (links, images, text selections, inline editor), touch behavior, Escape focus handling, and the test and verification results. This matches the changes in useMemoContextMenu, MemoActionMenu, MemoView, and the new tests.
Full details: Linked Issues check
Explanation
[#6594] requests that right-clicking a note open the note's existing three-dot menu. The PR adds this. useMemoContextMenu (web/src/components/MemoActionMenu/useMemoContextMenu.ts) opens MemoActionMenu on a secondary click over the card. MemoActionMenu now takes an optional cardRef and anchors the popup at the pointer. MemoView and MemoHeader pass cardRef through, so the same menu, actions, permissions, and delete confirmation are used. Tests in web/tests/memo-action-menu.test.tsx cover secondary-click opening, Escape focus return, and link and touch behavior. The PR excludes links, images, text selections, and the inline editor from this behavior. This is a deliberate exception that the PR description states. The issue's keyboard shortcuts and multi-select requests are not objectives of this PR, per the PR objectives. The three-dot button still works for touch users, which keeps the existing path. The remaining uncertainty is native mobile text selection. The PR states that device verification is still needed. That uncertainty concerns verification, not a missing coding requirement.
Full details: Out of Scope Changes check
Explanation
All changed files relate to the right-click menu objective. MemoActionMenu, types.ts, useMemoContextMenu.ts, MemoView, MemoHeader, and the MemoView types change add the card-to-menu wiring and anchor. The useMemoHandlers.ts change ignores non-primary clicks and Ctrl-clicks in the content click handler. This supports the menu gesture and keeps the browser context menu for selections and links. The Ctrl-primary-click gesture is not named in the PR description. It is a common macOS substitute for secondary click, so it supports the same objective and is not a separate feature. The tests cover it. The MemoView ref type change from HTMLDivElement to HTMLElement is needed by the new cardRef prop. No unrelated refactoring or unrelated feature appears in the summary.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Warning
Some tools did not complete. Review the errors below.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
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
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.
Right-clicking plain text or whitespace on a memo card opens its existing More menu at the pointer. This lets readers act on a long memo even when its header has scrolled out of view. Both entry points use the same actions, permissions and delete confirmation.
Links, images, text selections and the inline editor keep their browser context menus. Touch users can tap More. Escape returns focus to the card without scrolling.
Closes #6594.
Verification