[PR #1594] [CLOSED] fix(gacha-forge): polish chapter fullscreen and Units presentation #1595

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1594
Author: @SpicyMarinara
Created: 10/22/2026
Status: ❌ Closed

Base: staging ← Head: fix/gacha-chapter-fullscreen-icon


📝 Commits (6)

  • 8792695 fix(gacha-forge): align the chapter fullscreen icon with its header
  • cabed6d feat(gacha-forge): polish chapter controls and Units presentation
  • 4a99dde fix(gacha-forge): stabilize visible portraits and chapter controls
  • 49fbc36 test(gacha-forge): verify native keyboard focus and chapter presentation
  • bb9cbd3 Merge branch 'staging' into fix/gacha-chapter-fullscreen-icon
  • 0b569cd Merge branch 'staging' into fix/gacha-chapter-fullscreen-icon

📊 Changes

16 files changed (+446 additions, -30 deletions)

View changed files

➕ artifacts/gacha-forge-1.9.1.zip (+0 -0)
📝 catalog/catalog.json (+7 -7)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+7 -7)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+7 -7)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/gacha-forge/CHANGELOG.md (+6 -0)
📝 packages/gacha-forge/README.md (+2 -0)
📝 packages/gacha-forge/bundle-patches.json (+22 -0)
📝 packages/gacha-forge/client.js (+57 -4)
📝 packages/gacha-forge/manifest.json (+4 -4)
📝 packages/gacha-forge/src/browser-presentation.mjs (+53 -0)
➕ tests/package-gacha-forge-units.e2e.ts (+195 -0)
📝 tests/package-gacha-forge.e2e.ts (+67 -0)
📝 tests/playwright.gacha-forge.config.ts (+1 -1)

📄 Description

Linked issue

Closes #1593. Refs #1596. Implementation owner: @SpicyMarinara (Codex).

The chapter control, icon alignment and card badge changes are implemented. The reported intermittent portrait flicker remains tracked in #1596 for physical-phone confirmation; it did not reproduce in headless WebKit.

Why this change

The framed fullscreen control overlaps chapter artwork. In Units, the favorite and detail help icons are offset inside their buttons, and cards lack the affinity symbol. Mari also reports portraits flickering after taps; those views recreate image elements with lazy/default decoding even when the portraits are already visible.

What changed

  • Gacha Forge 1.9.1 moves the chapter fullscreen control into the existing top-right header fade. Its icon is small and unframed, with a 44px touch area and a visible keyboard focus outline. The portrait rotation exit remains separate.
  • Center the favorite and detail help icons. Character cards reuse the existing Fire/Water/Wind/Earth/Light/Dark affinity symbols in the top-right corner; weapons and unknown affinities receive no badge.
  • Load and decode the detail portrait and visible roster thumbnails immediately. Offscreen roster cards retain native lazy loading. This addresses the image-loading path; physical-device flicker resolution remains unverified.
  • Rebuild the maintained-source bundle through its reversible patch ledger, manifest, new versioned ZIP, all three catalog lanes and release notes. Preserve the published 1.9.0 ZIP.

Package and security impact

  • Affected package ID: gacha-forge (1.9.0 → 1.9.1).
  • Engine compatibility: unchanged, Engine >=2.5.1 and capability API 1.376. Tested against the Engine staging tree published at 1c8d6575af6d7c55a9c4ead54e5f1df6c2cc61cc.
  • Permissions, entrypoints and storage format: unchanged. No migration or uninstall behavior changes.
  • Update the installed Gacha Forge package and restart Engine when prompted; updating the Engine image alone does not replace an installed package.
  • Artifact: gacha-forge-1.9.1.zip, 7,853,366 bytes, SHA-256 12cf7bffa9a3ef8ba2be8a86dbbac5c4bafeab4ae691edc60ee8b6df42b140da.

Validation

