-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
9018 fix batch delete follow ups #9166
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
This PR addresses batch deletion performance and UI feedback issues by implementing several key changes to the record deletion system.
- Replaced hardcoded action keys with standardized enums (
MultipleRecordsActionKeys
,SingleRecordActionKeys
) for better type safety and maintainability - Added load-more locking during deletion operations in
RecordIndexActionMenu
to prevent UI inconsistencies - Moved favorite deletion handling to a new
deleteCascadeQueue
for better cascade operation management - Fixed incorrect record selection count during batch deletions by improving filter handling in
useDeleteMultipleRecordsAction
- Optimized batch deletion performance by removing individual optimistic updates in favor of batch updates in
useDeleteManyRecords
21 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile
...on-menu/actions/record-actions/single-record/constants/DefaultSingleRecordActionsConfigV2.ts
Show resolved
Hide resolved
...tions/record-actions/single-record/workflow-actions/types/WorkflowSingleRecordActionsKeys.ts
Show resolved
Hide resolved
packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenu.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts
Show resolved
Hide resolved
@@ -18,5 +18,5 @@ | |||
"src/**/*.d.ts", | |||
"src/**/*.ts", | |||
"src/**/*.tsx" | |||
] | |||
, "src/modules/action-menu/actions/record-actions/single-record/workflow-version-actions/types/WorkflowVersionSingleRecordActionsKeys.ts" ] |
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.
?
Follow ups on #9018