[PR #8795] [MERGED] soup/ Phone bottom sheets for dialogs and menus #8810

Closed
opened 2026-11-07 17:39:52 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: oh-sheet-waddup


📝 Commits (10+)

  • 7aab3c0 feat(client): bottom sheets for phone dialogs and menus
  • d51192a fix(client): action-sheet dim layer catches the outside tap
  • 4120f49 fix(client): blur behind the action sheet so rows stay readable
  • d640e20 Merge remote-tracking branch 'origin/staging' into oh-sheet-waddup
  • e7e31d9 fix(client): dialog main action first in DOM; document Modal as the phone sheet
  • 9747663 feat(client): pull-to-close phone sheets, sheet header and sticky footer
  • d7482cc fix(client): review sheet has no X on phones, Stop generating label, discard guard on Create Character
  • ce8d40b feat(client): restyle phone sheets to the sheet rules
  • b8eb58b fix(client): sheet review pass - no X with Cancel, no pull on confirms, red deletes, verb+object labels
  • 66ab0b7 fix(client): sheet delete buttons use the Settings danger style

📊 Changes

72 files changed (+2153 additions, -1841 deletions)

View changed files

📝 packages/client/.instructions.md (+2 -0)
📝 packages/client/src/components/agents/AgentUpdateDialog.tsx (+43 -49)
📝 packages/client/src/components/bot-browser/BotBrowserView.tsx (+33 -30)
📝 packages/client/src/components/characters/CharacterBulkTagsModal.tsx (+39 -36)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+46 -50)
📝 packages/client/src/components/characters/CharacterOnboardingModal.tsx (+38 -47)
📝 packages/client/src/components/characters/CharacterPickerList.tsx (+1 -1)
📝 packages/client/src/components/characters/CharacterSelect.tsx (+6 -6)
📝 packages/client/src/components/characters/DescriptionSplitDialog.tsx (+40 -34)
📝 packages/client/src/components/chat/AgentSuiteModal.tsx (+51 -44)
📝 packages/client/src/components/chat/CharacterScheduleEditorModal.tsx (+96 -96)
📝 packages/client/src/components/chat/CharacterScheduleManagerModal.tsx (+13 -13)
📝 packages/client/src/components/chat/ChatArea.tsx (+16 -19)
📝 packages/client/src/components/chat/ChatCharacterDropOptions.tsx (+12 -19)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+51 -32)
📝 packages/client/src/components/chat/ChatModeSelectorModal.tsx (+4 -2)
📝 packages/client/src/components/chat/ChatProfileBuilder.tsx (+15 -16)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+50 -50)
📝 packages/client/src/components/chat/ConversationTimeZoneSelect.tsx (+4 -4)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+16 -11)

...and 52 more files

📄 Description

Part of S.O.U.P. 🥣
Simplify · Organize · Unify · Polish

An intuitive Marinara, built on clear interaction rules, thoughtful UX, and a cohesive, polished UI.

Why

On phones, dialogs float as small centred cards and menus open as tiny popovers near the finger. Buttons are small and out of thumb reach, text inside sheets is often under 13px, and many tap targets are 30px or less. Bottom sheets are the native phone pattern for short tasks, and one set of sheet rules makes every dialog behave the same way.

No linked issue: planned S.O.U.P. polish work. The branch ran on the maintainer's production install for phone testing during development.

What changed

Shared sheet (phones, below 640px; desktop unchanged)

  • Modal slides up from the bottom as a sheet with rounded top, safe-area padding and a sticky footer slot (main action first, stacked). Full-screen (mobileFullscreen), modeless and drag-through modals keep their shape.
  • Pull-to-close (pullToClose, default on) with a grab handle only where a pull closes: menus, pickers, info and forms. Confirms, reviews and running tools have no handle and no pull. closeDisabled blocks closing while a job runs.
  • ContextMenu opens as an action sheet on touch phones (pointer: coarse) with 48px rows. AppDialogRenderer confirms/prompts/alerts stack full-width with the main action on top.
  • Shared button classes in neutral-surface-styles.ts (SHEET_BUTTON_PRIMARY / SECONDARY / DESTRUCTIVE / QUIET, SHEET_CHOICE_*). Deletes use the Settings danger style (mari-chrome-control--danger).
  • In "delete more messages" mode the message selection ring, highlight and checkboxes use the destructive colour.
  • Existing hand-made sheets (AboutMeViewerModal, CharacterSelect) moved onto the shared one.

