Repository navigation
style: restyle audio devices dropdown - #22094
Conversation
WalkthroughThe pull request focuses on enhancing the audio device selection interface in the BigBlueButton HTML5 client. Changes were made across multiple files to improve the styling and interaction of the audio device selection dialog. Modifications include updates to the rendering logic in the Assessment against linked issues
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
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: 1
🔭 Outside diff range comments (1)
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/LiveSelection.tsx (1)
Line range hint
7-7: Remove unused importMenuSeparatorItemType.The import is not being used and causes a TypeScript error.
-import { MenuSeparatorItemType, MenuOptionItemType } from '/imports/ui/components/common/menu/menuTypes'; +import { MenuOptionItemType } from '/imports/ui/components/common/menu/menuTypes';
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/LiveSelection.tsx(4 hunks)bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/styles.ts(4 hunks)bigbluebutton-html5/imports/ui/components/common/menu/component.jsx(2 hunks)bigbluebutton-html5/imports/ui/components/common/menu/styles.js(1 hunks)bigbluebutton-html5/public/locales/en.json(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- bigbluebutton-html5/public/locales/en.json
🧰 Additional context used
🪛 GitHub Actions: Typescript - compile code
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/LiveSelection.tsx
[error] 7-7: 'MenuSeparatorItemType' is declared but its value is never read.
[error] 319-319: Object literal may only specify known properties, and 'isSeparator' does not exist in type 'MenuOptionItemType'.
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: build-package (others)
- GitHub Check: build-package (bbb-html5)
- GitHub Check: build-package (bbb-graphql-server)
- GitHub Check: build-package (bbb-playback-record)
- GitHub Check: ts-code-validation
🔇 Additional comments (6)
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/styles.ts (2)
11-11: LGTM: Added colorSuccess import for current device icon.The import aligns with the PR objective to change the current device icon color to green.
74-74: LGTM: Style changes align with design requirements.The changes effectively implement the requested styling:
- Consistent font size for labels
- Bold font weight for selected items
- Aligned padding for device labels
- Green color and increased size for current device icon
Also applies to: 84-86, 88-90, 92-94
bigbluebutton-html5/imports/ui/components/common/menu/styles.js (1)
146-146: LGTM: Added specificity for icon color on hover.The
!importantdirective ensures consistent icon coloring in hover/focus states across different device selections.bigbluebutton-html5/imports/ui/components/common/menu/component.jsx (1)
121-129: LGTM: Added support for custom icon styling.Clean implementation of icon style customization:
- Initializes empty iconStyles object
- Merges with provided styles if available
- Applies styles to IconRight component
Also applies to: 164-164
bigbluebutton-html5/imports/ui/components/audio/audio-graphql/audio-controls/input-stream-live-selector/buttons/LiveSelection.tsx (2)
159-162: LGTM: Updated title icon and interaction.The changes align with the PR objective to reposition the title icon to the left.
182-183: LGTM: Enhanced device styling logic.Good implementation of conditional styling for devices:
- Uses DeviceLabel for non-selected devices
- Applies SelectedLabel and SelectedLabelIcon for current device
| .concat({ | ||
| key: 'separator-01', | ||
| isSeparator: true, | ||
| } as MenuOptionItemType) |
There was a problem hiding this comment.
💡 Codebase verification
isSeparator property missing in MenuOptionItemType interface
The type definition in menuTypes.ts does not include the isSeparator property, making the type assertion unsafe. Add the property to the interface or create a proper type structure for separator items.
bigbluebutton-html5/imports/ui/components/common/menu/menuTypes.ts: AddisSeparator?: booleantoMenuOptionItemType
🔗 Analysis chain
Fix TypeScript error in separator implementation.
The isSeparator property is not defined in MenuOptionItemType. This needs to be fixed in the type definition.
Also applies to: 299-299
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash
# Find the MenuOptionItemType definition
ast-grep --pattern 'type MenuOptionItemType = {
$$$
}'
Length of output: 864
|
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
applies the following changes to the audio devices dropdown:
Closes Issue(s)
Closes #22080
before
after
How to test