Skip to content

WIP: table cell right click #7045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 76 commits into from
Closed

WIP: table cell right click #7045

wants to merge 76 commits into from

Conversation

gagik
Copy link
Contributor

@gagik gagik commented Jun 19, 2025

This is some quite WIP work for table cell right clicking. Some more work is needed to finalize this, just sharing as I am away next week. Feel free to take over, otherwise I'll just continue from there.

The approach worth taking is likely to use AG-Grid's onCellContextMenuSelected. This would need some changes to the context menu provider to expose less React-tied functions

gagik added 30 commits May 22, 2025 09:38
…p menu state consistent

The refactor is meant to make the Leafygreen integration more straightforward:
1. We stick to item groups and instead have a single wrapper to handle any rendering differences between groups. This allows the wrapper to always have context of all items when rendering which is useful when inserting menu seperators in Leafygreen. Also encourages consistent UI (while allowing per-case customization if needed at wrapper-level). We could introduce itemWrappers instead of itemGroups but having one wrapper handling all seems cleaner to me.
2. More of the responsibility is moved to a parent wrapper component that will house the context menu. This allows us to standardize the right click menu and make better use of Leafygreen's menu component including its click handling (which has been removed from the context menu library).
3. Menu state (i.e. position) is now preserved even closed; this is useful for leafygreen's menu to animate in the same position instead of losing the position all together.
…p menu state consistent

The refactor is meant to make the Leafygreen integration more straightforward:
1. We stick to item groups and instead have a single wrapper to handle any rendering differences between groups. This allows the wrapper to always have context of all items when rendering which is useful when inserting menu seperators in Leafygreen. Also encourages consistent UI (while allowing per-case customization if needed at wrapper-level). We could introduce itemWrappers instead of itemGroups but having one wrapper handling all seems cleaner to me.
2. More of the responsibility is moved to a parent wrapper component that will house the context menu. This allows us to standardize the right click menu and make better use of Leafygreen's menu component including its click handling (which has been removed from the context menu library).
3. Menu state (i.e. position) is now preserved even closed; this is useful for leafygreen's menu to animate in the same position instead of losing the position all together.
@gagik gagik changed the base branch from main to gagik/cell-render-refactor June 19, 2025 19:46
@gagik gagik changed the base branch from gagik/cell-render-refactor to main July 3, 2025 10:30
@gagik gagik changed the base branch from main to gagik/collection-tab July 3, 2025 10:32
Base automatically changed from gagik/collection-tab to main July 3, 2025 21:37
@gagik
Copy link
Contributor Author

gagik commented Jul 9, 2025

Going to close this as the approach has changed significantly, I added description of what a solution will look like in COMPASS-9391

@gagik gagik closed this Jul 9, 2025
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.

2 participants