-
Notifications
You must be signed in to change notification settings - Fork 12.8k
fix: User roles showing on the message header after opening user card, but with "Show roles" setting/preference disabled #37984
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
base: develop
Are you sure you want to change the base?
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
|
WalkthroughThe visibility condition for the MessageRoles component in MessageHeader has been updated to require both the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
No issues found across 1 file
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #37984 +/- ##
===========================================
- Coverage 70.65% 70.60% -0.06%
===========================================
Files 3143 3143
Lines 108693 108693
Branches 19557 19545 -12
===========================================
- Hits 76797 76742 -55
- Misses 29886 29950 +64
+ Partials 2010 2001 -9
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Proposed changes (including videos or screenshots)
The setting and preference were being used to disable a
useQuerythat loads the roles, which populate a zustand store that is then consumed to show the data. The issue was that although that query was being disabled, other places can still load that data (such as the userCard) and also update the same store, but the flag wasn't being used to hide the roles in the UI, it just disabled the query. This caused the roles to become visible in the message after another place loads such information.Issue(s)
CORE-1592
Steps to test or reproduce
Further comments
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.