Skip to content

Type image-effects' heading and use US spellings, so the site's checks pass - #41

Merged
ecropolis merged 1 commit into
mainfrom
claude/site-build-unblock
Oct 31, 2026
Merged

ecropolis merged 1 commit into
mainfrom
claude/site-build-unblock

Conversation

@ecropolis

Copy link
Copy Markdown
Owner

The library's half of unblocking superherotech.ai. The site's half, which is what actually lets Pages build again, is ecropolis/SuperheroTech#95.

Library main fails two of the site's checks. The library's own check doesn't run either of them, so it never saw the failures:

  • astro check, 1 error. At ImageEffects.astro:831, const Heading = \h${headingLevel}`is a plain string under the site's tsconfig, so won't type. It now gets the same cast as Tabs, Accordion and FlipBox (as 'h1' | 'h2' | 'h3', the levels headingLevel` allows).
  • check:us-english, 7 pages. The elements merged on 10-30 used centred, colour, grey, organisation and "forced colours". Fixed in catalog.ts, the photo-gallery demo's alt text, and the headers of call-to-action, logo-grid and image-effects. Identifiers and CSS custom properties are unchanged.

Proof. npm run check exits 0 here. The site's full npm run check chain exits 0 with this branch as ELEMENTS_SOURCE, together with SuperheroTech#95: astro check shows 0 errors and 0 warnings, and check:elements, check:us-english and check:datalayer all pass. The site's demo-heights.json records this commit (3a3d958) as the one it was measured against.

Merge order. Either order works. Merging this fires the Pages deploy hook. Until SuperheroTech#95 is on main, that build fails exactly as it does today (103 > 100 _headers rules), so merging this first changes nothing live.

#40 touches different lines of catalog.ts, so the two shouldn't conflict.

🤖 Generated with Claude Code

The site's astro check refused ImageEffects.astro:831: `h${headingLevel}`
is a string there, so <Heading> took no attributes. Cast it to the tags
headingLevel allows, the way Tabs, Accordion and FlipBox already do.

The elements merged on 10-30 put UK spellings on five site pages
(centred, colour, grey, organisation, forced colours). The site's
check:us-english reads built pages, so the library's own check never saw
them. Fixed in catalog.ts, the photo-gallery demo's alt text, and the
headers of call-to-action, logo-grid and image-effects. Identifiers and
CSS custom properties are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ecropolis
ecropolis merged commit a0146d7 into main Oct 31, 2026
2 checks passed
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