Skip to content

Theme Wipe Specialization and Visual Fixes#22

Draft
TimChinye wants to merge 1 commit intofix-browserless-concurrency-limits-11555592774675683851from
feature-theme-wipe-improvements-2-16427792831135789730
Draft

Theme Wipe Specialization and Visual Fixes#22
TimChinye wants to merge 1 commit intofix-browserless-concurrency-limits-11555592774675683851from
feature-theme-wipe-improvements-2-16427792831135789730

Conversation

@TimChinye
Copy link
Owner

This change optimizes the theme transition experience by specializing the snapshot strategy based on the page type and fixing several visual regressions.

Key improvements:

  • Strict Route Targeting: Puppeteer is now exclusively used for high-impact landing pages (home and projects). All other pages (about, contact, single projects) skip the Puppeteer delay and use modern-screenshot or instant switching.
  • Visual Fidelity & Coverage: Resolved the "gap" at the bottom of the screen by ensuring snapshots use 100% 100% scaling in the overlay and window.innerWidth for capture, encompassing the entire viewport including scrollbar tracks.
  • Refined Animation: The wipe divider line is now perfectly centered on the transition edge using translate: 0 -50% and percentage-based vertical movement, ensuring it matches the container bounds regardless of viewport size.
  • Flicker-Free Transitions: Moved the initial mask capture to the very start of the transition. This creates an immediate visual lock of the current page state, masking any background theme changes or React re-renders until the wipe animation is ready to start.
  • Cleanup: Removed the scrollbar-gutter hack as requested, and improved the DOM serializer to fully remove excluded elements (data-html2canvas-ignore, scripts, etc.) from the payload, reducing snapshot API overhead.

PR created automatically by Jules for task 16427792831135789730 started by @TimChinye

- Strictly limit Puppeteer snapshots to home (`/`, `/tim`, `/tiger`) and projects listing pages.
- Implement multi-tier fallback (Puppeteer -> modern-screenshot -> Instant) for all other routes.
- Remove scrollbar-gutter logic to eliminate the "yellow fake scrollbar" artifact.
- Fix snapshot coverage by using `bg-[length:100%_100%]` and capturing `window.innerWidth`.
- Improve mask capture timing to prevent theme flashing during heavy background tasks.
- Align the wipe divider line accurately to the clip-path edge using percentage-based positioning.
- Improve DOM serialization to handle theme overrides and remove ignored elements.
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel
Copy link
Contributor

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portfolio Error Error Mar 5, 2026 9:48am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant