[PR #7806] [MERGED] feat(chat): let the Author's Notes text box grow with its window #7934

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

📋 Pull Request Information

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

Base: staging ← Head: feat/7788-authors-note-resize


📝 Commits (1)

  • cb1e6c6 feat(chat): let the Author's Notes text box grow with its window

📊 Changes

5 files changed (+46 additions, -6 deletions)

View changed files

📝 packages/client/src/components/chat/ChatRoleplayPanels.tsx (+2 -2)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+1 -0)
📝 packages/client/src/components/ui/Drawer.tsx (+18 -4)
📝 packages/client/src/features/chat-settings/ChatSettingsSection.tsx (+4 -0)
📝 scripts/regressions/floating-window.regression.ts (+21 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #7788

Why this change

  • You can pop Author's Notes out of Chat Settings and resize that window, but the text box inside stayed four rows tall. Long notes had to be scrolled inside a tiny box, even in a big window, which made small edits tedious.
  • Docked in Chat Settings, the text box had resize-none (left over from when it was a small popover), so it could not be dragged taller either.

What changed

  • Drawer gains an opt-in fill prop. When the drawer is popped out, the drawer and its body become a flex column that fills the window. On a phone, the sheet takes the full screen height (the existing PHONE_FULL_SHEET_CLASS). Without fill, every other drawer stays exactly as before.
  • ChatSettingsSection passes fill through, and only the Author's Notes section sets it.
  • In AuthorNotesPanel, the text box wrapper is a flex column and the text box is flex-auto, so it grows with the popped-out window. It keeps a 6rem minimum (about the old four rows) before the window starts scrolling. resize-none is removed, so the docked text box gets the normal vertical resize handle on desktop.
  • No copy, colour or layout changes outside the text box. Docked, the text box starts at the same height as before.
  • Regression: scripts/regressions/floating-window.regression.ts now checks the fill wiring, the Author's Notes opt-in and that the text box is no longer resize-none.

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

Commands run by the agent:

  • pnpm check: passed (exit 0). The only output is an existing lint warning in HomeProfessorMariChat.tsx, which this PR does not touch.
  • pnpm build:shared && node ./scripts/run-regressions.mjs --filter floating-window: 1/1 passed.
  • pnpm localization:check: passed (no copy changes).
  • prettier --check on the changed files: clean.
  • A throwaway layout check (not committed) rebuilt the popped-out DOM chain in Chromium, WebKit and Firefox. At window heights of 400 and 800 px, the text box filled the space (about 268 and 668 px). At 200 px, it held its 96 px minimum and the window scrolled. In the docked layout it started at 96 px (unchanged), and a manual drag to 300 px held.

Manual verification notes

  • Manually verify in a Roleplay chat on desktop: open Chat Settings, pop out Author's Notes, then resize the window taller and shorter. The text box should grow and shrink with it, and the window should scroll only once the box reaches about four rows.
  • Manually verify that docked Author's Notes in Chat Settings starts at its old height, can be dragged taller by the textarea's corner handle, and that the injection depth field and token count still sit under it.
  • Manually verify on a phone viewport (or a real phone): pop Author's Notes out to its bubble, open it, and check that the sheet fills the screen down to the bottom and the text box takes the free height. Check that typing with the on-screen keyboard still works.
  • Manually verify on a touch tablet/desktop (non-phone width): resize the popped-out Author's Notes window by touch, and check that the text box follows.
  • Manually verify that other popped-out drawers (e.g. Active Context, Gallery) look unchanged, in light and dark mode and with a chat widget preset that draws drawer borders.
  • Manually verify that notes still save when you blur the box, close the popped-out window or switch chats.

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)

No docs changes: this changes how the text box sizes, not a documented behaviour.

UI evidence (if applicable)

Not captured by the agent; see the manual verification list.

Summary by CodeRabbit

  • Improvements
    • Author’s Notes now expands to use the available space in its drawer, including on phone-sized screens.
    • The notes field can grow vertically, with resizing no longer explicitly restricted.

