[PR #2573] [MERGED] Improve mobile Professor Mari homepage focus #5668

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2573
Author: @Gunterlie
Created: 6/15/2026
Status: ✅ Merged
Merged: 6/15/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/mobile-professor-mari-focus-2572


📝 Commits (2)

  • ab3cec9 feat: improve mobile Professor Mari focus mode
  • 5b1746c fix: handle Professor Mari mobile resize

📊 Changes

2 files changed (+111 additions, -13 deletions)

View changed files

📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+110 -13)
📝 packages/client/src/components/layout/TopBar.tsx (+1 -0)

📄 Description

Linked issue

Closes #2572

Why this change

On mobile, the homepage Professor Mari chat needed a clearer focused chat mode. The compact homepage layout made the controls, close path, and input bar feel cramped or move out of view while typing.

What changed

  • Keeps desktop behavior and look unchanged.
  • Open Professor Mari into a mobile fullscreen focus mode when the homepage chat input is focused.
  • Add a compact Professor Mari header with a visible close button.
  • Keep Stop and /restart compact and aligned in the mobile chat bar.
  • Keep the mobile input visible again when typing after the bar scrolls away.

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

Manual verification notes

  • pnpm check passes locally.
  • Manual mobile browser verification not repeated in this turn.

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)

UI evidence (if applicable)

before:
IMG_1242

after:
IMG_1243

full panel after click:
IMG_1244

Summary by CodeRabbit

New Features

  • Mobile chat now supports a focus mode when composing messages, displaying a full-screen layout optimized for mobile typing
  • Included back button to conveniently exit focus mode
  • Improved mobile typing experience with automatic textarea scrolling into view and optimized layout spacing for better usability

🔄 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/2573 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 6/15/2026 **Status:** ✅ Merged **Merged:** 6/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/mobile-professor-mari-focus-2572` --- ### 📝 Commits (2) - [`ab3cec9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ab3cec97fe85c1b6c46012718861bf23a1d0059f) feat: improve mobile Professor Mari focus mode - [`5b1746c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5b1746c63f8477ac0b88376088ab90243767877f) fix: handle Professor Mari mobile resize ### 📊 Changes **2 files changed** (+111 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+110 -13) 📝 `packages/client/src/components/layout/TopBar.tsx` (+1 -0) </details> ### 📄 Description ## Linked issue Closes #2572 ## Why this change On mobile, the homepage Professor Mari chat needed a clearer focused chat mode. The compact homepage layout made the controls, close path, and input bar feel cramped or move out of view while typing. ## What changed - Keeps desktop behavior and look unchanged. - Open Professor Mari into a mobile fullscreen focus mode when the homepage chat input is focused. - Add a compact Professor Mari header with a visible close button. - Keep Stop and /restart compact and aligned in the mobile chat bar. - Keep the mobile input visible again when typing after the bar scrolls away. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `pnpm check` passes locally. - Manual mobile browser verification not repeated in this turn. ## 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) ## UI evidence (if applicable) before: <img width="1320" height="2126" alt="IMG_1242" src="https://github.com/user-attachments/assets/a8f18e0e-c4d5-46f2-ab4a-b043a26e55bf" /> after: <img width="1320" height="2144" alt="IMG_1243" src="https://github.com/user-attachments/assets/a15a6fb7-a82a-480f-bbcd-312dd08039d5" /> full panel after click: <img width="660" height="1434" alt="IMG_1244" src="https://github.com/user-attachments/assets/ed1dbbf6-ff22-4fc2-806f-badf2135cafa" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## New Features * Mobile chat now supports a focus mode when composing messages, displaying a full-screen layout optimized for mobile typing * Included back button to conveniently exit focus mode * Improved mobile typing experience with automatic textarea scrolling into view and optimized layout spacing for better usability <!-- 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-22 04:18:19 +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#5668
No description provided.