Repository navigation
fix: respect animations setting in user avatar - #21307
ramonlsouza merged 1 commit into
Conversation
|
WalkthroughThe changes involve updates to the Changes
Possibly related PRs
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx (1)
228-230: LGTM: Animations setting retrieval.The retrieval of the animations setting from the Settings singleton is implemented correctly. This ensures that the user's preference for animations is respected.
Consider using destructuring for a more concise code:
const { animations } = Settings?.application ?? {};This change would make the code slightly more readable and align with modern JavaScript practices.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
- bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx (3 hunks)
- bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/styles.ts (1 hunks)
🔇 Additional comments (4)
bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/component.tsx (3)
21-21: LGTM: New import for settings management.The addition of
getSettingsSingletonInstanceimport is appropriate for accessing user settings, which aligns with the PR objective of respecting the animations setting.
21-21: Summary: Changes successfully implement respect for animations setting.The changes in this PR effectively implement the objective of respecting the animations setting in the user avatar. The implementation:
- Imports the necessary function to access user settings.
- Retrieves the animations setting from the Settings singleton.
- Passes the animations setting to the Avatar component.
These changes are minimal, focused, and follow React and TypeScript best practices. They should prevent the avatar from animating when animations are disabled in the client settings, as intended.
To fully validate this implementation:
- Ensure that the Avatar component correctly uses the animations prop to control its behavior.
- Test the feature by disabling animations in the client settings and verifying that the avatar remains static when a user speaks.
Great job on implementing this feature improvement!
Also applies to: 228-230, 246-246
246-246: LGTM: Animations prop added to Avatar component.The addition of the
animationsprop to the Styled.Avatar component correctly implements the PR objective of respecting the user's animation settings.To ensure this change works as expected, please verify that:
- The Avatar component correctly uses this prop to enable/disable animations.
- The avatar remains static when animations are disabled in the client settings.
You can use the following script to check the Avatar component implementation:
bigbluebutton-html5/imports/ui/components/user-list/user-list-content/user-participants/user-list-participants/list-item/styles.ts (1)
318-321: LGTM: Visual indicator for talking state without animations is correctly implemented.The conditional styling applies a
box-shadowwhentalkingistrueandanimationsisfalse, providing a visual cue that respects the user's animation settings.
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
Adjusts user avatar component in userlist, so it does not animate when animations are disabled
How to test