-
Notifications
You must be signed in to change notification settings - Fork 13.1k
regression: Ignore preference to display favorites filter #36769
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
Conversation
|
Looks like this PR is ready to merge! 🎉 |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-7.10.0 #36769 +/- ##
=================================================
Coverage ? 65.97%
=================================================
Files ? 3264
Lines ? 109711
Branches ? 20755
=================================================
Hits ? 72379
Misses ? 34673
Partials ? 2659
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Pull Request Overview
This pull request removes the user preference check for displaying favorites in the sidebar navigation. The change ensures that favorited rooms are always shown in the favorites group regardless of the user's sidebarShowFavorites preference setting.
- Removes the
favoritesEnabledvariable and its dependency on thesidebarShowFavoritesuser preference - Updates the favorites grouping logic to always include favorited rooms when
room.fis true - Removes the
favoritesEnableddependency from the useMemo hook
Comments suppressed due to low confidence (1)
apps/meteor/client/views/navigation/providers/RoomsNavigationProvider.tsx:64
- The removed
favoritesEnabledvariable suggests this change might break existing functionality. If thesidebarShowFavoritespreference is intended to control visibility of the favorites group in the UI, removing this check could cause favorites to always appear even when users have disabled them. Consider whether the favorites group visibility should still be controlled elsewhere in the component tree.
const sidebarShowUnread = useUserPreference('sidebarShowUnread');
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Proposed changes (including videos or screenshots)
Important
This change is under feature preview
Introduced here: #36049
Issue(s)
Steps to test or reproduce
Further comments
SIDE2-145