[PR #7501] [MERGED] feat(mari): resize Search and Professor Mari windows from settings #7765

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7501
Author: @Gunterlie
Created: 10/12/2026
Status: ✅ Merged
Merged: 10/12/2026
Merged by: @Gunterlie

Base: staging ← Head: feat/mari-window-size


📝 Commits (6)

  • 46fb720 feat(mari): add window width setting and raise window height cap
  • d58ae95 docs(changelog): describe the larger Professor Mari window in plain words
  • 7dd7cc6 fix(mari): open the transcript at the newest message when she is reopened
  • 7dddcc4 feat(search): add search window height and width, and live-resize Mari and Search from settings
  • 1f25633 fix(search): keep window-size results off phones, and rename the automatic height
  • 5d96619 fix(search): keep the size preview while focus moves inside its group, and filter phone results on read

📊 Changes

13 files changed (+368 additions, -33 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+2 -0)
📝 packages/client/src/components/layout/GlobalOmnibar.tsx (+12 -4)
📝 packages/client/src/components/layout/omnibar/OmnibarSettingsMenu.tsx (+143 -23)
📝 packages/client/src/hooks/use-settings-sync.ts (+12 -0)
📝 packages/client/src/lib/omnibar-settings.ts (+14 -2)
📝 packages/client/src/lib/professor-mari-transcript-scroll.ts (+6 -1)
📝 packages/client/src/lib/settings-registry.ts (+24 -0)
📝 packages/client/src/localization/locales/en.json (+8 -0)
📝 packages/client/src/stores/ui.store.ts (+54 -1)
📝 packages/client/src/styles/mari.css (+3 -2)
📝 packages/client/src/styles/omnibar-settings.css (+66 -0)
📝 scripts/regressions/command-center.regression.ts (+23 -0)

📄 Description

Why

On a large screen the Professor Mari window stays small even at the maximum Window height: it is capped at 64 rem and always 44 rem wide. The Search window has no size control at all. Users on 4K screens asked to make both windows larger.

Reopening Professor Mari on an existing chat also opened scrolled up in the history, so the user had to scroll down to the newest message.

No issue is linked. CONTRIBUTING asks for one before a PR. This PR was requested directly by the maintainer, so please open or link a Proposal issue if the maintainer wants one.

What changed

  • Professor Mari window: the height cap rises from 64 rem to 120 rem. The default (48 rem) and minimum are unchanged. A new Width slider goes from 44 rem (today's width) to 96 rem.
  • Search window: new Height and Width sliders. Height defaults to Automatic, which keeps the current behaviour. Width defaults to 44 rem.
  • Settings sheet: both windows have their sliders side by side under their own heading. While a slider has focus, the sheet shrinks to a small card and the window resizes behind it.
  • Phones: the size sections are hidden below sm, and their search results are left out on phones. The full-screen sheet is unchanged.
  • Reopen: a hidden window no longer counts a scroll reset as the reader scrolling away, so reopening lands on the newest message.
  • Settings are stored and synced like the existing height setting.

Validation run

  • pnpm localization:check: pass.
  • pnpm check: pass (exit 0). One existing lint warning in HomeProfessorMariChat.tsx (serverRun in a useEffect), not introduced here.
  • scripts/regressions/command-center.regression.ts: pass, including a new reopen case.
  • Browser proof (Chromium, local build, empty data dir): desktop 1440×900 and 3840×2160 at defaults, both sliders at maximum, live card while dragging, and a 390×844 phone view. Screenshots are in the working tree only.
  • Local CodeRabbit review against origin/staging: five findings. Fixed: changelog wording, phone routing for size results, and the Search "Fit to results" label (now "Automatic"). Localization of the registry's English labels is not changed, because every registry label is a literal English string today.

Open decision (why this is a draft)

With the side panel open, Professor Mari's window keeps a 68 rem minimum width. That minimum keeps the split readable, and it keeps the default size unchanged. As a result, a Mari width below 68 rem has no visible effect while the side panel is open. The maintainer needs to choose one behaviour before this PR is ready.

Manual verification

  • Open Professor Mari on a 4K screen at default settings and confirm the size matches the previous release.
  • Drag each Professor Mari and Search size slider and confirm the window resizes live.
  • Reopen Professor Mari on a chat with a long history and confirm it opens on the newest message.
  • Check a phone-width layout: no size sliders, and the full-screen sheet is unchanged.

Summary by CodeRabbit

  • New Features
    • Search and Professor Mari windows can be resized on larger screens using width and height sliders in Search settings. Their sizes are saved, and Search supports automatic height.
    • Professor Mari’s window can now be taller. Window size controls are unavailable on phones.
  • Bug Fixes
    • Reopening Professor Mari’s window keeps transcript scrolling aligned with new messages for readers following the latest output.

🔄 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/7501 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/12/2026 **Status:** ✅ Merged **Merged:** 10/12/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/mari-window-size` --- ### 📝 Commits (6) - [`46fb720`](https://github.com/Pasta-Devs/Marinara-Engine/commit/46fb7200663ed6ce31667d127b41acdf4e6fdd08) feat(mari): add window width setting and raise window height cap - [`d58ae95`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d58ae9534960cd1e556c907784100b9e91e03958) docs(changelog): describe the larger Professor Mari window in plain words - [`7dd7cc6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7dd7cc61e5573a54831e69249e527d28e445e6d5) fix(mari): open the transcript at the newest message when she is reopened - [`7dddcc4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7dddcc494e21d111db5ce1ae66fb762b0a24e510) feat(search): add search window height and width, and live-resize Mari and Search from settings - [`1f25633`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1f256332e54b08c46fe65f337d0d417266df3571) fix(search): keep window-size results off phones, and rename the automatic height - [`5d96619`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5d966190dfb3d4c8ecd6cff7a6f8d2b67c504701) fix(search): keep the size preview while focus moves inside its group, and filter phone results on read ### 📊 Changes **13 files changed** (+368 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+2 -0) 📝 `packages/client/src/components/layout/GlobalOmnibar.tsx` (+12 -4) 📝 `packages/client/src/components/layout/omnibar/OmnibarSettingsMenu.tsx` (+143 -23) 📝 `packages/client/src/hooks/use-settings-sync.ts` (+12 -0) 📝 `packages/client/src/lib/omnibar-settings.ts` (+14 -2) 📝 `packages/client/src/lib/professor-mari-transcript-scroll.ts` (+6 -1) 📝 `packages/client/src/lib/settings-registry.ts` (+24 -0) 📝 `packages/client/src/localization/locales/en.json` (+8 -0) 📝 `packages/client/src/stores/ui.store.ts` (+54 -1) 📝 `packages/client/src/styles/mari.css` (+3 -2) 📝 `packages/client/src/styles/omnibar-settings.css` (+66 -0) 📝 `scripts/regressions/command-center.regression.ts` (+23 -0) </details> ### 📄 Description ## Why On a large screen the Professor Mari window stays small even at the maximum **Window height**: it is capped at 64 rem and always 44 rem wide. The Search window has no size control at all. Users on 4K screens asked to make both windows larger. Reopening Professor Mari on an existing chat also opened scrolled up in the history, so the user had to scroll down to the newest message. No issue is linked. CONTRIBUTING asks for one before a PR. This PR was requested directly by the maintainer, so please open or link a Proposal issue if the maintainer wants one. ## What changed - **Professor Mari window:** the height cap rises from 64 rem to 120 rem. The default (48 rem) and minimum are unchanged. A new **Width** slider goes from 44 rem (today's width) to 96 rem. - **Search window:** new **Height** and **Width** sliders. Height defaults to **Automatic**, which keeps the current behaviour. Width defaults to 44 rem. - **Settings sheet:** both windows have their sliders side by side under their own heading. While a slider has focus, the sheet shrinks to a small card and the window resizes behind it. - **Phones:** the size sections are hidden below `sm`, and their search results are left out on phones. The full-screen sheet is unchanged. - **Reopen:** a hidden window no longer counts a scroll reset as the reader scrolling away, so reopening lands on the newest message. - Settings are stored and synced like the existing height setting. ## Validation run - `pnpm localization:check`: pass. - `pnpm check`: pass (exit 0). One existing lint warning in `HomeProfessorMariChat.tsx` (`serverRun` in a `useEffect`), not introduced here. - `scripts/regressions/command-center.regression.ts`: pass, including a new reopen case. - Browser proof (Chromium, local build, empty data dir): desktop 1440×900 and 3840×2160 at defaults, both sliders at maximum, live card while dragging, and a 390×844 phone view. Screenshots are in the working tree only. - Local CodeRabbit review against `origin/staging`: five findings. Fixed: changelog wording, phone routing for size results, and the Search "Fit to results" label (now "Automatic"). Localization of the registry's English labels is not changed, because every registry label is a literal English string today. ## Open decision (why this is a draft) With the side panel open, Professor Mari's window keeps a 68 rem minimum width. That minimum keeps the split readable, and it keeps the default size unchanged. As a result, a Mari width below 68 rem has no visible effect while the side panel is open. The maintainer needs to choose one behaviour before this PR is ready. ## Manual verification - [ ] Open Professor Mari on a 4K screen at default settings and confirm the size matches the previous release. - [ ] Drag each Professor Mari and Search size slider and confirm the window resizes live. - [ ] Reopen Professor Mari on a chat with a long history and confirm it opens on the newest message. - [ ] Check a phone-width layout: no size sliders, and the full-screen sheet is unchanged. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Search and Professor Mari windows can be resized on larger screens using width and height sliders in Search settings. Their sizes are saved, and Search supports automatic height. * Professor Mari’s window can now be taller. Window size controls are unavailable on phones. * **Bug Fixes** * Reopening Professor Mari’s window keeps transcript scrolling aligned with new messages for readers following the latest output. <!-- 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:07:18 +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#7765
No description provided.