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

Fix favorites #3138

Merged
merged 12 commits into from
Jan 3, 2024
Merged

Fix favorites #3138

merged 12 commits into from
Jan 3, 2024

Conversation

lucasbordeau
Copy link
Contributor

  • Use new object record CRUD with favorites
  • Fixed minor bugs in object record CRUD optimistic rendering

@bosiraphael
Copy link
Contributor

The optimistic rendering is not working when adding a favorite.

Enregistrement.de.l.ecran.2024-01-02.a.14.55.29.mov

const currentWorkspaceMember = useRecoilValue(currentWorkspaceMemberState);

const [favorites, setFavorites] = useRecoilState(favoritesState);
const favoriteObjectNameSingular = 'favorite';
Copy link
Member

Choose a reason for hiding this comment

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

I feel we could introduce an enum here for all standard objects

Copy link
Member

Choose a reason for hiding this comment

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

I see that you already have one: StandardObjectNameSingular

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's in another PR

Copy link
Member

@charlesBochet charlesBochet left a comment

Choose a reason for hiding this comment

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

LGTM!

@charlesBochet charlesBochet merged commit 6797f01 into main Jan 3, 2024
12 of 13 checks passed
@charlesBochet charlesBochet deleted the fix/optimistic-leftover branch January 3, 2024 11:30
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.

4 participants