[PR #7398] [MERGED] Add Professor Mari window height slider #7716

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

📋 Pull Request Information

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

Base: staging ← Head: a-tall-order-prof-mari


📝 Commits (1)

  • 9054e28 Add Professor Mari window height preference

📊 Changes

8 files changed (+182 additions, -5 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
➕ e2e/mari-window-height.e2e.ts (+113 -0)
📝 packages/client/src/components/layout/GlobalOmnibar.tsx (+13 -4)
📝 packages/client/src/components/layout/omnibar/OmnibarSettingsMenu.tsx (+22 -1)
📝 packages/client/src/hooks/use-settings-sync.ts (+4 -0)
📝 packages/client/src/lib/settings-registry.ts (+8 -0)
📝 packages/client/src/localization/locales/en.json (+2 -0)
📝 packages/client/src/stores/ui.store.ts (+18 -0)

📄 Description

Linked issue

Closes #7397

Why this change

Professor Mari's new window needs a little more reading room on larger screens, and users should be able to choose its height with a single slider.

What changed

  • Raise the desktop default from 44rem to 48rem and add a height slider in Search and Professor Mari settings, with 44rem as the minimum and 64rem as the maximum.
  • Preserve the previous window dimensions at the minimum. Let the viewport cap grow with the setting, up to 88dvh, so adjustments work on shorter desktop screens and the window remains on screen.
  • Persist and sync the choice, normalize imported values, reset it with appearance preferences, and use it for the Search-to-Mari animation. Phones retain their full-screen layout.
  • Add the English localization, searchable settings entry, changelog entry, and focused browser regression.

Validation

Observed on commit 9054e285a:

  • heavy pnpm check passed after the final changes, including localization, formatting, TypeScript, lint and production builds. An existing HomeProfessorMariChat hook-dependency warning remains.

  • heavy pnpm regression:ui e2e/mari-window-height.e2e.ts --project=desktop-chromium --project=mobile-chromium --workers=1: 2 passed. Covers default height, the existing minimum, maximum, keyboard controls, reload persistence, viewport fitting and shorter-desktop sizing.

  • heavy pnpm smoke:ui: 7 passed.

  • Local CodeRabbit found an ineffective slider on shorter desktop screens in the first review. Fixed the viewport cap and added regression proof. The follow-up returned no new findings, with a warning about the stored prior finding; that prior finding is addressed by the final code and browser test.

  • Mobile WebKit could not launch locally because this host lacks WebKit runtime libraries; this coverage is unverified locally.

  • 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

Manually verify the default height and slider behavior in the browser, including minimum, maximum, persistence after reload and Search-to-Mari handoff. Verify populated conversations and phone keyboard behavior on a real device. Container execution and real-device testing were not performed locally.

Docs and release impact

Adds an Unreleased changelog entry. No version bump or user-documentation changes.

  • 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 (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Automated screenshots were generated and visually inspected at 390px, 768px and 1440px, in default and SillyTavern themes, light and dark modes. The focused regression writes window and settings screenshots under .tmp/mari-window-height/ for reproduction. The local browser proof used Mari's empty/no-connection state.

Summary by CodeRabbit

  • New Features
    • Professor Mari’s window is taller by default on larger screens, and you can adjust its height with a slider in Search settings.
    • The selected height is saved and retained between visits, with the previous height available as the minimum.

🔄 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/7398 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/10/2026 **Status:** ✅ Merged **Merged:** 10/10/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `a-tall-order-prof-mari` --- ### 📝 Commits (1) - [`9054e28`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9054e285a94e10daf1fd5cbb9e69ca7376e334f1) Add Professor Mari window height preference ### 📊 Changes **8 files changed** (+182 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) ➕ `e2e/mari-window-height.e2e.ts` (+113 -0) 📝 `packages/client/src/components/layout/GlobalOmnibar.tsx` (+13 -4) 📝 `packages/client/src/components/layout/omnibar/OmnibarSettingsMenu.tsx` (+22 -1) 📝 `packages/client/src/hooks/use-settings-sync.ts` (+4 -0) 📝 `packages/client/src/lib/settings-registry.ts` (+8 -0) 📝 `packages/client/src/localization/locales/en.json` (+2 -0) 📝 `packages/client/src/stores/ui.store.ts` (+18 -0) </details> ### 📄 Description ## Linked issue Closes #7397 ## Why this change Professor Mari's new window needs a little more reading room on larger screens, and users should be able to choose its height with a single slider. ## What changed - Raise the desktop default from 44rem to 48rem and add a height slider in Search and Professor Mari settings, with 44rem as the minimum and 64rem as the maximum. - Preserve the previous window dimensions at the minimum. Let the viewport cap grow with the setting, up to 88dvh, so adjustments work on shorter desktop screens and the window remains on screen. - Persist and sync the choice, normalize imported values, reset it with appearance preferences, and use it for the Search-to-Mari animation. Phones retain their full-screen layout. - Add the English localization, searchable settings entry, changelog entry, and focused browser regression. ## Validation Observed on commit `9054e285a`: - `heavy pnpm check` passed after the final changes, including localization, formatting, TypeScript, lint and production builds. An existing HomeProfessorMariChat hook-dependency warning remains. - `heavy pnpm regression:ui e2e/mari-window-height.e2e.ts --project=desktop-chromium --project=mobile-chromium --workers=1`: 2 passed. Covers default height, the existing minimum, maximum, keyboard controls, reload persistence, viewport fitting and shorter-desktop sizing. - `heavy pnpm smoke:ui`: 7 passed. - Local CodeRabbit found an ineffective slider on shorter desktop screens in the first review. Fixed the viewport cap and added regression proof. The follow-up returned no new findings, with a warning about the stored prior finding; that prior finding is addressed by the final code and browser test. - Mobile WebKit could not launch locally because this host lacks WebKit runtime libraries; this coverage is unverified locally. - [ ] `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 Manually verify the default height and slider behavior in the browser, including minimum, maximum, persistence after reload and Search-to-Mari handoff. Verify populated conversations and phone keyboard behavior on a real device. Container execution and real-device testing were not performed locally. ## Docs and release impact Adds an Unreleased changelog entry. No version bump or user-documentation changes. - [ ] 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Automated screenshots were generated and visually inspected at 390px, 768px and 1440px, in default and SillyTavern themes, light and dark modes. The focused regression writes window and settings screenshots under `.tmp/mari-window-height/` for reproduction. The local browser proof used Mari's empty/no-connection state. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Professor Mari’s window is taller by default on larger screens, and you can adjust its height with a slider in Search settings. * The selected height is saved and retained between visits, with the previous height available as the minimum. <!-- 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:06: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#7716
No description provided.