Sheet rules applied to about 100 modals

  • Never an X next to Cancel on phones, but always a visible way out. One filled main action, a quiet Cancel.
  • Labels are verb + object in sentence case, with "…" (for example "Delete sprite", "Generate call clips", "Try to interrupt").
  • Phone floor: sheet text at least 13px, inputs 16px (no iOS zoom), tap targets at least 44px. Where .mari-chrome-control (unlayered CSS) overrides Tailwind utilities, the phone classes use max-sm:! variants.
  • Background library cards on phones show one 44px "⋯" button that opens the action sheet (move, rename, tags, default, download, delete) instead of six 30px icons. Desktop keeps the hover icon row.

Not changed on purpose

  • PHONE_SHEET_CLASS (Drawer, GameMap, GamePartyBar) drops from the top bar and stays a panel.
  • The Prof. Mari companion sheet keeps its own snap points and drag.
  • Shared connection rows (ModelRow and friends) are left as they are.

Validation

  • tsc --noEmit -p packages/client passes after merging the latest staging.
  • ESLint on the 69 changed client files: 0 errors (11 existing warnings). pnpm localization:check passes.
  • Screenshot passes on a devbox dev server: all 101 <Modal> callers opened at 390px (dark, some light) and 1440px, judged against the sheet rules, then the failing sheets re-checked after each fix round. Desktop 1440px shots matched the earlier ones.
  • Not run locally: full pnpm check, regression and smoke suites (left to CI).

Manual verification

  • Manually verify on a phone that a confirm dialog (e.g. delete a message) opens as a bottom sheet with the main action on top and no grab handle.
  • Manually verify on a phone that a picker (e.g. model picker) can be pulled down to close.
  • Manually verify on a touch phone that a "⋯" menu (Connections, Background library card) opens as an action sheet and an outside tap closes it without pressing anything behind.
  • Manually verify with the iOS keyboard open that a prompt dialog with a text field stays visible.
  • Manually verify in "delete more messages" mode that the selection ring and checkboxes use the destructive colour.
  • Manually verify at 1440px that dialogs and menus look as before.
  • Manually verify the light theme on a few sheets (Background library action sheet, Decision model).

