Skip to content
Snippets Groups Projects

#3459249: Handled context menu on right click

All threads resolved!

Handled Context menu on right click Disabled scroll when context menu open

https://www.loom.com/share/8abdc7fb97bc4815a71dc23bc4c197dc?sid=7a716a66-26a7-4022-8fa4-fc00eb97eb7d

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
    • Resolved by Jesse Baker

      Thanks for this submission. I think the loss of being able to hover is a deal breaker - is that a limitation of this approach or do you think it can be worked around?

      While working on !93 (merged) I had to remove the "hamburger" menu to make the outline match the designs and, as an interim solution I swapped the Radix dropdown to a Context Menu. In my version though, you can only right click the component name - it was not intended to be a final solution. Could the Radix Context Menu be useful to you?

  • Thanks @jessebaker. The Context Menu could be useful. Would it be possible to merge your merge request (MR) into the 0.x branch? This would allow me to handle and work around it accordingly.

  • Lee Rowlands
  • Lee Rowlands
  • Lee Rowlands
  • fazilitehreem added 1 commit

    added 1 commit

    • 98de01bd - 3459249: addressed feedback, passed pagex and pagey, removed extra code

    Compare with previous version

  • fazilitehreem added 37 commits

    added 37 commits

    • 98de01bd...e69b8399 - 35 commits from branch project:0.x
    • 09f6c3b7 - 3459249: Handled context menu on right click
    • 5ead9bbf - 3459249: addressed feedback, passed pagex and pagey, removed extra code

    Compare with previous version

  • Omkar Deshpande added 23 commits

    added 23 commits

    • 5ead9bbf...25b99dc0 - 21 commits from branch project:0.x
    • 9599bbb1 - 3459249: Handled context menu on right click
    • d8dc9d90 - 3459249: addressed feedback, passed pagex and pagey, removed extra code

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • added 1 commit

    • f52d6ea6 - Fix outline styling and tests.

    Compare with previous version

  • Wim Leers changed title from 3459249: Handled context menu on right click to #3459249: Handled context menu on right click

    changed title from 3459249: Handled context menu on right click to #3459249: Handled context menu on right click

  • fazilitehreem added 4 commits

    added 4 commits

    • 6b30e5c9 - Issue #3467162 by Wim Leers, jessebaker, bnjmnm, f.mazeikis: Follow-up for...
    • b5f93e57 - Issue #3467176 by Utkarsh_33, omkar-pd: Two requests sent to /api/preview/…, should be one
    • 1274a009 - Issue #3456020 by bnjmnm, jessebaker, Wim Leers, larowlan: Harden Cypress E2E...
    • 2af72282 - #345949: Fixed outline issue on the conponents

    Compare with previous version

  • Jesse Baker added 11 commits

    added 11 commits

    Compare with previous version

  • Jesse Baker added 2 commits

    added 2 commits

    • c6be42f7 - wip
    • 7b98fbb9 - refactor right click menu into its own component and general tidy up

    Compare with previous version

  • Jesse Baker added 1 commit

    added 1 commit

    • 6341a098 - Fixed - right click now also closes the menu. Fixed - small flash of the menu...

    Compare with previous version

  • Gaurav added 6 commits

    added 6 commits

    • 6341a098...f3667563 - 5 commits from branch project:0.x
    • 83b96988 - Merge remote-tracking branch 'origin/0.x' into 3459249-contextual-menu-on-click

    Compare with previous version

  • Gaurav added 1 commit

    added 1 commit

    • 83b76503 - PrimaryMenuState defiend and fixed linting

    Compare with previous version

  • Gaurav added 1 commit

    added 1 commit

    Compare with previous version

  • Jesse Baker added 1 commit

    added 1 commit

    Compare with previous version

  • Jesse Baker
  • This is looking good. I have spotted one minor issue and we need some tests too.

    The issue is as follows:

    When opening the context menu in one spot and then closing it and opening it in another spot, the menu briefly flashes in the old location before jumping to the new location. It makes the menu feel a bit flickery.

    This gif hopefully shows, in very very slow motion the issue (each red circle represents me right clicking). I click once to open the menu, then again to close it, then again to open it in a different place and you can see that for a frame the menu appears in the original location before moving to the correct location.

    2024-08-20 14.15.05.gif

    So in summary please

    1. can we resolve the flicker issue or raise a follow up ticket to address it
    2. add a test for the menu and the option inside it
  • Jesse Baker requested changes

    requested changes

  • Jesse Baker added 1 commit

    added 1 commit

    Compare with previous version

  • utkarsh_33 added 1 commit

    added 1 commit

    • c3fae5a6 - Fixed the flickering problem

    Compare with previous version

  • Atul Dubey
  • utkarsh_33 added 48 commits

    added 48 commits

    Compare with previous version

  • utkarsh_33 added 1 commit

    added 1 commit

    • a174aa9d - Replaced rightclick() with trigger contextmenu

    Compare with previous version

  • utkarsh_33
  • Jesse Baker added 4 commits

    added 4 commits

    Compare with previous version

  • Jesse Baker added 1 commit

    added 1 commit

    • d455ace1 - Added test for Delete function in context menu, attempt fix test failure

    Compare with previous version

  • Jesse Baker added 7 commits

    added 7 commits

    Compare with previous version

  • Jesse Baker
  • Jesse Baker
  • Jesse Baker added 1 commit

    added 1 commit

    • 081ddb1c - Apply 1 suggestion(s) to 1 file(s)

    Compare with previous version

  • Jesse Baker added 6 commits

    added 6 commits

    Compare with previous version

  • fazilitehreem added 1 commit

    added 1 commit

    Compare with previous version

  • Jesse Baker approved this merge request

    approved this merge request

  • Jesse Baker resolved all threads

    resolved all threads

  • Jesse Baker added 4 commits

    added 4 commits

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading