[PR #8594] [MERGED] fix(agents): center settings banners on wide screens #8692

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8594
Author: @Gunterlie
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @Gunterlie

Base: staging ← Head: center-stage-fade-to-black


📝 Commits (3)

  • 14b7213 fix(agents): center settings banners on wide screens
  • 4798e61 fix(agents): preserve banner during compact transitions
  • cdc3ad5 fix(agents): synchronize compact banner width and fade

📊 Changes

1 file changed (+13 additions, -6 deletions)

View changed files

📝 packages/client/src/components/agents/AgentDetailHeader.tsx (+13 -6)

📄 Description

Linked issue

Closes #8591

Why this change

Downloaded-agent settings banners end abruptly and sit to the left of the centered form on wide screens.

What changed

  • Center the artwork in downloaded-agent settings headers when there is spare horizontal space. Grow the left/right fades with that space, up to 15% of the artwork width; retain the bottom fade.
  • Keep narrow headers full width with no visible side fade. Preserve the full-width compact header and reuse its image when scrolling between expanded and compact states. Synchronize artwork width and side fades with the 300ms header transition, honoring reduced motion.
  • Set the header width explicitly so its aspect ratio and height cap cannot shrink it away from the available editor width.

Validation

Initial local validation on 4798e6122 (all heavy commands serialized through heavy):

  • pnpm check: passed (localization, formatting, lint/type checks and production build).
  • pnpm smoke:ui: 7/7 passed.
  • Initial local CodeRabbit: 0 findings. Independent code review found no remaining blocking defect at that revision; Dottore subsequently found the compact-transition snap, repaired in cdc3ad566.
  • Browser verification: Chromium and WebKit, 390/768/1440/1866 px, light/dark, expanded/compact headers; no horizontal overflow. Chromium also checked near the width threshold. Same banner image element survives compact transitions.
  • Built CSS includes both prefixed and unprefixed mask-image.
  • 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

Manual verification notes

Agent exercised the downloaded Illustrator agent settings, resized the viewport, switched light/dark mode, and scrolled between expanded/compact headers. Wide artwork centers and fades progressively; phone artwork fills the header without side fades.

Manually verify the affected downloaded agent on your original browser and custom theme. The reported hard cutoff did not reproduce in local before captures, so the aspect-ratio width-transfer explanation remains an inference. WebKit loaded the artwork, but text used a devbox monospace font fallback. Firefox was not tested. Final animation-frame proof is recorded below. A pre-change baseline check was not run; the full final check passed.

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)

UI evidence (if applicable)

Screenshot evidence: download banner-evidence.html and open it to view the maintainer's original report and Chromium desktop/phone/compact captures. The report shows Immersive HTML; verification uses Illustrator, which shares the header component.

Proof

Final revision: cdc3ad56680a926d5076a46bdf49a6ed6c462acb.

  • All GitHub checks passed on this revision, including pnpm-validate, complete Node regressions, container and native build checks. Dottore: Viable, With Notes; its transition defect is confirmed repaired and its thread is resolved.
  • Focused local regression renders the actual AgentDetailHeader and stylesheet with fixture artwork: both directions at 1440/1866 px have 17 intermediate widths rather than a single-frame snap; 390/768 px stay full width without side fades; reduced motion switches immediately; the image DOM node stays mounted in every case. Frame measurements.
  • Final focused Prettier check passed. The prior full local pnpm check and 7/7 smoke results above precede the two-line transition repair; the final full validation is from CI.
  • Final local CodeRabbit against origin/staging: 1 finding dismissed after tracing the CSS. It requested theme tokens instead of black gradient stops in mask-image. This is an alpha mask, not painted surface/text color: black supplies opaque mask alpha and transparent supplies zero alpha. A theme token can carry transparency and would incorrectly change artwork opacity. No UI color is hardcoded by these mask stops.