Completed locally:

  • npm run check passed (existing lint warnings, zero errors), catalog lanes/locales/catalog/release-note validation passed, both Gacha ledger/rebuild regressions passed, and git diff --check passed.

  • Six browser cases passed across desktop Chromium, landscape mobile Chromium and iPhone WebKit emulation. They cover all 21 existing screens, fullscreen in both directions, the actual chapter scene, draft DOM preservation, Engine topbar access and the portrait rotation escape.

  • Units tests repeatedly toggle favorite, switch Story/Stats and open/close help. The active incoming portrait had zero sampled blank frames. Icon centers are within 0.5px; the affinity badge is checked against the resting card's top-right corner. Visible thumbnails are eager; offscreen thumbnails remain lazy.

  • The chapter test additionally checks its 44px target, small glyph, transparent frame, real keyboard navigation/focus/activation and exactly one visible fullscreen control. On macOS WebKit it uses Option-Tab, matching the platform's keyboard-navigation setting. Final chapter cases passed in all three projects.

  • Local CodeRabbit review: addressed the incoming-portrait sampling finding and strengthened keyboard proof after a focus-test finding; the final follow-up returned zero findings. The earlier findings were fixed, not dismissed.

  • Manually verify chapter reading and both fullscreen directions on a physical iPhone in landscape, including rotation back to portrait.

  • Manually verify portrait stability with an existing large roster, repeatedly tapping units, favorite, tabs and help.

  • Manually verify the installed-package update/restart path and uninstall cleanup.

  • Manually verify the chapter control and badges against different artwork and player UI scales.

Manual verification notes

The package was installed into disposable Engine browser-test data and its real custom element was exercised with synthetic game fixtures and public repository artwork. Screenshots were inspected. This is browser-emulation proof, not physical iPhone/GPU proof. No live model generation, real game saves or API keys were used. Offline update/uninstall lifecycle was not exercised in this UI patch.

Documentation impact

Package README and 1.9.1 release notes updated. Existing Engine-localized fullscreen labels and existing affinity names/icons are reused; package metadata locales validate. No Engine documentation change.

UI evidence

Desktop and mobile screenshots, including iPhone WebKit emulation.


