[PR #8611] [MERGED] feat(chat): the music player's scene mood opens in full (#8590) #8701

Closed
opened 2026-11-07 17:39:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8611
Author: @SpicyMarinara
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/music-mood-full-8590


📝 Commits (3)

  • 067bc5b feat(chat): the music player's scene mood opens in full on hover, focus or tap (#8590)
  • d778712 fix(chat): the mood panel mounts before it measures itself, and a failure is not a mood
  • 82e77f7 fix(chat): pressing the portaled mood panel does not drag the mobile widget

📊 Changes

2 files changed (+116 additions, -1 deletions)

View changed files

📝 packages/client/src/components/chat/LocalMusicPlayer.tsx (+115 -1)
📝 packages/client/src/localization/locales/en.json (+1 -0)

📄 Description

Pull request

Linked issue

Closes #8590

Why this change

The Custom/local Music DJ player shows the scene-mood description under the track title, but a longer one is cut off with an ellipsis and cannot be read anywhere: the title has a title attribute, the mood line did not, and the compact player is capped at 31rem with overflow-hidden. The mood is the reason the agent picked the track, so it is worth being able to read.

What changed

  • packages/client/src/components/chat/LocalMusicPlayer.tsx: the mood line becomes a small disclosure. It stays one clipped line and still shows its text on hover; focusing it opens the full text as a panel pinned above the player, and a tap toggles the same panel on touch screens. Escape or a click elsewhere closes it. The panel is placed through a portal and clamped to the viewport, the way HelpTooltip does, because the compact player clips its own overflow.
  • The accessible name is Scene mood: {{mood}} (ui.chat.localmusicplayer.mood), so a screen reader hears the whole description even when it is not open; aria-expanded says whether the panel is open.
  • Nothing about playback, the volume controls, the drag handle or the agent's music choice changes.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Agent-side checks:

  • pnpm exec tsc --noEmit -p packages/client/tsconfig.json: passes.
  • pnpm run localization:check: passes (the new key sits in the file's sorted position; the catalog was not re-sorted as a whole).
  • pnpm run lint in packages/client: 0 errors (10 pre-existing warnings elsewhere).
  • prettier --check on both touched files: passes.

Please verify by hand:

  • Manually verify a long scene-mood line opens on hover and on keyboard focus, closes on Escape, and does not change playback.
  • Manually verify a tap opens and closes it on a phone-width viewport.
  • Manually verify the panel stays inside the viewport near the screen edges.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8611 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/music-mood-full-8590` --- ### 📝 Commits (3) - [`067bc5b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/067bc5bd4b5f599eec0ca1640dee55e45e49140b) feat(chat): the music player's scene mood opens in full on hover, focus or tap (#8590) - [`d778712`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d778712747036f531e1b4fefb6d7b5c2726ee39c) fix(chat): the mood panel mounts before it measures itself, and a failure is not a mood - [`82e77f7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/82e77f7ae80a21c052ce7452a327e9a1eb40d45a) fix(chat): pressing the portaled mood panel does not drag the mobile widget ### 📊 Changes **2 files changed** (+116 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/LocalMusicPlayer.tsx` (+115 -1) 📝 `packages/client/src/localization/locales/en.json` (+1 -0) </details> ### 📄 Description # Pull request ## Linked issue Closes #8590 ## Why this change The Custom/local Music DJ player shows the scene-mood description under the track title, but a longer one is cut off with an ellipsis and cannot be read anywhere: the title has a `title` attribute, the mood line did not, and the compact player is capped at `31rem` with `overflow-hidden`. The mood is the reason the agent picked the track, so it is worth being able to read. ## What changed - `packages/client/src/components/chat/LocalMusicPlayer.tsx`: the mood line becomes a small disclosure. It stays one clipped line and still shows its text on hover; focusing it opens the full text as a panel pinned above the player, and a tap toggles the same panel on touch screens. Escape or a click elsewhere closes it. The panel is placed through a portal and clamped to the viewport, the way `HelpTooltip` does, because the compact player clips its own overflow. - The accessible name is `Scene mood: {{mood}}` (`ui.chat.localmusicplayer.mood`), so a screen reader hears the whole description even when it is not open; `aria-expanded` says whether the panel is open. - Nothing about playback, the volume controls, the drag handle or the agent's music choice changes. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Agent-side checks: - `pnpm exec tsc --noEmit -p packages/client/tsconfig.json`: passes. - `pnpm run localization:check`: passes (the new key sits in the file's sorted position; the catalog was not re-sorted as a whole). - `pnpm run lint` in `packages/client`: 0 errors (10 pre-existing warnings elsewhere). - `prettier --check` on both touched files: passes. Please verify by hand: - [ ] Manually verify a long scene-mood line opens on hover and on keyboard focus, closes on Escape, and does not change playback. - [ ] Manually verify a tap opens and closes it on a phone-width viewport. - [ ] Manually verify the panel stays inside the viewport near the screen edges. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:04 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8701
No description provided.