[PR #8417] [MERGED] feat(mari): Prof. Mari bottom sheet next to the Character editor on phone and tablet #8587

Closed
opened 2026-11-07 16:45:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • cd71df3 feat(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 picks panel (≥ 1024 px, unchanged) or sheet (< 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-pad spacer 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.tsx was not reused: it is a collapsible section, not a bottom sheet, and a separate sheet would remount her chat.

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

Agent-run (not manual): client tsc -b and build pass; ESLint on touched TSX and Prettier pass; localization:check, mari-polish and command-center regressions 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):

  1. Phone: open a character, open Prof. Mari: sheet at half; editor still scrolls and accepts input.
  2. Tap / drag the handle: peek, half, full.
  3. Ask her to change Description + Personality (Manual mode): sheet drops to peek, keyboard closes, Description is at the top with Keep all 2 / Not this one on one line.
  4. Close and reopen her: the sheet stays at half (no second auto-peek).
  5. Type to her: only her composer shows above the keyboard. Type in an editor field: the sheet collapses to peek.
  6. Tap her "Needs you" status at full height: drops to peek and shows the field.
  7. Dock toggle: sheet ↔ window, remembered after reload. No editor: normal window. Pull-down door still opens her.
  8. iOS Safari: composer-only state (:has(), CSS translate) not tested on a device.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) 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)

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.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/8417 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `feat/mari-companion` ← **Head:** `feat/mari-companion-sheet` --- ### 📝 Commits (1) - [`cd71df3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cd71df343dab98646fcb5ef90ae9f4071f3a28f8) feat(mari): Prof. Mari becomes a bottom sheet next to the Character editor on phone and tablet ### 📊 Changes **5 files changed** (+349 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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 picks `panel` (≥ 1024 px, unchanged) or `sheet` (< 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-pad` spacer 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.tsx` was not reused: it is a collapsible section, not a bottom sheet, and a separate sheet would remount her chat. ## 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 Agent-run (not manual): client `tsc -b` and build pass; ESLint on touched TSX and Prettier pass; `localization:check`, `mari-polish` and `command-center` regressions 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): 1. Phone: open a character, open Prof. Mari: sheet at half; editor still scrolls and accepts input. 2. Tap / drag the handle: peek, half, full. 3. Ask her to change Description + Personality (Manual mode): sheet drops to peek, keyboard closes, Description is at the top with Keep all 2 / Not this one on one line. 4. Close and reopen her: the sheet stays at half (no second auto-peek). 5. Type to her: only her composer shows above the keyboard. Type in an editor field: the sheet collapses to peek. 6. Tap her "Needs you" status at full height: drops to peek and shows the field. 7. Dock toggle: sheet ↔ window, remembered after reload. No editor: normal window. Pull-down door still opens her. 8. iOS Safari: composer-only state (`:has()`, CSS `translate`) not tested on a device. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) 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) 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". --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:45:48 +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#8587
No description provided.