-
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
Fixed Custom Icon Persistance Across New View Creations #9070
Fixed Custom Icon Persistance Across New View Creations #9070
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 adds state management to fix icon persistence issues in the view picker's create mode, ensuring default icons are properly reset when creating new views.
- Added
hasManuallySelectedIcon
state inViewPickerContentCreateMode.tsx
to track manual icon selections - Implemented logic to reset icon to default (
IconTable
/IconLayoutKanban
) when creating new views - Added conditional icon selection based on
hasManuallySelectedIcon
state to prevent unwanted persistence - Introduced
onIconChange
handler to track manual icon selections viasetHasManuallySelectedIcon
1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentCreateMode.tsx
Outdated
Show resolved
Hide resolved
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.
Thanks for the changes !
Log
|
closes #8714