-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dim volume dials when no voice connection is available #378
Conversation
WalkthroughThis pull request introduces several modifications across different configuration and source files. The changes primarily focus on enhancing VSCode extension recommendations, expanding spell-checking configurations, and updating controller logic in the audio management system. The modifications involve adding a new spell-checker extension, updating custom dictionary words, and refactoring connection state handling in Changes
Possibly related PRs
Suggested labels
Poem
Finishing Touches
🪧 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 (
|
Build for this pull request: |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.vscode/settings.json (1)
24-35
: LGTM with a minor suggestion for consistency.The additions to the spell-checker dictionary are relevant and will improve the development experience by reducing false-positive spelling errors for domain-specific terms.
Consider standardizing the casing of the words for better consistency. For example:
- "Autopurge" vs "trackaudio" (capitalize both or neither)
- "Callsign" vs "callsigns" (singular is capitalized, plural isn't)
"cSpell.words": [ - "Autopurge", - "Callsign", + "autopurge", + "callsign", "callsigns", "coms", "elgato", "stationstatus", "stationvolume", "streamdeck", "trackaudio", - "Typeguard" + "typeguard" ]
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
com.neil-enns.trackaudio.sdPlugin/images/actions/stationVolume/template.svg
is excluded by!**/*.svg
📒 Files selected for processing (5)
.vscode/extensions.json
(1 hunks).vscode/settings.json
(1 hunks)src/controllers/mainVolume.ts
(3 hunks)src/controllers/stationStatus.ts
(4 hunks)src/controllers/stationVolume.ts
(6 hunks)
✅ Files skipped from review due to trivial changes (2)
- src/controllers/stationStatus.ts
- .vscode/extensions.json
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Build, lint and pack
🔇 Additional comments (8)
src/controllers/mainVolume.ts (4)
4-4
: LGTM!Clean import of trackAudioManager to support voice connection state handling.
61-61
: LGTM!Documentation improvement enhances clarity.
155-161
: LGTM!Good implementation of voice connection state handling:
- Uses trackAudioManager.isVoiceConnected for visual state
- Consistently uses trackAudioManager.isConnected for template selection
166-179
: LGTM!Excellent implementation of the dimming functionality:
- Consistently dims all UI elements (title, indicator, value) when voice connection is unavailable
- Uses a clear color variable for maintainability
src/controllers/stationVolume.ts (4)
4-4
: LGTM!Clean import of trackAudioManager to support voice connection state handling.
25-25
: LGTM!Fixed typo in variable name (_unavilableTemplatePath → _unavailableTemplatePath).
227-236
: LGTM!Excellent implementation of voice connection state handling:
- Clean early return pattern when voice connection is unavailable
- Clear separation of concerns between connection and availability states
- Consistent with MainVolumeController implementation
Line range hint
259-284
: LGTM!Strong implementation of the dimming functionality:
- Comprehensive connection state checking
- Consistent dimming behavior with MainVolumeController
- Clear separation between disconnected and normal states
Fixes #374
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Documentation