-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Display table record creation row when clicking on Add new from table empty state #6174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
packages/twenty-front/src/modules/object-record/record-table/components/RecordTableWithWrappers.tsx
: Added check forpendingRecordId
to conditionally renderRecordTableEmptyState
.packages/twenty-front/src/pages/object-record/RecordIndexPage.tsx
: AddedhandleAddButtonClick
function to handle new record creation from the empty state.packages/twenty-front/src/pages/object-record/RecordIndexPage.tsx
: Reordered import statements.
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
(updates since last review)
packages/twenty-front/src/modules/object-record/record-table/components/RecordTable.tsx
: Display table record creation row on 'Add new' click from empty state.packages/twenty-front/src/modules/object-record/record-table/components/RecordTableContextProvider.tsx
: ReplaceduseUpsertRecordV2
withuseUpsertRecord
.packages/twenty-front/src/modules/object-record/record-table/components/RecordTableWithWrappers.tsx
: Always displayRecordTable
component, removing conditional rendering ofRecordTableEmptyState
.packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useUpsertRecord.ts
: Refactored upsert logic to use Recoil callbacks and snapshot values.packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/useUpsertRecordV2.ts
: Deleted file, consolidating upsert functionality.
5 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
(updates since last review)
packages/twenty-front/jest.config.ts
: Set 'silent' option to false for detailed logging during test runs.packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__tests__/useUpsertRecord.test.tsx
: Updated test cases to align with newuseUpsertRecord
hook signature requiringobjectNameSingular
parameter.packages/twenty-front/src/modules/object-record/record-table/record-table-cell/hooks/__tests__/useUpsertRecord.test.tsx
: Refactored tests for better maintainability by injecting state values more cleanly.
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
(updates since last review)
packages/twenty-front/jest.config.ts
: Setsilent
mode totrue
to suppress Jest's output logs during test runs.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
As per title