[PR #5274] [MERGED] Fix Professor Mari chat chrome and close controls #6696

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5274
Author: @SpicyMarinara
Created: 8/19/2026
Status: ✅ Merged
Merged: 8/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/professor-mari-chat-chrome-5273


📝 Commits (3)

  • f41b0a5 Fix Professor Mari chat chrome and close controls
  • 01c933e Harden Professor Mari browser coverage
  • 50ad916 Strengthen Professor Mari UI regression cleanup

📊 Changes

3 files changed (+79 additions, -27 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/core-flows.e2e.ts (+68 -17)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+10 -10)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #5273

Why this change

  • Professor Mari's ordinary mobile chat chrome bypassed the dedicated Chat Chrome Text Color tokens, so user labels, inactive message actions, context copy, and suggestion guidance retained the default theme colors.
  • Her desktop close controls used a smaller local treatment than the established editor-exit controls, making the action unnecessarily hard to see and target.

What changed

  • Routed the affected Professor Mari labels and inactive icons through the existing chat-chrome text tokens while preserving Accent Color for hover/focus emphasis and progress fill.
  • Reused the existing full-size editor action style for both desktop Professor Mari close variants.
  • Extended the existing Professor Mari browser coverage and added the user-facing changelog entry.

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

  • pnpm check passed locally (localization, formatting, lint, TypeScript, and production builds).
  • Focused Playwright coverage passed on desktop Chromium and Pixel 7 mobile Chromium: 6 tests passed.
  • The focused tests verify the configured Chat Chrome Text Color on You, inactive message actions, context labels/values, and suggestion guidance, plus the desktop floating close button's editor-action class and minimum 36 px button / 18 px icon dimensions.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Automated viewport evidence is covered by the focused desktop/mobile Playwright run above. The in-app browser was unavailable for a separate screenshot attachment.

Summary by CodeRabbit

  • Bug Fixes
    • Improved Professor Mari chat readability on mobile by applying configured text colors to message labels, actions, context details, and suggestion guidance.
    • Updated floating and embedded chat close controls with more consistent editor-aligned styling and sizing.
  • Tests
    • Expanded coverage for chat colors, dismissal controls, message handling, suggestions, and context-budget indicators across key chat flows.

🔄 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/5274 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/19/2026 **Status:** ✅ Merged **Merged:** 8/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/professor-mari-chat-chrome-5273` --- ### 📝 Commits (3) - [`f41b0a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f41b0a5cc87ef5c79a4eeca97814b4e3e4620166) Fix Professor Mari chat chrome and close controls - [`01c933e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/01c933eeb9fa35b691853a3707b5119d955bb9ba) Harden Professor Mari browser coverage - [`50ad916`](https://github.com/Pasta-Devs/Marinara-Engine/commit/50ad9166faa1e66dd0b7ee63bc45370d741c724c) Strengthen Professor Mari UI regression cleanup ### 📊 Changes **3 files changed** (+79 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/core-flows.e2e.ts` (+68 -17) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+10 -10) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #5273 ## Why this change - Professor Mari's ordinary mobile chat chrome bypassed the dedicated Chat Chrome Text Color tokens, so user labels, inactive message actions, context copy, and suggestion guidance retained the default theme colors. - Her desktop close controls used a smaller local treatment than the established editor-exit controls, making the action unnecessarily hard to see and target. ## What changed - Routed the affected Professor Mari labels and inactive icons through the existing chat-chrome text tokens while preserving Accent Color for hover/focus emphasis and progress fill. - Reused the existing full-size editor action style for both desktop Professor Mari close variants. - Extended the existing Professor Mari browser coverage and added the user-facing changelog entry. ## 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 - `pnpm check` passed locally (localization, formatting, lint, TypeScript, and production builds). - Focused Playwright coverage passed on desktop Chromium and Pixel 7 mobile Chromium: 6 tests passed. - The focused tests verify the configured Chat Chrome Text Color on `You`, inactive message actions, context labels/values, and suggestion guidance, plus the desktop floating close button's editor-action class and minimum 36 px button / 18 px icon dimensions. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Automated viewport evidence is covered by the focused desktop/mobile Playwright run above. The in-app browser was unavailable for a separate screenshot attachment. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved Professor Mari chat readability on mobile by applying configured text colors to message labels, actions, context details, and suggestion guidance. - Updated floating and embedded chat close controls with more consistent editor-aligned styling and sizing. - **Tests** - Expanded coverage for chat colors, dismissal controls, message handling, suggestions, and context-budget indicators across key chat flows. <!-- 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:12:50 +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#6696
No description provided.