🔄 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/1594 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/22/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `fix/gacha-chapter-fullscreen-icon` --- ### 📝 Commits (6) - [`8792695`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8792695e8d989d9514cf22c7f0edc39acc5842d3) fix(gacha-forge): align the chapter fullscreen icon with its header - [`cabed6d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cabed6d1ac48bfdacad9689b01758fd7478bf89e) feat(gacha-forge): polish chapter controls and Units presentation - [`4a99dde`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4a99dde8a7d9b106a4d257e859134e392ad82b05) fix(gacha-forge): stabilize visible portraits and chapter controls - [`49fbc36`](https://github.com/Pasta-Devs/Marinara-Agents/commit/49fbc3665f61d80b1edbd14327a6399a5c1fa774) test(gacha-forge): verify native keyboard focus and chapter presentation - [`bb9cbd3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bb9cbd3374bdb18ea5e2a59636dc3e6c1f27564e) Merge branch 'staging' into fix/gacha-chapter-fullscreen-icon - [`0b569cd`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0b569cdada67adc2211db0d895508ecdd46e3231) Merge branch 'staging' into fix/gacha-chapter-fullscreen-icon ### 📊 Changes **16 files changed** (+446 additions, -30 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/gacha-forge-1.9.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+7 -7) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+7 -7) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+7 -7) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/gacha-forge/CHANGELOG.md` (+6 -0) 📝 `packages/gacha-forge/README.md` (+2 -0) 📝 `packages/gacha-forge/bundle-patches.json` (+22 -0) 📝 `packages/gacha-forge/client.js` (+57 -4) 📝 `packages/gacha-forge/manifest.json` (+4 -4) 📝 `packages/gacha-forge/src/browser-presentation.mjs` (+53 -0) ➕ `tests/package-gacha-forge-units.e2e.ts` (+195 -0) 📝 `tests/package-gacha-forge.e2e.ts` (+67 -0) 📝 `tests/playwright.gacha-forge.config.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #1593. Refs #1596. Implementation owner: @SpicyMarinara (Codex). The chapter control, icon alignment and card badge changes are implemented. The reported intermittent portrait flicker remains tracked in #1596 for physical-phone confirmation; it did not reproduce in headless WebKit. ## Why this change The framed fullscreen control overlaps chapter artwork. In Units, the favorite and detail help icons are offset inside their buttons, and cards lack the affinity symbol. Mari also reports portraits flickering after taps; those views recreate image elements with lazy/default decoding even when the portraits are already visible. ## What changed - Gacha Forge 1.9.1 moves the chapter fullscreen control into the existing top-right header fade. Its icon is small and unframed, with a 44px touch area and a visible keyboard focus outline. The portrait rotation exit remains separate. - Center the favorite and detail help icons. Character cards reuse the existing Fire/Water/Wind/Earth/Light/Dark affinity symbols in the top-right corner; weapons and unknown affinities receive no badge. - Load and decode the detail portrait and visible roster thumbnails immediately. Offscreen roster cards retain native lazy loading. This addresses the image-loading path; physical-device flicker resolution remains unverified. - Rebuild the maintained-source bundle through its reversible patch ledger, manifest, new versioned ZIP, all three catalog lanes and release notes. Preserve the published 1.9.0 ZIP. ## Package and security impact - Affected package ID: `gacha-forge` (1.9.0 → 1.9.1). - Engine compatibility: unchanged, Engine >=2.5.1 and capability API 1.376. Tested against the Engine staging tree published at `1c8d6575af6d7c55a9c4ead54e5f1df6c2cc61cc`. - Permissions, entrypoints and storage format: unchanged. No migration or uninstall behavior changes. - Update the installed Gacha Forge package and restart Engine when prompted; updating the Engine image alone does not replace an installed package. - Artifact: `gacha-forge-1.9.1.zip`, 7,853,366 bytes, SHA-256 `12cf7bffa9a3ef8ba2be8a86dbbac5c4bafeab4ae691edc60ee8b6df42b140da`. ## Validation Completed locally: - `npm run check` passed (existing lint warnings, zero errors), catalog lanes/locales/catalog/release-note validation passed, both Gacha ledger/rebuild regressions passed, and `git diff --check` passed. - Six browser cases passed across desktop Chromium, landscape mobile Chromium and iPhone WebKit emulation. They cover all 21 existing screens, fullscreen in both directions, the actual chapter scene, draft DOM preservation, Engine topbar access and the portrait rotation escape. - Units tests repeatedly toggle favorite, switch Story/Stats and open/close help. The active incoming portrait had zero sampled blank frames. Icon centers are within 0.5px; the affinity badge is checked against the resting card's top-right corner. Visible thumbnails are eager; offscreen thumbnails remain lazy. - The chapter test additionally checks its 44px target, small glyph, transparent frame, real keyboard navigation/focus/activation and exactly one visible fullscreen control. On macOS WebKit it uses Option-Tab, matching the platform's keyboard-navigation setting. Final chapter cases passed in all three projects. - Local CodeRabbit review: addressed the incoming-portrait sampling finding and strengthened keyboard proof after a focus-test finding; the final follow-up returned zero findings. The earlier findings were fixed, not dismissed. - [ ] Manually verify chapter reading and both fullscreen directions on a physical iPhone in landscape, including rotation back to portrait. - [ ] Manually verify portrait stability with an existing large roster, repeatedly tapping units, favorite, tabs and help. - [ ] Manually verify the installed-package update/restart path and uninstall cleanup. - [ ] Manually verify the chapter control and badges against different artwork and player UI scales. ### Manual verification notes The package was installed into disposable Engine browser-test data and its real custom element was exercised with synthetic game fixtures and public repository artwork. Screenshots were inspected. This is browser-emulation proof, not physical iPhone/GPU proof. No live model generation, real game saves or API keys were used. Offline update/uninstall lifecycle was not exercised in this UI patch. ## Documentation impact Package README and 1.9.1 release notes updated. Existing Engine-localized fullscreen labels and existing affinity names/icons are reused; package metadata locales validate. No Engine documentation change. ## UI evidence [Desktop and mobile screenshots, including iPhone WebKit emulation](https://gist.github.com/SpicyMarinara/d7f4127cbbca9f080375e5f8c5763fb2). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:02:27 +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#1595
No description provided.