Skip to content

Add Rainy Mood toggle to player overflow menu#1753

Draft
jlpouffier wants to merge 2 commits into
music-assistant:mainfrom
jlpouffier:feature/rainy-mood-plugin
Draft

Add Rainy Mood toggle to player overflow menu#1753
jlpouffier wants to merge 2 commits into
music-assistant:mainfrom
jlpouffier:feature/rainy-mood-plugin

Conversation

@jlpouffier

@jlpouffier jlpouffier commented May 6, 2026

Copy link
Copy Markdown
Member

Summary

Adds the Rainy Mood toggle to the player overflow menu, wired to the rain_mood plugin provider introduced in the companion server PR.

Dependency

Demo

What it live here

Functional logic

See music-assistant/server#3844 for the full behavioural spec (setting, play/pause/seek/transition/queue logic and design decisions).

Screenshots

CleanShot 2026-05-06 at 21 04 49@2x CleanShot 2026-05-06 at 21 04 58@2x CleanShot 2026-05-06 at 21 05 04@2x CleanShot 2026-05-06 at 21 05 14@2x

What changed

  • New useRainMood.ts composable with module-level reactive state shared across all consumers
  • "Enable / Disable Rainy Mood" item added to the player overflow menu (player_menu_items.ts), positioned after "Don't stop the music"
  • Rain status is fetched fresh each time the menu opens so the label always reflects the current state
  • English translation keys added (rainy_mood_enable / rainy_mood_disable)

Test plan

  • Install the Rainy Mood server-side plugin
  • Open the player overflow menu () — verify "Enable 'Rainy Mood'" appears only when the plugin is installed
  • Click it → verify rain is audible and label changes to "Disable 'Rainy Mood'" on next open
  • Click again → rain stops, label reverts to "Enable 'Rainy Mood'"

🤖 Generated with Claude Code

jlpouffier and others added 2 commits May 6, 2026 13:34
- New `useRainMood.ts` composable with module-level reactive state shared
  across all consumers
- Rainy Mood enable/disable item added to the player overflow menu
  (player_menu_items.ts), positioned after "Don't stop the music"
- Rain status is fetched fresh each time the menu opens so the label
  correctly shows the current state
- Removed the standalone toolbar button in favour of the menu item
- Added `rainy_mood_enable` / `rainy_mood_disable` English translation keys

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Auto-format multi-line imports in PlayerCard and PlayerFullscreen
- Delete RainMoodBtn.vue (replaced by overflow menu item)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jlpouffier jlpouffier requested a review from marcelveldt May 6, 2026 19:09
@jlpouffier jlpouffier marked this pull request as ready for review May 18, 2026 10:37
@jlpouffier jlpouffier marked this pull request as draft May 27, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant