[PR #3882] [MERGED] fix: keep Tracker and Echo panels within desktop gutters #6141

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3882
Author: @SpicyMarinara
Created: 7/20/2026
Status: ✅ Merged
Merged: 7/20/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/stack-tracker-and-echo-panels


📝 Commits (2)

  • 2b09bb2 fix: keep Tracker and Echo panels within desktop gutters
  • 26bdd2a fix: address Tracker layout review

📊 Changes

10 files changed (+523 additions, -29 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/core-flows.e2e.ts (+118 -0)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+6 -8)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+64 -10)
📝 packages/client/src/components/layout/AppShell.tsx (+88 -9)
📝 packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx (+2 -2)
➕ packages/client/src/lib/echo-chamber-layout.ts (+32 -0)
➕ packages/client/src/lib/tracker-panel-layout.ts (+29 -0)
📝 packages/client/src/styles/globals.css (+94 -0)
📝 scripts/regressions/open-issues.regression.ts (+88 -0)

📄 Description

Linked issue

No linked issue. This layout regression was reported directly during maintainer testing. A tracking issue should be opened before this draft is promoted if project policy requires one.

Why this change

On desktop, opening the Tracker Panel could shift the centered Roleplay transcript and composer sideways. When the available side gutter became narrower than the selected Tracker width, the panel could also be clipped after its contents were scaled as a larger rendering canvas.

When Tracker and Echo Chamber occupied the same top corner, Echo Chamber independently used that corner and overlapped Tracker instead of stacking beneath it. It could then extend below the visible chat area.

What changed

  • Resolve the desktop Tracker width from the actual free gutter beside the centered Roleplay chat column.
  • Keep the transcript and composer stationary when Tracker opens.
  • Scale constrained Tracker typography in normal document flow and wrap its settings controls, avoiding clipped scaled canvases.
  • Stack a same-side top Echo Chamber below the open Tracker and constrain Echo to the remaining visible height.
  • Add deterministic layout regressions and a Chromium smoke test for narrow desktop gutter behavior.
  • Document the fixes in the changelog.

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

Automated validation completed:

  • pnpm check
  • pnpm regression:issues
  • pnpm exec playwright test e2e/core-flows.e2e.ts --project=desktop-chromium --grep "desktop Tracker stays"

Manual verification notes

  • The reporter confirmed the final desktop behavior looks correct.
  • Before promotion from draft, manually verify both left and right top corners with Tracker and Echo Chamber open together.
  • Manually verify compact, standard, and expanded Tracker widths across light and dark themes.
  • Manually verify that bottom-corner Echo placement and mobile layouts remain unchanged.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

The changelog is updated. No version-bearing files changed.

UI evidence

The focused Chromium regression exercises a 1200 × 900 desktop viewport and verifies that:

  • the chat column does not move when Tracker opens;
  • Tracker remains inside the available gutter;
  • constrained typography uses the expected scale;
  • the Tracker settings toolbar introduces no horizontal overflow.

No screenshot is attached to this draft.

Summary by CodeRabbit

  • Bug Fixes

    • Prevented the desktop Tracker Panel from shifting or clipping the centered Roleplay chat column.
    • Improved Tracker Panel responsiveness, including control wrapping and proportional text scaling.
    • Positioned the Echo Chamber below an open Tracker Panel and constrained its height to prevent overlap or off-screen content.
  • Tests

    • Added automated coverage for Tracker Panel sizing, positioning, scaling, settings visibility, and Echo Chamber layout behavior.

🔄 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/3882 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/20/2026 **Status:** ✅ Merged **Merged:** 7/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/stack-tracker-and-echo-panels` --- ### 📝 Commits (2) - [`2b09bb2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2b09bb2d1f637fb0885f4f826e91d4cb62d8337a) fix: keep Tracker and Echo panels within desktop gutters - [`26bdd2a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/26bdd2a958c6097982fb7f1ef4b745938cc2bace) fix: address Tracker layout review ### 📊 Changes **10 files changed** (+523 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/core-flows.e2e.ts` (+118 -0) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+6 -8) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+64 -10) 📝 `packages/client/src/components/layout/AppShell.tsx` (+88 -9) 📝 `packages/client/src/features/tracker-panel/components/TrackerSidebarHeader.tsx` (+2 -2) ➕ `packages/client/src/lib/echo-chamber-layout.ts` (+32 -0) ➕ `packages/client/src/lib/tracker-panel-layout.ts` (+29 -0) 📝 `packages/client/src/styles/globals.css` (+94 -0) 📝 `scripts/regressions/open-issues.regression.ts` (+88 -0) </details> ### 📄 Description ## Linked issue No linked issue. This layout regression was reported directly during maintainer testing. A tracking issue should be opened before this draft is promoted if project policy requires one. ## Why this change On desktop, opening the Tracker Panel could shift the centered Roleplay transcript and composer sideways. When the available side gutter became narrower than the selected Tracker width, the panel could also be clipped after its contents were scaled as a larger rendering canvas. When Tracker and Echo Chamber occupied the same top corner, Echo Chamber independently used that corner and overlapped Tracker instead of stacking beneath it. It could then extend below the visible chat area. ## What changed - Resolve the desktop Tracker width from the actual free gutter beside the centered Roleplay chat column. - Keep the transcript and composer stationary when Tracker opens. - Scale constrained Tracker typography in normal document flow and wrap its settings controls, avoiding clipped scaled canvases. - Stack a same-side top Echo Chamber below the open Tracker and constrain Echo to the remaining visible height. - Add deterministic layout regressions and a Chromium smoke test for narrow desktop gutter behavior. - Document the fixes in the changelog. ## 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` Automated validation completed: - `pnpm check` - `pnpm regression:issues` - `pnpm exec playwright test e2e/core-flows.e2e.ts --project=desktop-chromium --grep "desktop Tracker stays"` ### Manual verification notes - The reporter confirmed the final desktop behavior looks correct. - Before promotion from draft, manually verify both left and right top corners with Tracker and Echo Chamber open together. - Manually verify compact, standard, and expanded Tracker widths across light and dark themes. - Manually verify that bottom-corner Echo placement and mobile layouts remain unchanged. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) The changelog is updated. No version-bearing files changed. ## UI evidence The focused Chromium regression exercises a 1200 × 900 desktop viewport and verifies that: - the chat column does not move when Tracker opens; - Tracker remains inside the available gutter; - constrained typography uses the expected scale; - the Tracker settings toolbar introduces no horizontal overflow. No screenshot is attached to this draft. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Prevented the desktop Tracker Panel from shifting or clipping the centered Roleplay chat column. * Improved Tracker Panel responsiveness, including control wrapping and proportional text scaling. * Positioned the Echo Chamber below an open Tracker Panel and constrained its height to prevent overlap or off-screen content. * **Tests** * Added automated coverage for Tracker Panel sizing, positioning, scaling, settings visibility, and Echo Chamber layout behavior. <!-- 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:07:28 +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#6141
No description provided.