mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8417] [MERGED] feat(mari): Prof. Mari bottom sheet next to the Character editor on phone and tablet #8587
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8587
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8417
Author: @Gunterlie
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @Gunterlie
Base:
feat/mari-companion← Head:feat/mari-companion-sheet📝 Commits (1)
cd71df3feat(mari): Prof. Mari becomes a bottom sheet next to the Character editor on phone and tablet📊 Changes
5 files changed (+349 additions, -13 deletions)
View changed files
📝
packages/client/src/components/chat/mari/MariOmnibarHeaderChrome.tsx(+5 -1)📝
packages/client/src/components/layout/GlobalOmnibar.tsx(+25 -8)📝
packages/client/src/components/layout/omnibar/use-mari-companion.tsx(+165 -3)📝
packages/client/src/localization/locales/en.json(+5 -0)📝
packages/client/src/styles/mari.css(+149 -1)📄 Description
Linked issue
No issue: planned work, slice 6 of the Professor Mari companion feature (Prof. Mari floats next to real editors and live-edits them). Slices are PRed into the integration branch
feat/mari-companion(slices 1–5: #8401, #8403, #8405, #8406, #8407, #8411).Why this change
On phones and tablets Prof. Mari was still a modal window over the Character editor, so the user could not see the in-field review from slice 5 while talking to her. The agreed design: below 1024 px with an editor open she becomes a non-modal bottom sheet (peek / half / full); when her change arrives the sheet drops to peek and the editor scrolls to the first changed field, so Keep / Not this one sit right under the thumb.
What changed
omnibar/use-mari-companion.tsx: the slice 4 companion decision now pickspanel(≥ 1024 px, unchanged) orsheet(< 1024 px). Sheet snap (peek / half / full, opens at half),MariSheetHandle(tap cycles, drag-release snaps, ArrowUp/Down;role="slider"with snap value text), auto-peek once per held change (blurs her composer to close the keyboard, scrolls the first changed field to the top, but never while the user is typing in the editor),revealWaitingField(), and a--mari-sheet-padspacer so every field can scroll above the sheet. Same element, no remount of her chat.GlobalOmnibar.tsx:data-mari-companion="panel|sheet"+data-mari-sheet-snap; sheet handle; the dock toggle shows the sheet label/icon (sheet ↔ window, remembered).MariOmnibarHeaderChrome.tsx: in the sheet, her "Needs you" status drops to peek and jumps to the first waiting field (only when the editor shows that character).mari.css: panel rules scoped to="panel"; sheet, handle, short entry motion (none with reduced motion); composer-only while typing to her with the soft keyboard open; sheet collapses to peek while the keyboard is open for an editor field; ≤ 420 px the slice 5 review bar puts Edit / Next above "Not this one" + "Keep all N".en.json: 5 English keys.No editor open → unchanged modal window. Desktop unchanged. No new top-bar buttons; pull-down door unchanged.
Drawer.tsxwas not reused: it is a collapsible section, not a bottom sheet, and a separate sheet would remount her chat.Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Agent-run (not manual): client
tsc -band build pass; ESLint on touched TSX and Prettier pass;localization:check,mari-polishandcommand-centerregressions pass. Opus read-only review found 4 medium (auto-peek repeated on every open; handle had no snap state for screen readers; status tap at full height hid the field under the sheet; Android keyboard let the sheet cover the focused field) and 3 low issues; all fixed.Playwright in Chromium with mobile emulation (not real WebKit / iOS; soft keyboard simulated via the root attributes), throwaway instance with a seeded held change, no model: 61/61 checks at 390 / 768 px plus 1024 / 1440 px unchanged.
To verify manually (real phone / tablet especially):
:has(), CSStranslate) not tested on a device.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)UI evidence (if applicable)
Screenshots at 390 / 768 / 1024 / 1440 px are local (
.tmp/mari-companion/slice6/); attach on request. They follow the approved mockup (390-*,768-*). Peek copy keeps the existing "Needs you · 1 choice waiting".🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.