fix: remove stale Astro build cache and broken TV intro CSS suppression#57
Merged
jaypatrick merged 2 commits intomainfrom May 7, 2026
Merged
Conversation
…, remove obsolete inline script Agent-Logs-Url: https://github.com/jaypatrick/jk.com/sessions/0ae071e3-9ce2-48a1-be2d-d30986c1a512 Co-authored-by: jaypatrick <1800595+jaypatrick@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix regressions and remove Astro build cache
fix: remove stale Astro build cache and broken TV intro CSS suppression
May 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes two regressions affecting production deploy freshness and the homepage TV intro overlay by removing stale build caching and eliminating CSS/JS that incorrectly hid the intro due to Astro’s <astro-island> wrapper behavior.
Changes:
- Removed the GitHub Actions cache step that persisted Astro’s
.astro/incremental build output across runs, which could serve stale CSS/JS. - Deleted TV-intro “content suppression” CSS that unintentionally hid the overlay when rendered inside
<astro-island>. - Removed now-dead inline scripting in
BaseLayout.astrothat setdata-phosphor-intro/tv-intro-activeon<html>.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/deploy.yml |
Removes caching of .astro/ to prevent stale incremental outputs from affecting deploy artifacts. |
src/styles/global.css |
Deletes intro-related suppression rules that were breaking the overlay due to selector mismatch with Astro islands. |
src/layouts/BaseLayout.astro |
Removes the inline script that toggled intro suppression flags on <html>, now unused after CSS removal. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two regressions from the previous PR: stale
.astro/cache causing old CSS/JS to survive deploys, and avisibility: hiddenrule that was swallowing the TV intro because Astro wrapsclient:loadcomponents in<astro-island>— a direct<body>child without.tv-intro-overlay..github/workflows/deploy.ymlCache Astro buildstep entirely. Therestore-keysfallback was restoring stale incremental build output across content-only changes, defeating CSS/JS updates.src/styles/global.cssRemoved two CSS blocks that are no longer needed:
The
not(.tv-intro-overlay)selector matched<astro-island>, hiding the overlay it was meant to protect. The overlay's ownposition: fixed; inset: 0; z-index: 9999; background: #000already covers the viewport — no external suppression needed.src/layouts/BaseLayout.astro<script is:inline>that was settingdata-phosphor-intro="active"andtv-intro-activeon<html>— now dead code with the CSS rules gone.Original prompt
Fix two regressions introduced by the previous PR and remove the broken Astro build cache.
Fix 1: Remove the Astro build cache step from
.github/workflows/deploy.ymlDelete the entire "Cache Astro build" step from the
buildjob. It has been causing stale CSS and JS to be deployed. Clean builds are required.Remove this block entirely:
Fix 2: Restore the TV intro in
src/styles/global.cssThe
visibility: hiddenrule introduced in the last PR breaks the TV intro because Astro wrapsclient:loadSvelte components in an<astro-island>element. The selectorbody > *:not(.tv-intro-overlay)hidesastro-island(which is a direct body child without that class), taking the entire TV intro overlay with it.Remove these two CSS blocks entirely from
global.css:Fix 3: Remove the tv-intro-active inline script from
src/layouts/BaseLayout.astroThe inline script that adds
tv-intro-activeto<html>is no longer needed (since we're removing the CSS rules that used it). Remove this block fromBaseLayout.astro:The
{shouldRenderTvIntro && <TVIntro client:load />}line should remain untouched.Fix 4: Also remove the existing
data-phosphor-introCSS block fromglobal.cssif it existsRemove this block too since it was also part of the same broken approach:
The TV intro overlay itself (
.tv-intro-overlay) isposition: fixed; inset: 0; z-index: 9999; background: #000— it already covers the entire viewport on its own. No additional CSS suppression is needed.The following is the prior conversation context from the user's chat exploration (may be truncated):
Assistant: ````list type="task"
data:
- title: 'fix: portfolio bracket tags, remove all emoji, eliminate duplicate THIS. IS. JK.com during intro'
repository: jaypatrick/jk.com
url: https://github.com/copilot/tasks/pull/PR_kwDOSHNyYs7ZMVuN?session_id=c322f5e5-ae9e-45b3-979f-ebd23322f99d
state: queued