[PR #7038] [MERGED] fix(ui): unify expanded editor backgrounds with sidebars #7440

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

📋 Pull Request Information

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

Base: staging ← Head: fix/expanded-editor-backgrounds-7037


📝 Commits (2)

  • 077c354 chore: track expanded editor surface fix
  • 2d16ae5 fix(ui): use sidebar surfaces in expanded text editors

📊 Changes

4 files changed (+13 additions, -13 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/client/src/components/presets/PresetEditor.tsx (+1 -1)
📝 packages/client/src/components/ui/ExpandedTextarea.tsx (+8 -10)
📝 packages/client/src/components/ui/MacroTextarea.tsx (+2 -2)

📄 Description

Linked issue

Closes #7037

Why this change

Expanding a text field or editing text returned by a message command opened an editor with the old blue-toned background. These windows portal outside the sidebar and did not inherit its unified dark/light surface.

What changed

  • Use --sidebar for expanded text editor windows, text areas, and command-result footers.
  • Apply the same surface to expanded macro fields and preset variable values.
  • Add an Unreleased changelog entry. No editing logic, localization strings, or global theme definitions changed.

Validation

Working-tree contents committed as 2d16ae514f75a13fd365e0ebf7f5faeeba13123b:

  • pnpm check passed, including localization, formatting, lint/type checks, and production build.
  • pnpm version:check passed.
  • pnpm smoke:ui passed: 7/7. An earlier overlapping attempt was canceled during the shared-package rebuild; this was the clean sequential rerun.
  • Temporary focused Playwright proof passed: 12/12 across three browser projects. The reproducible spec is in the evidence gist and was removed from the repository.
  • Full Dockerfile linux/arm64 build and node scripts/smoke-container.mjs marinara-editor-container:7037 full arm64 passed, including persistent data across container replacement.
  • Local coderabbit review --base origin/staging --agent completed with zero findings across all four changed files; independent source review found no defects.
  • git diff --check passed.

Manual verification checklist

  • Manually verify expanded text fields in dark and light mode.
  • Manually verify editing, saving, and canceling text returned by message commands.
  • Manually verify expanded preset variable values on desktop and mobile.
  • Read and followed CONTRIBUTING.md.

Browser verification performed

Automated browser interactions exercised Author's Notes, Scene Instructions, returned command notes, and preset variable values in desktop Chromium, mobile Chromium, and mobile WebKit. All 12 cases passed, each checking both dark and light mode. Computed window/text-area backgrounds matched the sidebar exactly (#111113 dark, #f5f0fc light); command-result footers matched too. The flows also exercised saving or closing edits. Screenshots were inspected for readability and layout.

Docs and release impact

Unreleased changelog entry only. No version bump or translated documentation changes needed.

UI evidence

Before/after screenshots and reproducible temporary browser proof.

Before (dark) After (dark)
Before After

Summary by CodeRabbit

  • Style
    • Expanded text editors now use the sidebar background in both light and dark modes, including preset values and message command results. Borders, text, focus states, and footer separators retain their surface-specific styling.

🔄 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/7038 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/expanded-editor-backgrounds-7037` --- ### 📝 Commits (2) - [`077c354`](https://github.com/Pasta-Devs/Marinara-Engine/commit/077c354a9bc9ec4b983e556b045688c73cd0b04a) chore: track expanded editor surface fix - [`2d16ae5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2d16ae514f75a13fd365e0ebf7f5faeeba13123b) fix(ui): use sidebar surfaces in expanded text editors ### 📊 Changes **4 files changed** (+13 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/client/src/components/presets/PresetEditor.tsx` (+1 -1) 📝 `packages/client/src/components/ui/ExpandedTextarea.tsx` (+8 -10) 📝 `packages/client/src/components/ui/MacroTextarea.tsx` (+2 -2) </details> ### 📄 Description ## Linked issue Closes #7037 ## Why this change Expanding a text field or editing text returned by a message command opened an editor with the old blue-toned background. These windows portal outside the sidebar and did not inherit its unified dark/light surface. ## What changed - Use `--sidebar` for expanded text editor windows, text areas, and command-result footers. - Apply the same surface to expanded macro fields and preset variable values. - Add an Unreleased changelog entry. No editing logic, localization strings, or global theme definitions changed. ## Validation Working-tree contents committed as `2d16ae514f75a13fd365e0ebf7f5faeeba13123b`: - `pnpm check` passed, including localization, formatting, lint/type checks, and production build. - `pnpm version:check` passed. - `pnpm smoke:ui` passed: 7/7. An earlier overlapping attempt was canceled during the shared-package rebuild; this was the clean sequential rerun. - Temporary focused Playwright proof passed: 12/12 across three browser projects. The reproducible spec is in the evidence gist and was removed from the repository. - Full Dockerfile `linux/arm64` build and `node scripts/smoke-container.mjs marinara-editor-container:7037 full arm64` passed, including persistent data across container replacement. - Local `coderabbit review --base origin/staging --agent` completed with zero findings across all four changed files; independent source review found no defects. - `git diff --check` passed. ### Manual verification checklist - [ ] Manually verify expanded text fields in dark and light mode. - [ ] Manually verify editing, saving, and canceling text returned by message commands. - [ ] Manually verify expanded preset variable values on desktop and mobile. - [ ] Read and followed `CONTRIBUTING.md`. ### Browser verification performed Automated browser interactions exercised Author's Notes, Scene Instructions, returned command notes, and preset variable values in desktop Chromium, mobile Chromium, and mobile WebKit. All 12 cases passed, each checking both dark and light mode. Computed window/text-area backgrounds matched the sidebar exactly (`#111113` dark, `#f5f0fc` light); command-result footers matched too. The flows also exercised saving or closing edits. Screenshots were inspected for readability and layout. ## Docs and release impact Unreleased changelog entry only. No version bump or translated documentation changes needed. ## UI evidence [Before/after screenshots and reproducible temporary browser proof](https://gist.github.com/SpicyMarinara/a09683c3da7b276757be4e5c1b69052b). | Before (dark) | After (dark) | | --- | --- | | ![Before](https://gist.githubusercontent.com/SpicyMarinara/a09683c3da7b276757be4e5c1b69052b/raw/dc8da3ad81c919b8f2cd8fb1f7feaa08d27ac0d7/before-desktop-chromium-command-dark.png) | ![After](https://gist.githubusercontent.com/SpicyMarinara/a09683c3da7b276757be4e5c1b69052b/raw/a6166d5ebca9b1ba737cf5d39fa12f1a8bd78470/after-desktop-chromium-command-dark.png) | <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Expanded text editors now use the sidebar background in both light and dark modes, including preset values and message command results. Borders, text, focus states, and footer separators retain their surface-specific styling. <!-- 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:19:47 +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#7440
No description provided.