Skip to content
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

feat: table record group #8781

Merged
merged 21 commits into from
Nov 29, 2024
Merged

feat: table record group #8781

merged 21 commits into from
Nov 29, 2024

Conversation

magrinj
Copy link
Member

@magrinj magrinj commented Nov 27, 2024

Fix #8401 #8402

This PR is only taking care or displaying properly the record group on the table.
Record-reorder within group has also been prepared.
Start of collapsible animation has been done, but not working for now.

Screenshot 2024-11-28 at 2 52 07 PM

@charlesBochet charlesBochet self-requested a review November 27, 2024 16:01
@charlesBochet charlesBochet self-assigned this Nov 27, 2024
@magrinj magrinj force-pushed the feat/table-record-group branch 2 times, most recently from b4acc66 to b9200de Compare November 28, 2024 13:48
@magrinj magrinj marked this pull request as ready for review November 28, 2024 13:53

const StyledRecordGroupSection = styled.td`
border-bottom: 1px solid ${({ theme }) => theme.border.color.light};
padding-bottom: 6px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use theme here (I'm a bit surprised by the 6px value, is this in Figma?
We usually have a 4px scale for paddings

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's what I have on Figma, strange

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Bonapara FYI

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR implements record grouping functionality for tables, allowing rows to be grouped, collapsed/expanded, and reordered similar to the board view functionality.

  • Added RecordTableRecordGroupSection component with collapsible sections and group headers in /packages/twenty-front/src/modules/object-record/record-table/record-table-section/components/RecordTableRecordGroupSection.tsx
  • Replaced recordIndexAllRowIdsComponentState with recordIndexAllRecordIdsComponentSelector across components for consistent record ID management
  • Added drag-and-drop support for record reordering within groups via RecordTableBodyRecordGroupDragDropContext
  • Implemented group visibility toggle state with isRecordGroupTableSectionToggledComponentState
  • Added animation support via Framer Motion (noted as not working yet) in RecordTableRecordGroupRows

💡 (4/5) You can add custom instructions or style guidelines for the bot here!

38 file(s) reviewed, 32 comment(s)
Edit PR Review Bot Settings | Greptile

@magrinj magrinj force-pushed the feat/table-record-group branch from be8df9e to 9d2254d Compare November 29, 2024 11:14
@charlesBochet charlesBochet merged commit a2d55a8 into main Nov 29, 2024
19 checks passed
@charlesBochet charlesBochet deleted the feat/table-record-group branch November 29, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Record groups are displayed for Table
2 participants