-
Notifications
You must be signed in to change notification settings - Fork 0
fix(assets): image CLS/a11y polish and cache hygiene #1195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
BigSimmo
merged 31 commits into
main
from
subagent-Asset-Optimization-Implementer-self-b295a5bb
Jul 25, 2026
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
6768ec9
chore: asset optimization fixes per audit
BigSimmo d63682c
fix: add check:assets to CI workflow
BigSimmo 65e69c9
docs: append PR #1195 review to branch review ledger
BigSimmo f3d90ec
merge: sync PR #1195 with main; fix SignedImage and check:assets
BigSimmo 33669e2
docs: append PR #1195 bugbot triage ledger correction
BigSimmo 31ef0e6
merge: catch up PR #1195 with latest main
BigSimmo 8888bf8
fix(assets): restore themed favicon; exclude from SVGO gate
BigSimmo 3eeed45
docs: append PR #1195 Cursor review ledger after favicon fix
BigSimmo fc0afee
fix(assets): declare sharp dependency for optimize-public-images
BigSimmo c1d1bd4
docs: append PR #1195 knip sharp fix ledger row
BigSimmo d867c39
style: prettier-format asset optimization files for Static PR
BigSimmo 6c3ef1c
fix(ci): drop lockfile-changing asset tooling from PR #1195
BigSimmo 0395e13
merge: sync PR #1195 with latest main after lockfile restore
BigSimmo 963a9a0
docs: append PR #1195 lockfile-drop CI unblock ledger
BigSimmo cbe869e
docs: pin PR #1195 ledger tip SHA
BigSimmo 584deeb
merge: catch up PR #1195 with main (anti-churn)
BigSimmo edbeca5
Merge branch 'main' into subagent-Asset-Optimization-Implementer-self…
github-actions[bot] 15a8093
fix(ci): stub check:assets so docs ledger refs resolve
BigSimmo a9cef98
merge: final catch-up of PR #1195 with main
BigSimmo e63aa12
docs: append PR #1195 review closeout ledger
BigSimmo 06ca5d7
Merge branch 'main' into subagent-Asset-Optimization-Implementer-self…
github-actions[bot] be8615a
merge: sync PR #1195 before residual fixes
BigSimmo 98dd148
fix(assets): clear PR #1195 residual cache and orphan-binary issues
BigSimmo 09b6ae8
docs: append PR #1195 residual-fix ledger row
BigSimmo 6d624df
docs: dedupe exact branch-review-ledger rows from union merges
BigSimmo 3899261
merge: sync PR #1195 with latest main before cleanup
BigSimmo 4bb0784
fix(assets): harden PR #1195 cleanup before merge
BigSimmo ae3a615
docs: append PR #1195 cleanup ledger row
BigSimmo a3c7629
merge: catch up PR #1195 after cleanup (anti-churn)
BigSimmo 57183b4
merge: sync PR #1195 with main for safe merge
BigSimmo 6fe97ad
docs: dedupe branch-review-ledger after main sync for PR #1195
BigSimmo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| /** | ||
| * Lightweight asset gate that does not require an `svgo` lockfile delta. | ||
| * | ||
| * Full SVGO multipass stability checking is deferred: adding `svgo` flips CI | ||
| * `lockfile_changed` and makes pre-existing exceljs/brace-expansion audit highs | ||
| * blocking. Until that lands in a dedicated dependency PR, this gate protects | ||
| * the highest-value asset contract: `src/app/icon.svg` must keep the | ||
| * prefers-color-scheme theme swap owned by `brand:check` / `brandIconSvg()`. | ||
| */ | ||
| import { promises as fs } from "node:fs"; | ||
| import path from "node:path"; | ||
| import { fileURLToPath } from "node:url"; | ||
|
|
||
| const rootDir = path.join(path.dirname(fileURLToPath(import.meta.url)), ".."); | ||
| const iconPath = path.join(rootDir, "src", "app", "icon.svg"); | ||
|
|
||
| async function main() { | ||
| const icon = await fs.readFile(iconPath, "utf8"); | ||
| const required = ["prefers-color-scheme: dark", "viewBox=", "<style>"]; | ||
|
|
||
| const missing = required.filter((token) => !icon.includes(token)); | ||
| if (missing.length > 0) { | ||
| console.error("src/app/icon.svg is missing themed-favicon markers:"); | ||
| for (const token of missing) { | ||
| console.error(` - ${token}`); | ||
| } | ||
| console.error("Hint: npm run brand:update (do not SVGO-multipass this file)"); | ||
| process.exit(1); | ||
| } | ||
|
|
||
| console.log("check:assets OK — themed favicon markers present (SVGO multipass deferred)."); | ||
| } | ||
|
|
||
| main().catch((error) => { | ||
| console.error(error instanceof Error ? error.message : error); | ||
| process.exit(1); | ||
| }); |
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.