Skip to content

Implement backward compatible multi level row grouping #61

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ImmortalRabbit
Copy link
Owner

Implements multi-level row grouping using groupPath while maintaining backward compatibility with existing group property.

This PR introduces a groupPath property to GridColumn to enable nested column groups. Existing group properties are fully supported. The useCollapsingGroups hook, isGroupEqual function, and group rendering logic have been updated to handle the new hierarchical grouping and ensure seamless backward compatibility.


Open in Cursor Open in Web

- Add groupPath property to BaseGridColumn interface
- Update useCollapsingGroups to handle hierarchical group paths
- Enhance group rendering logic to support nested groups
- Maintain full backward compatibility with existing group property
- Add utility functions for groupPath manipulation
- Update isGroupEqual to handle both string and object group comparisons
- Add example story demonstrating multi-level grouping functionality

Supports groupPath method like ['group1', 'group2', 'group3'] while
keeping existing group: 'groupName' working unchanged.
Copy link

cursor bot commented Aug 17, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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