-
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
Fix create task #7498
Fix create task #7498
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 pull request addresses an issue with creating tasks introduced by a previous PR, focusing on improving loading states and error handling in the record creation process. Here are the key changes:
- Modified useOpenCreateActivityDrawer to set loading state before opening the right drawer, enhancing user experience
- Improved error handling and loading state management in RightDrawerRecord component for undefined object names and record IDs
- Simplified RecordShowContainer by replacing isNewViewableRecordLoadingState with a new prop isNewRightDrawerItemLoading
- Enhanced value handling in useRecordShowPage hook for better management of undefined or falsy values
- Conditional rendering of RecordValueSetterEffect based on loading state in RightDrawerRecord
These changes collectively aim to fix the task creation issue and improve the overall robustness of the record creation and loading process.
4 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
<RecordValueSetterEffect recordId={objectRecordId} /> | ||
{!isNewViewableRecordLoading && ( | ||
<RecordValueSetterEffect recordId={objectRecordId} /> | ||
)} | ||
<RecordShowContainer | ||
objectNameSingular={objectNameSingular} | ||
objectRecordId={objectRecordId} | ||
loading={false} |
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.
logic: The loading
prop is set to false
, but isNewRightDrawerItemLoading
is used. Ensure this doesn't cause inconsistent loading states
LGTM |
Fixing issue introduced by [Add Skeleton loading for side panel](https://github.com/twentyhq/twenty/pull/7394/files#top): https://github.com/user-attachments/assets/6c8e299c-d663-4aa7-83ed-ca7041cd15e7
Fixing issue introduced by Add Skeleton loading for side panel:
https://github.com/user-attachments/assets/6c8e299c-d663-4aa7-83ed-ca7041cd15e7