[PR #7104] [MERGED] fix(chat): apply widget styling to input popups (#7103) #7476

Closed
opened 2026-10-23 04:20:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/input-popup-widget-style


📝 Commits (8)

  • a3b4f27 chore: start input popup widget styling fix
  • f72d401 fix(chat): extend widget styling to input popups
  • 210bb64 fix(chat): inset inline dice controls within preset corners
  • d438f20 test(chat): verify input popup styling across modes and browsers
  • 547a2f3 test(chat): always clean popup fixtures after closing the page
  • d28c4f6 fix(game): match the custom dice field to widget control shapes
  • 7a79ee4 fix(game): keep the dice field focus outline within its cut frame
  • 82bd321 test(chat): verify isolated quick reply styles and dice field focus

📊 Changes

9 files changed (+522 additions, -26 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
➕ e2e/input-popup-widget-style.e2e.ts (+416 -0)
📝 packages/client/src/components/chat/ChatInput.tsx (+9 -3)
📝 packages/client/src/components/chat/ConversationInput.tsx (+12 -3)
📝 packages/client/src/components/chat/ConversationMediaPickerPanel.tsx (+2 -1)
📝 packages/client/src/components/chat/QuickReplyMenu.tsx (+2 -1)
📝 packages/client/src/components/game/GameInput.tsx (+26 -17)
📝 packages/client/src/components/ui/EmojiPicker.tsx (+8 -1)
📝 packages/client/src/styles/themes/chat-widget-surfaces.css (+45 -0)

📄 Description

Linked issue

Closes #7103.

Why this change

Turning on chat widget styling changed the input box, but several menus opened from its icons still used the app's general card appearance. Those menus should follow the same independently selected font, shape, and color settings.

What changed

  • Apply the existing surface hooks to Roleplay character responses and Push Story, Conversation's media/tools panel, and Game's dice and Party/GM address picker.
  • Apply the hooks to command, mention, and emoji autocomplete menus and portaled quick-reply controls.
  • Let chat inputs opt the shared EmojiPicker into these styles without changing its appearance in settings, profile editors, or message reactions.
  • Preserve existing backgrounds when only Shape is enabled; keep selected rows inside Dottore's cut corners and inset Game dice controls within their frame.
  • Add browser regression coverage and a user-facing changelog entry. No new preferences, dependencies, user-facing copy, or storage changes.

Validation

Validated implementation: 82bd321d3489f408b3cf08ae45f5491ba3b62d91 (production code is unchanged since 7a79ee491).

  • pnpm check: passed, including localization, formatting, lint, types, and production builds.
  • pnpm regression:ui e2e/input-popup-widget-style.e2e.ts --workers=1: 6/6 passed across desktop Chromium, mobile Chromium, and mobile WebKit. Dottore/dark and Mari/light; each switch independently, switches off, preset/custom gradient paints, popup placement, interactions, and cut-corner bounds. The final run also checks quick-reply controls with each switch in isolation and verifies that the custom dice field is editable and has a visible focus edge inside its cut shape.
  • Original-code reproduction: temporarily restoring the original ChatInput.tsx made the font-only assertion fail because the character popup retained Inter. Restored the fixed source and the full focused matrix passed.
  • pnpm smoke:ui: 7/7 passed.
  • pnpm smoke:production: 3/3 passed on desktop Chromium, mobile Chromium, and mobile WebKit.
  • Window-icons and widget-style-persistence Node regressions: 2/2 passed.
  • Native Linux ARM64 Docker build/runtime: passed for production commit 7a79ee491. Health/build metadata, SPA, 26 referenced frontend assets, and multiplayer guest bundle verified with isolated disposable data.
  • Local CodeRabbit: main production review completed with zero findings. Incremental CSS/test review completed with two trivial fixture-cleanup suggestions: nested cleanup was fixed; the larger fixture rewrite was declined because partial setup already cleans itself and Playwright owns page teardown, with disposable server data. The next local review attempt hit the shared quota and did not complete.
  • Hosted review follow-ups addressed: isolated quick-reply axis checks and custom-dice field shape. The native input uses a styled wrapper because inputs cannot render the cut-frame pseudo-element. The wrapper retains a visible focus outline, independently reviewed and covered in the final browser matrix. The updated GitHub review remains a merge gate.

These unchecked items remain the human contributor's checklist.

  • 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

  • Manually verify input popups in Conversation, Roleplay, and Game on a physical phone.
  • Manually verify the selected preset and custom colors with your own themes and chat data.

Automated browser coverage uses disposable chats and browser mobile emulation, not physical devices or live user data.

Docs and release impact

  • Changelog updated. This completes the existing switches' coverage, so the current user guides remain accurate.
  • No release metadata or documentation language packs changed.

UI evidence

Inspected 12-image browser gallery, including the actual original-code failure, disabled defaults, both presets, mobile popups, and custom gradients. All uploaded PNG hashes were verified. Captions record the exact source, settings, and browser provenance; mobile captures are browser emulation.

Summary by CodeRabbit

  • New Features
    • Chat input popups and controls now follow the independent preset font, shape, and color settings. This applies across command, character, emoji, media, mention, story, dice, address, and quick-reply pickers and menus.
    • Each style setting applies independently; when a setting is off, that property retains its existing appearance.

🔄 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/7104 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/5/2026 **Status:** ✅ Merged **Merged:** 10/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/input-popup-widget-style` --- ### 📝 Commits (8) - [`a3b4f27`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3b4f2767ab144ac0661854ce95363931dd3cc4b) chore: start input popup widget styling fix - [`f72d401`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f72d401524ecf1dbafd258831a5a10ac1a532239) fix(chat): extend widget styling to input popups - [`210bb64`](https://github.com/Pasta-Devs/Marinara-Engine/commit/210bb64fe166e35c6c0e71c83279d55b6e0474b6) fix(chat): inset inline dice controls within preset corners - [`d438f20`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d438f20d70bc53c62ae75adea4bbdfef4b9c8818) test(chat): verify input popup styling across modes and browsers - [`547a2f3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/547a2f3f7f84d9c61067d1ffd1fd9e03f1199ca6) test(chat): always clean popup fixtures after closing the page - [`d28c4f6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d28c4f6d1431d2b30632fd10a24f8dca1a09f06c) fix(game): match the custom dice field to widget control shapes - [`7a79ee4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7a79ee4919deb9a3cd50af0935e0b0b8ce45f952) fix(game): keep the dice field focus outline within its cut frame - [`82bd321`](https://github.com/Pasta-Devs/Marinara-Engine/commit/82bd321d3489f408b3cf08ae45f5491ba3b62d91) test(chat): verify isolated quick reply styles and dice field focus ### 📊 Changes **9 files changed** (+522 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) ➕ `e2e/input-popup-widget-style.e2e.ts` (+416 -0) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+9 -3) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+12 -3) 📝 `packages/client/src/components/chat/ConversationMediaPickerPanel.tsx` (+2 -1) 📝 `packages/client/src/components/chat/QuickReplyMenu.tsx` (+2 -1) 📝 `packages/client/src/components/game/GameInput.tsx` (+26 -17) 📝 `packages/client/src/components/ui/EmojiPicker.tsx` (+8 -1) 📝 `packages/client/src/styles/themes/chat-widget-surfaces.css` (+45 -0) </details> ### 📄 Description ## Linked issue Closes #7103. ## Why this change Turning on chat widget styling changed the input box, but several menus opened from its icons still used the app's general card appearance. Those menus should follow the same independently selected font, shape, and color settings. ## What changed - Apply the existing surface hooks to Roleplay character responses and Push Story, Conversation's media/tools panel, and Game's dice and Party/GM address picker. - Apply the hooks to command, mention, and emoji autocomplete menus and portaled quick-reply controls. - Let chat inputs opt the shared EmojiPicker into these styles without changing its appearance in settings, profile editors, or message reactions. - Preserve existing backgrounds when only Shape is enabled; keep selected rows inside Dottore's cut corners and inset Game dice controls within their frame. - Add browser regression coverage and a user-facing changelog entry. No new preferences, dependencies, user-facing copy, or storage changes. ## Validation Validated implementation: `82bd321d3489f408b3cf08ae45f5491ba3b62d91` (production code is unchanged since `7a79ee491`). - `pnpm check`: passed, including localization, formatting, lint, types, and production builds. - `pnpm regression:ui e2e/input-popup-widget-style.e2e.ts --workers=1`: 6/6 passed across desktop Chromium, mobile Chromium, and mobile WebKit. Dottore/dark and Mari/light; each switch independently, switches off, preset/custom gradient paints, popup placement, interactions, and cut-corner bounds. The final run also checks quick-reply controls with each switch in isolation and verifies that the custom dice field is editable and has a visible focus edge inside its cut shape. - Original-code reproduction: temporarily restoring the original `ChatInput.tsx` made the font-only assertion fail because the character popup retained Inter. Restored the fixed source and the full focused matrix passed. - `pnpm smoke:ui`: 7/7 passed. - `pnpm smoke:production`: 3/3 passed on desktop Chromium, mobile Chromium, and mobile WebKit. - Window-icons and widget-style-persistence Node regressions: 2/2 passed. - Native Linux ARM64 Docker build/runtime: passed for production commit `7a79ee491`. Health/build metadata, SPA, 26 referenced frontend assets, and multiplayer guest bundle verified with isolated disposable data. - Local CodeRabbit: main production review completed with zero findings. Incremental CSS/test review completed with two trivial fixture-cleanup suggestions: nested cleanup was fixed; the larger fixture rewrite was declined because partial setup already cleans itself and Playwright owns page teardown, with disposable server data. The next local review attempt hit the shared quota and did not complete. - Hosted review follow-ups addressed: isolated quick-reply axis checks and custom-dice field shape. The native input uses a styled wrapper because inputs cannot render the cut-frame pseudo-element. The wrapper retains a visible focus outline, independently reviewed and covered in the final browser matrix. The updated GitHub review remains a merge gate. These unchecked items remain the human contributor's checklist. - [ ] `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 - [ ] Manually verify input popups in Conversation, Roleplay, and Game on a physical phone. - [ ] Manually verify the selected preset and custom colors with your own themes and chat data. Automated browser coverage uses disposable chats and browser mobile emulation, not physical devices or live user data. ## Docs and release impact - Changelog updated. This completes the existing switches' coverage, so the current user guides remain accurate. - No release metadata or documentation language packs changed. ## UI evidence [Inspected 12-image browser gallery](https://gist.github.com/SpicyMarinara/95d2004c9af335f14953b7a727d557e9), including the actual original-code failure, disabled defaults, both presets, mobile popups, and custom gradients. All uploaded PNG hashes were verified. Captions record the exact source, settings, and browser provenance; mobile captures are browser emulation. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Chat input popups and controls now follow the independent preset font, shape, and color settings. This applies across command, character, emoji, media, mention, story, dice, address, and quick-reply pickers and menus. * Each style setting applies independently; when a setting is off, that property retains its existing appearance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:20:12 +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#7476
No description provided.