[PR #7073] [MERGED] fix(ui): remove redundant minimize button and unpin new pop-outs #7459

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

📋 Pull Request Information

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

Base: staging ← Head: fix/window-controls-unpinned


📝 Commits (2)

  • d133948 fix(ui): simplify window controls and unpin new pop-outs
  • 024079a test(ui): uncover the detached button before reopening it

📊 Changes

11 files changed (+59 additions, -45 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 docs/appearance/custom-css-themes.md (+2 -2)
📝 docs/chats/chat-settings.md (+2 -2)
📝 docs/roleplay/hud-and-trackers.md (+2 -2)
📝 e2e/chat-control-windows.e2e.ts (+4 -4)
📝 e2e/drawer-popout.e2e.ts (+41 -15)
📝 packages/client/src/components/ui/Drawer.tsx (+2 -2)
📝 packages/client/src/components/ui/FloatingWindow.tsx (+2 -14)
📝 packages/client/src/localization/locales/en.json (+0 -2)
📝 packages/client/src/styles/globals.css (+1 -1)
📝 scripts/regressions/floating-window.regression.ts (+2 -1)

📄 Description

Linked issue

Closes #7071. Follow-up to #7062; targets staging.

Why this change

Floating chat windows have two controls that perform the same action: minus and Close (X). New detached sections also start pinned, so clicking away leaves them open when the user expects them to shrink to their buttons.

What changed

  • Remove the redundant minus button from the shared window title bar. Close (X), Escape and outside-click behavior remain available.
  • Start newly popped-out sections unpinned. Users can still pin them to stay open, and saved explicit pin choices survive refresh.
  • Update the existing browser and regression checks, English guides and Unreleased changelog. The parent Trackers window keeps its existing default.

Validation

Candidate: 024079a00a4f7498830529c48e8bcce9d3b4e3e9. App source is identical to d1339485460a6ce82a4248b8459c45b67af910db; the last commit only closes an obstructing window in an existing browser test.

  • Passed pnpm check and the floating-window regression (1/1) at d13394854.

  • Passed native ARM64 Docker build/runtime at d13394854, including health, compiled assets and exact build metadata. Image: sha256:2d0ae7e8f69a42532980f66e8166887f3cb0bd1a8e860b7cb0a9946f4d52c57c.

  • Desktop control/drawer coverage: 14 passed and 2 intentional mobile-only skips in the initial run. One existing test tried to click a bubble behind open Chat Settings; closing that unrelated window fixes the fixture, and the affected case passed on rerun (1/1). Product code did not change.

  • Local CodeRabbit completed at d13394854, reviewed all 11 changed files, and reported zero findings. The later four-line fixture-only adjustment was inspected separately.

  • Passed targeted phone coverage: 8/8 across mobile Chromium and mobile WebKit, including docking and saved desktop pin/lock/geometry. Shell smoke passed 7/7 and compiled production startup passed 3/3 on the candidate. Hosted build/test checks subsequently passed, including pnpm-validate, the container build and both code scans. The maintainer merged the PR while hosted checks were running; hosted CodeRabbit changed to Review skipped after merge, so it is not claimed as a completed hosted review. The completed local review is recorded above.

  • 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

Automated browser runs exercised click/drag detachment, outside-click hiding, Close and Escape, explicit pin persistence after reload, and phone sheets. Before/after renders were visually inspected. The unchecked items below remain a maintainer checklist.

  • Manually open a detached section and a chat control window; verify the title bar has Close (X) and no minus button.
  • Manually pop out a section by clicking its pop-out control and by dragging its title. Verify it starts unpinned and hides to its button after an outside click.
  • Manually pin a detached section, refresh, and verify it remains pinned and open.
  • Manually verify phone sheets still open and close normally.

Docs and release impact

Updated three English guides, removed the two unused English minimize-control labels, and added an Unreleased changelog entry. All ten translated packs are being updated in #7065, #7068, #7069 and #7070 under #7054. No version or storage-format change.

  • 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
  • Version/release files updated (only if this PR includes a version bump)

UI evidence

Before/after gallery — five inspected screenshots using synthetic data in disposable containers. All uploaded PNG hashes were verified.

Before: minus and pinned by default → After: Close and unpinned by default. After clicking outside shows the detached section's movable button.

Before captures use b0219a345; after captures use d13394854, whose app source is unchanged in final candidate 024079a00. Phone tests use browser emulation; physical phone verification remains manual.


🔄 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/7073 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/4/2026 **Status:** ✅ Merged **Merged:** 10/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/window-controls-unpinned` --- ### 📝 Commits (2) - [`d133948`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d1339485460a6ce82a4248b8459c45b67af910db) fix(ui): simplify window controls and unpin new pop-outs - [`024079a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/024079a00a4f7498830529c48e8bcce9d3b4e3e9) test(ui): uncover the detached button before reopening it ### 📊 Changes **11 files changed** (+59 additions, -45 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `docs/appearance/custom-css-themes.md` (+2 -2) 📝 `docs/chats/chat-settings.md` (+2 -2) 📝 `docs/roleplay/hud-and-trackers.md` (+2 -2) 📝 `e2e/chat-control-windows.e2e.ts` (+4 -4) 📝 `e2e/drawer-popout.e2e.ts` (+41 -15) 📝 `packages/client/src/components/ui/Drawer.tsx` (+2 -2) 📝 `packages/client/src/components/ui/FloatingWindow.tsx` (+2 -14) 📝 `packages/client/src/localization/locales/en.json` (+0 -2) 📝 `packages/client/src/styles/globals.css` (+1 -1) 📝 `scripts/regressions/floating-window.regression.ts` (+2 -1) </details> ### 📄 Description ## Linked issue Closes #7071. Follow-up to #7062; targets `staging`. ## Why this change Floating chat windows have two controls that perform the same action: minus and Close (X). New detached sections also start pinned, so clicking away leaves them open when the user expects them to shrink to their buttons. ## What changed - Remove the redundant minus button from the shared window title bar. Close (X), Escape and outside-click behavior remain available. - Start newly popped-out sections unpinned. Users can still pin them to stay open, and saved explicit pin choices survive refresh. - Update the existing browser and regression checks, English guides and Unreleased changelog. The parent Trackers window keeps its existing default. ## Validation Candidate: `024079a00a4f7498830529c48e8bcce9d3b4e3e9`. App source is identical to `d1339485460a6ce82a4248b8459c45b67af910db`; the last commit only closes an obstructing window in an existing browser test. - Passed `pnpm check` and the floating-window regression (1/1) at `d13394854`. - Passed native ARM64 Docker build/runtime at `d13394854`, including health, compiled assets and exact build metadata. Image: `sha256:2d0ae7e8f69a42532980f66e8166887f3cb0bd1a8e860b7cb0a9946f4d52c57c`. - Desktop control/drawer coverage: 14 passed and 2 intentional mobile-only skips in the initial run. One existing test tried to click a bubble behind open Chat Settings; closing that unrelated window fixes the fixture, and the affected case passed on rerun (1/1). Product code did not change. - Local CodeRabbit completed at `d13394854`, reviewed all 11 changed files, and reported zero findings. The later four-line fixture-only adjustment was inspected separately. - Passed targeted phone coverage: 8/8 across mobile Chromium and mobile WebKit, including docking and saved desktop pin/lock/geometry. Shell smoke passed 7/7 and compiled production startup passed 3/3 on the candidate. Hosted build/test checks subsequently passed, including `pnpm-validate`, the container build and both code scans. The maintainer merged the PR while hosted checks were running; hosted CodeRabbit changed to `Review skipped` after merge, so it is not claimed as a completed hosted review. The completed local review is recorded above. - [ ] `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 Automated browser runs exercised click/drag detachment, outside-click hiding, Close and Escape, explicit pin persistence after reload, and phone sheets. Before/after renders were visually inspected. The unchecked items below remain a maintainer checklist. - [ ] Manually open a detached section and a chat control window; verify the title bar has Close (X) and no minus button. - [ ] Manually pop out a section by clicking its pop-out control and by dragging its title. Verify it starts unpinned and hides to its button after an outside click. - [ ] Manually pin a detached section, refresh, and verify it remains pinned and open. - [ ] Manually verify phone sheets still open and close normally. ## Docs and release impact Updated three English guides, removed the two unused English minimize-control labels, and added an Unreleased changelog entry. All ten translated packs are being updated in #7065, #7068, #7069 and #7070 under #7054. No version or storage-format change. - [ ] 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 - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence [Before/after gallery](https://gist.github.com/SpicyMarinara/03f47ac2c36f528592bd2a448aa71386) — five inspected screenshots using synthetic data in disposable containers. All uploaded PNG hashes were verified. [Before: minus and pinned by default](https://gist.githubusercontent.com/SpicyMarinara/03f47ac2c36f528592bd2a448aa71386/raw/e6f6d9173ebb00a5e5e7508e54279437f2dff174/before-detached-window-detail.png) → [After: Close and unpinned by default](https://gist.githubusercontent.com/SpicyMarinara/03f47ac2c36f528592bd2a448aa71386/raw/e6f6d9173ebb00a5e5e7508e54279437f2dff174/after-detached-window-detail.png). [After clicking outside](https://gist.githubusercontent.com/SpicyMarinara/03f47ac2c36f528592bd2a448aa71386/raw/e6f6d9173ebb00a5e5e7508e54279437f2dff174/after-outside-click-button-desktop.png) shows the detached section's movable button. Before captures use `b0219a345`; after captures use `d13394854`, whose app source is unchanged in final candidate `024079a00`. Phone tests use browser emulation; physical phone verification remains manual. --- <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:01 +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#7459
No description provided.