[PR #7717] [MERGED] fix(ui): let computer chat windows reach the bottom beside the message box #7895

Closed
opened 2026-10-24 04:08:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/7703-rp-widgets-desktop


📝 Commits (1)

  • 833ae18 fix(ui): let computer chat windows reach the bottom beside the message box

📊 Changes

5 files changed (+147 additions, -20 deletions)

View changed files

📝 e2e/tracker-window.e2e.ts (+71 -0)
📝 packages/client/src/components/ui/FloatingWindow.tsx (+15 -4)
📝 packages/client/src/components/ui/WindowBubble.tsx (+8 -1)
📝 packages/client/src/lib/floating-window-layout.ts (+28 -15)
📝 scripts/regressions/floating-window.regression.ts (+25 -0)

📄 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 #7703

Why this change

  • In the new Roleplay UI on a computer, movable widgets (the Trackers window, popped-out tracker windows, control windows and their buttons) could not be moved or stretched into the empty space left and right of the message box. They all stopped at the top of the message box across the whole chat width, and typing several lines pushed them upward.
  • Mari confirmed on Discord that this limit was meant only for phones: on a computer, widgets should reach the bottom of the screen.
  • The old Tracker Panel already uses that vertical space, so the floating widgets felt cramped next to it.

What changed

  • WindowBounds gets an optional besideComposer (the message box's left and right edges and the chat's bottom). readFloatingWindowBounds() fills it in on a computer. bottom still means "above the message box", so default placements, findFreeBubble and other callers stay as they are.
  • clampWindowGeometry, resizeWindowGeometry, clampWindowBubble and the free-spot search for bubbles use one helper, readBottomLimit. A window or button wholly beside the message box can now reach the bottom of the chat.
    • A widget beside the box no longer moves when the box grows (several lines, slash-command suggestions).
    • A widget moved over the box still stays above it, so the message box is never covered.
    • When a window reaches below the top of the box, its side edges stop at the box while you resize.
  • Phones are unchanged. readPhoneBubbleBounds() builds its bounds without besideComposer, so phone buttons stay above the message box everywhere.
  • Saved layouts use the same format as before. They hold plain geometry, which is clamped when shown. Older saves load as they did, and a new low place loads again after a reload (covered by the e2e below).

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

Commands the agent ran (see the PR comments for results):

  • npx tsc --noEmit for shared, server, client, root and scripts/regressions/tsconfig.client-lanes.json
  • eslint and prettier --check on the changed files
  • node scripts/run-regressions.mjs --filter scripts/regressions/floating-window.regression.ts: new geometry cases. They fail without the fix (beside the box a window reaches the bottom: actual y 300, expected 400).
  • Playwright e2e/tracker-window.e2e.ts new test "the Trackers window and its button reach the bottom beside the message box, never over it". It fails without the fix: the stretched window stops at 922 px instead of 992 px.
  • Existing related Playwright specs on desktop and mobile (listed in a follow-up comment)

Manual verification notes

  • Manually verify on a wide desktop window (e.g. 1920 px) in a Roleplay chat with the Tracker Panel off: stretch the Trackers window's bottom edge down beside the message box to the bottom of the screen.
  • Manually verify that typing several lines (or /) in the message box no longer pushes a widget placed beside it upward.
  • Manually verify that dragging that tall window over the message box makes it rise above the box instead of covering it.
  • Manually verify that a minimized widget button can be dragged into the bottom corner beside the message box, and not onto the box itself.
  • Manually verify on a phone (or a narrow window under 768 px) that buttons still stop above the message box.
  • Manually verify that a chat with layouts saved before this change opens with its windows where they were.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

The docs never mention the old limit, so no doc text changes here and no translation follow-up is needed.

UI evidence (if applicable)

  • Measured in the Playwright run at 1920×1000. The message box spans x 467–1453 and starts at y 930.
    • Before: the stretched Trackers window (x 12–386) stopped at y 922 and moved up as the box grew.
    • After: it reaches y 992 and stays there while the box grows to y 616 with slash-command suggestions.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • Desktop floating windows and minimized bubbles can now extend to the bottom of the screen when positioned beside the message composer.
    • Windows that overlap the composer stay above it, and resizing is constrained to prevent obstruction.
    • Floating window placement now persists after reloading.

🔄 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/7717 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/16/2026 **Status:** ✅ Merged **Merged:** 10/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/7703-rp-widgets-desktop` --- ### 📝 Commits (1) - [`833ae18`](https://github.com/Pasta-Devs/Marinara-Engine/commit/833ae18e6ef6ef8b09ff38b81d76a7aadf865ae7) fix(ui): let computer chat windows reach the bottom beside the message box ### 📊 Changes **5 files changed** (+147 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `e2e/tracker-window.e2e.ts` (+71 -0) 📝 `packages/client/src/components/ui/FloatingWindow.tsx` (+15 -4) 📝 `packages/client/src/components/ui/WindowBubble.tsx` (+8 -1) 📝 `packages/client/src/lib/floating-window-layout.ts` (+28 -15) 📝 `scripts/regressions/floating-window.regression.ts` (+25 -0) </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`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7703 ## Why this change - In the new Roleplay UI on a computer, movable widgets (the Trackers window, popped-out tracker windows, control windows and their buttons) could not be moved or stretched into the empty space left and right of the message box. They all stopped at the top of the message box across the whole chat width, and typing several lines pushed them upward. - Mari confirmed on Discord that this limit was meant only for phones: on a computer, widgets should reach the bottom of the screen. - The old Tracker Panel already uses that vertical space, so the floating widgets felt cramped next to it. ## What changed - `WindowBounds` gets an optional `besideComposer` (the message box's left and right edges and the chat's bottom). `readFloatingWindowBounds()` fills it in on a computer. `bottom` still means "above the message box", so default placements, `findFreeBubble` and other callers stay as they are. - `clampWindowGeometry`, `resizeWindowGeometry`, `clampWindowBubble` and the free-spot search for bubbles use one helper, `readBottomLimit`. A window or button wholly beside the message box can now reach the bottom of the chat. - A widget beside the box no longer moves when the box grows (several lines, slash-command suggestions). - A widget moved over the box still stays above it, so the message box is never covered. - When a window reaches below the top of the box, its side edges stop at the box while you resize. - Phones are unchanged. `readPhoneBubbleBounds()` builds its bounds without `besideComposer`, so phone buttons stay above the message box everywhere. - Saved layouts use the same format as before. They hold plain geometry, which is clamped when shown. Older saves load as they did, and a new low place loads again after a reload (covered by the e2e below). ## 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` Commands the agent ran (see the PR comments for results): - `npx tsc --noEmit` for shared, server, client, root and `scripts/regressions/tsconfig.client-lanes.json` - `eslint` and `prettier --check` on the changed files - `node scripts/run-regressions.mjs --filter scripts/regressions/floating-window.regression.ts`: new geometry cases. They **fail without the fix** (`beside the box a window reaches the bottom`: actual y 300, expected 400). - Playwright `e2e/tracker-window.e2e.ts` new test "the Trackers window and its button reach the bottom beside the message box, never over it". It **fails without the fix**: the stretched window stops at 922 px instead of 992 px. - Existing related Playwright specs on desktop and mobile (listed in a follow-up comment) ### Manual verification notes - Manually verify on a wide desktop window (e.g. 1920 px) in a Roleplay chat with the Tracker Panel off: stretch the Trackers window's bottom edge down beside the message box to the bottom of the screen. - Manually verify that typing several lines (or `/`) in the message box no longer pushes a widget placed beside it upward. - Manually verify that dragging that tall window over the message box makes it rise above the box instead of covering it. - Manually verify that a minimized widget button can be dragged into the bottom corner beside the message box, and not onto the box itself. - Manually verify on a phone (or a narrow window under 768 px) that buttons still stop above the message box. - Manually verify that a chat with layouts saved before this change opens with its windows where they were. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) The docs never mention the old limit, so no doc text changes here and no translation follow-up is needed. ## UI evidence (if applicable) - Measured in the Playwright run at 1920×1000. The message box spans x 467–1453 and starts at y 930. - Before: the stretched Trackers window (x 12–386) stopped at y 922 and moved up as the box grew. - After: it reaches y 992 and stays there while the box grows to y 616 with slash-command suggestions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Desktop floating windows and minimized bubbles can now extend to the bottom of the screen when positioned beside the message composer. * Windows that overlap the composer stay above it, and resizing is constrained to prevent obstruction. * Floating window placement now persists after reloading. <!-- 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-24 04:08:36 +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#7895
No description provided.