🔄 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/7806 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/7788-authors-note-resize` --- ### 📝 Commits (1) - [`cb1e6c6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cb1e6c63c0d882c4ada354541274f29aa0cc1974) feat(chat): let the Author's Notes text box grow with its window ### 📊 Changes **5 files changed** (+46 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatRoleplayPanels.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+1 -0) 📝 `packages/client/src/components/ui/Drawer.tsx` (+18 -4) 📝 `packages/client/src/features/chat-settings/ChatSettingsSection.tsx` (+4 -0) 📝 `scripts/regressions/floating-window.regression.ts` (+21 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #7788 ## Why this change - You can pop Author's Notes out of Chat Settings and resize that window, but the text box inside stayed four rows tall. Long notes had to be scrolled inside a tiny box, even in a big window, which made small edits tedious. - Docked in Chat Settings, the text box had `resize-none` (left over from when it was a small popover), so it could not be dragged taller either. ## What changed - `Drawer` gains an opt-in `fill` prop. When the drawer is popped out, the drawer and its body become a flex column that fills the window. On a phone, the sheet takes the full screen height (the existing `PHONE_FULL_SHEET_CLASS`). Without `fill`, every other drawer stays exactly as before. - `ChatSettingsSection` passes `fill` through, and only the Author's Notes section sets it. - In `AuthorNotesPanel`, the text box wrapper is a flex column and the text box is `flex-auto`, so it grows with the popped-out window. It keeps a 6rem minimum (about the old four rows) before the window starts scrolling. `resize-none` is removed, so the docked text box gets the normal vertical resize handle on desktop. - No copy, colour or layout changes outside the text box. Docked, the text box starts at the same height as before. - Regression: `scripts/regressions/floating-window.regression.ts` now checks the `fill` wiring, the Author's Notes opt-in and that the text box is no longer `resize-none`. ## 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` Commands run by the agent: - `pnpm check`: passed (exit 0). The only output is an existing lint warning in `HomeProfessorMariChat.tsx`, which this PR does not touch. - `pnpm build:shared && node ./scripts/run-regressions.mjs --filter floating-window`: 1/1 passed. - `pnpm localization:check`: passed (no copy changes). - `prettier --check` on the changed files: clean. - A throwaway layout check (not committed) rebuilt the popped-out DOM chain in Chromium, WebKit and Firefox. At window heights of 400 and 800 px, the text box filled the space (about 268 and 668 px). At 200 px, it held its 96 px minimum and the window scrolled. In the docked layout it started at 96 px (unchanged), and a manual drag to 300 px held. ### Manual verification notes - Manually verify in a Roleplay chat on desktop: open Chat Settings, pop out Author's Notes, then resize the window taller and shorter. The text box should grow and shrink with it, and the window should scroll only once the box reaches about four rows. - Manually verify that docked Author's Notes in Chat Settings starts at its old height, can be dragged taller by the textarea's corner handle, and that the injection depth field and token count still sit under it. - Manually verify on a phone viewport (or a real phone): pop Author's Notes out to its bubble, open it, and check that the sheet fills the screen down to the bottom and the text box takes the free height. Check that typing with the on-screen keyboard still works. - Manually verify on a touch tablet/desktop (non-phone width): resize the popped-out Author's Notes window by touch, and check that the text box follows. - Manually verify that other popped-out drawers (e.g. Active Context, Gallery) look unchanged, in light and dark mode and with a chat widget preset that draws drawer borders. - Manually verify that notes still save when you blur the box, close the popped-out window or switch chats. ## 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) No docs changes: this changes how the text box sizes, not a documented behaviour. ## UI evidence (if applicable) Not captured by the agent; see the manual verification list. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Improvements** * Author’s Notes now expands to use the available space in its drawer, including on phone-sized screens. * The notes field can grow vertically, with resizing no longer explicitly restricted. <!-- 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:08:58 +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#7934
No description provided.