🔄 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/8594 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `center-stage-fade-to-black` --- ### 📝 Commits (3) - [`14b7213`](https://github.com/Pasta-Devs/Marinara-Engine/commit/14b7213aae342284aadf21f921503ab85cc94967) fix(agents): center settings banners on wide screens - [`4798e61`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4798e6122c72a44f1ce85b2c3866bc8ad830d714) fix(agents): preserve banner during compact transitions - [`cdc3ad5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cdc3ad56680a926d5076a46bdf49a6ed6c462acb) fix(agents): synchronize compact banner width and fade ### 📊 Changes **1 file changed** (+13 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/agents/AgentDetailHeader.tsx` (+13 -6) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #8591 ## Why this change Downloaded-agent settings banners end abruptly and sit to the left of the centered form on wide screens. ## What changed - Center the artwork in downloaded-agent settings headers when there is spare horizontal space. Grow the left/right fades with that space, up to 15% of the artwork width; retain the bottom fade. - Keep narrow headers full width with no visible side fade. Preserve the full-width compact header and reuse its image when scrolling between expanded and compact states. Synchronize artwork width and side fades with the 300ms header transition, honoring reduced motion. - Set the header width explicitly so its aspect ratio and height cap cannot shrink it away from the available editor width. ## Validation Initial local validation on `4798e6122` (all heavy commands serialized through `heavy`): - `pnpm check`: passed (localization, formatting, lint/type checks and production build). - `pnpm smoke:ui`: 7/7 passed. - Initial local CodeRabbit: 0 findings. Independent code review found no remaining blocking defect at that revision; Dottore subsequently found the compact-transition snap, repaired in `cdc3ad566`. - Browser verification: Chromium and WebKit, 390/768/1440/1866 px, light/dark, expanded/compact headers; no horizontal overflow. Chromium also checked near the width threshold. Same banner image element survives compact transitions. - Built CSS includes both prefixed and unprefixed `mask-image`. <!-- Required: include commands run and/or manual checks performed --> - [ ] `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` ### Manual verification notes Agent exercised the downloaded Illustrator agent settings, resized the viewport, switched light/dark mode, and scrolled between expanded/compact headers. Wide artwork centers and fades progressively; phone artwork fills the header without side fades. Manually verify the affected downloaded agent on your original browser and custom theme. The reported hard cutoff did not reproduce in local before captures, so the aspect-ratio width-transfer explanation remains an inference. WebKit loaded the artwork, but text used a devbox monospace font fallback. Firefox was not tested. Final animation-frame proof is recorded below. A pre-change baseline check was not run; the full final check passed. <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - ## 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) ## UI evidence (if applicable) [Screenshot evidence](https://gist.github.com/Gunterlie/4e3ed0ad1f98d1543f51f0149e6ef1a9): download `banner-evidence.html` and open it to view the maintainer's original report and Chromium desktop/phone/compact captures. The report shows Immersive HTML; verification uses Illustrator, which shares the header component. ## Proof Final revision: `cdc3ad56680a926d5076a46bdf49a6ed6c462acb`. - All GitHub checks passed on this revision, including `pnpm-validate`, complete Node regressions, container and native build checks. Dottore: **Viable, With Notes**; its transition defect is confirmed repaired and its thread is resolved. - Focused local regression renders the actual `AgentDetailHeader` and stylesheet with fixture artwork: both directions at 1440/1866 px have 17 intermediate widths rather than a single-frame snap; 390/768 px stay full width without side fades; reduced motion switches immediately; the image DOM node stays mounted in every case. [Frame measurements](https://gist.github.com/Gunterlie/4e3ed0ad1f98d1543f51f0149e6ef1a9#file-transition-report-json). - Final focused Prettier check passed. The prior full local `pnpm check` and 7/7 smoke results above precede the two-line transition repair; the final full validation is from CI. - Final local CodeRabbit against `origin/staging`: 1 finding dismissed after tracing the CSS. It requested theme tokens instead of black gradient stops in `mask-image`. This is an alpha mask, not painted surface/text color: black supplies opaque mask alpha and transparent supplies zero alpha. A theme token can carry transparency and would incorrectly change artwork opacity. No UI color is hardcoded by these mask stops. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:38: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#8692
No description provided.