🔄 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/8795 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/6/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `oh-sheet-waddup` --- ### 📝 Commits (10+) - [`7aab3c0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7aab3c033047940dbb1d205bbefcbeb1bb61f59a) feat(client): bottom sheets for phone dialogs and menus - [`d51192a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d51192a049719384e4e6a308872fdbb93dc9931d) fix(client): action-sheet dim layer catches the outside tap - [`4120f49`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4120f49dda08cda91586f9472dfa8bb4762f06f5) fix(client): blur behind the action sheet so rows stay readable - [`d640e20`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d640e20ef0788a63fa9080beb21bc9d374ea6ec2) Merge remote-tracking branch 'origin/staging' into oh-sheet-waddup - [`e7e31d9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e7e31d952cab91a9d8fb3af25e470c07a453a62e) fix(client): dialog main action first in DOM; document Modal as the phone sheet - [`9747663`](https://github.com/Pasta-Devs/Marinara-Engine/commit/97476636977331e69747fa98917f0268b380e1fb) feat(client): pull-to-close phone sheets, sheet header and sticky footer - [`d7482cc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d7482ccba64f471d60804063a0885a3629c4d141) fix(client): review sheet has no X on phones, Stop generating label, discard guard on Create Character - [`ce8d40b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ce8d40bc47631dd33affa3f35713d102c5358785) feat(client): restyle phone sheets to the sheet rules - [`b8eb58b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b8eb58b4e89a6eae0ad2b46454884b44d02bb253) fix(client): sheet review pass - no X with Cancel, no pull on confirms, red deletes, verb+object labels - [`66ab0b7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/66ab0b7c32c647b3034c11bb66d88cb7717b9fe6) fix(client): sheet delete buttons use the Settings danger style ### 📊 Changes **72 files changed** (+2153 additions, -1841 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/.instructions.md` (+2 -0) 📝 `packages/client/src/components/agents/AgentUpdateDialog.tsx` (+43 -49) 📝 `packages/client/src/components/bot-browser/BotBrowserView.tsx` (+33 -30) 📝 `packages/client/src/components/characters/CharacterBulkTagsModal.tsx` (+39 -36) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+46 -50) 📝 `packages/client/src/components/characters/CharacterOnboardingModal.tsx` (+38 -47) 📝 `packages/client/src/components/characters/CharacterPickerList.tsx` (+1 -1) 📝 `packages/client/src/components/characters/CharacterSelect.tsx` (+6 -6) 📝 `packages/client/src/components/characters/DescriptionSplitDialog.tsx` (+40 -34) 📝 `packages/client/src/components/chat/AgentSuiteModal.tsx` (+51 -44) 📝 `packages/client/src/components/chat/CharacterScheduleEditorModal.tsx` (+96 -96) 📝 `packages/client/src/components/chat/CharacterScheduleManagerModal.tsx` (+13 -13) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+16 -19) 📝 `packages/client/src/components/chat/ChatCharacterDropOptions.tsx` (+12 -19) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+51 -32) 📝 `packages/client/src/components/chat/ChatModeSelectorModal.tsx` (+4 -2) 📝 `packages/client/src/components/chat/ChatProfileBuilder.tsx` (+15 -16) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+50 -50) 📝 `packages/client/src/components/chat/ConversationTimeZoneSelect.tsx` (+4 -4) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+16 -11) _...and 52 more files_ </details> ### 📄 Description > **Part of S.O.U.P. 🥣** > **S**implify · **O**rganize · **U**nify · **P**olish > > *An intuitive Marinara, built on clear interaction rules, thoughtful UX, and a cohesive, polished UI.* ## Why On phones, dialogs float as small centred cards and menus open as tiny popovers near the finger. Buttons are small and out of thumb reach, text inside sheets is often under 13px, and many tap targets are 30px or less. Bottom sheets are the native phone pattern for short tasks, and one set of sheet rules makes every dialog behave the same way. No linked issue: planned S.O.U.P. polish work. The branch ran on the maintainer's production install for phone testing during development. ## What changed **Shared sheet (phones, below 640px; desktop unchanged)** - `Modal` slides up from the bottom as a sheet with rounded top, safe-area padding and a sticky `footer` slot (main action first, stacked). Full-screen (`mobileFullscreen`), modeless and drag-through modals keep their shape. - Pull-to-close (`pullToClose`, default on) with a grab handle only where a pull closes: menus, pickers, info and forms. Confirms, reviews and running tools have no handle and no pull. `closeDisabled` blocks closing while a job runs. - `ContextMenu` opens as an action sheet on touch phones (`pointer: coarse`) with 48px rows. `AppDialogRenderer` confirms/prompts/alerts stack full-width with the main action on top. - Shared button classes in `neutral-surface-styles.ts` (`SHEET_BUTTON_PRIMARY / SECONDARY / DESTRUCTIVE / QUIET`, `SHEET_CHOICE_*`). Deletes use the Settings danger style (`mari-chrome-control--danger`). - In "delete more messages" mode the message selection ring, highlight and checkboxes use the destructive colour. - Existing hand-made sheets (`AboutMeViewerModal`, `CharacterSelect`) moved onto the shared one. **Sheet rules applied to about 100 modals** - Never an X next to Cancel on phones, but always a visible way out. One filled main action, a quiet Cancel. - Labels are verb + object in sentence case, with "…" (for example "Delete sprite", "Generate call clips", "Try to interrupt"). - Phone floor: sheet text at least 13px, inputs 16px (no iOS zoom), tap targets at least 44px. Where `.mari-chrome-control` (unlayered CSS) overrides Tailwind utilities, the phone classes use `max-sm:!` variants. - Background library cards on phones show one 44px "⋯" button that opens the action sheet (move, rename, tags, default, download, delete) instead of six 30px icons. Desktop keeps the hover icon row. **Not changed on purpose** - `PHONE_SHEET_CLASS` (Drawer, GameMap, GamePartyBar) drops from the top bar and stays a panel. - The Prof. Mari companion sheet keeps its own snap points and drag. - Shared connection rows (`ModelRow` and friends) are left as they are. ## Validation - `tsc --noEmit -p packages/client` passes after merging the latest `staging`. - ESLint on the 69 changed client files: 0 errors (11 existing warnings). `pnpm localization:check` passes. - Screenshot passes on a devbox dev server: all 101 `<Modal>` callers opened at 390px (dark, some light) and 1440px, judged against the sheet rules, then the failing sheets re-checked after each fix round. Desktop 1440px shots matched the earlier ones. - Not run locally: full `pnpm check`, regression and smoke suites (left to CI). ## Manual verification - [ ] Manually verify on a phone that a confirm dialog (e.g. delete a message) opens as a bottom sheet with the main action on top and no grab handle. - [ ] Manually verify on a phone that a picker (e.g. model picker) can be pulled down to close. - [ ] Manually verify on a touch phone that a "⋯" menu (Connections, Background library card) opens as an action sheet and an outside tap closes it without pressing anything behind. - [ ] Manually verify with the iOS keyboard open that a prompt dialog with a text field stays visible. - [ ] Manually verify in "delete more messages" mode that the selection ring and checkboxes use the destructive colour. - [ ] Manually verify at 1440px that dialogs and menus look as before. - [ ] Manually verify the light theme on a few sheets (Background library action sheet, Decision model). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:52 +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#8810
No description provided.