[PR #1716] [MERGED] fix(story-writer): hide the closed drawer fully on a sideways phone (0.1.1) #1707

Closed
opened 2026-10-27 06:06:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1716
Author: @SpicyMarinara
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/story-writer-notch-insets


📝 Commits (2)

  • 97b490f fix(story-writer): hide the closed drawer fully on a sideways phone (0.1.1)
  • 76a80ec fix(story-writer): drop the closed drawer's outline at the edge

📊 Changes

13 files changed (+406 additions, -371 deletions)

View changed files

➕ artifacts/story-writer-0.1.1.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/story-writer/CHANGELOG.md (+4 -0)
📝 packages/story-writer/client.js (+318 -318)
📝 packages/story-writer/manifest.json (+3 -3)
📝 packages/story-writer/src/engine/packages/client/src/lib/story-writer/styles-shell.ts (+27 -28)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/package-story-writer.e2e.ts (+17 -3)

📄 Description

Pull request

Important

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

Linked issue

Closes #1717

Why this change

  • On a phone turned sideways, the closed settings drawer stayed partly on screen. A strip as wide as the camera notch showed its close button and switches beside the arrow, instead of the drawer hiding behind the arrow.
  • Cause: the Engine shell already pads Home clear of the status bar and the camera notch. Story Writer added the same env(safe-area-inset-*) again, both in the drawer's closed position and around the book. The book, the note and the action bar also lost that space a second time.

What changed

  • story-writer 0.1.1: on a phone turned sideways, the closed drawer now hides completely and only its arrow shows. The book gets back the width the doubled notch took, and the note and Write bar sit at their normal distance from the edge.
  • Story Writer keeps only the bottom inset (the home indicator), since Home does not reserve it.
  • The phone browser test now simulates iPhone landscape notch insets through Chromium's Emulation.setSafeAreaInsetsOverride. It checks that the closed drawer leaves only its handle and no outline; the position check failed before the fix.
  • The test's page-arrow step no longer assumes the reader followed the mocked stream to its last page. On a busy machine the stream can finish before the pages are laid out, which left it on page 1 with Previous disabled.
  • The closed drawer also drops its 1px outline, which would otherwise show as a thin line at the screen edge beside the handle (found by Dottore).
  • Rebuilt client.js, the manifest, the 0.1.1 artifact and the catalog lanes, and added a 0.1.1 changelog entry.

Package and security impact

  • Affected package IDs: story-writer
  • Engine compatibility impact: none (same capability API 1.386 and minimum Engine version). Every Engine with capability API 1.386 (Oct 26) already has the shell's camera-side insets (Oct 23, 803792ee1), so dropping Story Writer's own top/left/right insets cannot expose the notch.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; styles only

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Run by the agent:

  • npm run test:browser:story-writer against Engine staging: desktop and phone both pass. Before the fix, the new drawer check failed on the phone.
  • Prettier, ESLint, typecheck-packages story-writer, validate-catalog, the package locale validators, and the four Story Writer regressions (9/22/8/4 passing).
  • Local CodeRabbit review: 0 findings.

Still to do by hand:

  • On an iPhone in landscape (camera on either side), open Story Writer and close the sidebar. Only the arrow should remain at the edge.
  • Open the sidebar: its header and controls should start right at its edge, with no empty gap on the camera side.
  • In portrait, check that the book, the sticky note and the Write bar keep a sensible gap below the Engine's top bar.

Documentation impact

  • No documentation changes needed (styles only)
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

The landscape screenshot from the browser test (simulated 59 px notch on both sides) shows the closed drawer as just its arrow.

🤖 Generated with Claude Code


🔄 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-Agents/pull/1716 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/story-writer-notch-insets` --- ### 📝 Commits (2) - [`97b490f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/97b490fa24c0001d3c1ef74ecf3e4c738f30430c) fix(story-writer): hide the closed drawer fully on a sideways phone (0.1.1) - [`76a80ec`](https://github.com/Pasta-Devs/Marinara-Agents/commit/76a80ec7a9de03720a1267eae6996d04a87bc631) fix(story-writer): drop the closed drawer's outline at the edge ### 📊 Changes **13 files changed** (+406 additions, -371 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/story-writer-0.1.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/story-writer/CHANGELOG.md` (+4 -0) 📝 `packages/story-writer/client.js` (+318 -318) 📝 `packages/story-writer/manifest.json` (+3 -3) 📝 `packages/story-writer/src/engine/packages/client/src/lib/story-writer/styles-shell.ts` (+27 -28) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/package-story-writer.e2e.ts` (+17 -3) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1717 ## Why this change - On a phone turned sideways, the closed settings drawer stayed partly on screen. A strip as wide as the camera notch showed its close button and switches beside the arrow, instead of the drawer hiding behind the arrow. - Cause: the Engine shell already pads Home clear of the status bar and the camera notch. Story Writer added the same `env(safe-area-inset-*)` again, both in the drawer's closed position and around the book. The book, the note and the action bar also lost that space a second time. ## What changed - **`story-writer` 0.1.1:** on a phone turned sideways, the closed drawer now hides completely and only its arrow shows. The book gets back the width the doubled notch took, and the note and Write bar sit at their normal distance from the edge. - Story Writer keeps only the bottom inset (the home indicator), since Home does not reserve it. - The phone browser test now simulates iPhone landscape notch insets through Chromium's `Emulation.setSafeAreaInsetsOverride`. It checks that the closed drawer leaves only its handle and no outline; the position check failed before the fix. - The test's page-arrow step no longer assumes the reader followed the mocked stream to its last page. On a busy machine the stream can finish before the pages are laid out, which left it on page 1 with Previous disabled. - The closed drawer also drops its 1px outline, which would otherwise show as a thin line at the screen edge beside the handle (found by Dottore). - Rebuilt `client.js`, the manifest, the 0.1.1 artifact and the catalog lanes, and added a 0.1.1 changelog entry. ## Package and security impact - Affected package IDs: `story-writer` - Engine compatibility impact: none (same capability API 1.386 and minimum Engine version). Every Engine with capability API 1.386 (Oct 26) already has the shell's camera-side insets (Oct 23, 803792ee1), so dropping Story Writer's own top/left/right insets cannot expose the notch. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; styles only ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Run by the agent: - `npm run test:browser:story-writer` against Engine staging: desktop and phone both pass. Before the fix, the new drawer check failed on the phone. - Prettier, ESLint, `typecheck-packages story-writer`, `validate-catalog`, the package locale validators, and the four Story Writer regressions (9/22/8/4 passing). - Local CodeRabbit review: 0 findings. Still to do by hand: - [ ] On an iPhone in landscape (camera on either side), open Story Writer and close the sidebar. Only the arrow should remain at the edge. - [ ] Open the sidebar: its header and controls should start right at its edge, with no empty gap on the camera side. - [ ] In portrait, check that the book, the sticky note and the Write bar keep a sensible gap below the Engine's top bar. ## Documentation impact - [ ] No documentation changes needed (styles only) - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) The landscape screenshot from the browser test (simulated 59 px notch on both sides) shows the closed drawer as just its arrow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:06:01 +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-Agents#1707
No description provided.