[PR #1585] fix(gacha-forge): fit world creation to a sideways phone and stop iPhone field zoom (1.8.14) #1577

Open
opened 2026-10-23 04:03:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1585
Author: @SpicyMarinara
Created: 10/22/2026
Status: 🔄 Open

Base: staging ← Head: claude/gacha-forge-landscape-phone


📝 Commits (4)

  • 881c900 fix(gacha-forge): fit world creation to a sideways phone and stop iPhone field zoom (1.8.14)
  • 9b7d0fb chore(gacha-forge): mark the 1.8.14 bundle edit for upstream mirroring
  • d73aa46 Merge branch 'staging' into claude/gacha-forge-landscape-phone
  • 6affe4b Merge branch 'staging' into claude/gacha-forge-landscape-phone

📊 Changes

12 files changed (+185 additions, -25 deletions)

View changed files

➕ artifacts/gacha-forge-1.8.14.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/gacha-forge/CHANGELOG.md (+4 -0)
📝 packages/gacha-forge/README.md (+2 -0)
📝 packages/gacha-forge/client.js (+40 -2)
📝 packages/gacha-forge/manifest.json (+3 -3)
📝 tests/gacha-forge-location-ids.regression.mjs (+100 -2)

📄 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 #1586

The maintainer reported this directly from an iPhone; #1586 tracks it. Engine companion PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8082.

Why this change

On an iPhone turned sideways (about 874×402), Gacha Forge's world creation was close to unusable:

  • The 16:9 stage left dark gutters on both sides. On a ~750×300 box it was only ~533px wide.
  • The pinned brand row, step tabs, status box and Next row took about 250px. That left 30–70px for the fields, so you could barely see them.
  • Every text field rendered at about 7–9px. iOS zooms the whole page into any field under 16px, so tapping a field zoomed in and hid what you were typing.
    • The Engine's own 16px rule can't help, because the game renders in a shadow root with :host { all: initial }.

What changed

Package gacha-forge 1.8.13 → 1.8.14:

  • World creation on a sideways phone. Applies under @media (orientation: landscape) and (max-height: 500px).
    • It uses the stage's full width.
    • It scrolls as one page: the brand and step tabs scroll away with the fields.
    • A slim Back/Next row stays pinned at the bottom. While a text field has the keyboard, the row rejoins the page.
    • The world description box is shorter.
    • A restored draft's "Picked up where you left off" notice moves to the top of the page instead of waiting below the fold.
    • Where the floating fullscreen toggle exists (Android, desktop), the scrolling frame keeps clear of its corner.
    • A small obScroll() helper: changing step returns the page to the top, and an error scrolls to where it shows, above Next. Without it, the single scroll area kept the old step's position, and errors with no field to focus could stay off-screen.
  • No more iPhone zoom. On touch screens (pointer: coarse), every typed field in the game is 16px: inputs, textareas, selects and contenteditable. That includes the Expand pop-up, Presets, Settings, Theme library, Outfits, Roster search, portraits and team names. Mouse desktops keep the old type ramp.
  • The other screens keep their 16:9 frame. Battle and other layouts derive sizes from the stage width, so widening them needs per-screen work. The Engine PR gives every package tab more height on a sideways phone, which also widens a 16:9 stage.
  • Release metadata and build outputs:
    • Version 1.8.14 in manifest.json and in the in-bundle version constant.
    • A new in-game changelog entry. The previous top entry is now pinned to 1.8.12, so it isn't relabelled.
    • CHANGELOG.md and README.md entries.
    • Rebuilt with node scripts/build-gacha-forge-package.mjs: manifest hash and size, artifacts/gacha-forge-1.8.14.zip (older zips kept), catalog v1/v2/v3 entries and notes.
  • tests/gacha-forge-location-ids.regression.mjs pins:
    • the new layout block and the 16px touch floor;
    • obScroll (executed in vm) and its call sites;
    • the version constants agreeing.
    • It fails on staging.

Process note. client.js is a pre-built esbuild bundle whose source lives outside this repository (scripts/build-gacha-forge-package.mjs header). Following the 1.8.13 precedent, the fix is edited into the bundle and pinned by the regression test. It needs to be mirrored into the package's upstream source, or the next bundle drop will lose it.

Dottore's MEDIUM finding ("the fix lives only as bytes written into a generated bundle") is addressed with the repair its own prompt lists as acceptable, in 9b7d0fb10. ponytail: markers in the bundle name the hand-added pieces and the mirroring step:

  • the creator's landscape block;
  • the 16px touch field floor;
  • obScroll and its calls in re()/qe().

Until the change is mirrored upstream, the regression test fails any bundle drop that loses them. I can't reach the upstream source tree, so the upstream commit itself is still to do.

Package and security impact

  • Affected package IDs: gacha-forge
  • Engine compatibility impact: none. engine.min and maxExclusive are unchanged, and no new host API is used.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none. The only executable change is the obScroll() scroll helper; there are no storage, network or permission changes.

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

Agent-run checks, all on head 9b7d0fb10:

  • npm run check exited 0. It reports 811 warnings, none in the changed test file.
  • node scripts/test-catalog-lanes.mjs passed.
  • node scripts/validate-package-locales.mjs passed.
  • node scripts/validate-catalog.mjs passed (v2=41, v3=41).
  • node scripts/tests/catalog-release-notes.regression.mjs passed.
  • node tests/gacha-forge-location-ids.regression.mjs passed.
  • git diff --check is clean.
  • Also run on the first revision of this commit: validate-package-locale-keys, host-storage-key-gate, host-client-adapters, host-module-shims, client-host-gates, catalog-generatedat-determinism, npm run test:security, npm run typecheck:packages, dedup-review-fixes, validate-pr-triage and test-owner-approval.
  • Browser checks with Playwright:
    • Standalone harness, WebKit and Chromium at 874×402 with touch. Before: stage 533px wide, fields 8.6px. After: stage full width, the frame scrolls, the nav stays pinned and unpins while typing, each new step starts at the top, errors show above Next, there is no sideways overflow on any of the seven steps, and fields are 16px.
    • In the real Engine shell, iPhone WebKit profile, with the Engine companion branch. This used the package's game routes stubbed (no AI connection). At 874×402 the wizard fills the width with fields visible. Shrinking the viewport to 874×220 to simulate the keyboard, the focused "Your gacha world" field stays in view at 16px.
    • On desktop with a mouse at 1440×900, every wizard measurement matches staging.
  • Local CodeRabbit: two runs, 0 findings.
  • A local multi-pass review confirmed two minor findings, both fixed here: the restored-draft notice was below the fold, and the fullscreen toggle sat over scrolling fields. It rejected one: a required-field error scrolled out of view by the focus that follows it. That follows the existing focus behaviour, and the field the error is about is what comes into view.

Manual verification notes

Still needs a human:

  • Manually verify on a real iPhone (Safari and the home-screen app) in landscape: tapping a world creation field no longer zooms the page.
  • Manually verify on that iPhone that world creation fills the width, the fields are readable, and Next stays reachable.
  • Manually verify on Android Chrome in landscape, with and without fullscreen: the fullscreen toggle doesn't cover fields.
  • Manually verify a restored draft shows its notice at the top.
  • Manually verify tight 16px fields on a phone: the .cs-pick select, the Settings custom input, budget number inputs, the roster sort select, and renaming a team preset.
  • Manually verify the update from 1.8.13 → 1.8.14 through Download Agents on an Engine staging checkout.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

packages/gacha-forge/README.md and CHANGELOG.md have the 1.8.14 entry.

UI evidence (if applicable)

Screenshots were taken locally with Playwright (before and after at 874×402, and with the simulated keyboard) but are not attached. Please use the manual checks above.

🤖 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/1585 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/22/2026 **Status:** 🔄 Open **Base:** `staging` ← **Head:** `claude/gacha-forge-landscape-phone` --- ### 📝 Commits (4) - [`881c900`](https://github.com/Pasta-Devs/Marinara-Agents/commit/881c9000c53b85bc5bf719e870b778e8ded00ea6) fix(gacha-forge): fit world creation to a sideways phone and stop iPhone field zoom (1.8.14) - [`9b7d0fb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9b7d0fb106e72a255db21e4e62f1c4d1524eb2fe) chore(gacha-forge): mark the 1.8.14 bundle edit for upstream mirroring - [`d73aa46`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d73aa46e96d92a0bf75f91da839ef186375cf0cd) Merge branch 'staging' into claude/gacha-forge-landscape-phone - [`6affe4b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6affe4b670e540e2534c79c982a0847bb1744526) Merge branch 'staging' into claude/gacha-forge-landscape-phone ### 📊 Changes **12 files changed** (+185 additions, -25 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.8.14.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/gacha-forge/CHANGELOG.md` (+4 -0) 📝 `packages/gacha-forge/README.md` (+2 -0) 📝 `packages/gacha-forge/client.js` (+40 -2) 📝 `packages/gacha-forge/manifest.json` (+3 -3) 📝 `tests/gacha-forge-location-ids.regression.mjs` (+100 -2) </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 #1586 The maintainer reported this directly from an iPhone; #1586 tracks it. Engine companion PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8082. ## Why this change On an iPhone turned sideways (about 874×402), Gacha Forge's world creation was close to unusable: - The 16:9 stage left dark gutters on both sides. On a ~750×300 box it was only ~533px wide. - The pinned brand row, step tabs, status box and Next row took about 250px. That left 30–70px for the fields, so you could barely see them. - Every text field rendered at about 7–9px. iOS zooms the whole page into any field under 16px, so tapping a field zoomed in and hid what you were typing. - The Engine's own 16px rule can't help, because the game renders in a shadow root with `:host { all: initial }`. ## What changed Package `gacha-forge` 1.8.13 → **1.8.14**: - **World creation on a sideways phone.** Applies under `@media (orientation: landscape) and (max-height: 500px)`. - It uses the stage's full width. - It scrolls as one page: the brand and step tabs scroll away with the fields. - A slim Back/Next row stays pinned at the bottom. While a text field has the keyboard, the row rejoins the page. - The world description box is shorter. - A restored draft's "Picked up where you left off" notice moves to the top of the page instead of waiting below the fold. - Where the floating fullscreen toggle exists (Android, desktop), the scrolling frame keeps clear of its corner. - A small `obScroll()` helper: changing step returns the page to the top, and an error scrolls to where it shows, above Next. Without it, the single scroll area kept the old step's position, and errors with no field to focus could stay off-screen. - **No more iPhone zoom.** On touch screens (`pointer: coarse`), every typed field in the game is 16px: inputs, textareas, selects and contenteditable. That includes the Expand pop-up, Presets, Settings, Theme library, Outfits, Roster search, portraits and team names. Mouse desktops keep the old type ramp. - The other screens keep their 16:9 frame. Battle and other layouts derive sizes from the stage width, so widening them needs per-screen work. The Engine PR gives every package tab more height on a sideways phone, which also widens a 16:9 stage. - Release metadata and build outputs: - Version 1.8.14 in `manifest.json` and in the in-bundle version constant. - A new in-game changelog entry. The previous top entry is now pinned to `1.8.12`, so it isn't relabelled. - `CHANGELOG.md` and `README.md` entries. - Rebuilt with `node scripts/build-gacha-forge-package.mjs`: manifest hash and size, `artifacts/gacha-forge-1.8.14.zip` (older zips kept), catalog v1/v2/v3 entries and notes. - `tests/gacha-forge-location-ids.regression.mjs` pins: - the new layout block and the 16px touch floor; - `obScroll` (executed in `vm`) and its call sites; - the version constants agreeing. - It fails on `staging`. **Process note.** `client.js` is a pre-built esbuild bundle whose source lives outside this repository (`scripts/build-gacha-forge-package.mjs` header). Following the 1.8.13 precedent, the fix is edited into the bundle and pinned by the regression test. **It needs to be mirrored into the package's upstream source**, or the next bundle drop will lose it. Dottore's MEDIUM finding ("the fix lives only as bytes written into a generated bundle") is addressed with the repair its own prompt lists as acceptable, in `9b7d0fb10`. `ponytail:` markers in the bundle name the hand-added pieces and the mirroring step: - the creator's landscape block; - the 16px touch field floor; - `obScroll` and its calls in `re()`/`qe()`. Until the change is mirrored upstream, the regression test fails any bundle drop that loses them. I can't reach the upstream source tree, so the upstream commit itself is still to do. ## Package and security impact - Affected package IDs: `gacha-forge` - Engine compatibility impact: none. `engine.min` and `maxExclusive` are unchanged, and no new host API is used. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none. The only executable change is the `obScroll()` scroll helper; there are no storage, network or permission changes. ## 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` Agent-run checks, all on head `9b7d0fb10`: - `npm run check` exited 0. It reports 811 warnings, none in the changed test file. - `node scripts/test-catalog-lanes.mjs` passed. - `node scripts/validate-package-locales.mjs` passed. - `node scripts/validate-catalog.mjs` passed (v2=41, v3=41). - `node scripts/tests/catalog-release-notes.regression.mjs` passed. - `node tests/gacha-forge-location-ids.regression.mjs` passed. - `git diff --check` is clean. - Also run on the first revision of this commit: `validate-package-locale-keys`, `host-storage-key-gate`, `host-client-adapters`, `host-module-shims`, `client-host-gates`, `catalog-generatedat-determinism`, `npm run test:security`, `npm run typecheck:packages`, `dedup-review-fixes`, `validate-pr-triage` and `test-owner-approval`. - Browser checks with Playwright: - **Standalone harness, WebKit and Chromium at 874×402 with touch.** Before: stage 533px wide, fields 8.6px. After: stage full width, the frame scrolls, the nav stays pinned and unpins while typing, each new step starts at the top, errors show above Next, there is no sideways overflow on any of the seven steps, and fields are 16px. - **In the real Engine shell, iPhone WebKit profile, with the Engine companion branch.** This used the package's game routes stubbed (no AI connection). At 874×402 the wizard fills the width with fields visible. Shrinking the viewport to 874×220 to simulate the keyboard, the focused "Your gacha world" field stays in view at 16px. - On desktop with a mouse at 1440×900, every wizard measurement matches `staging`. - Local CodeRabbit: two runs, 0 findings. - A local multi-pass review confirmed two minor findings, both fixed here: the restored-draft notice was below the fold, and the fullscreen toggle sat over scrolling fields. It rejected one: a required-field error scrolled out of view by the focus that follows it. That follows the existing focus behaviour, and the field the error is about is what comes into view. ### Manual verification notes Still needs a human: - Manually verify on a real iPhone (Safari and the home-screen app) in landscape: tapping a world creation field no longer zooms the page. - Manually verify on that iPhone that world creation fills the width, the fields are readable, and Next stays reachable. - Manually verify on Android Chrome in landscape, with and without fullscreen: the fullscreen toggle doesn't cover fields. - Manually verify a restored draft shows its notice at the top. - Manually verify tight 16px fields on a phone: the `.cs-pick` select, the Settings custom input, budget number inputs, the roster sort select, and renaming a team preset. - Manually verify the update from 1.8.13 → 1.8.14 through Download Agents on an Engine `staging` checkout. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation `packages/gacha-forge/README.md` and `CHANGELOG.md` have the 1.8.14 entry. ## UI evidence (if applicable) Screenshots were taken locally with Playwright (before and after at 874×402, and with the simulated keyboard) but are not attached. Please use the manual checks above. 🤖 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>
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#1577
No description provided.