Skip to content

fix: write the footer brand credit as WebJs, not lowercase - #1191

Merged
vivek7405 merged 1 commit into
mainfrom
fix/footer-brand-casing
Jul 30, 2026
Merged

fix: write the footer brand credit as WebJs, not lowercase#1191
vivek7405 merged 1 commit into
mainfrom
fix/footer-brand-casing

Conversation

@vivek7405

Copy link
Copy Markdown
Collaborator

Summary

  • The site footer rendered "Built with webjs". Invariant 11 capitalizes the brand wherever it names the project in prose, so this should read "Built with WebJs".
  • The footer renders on every page, making this the most-viewed instance of the name written wrongly, and it contradicted the scaffold, which already emits the capitalized form (packages/cli/lib/create.js L1384).
  • Added an SSR regression test. The edit-time hook that enforces casing only scans NEW content, so a string already in the tree is never re-checked and CI has no equivalent, which is how this survived.

Test plan

  • Counterfactual verified: reverting the source line fails the new test on the brand-casing assertion specifically
  • Test also pins the /compare/webjs-vs-* hrefs as lowercase, so a later over-eager fix cannot "correct" url paths and break those links
  • grep -rn "Built with webjs" returns no hits outside node_modules
  • webjs check clean, full website suite passes

Closes #1190

Invariant 11 capitalizes the brand wherever it names the project in
prose, reserving the lowercase form for literal code tokens (a CLI
command, the domain, an @webjsdev package, a config key, an env var).
The footer credit was prose, so it should always have read "Built with
WebJs". It renders on every page, which made it the most-viewed instance
of the name written wrongly, and it contradicted the scaffold, which
already emits the capitalized form (packages/cli/lib/create.js L1384).

Add the SSR assertion alongside it. The edit-time hook that enforces
casing only scans NEW content, so a string already in the tree is never
re-checked and CI has no equivalent, which is exactly how this survived.
The test also pins the comparison hrefs as lowercase, so a later
over-eager fix cannot "correct" the url paths and break those links.

Counterfactual verified: reverting the source line fails the new test on
the brand-casing assertion specifically.

Closes #1190
@vivek7405
vivek7405 marked this pull request as ready for review July 30, 2026 10:13
@vivek7405
vivek7405 merged commit afb91e8 into main Jul 30, 2026
19 of 20 checks passed
@vivek7405
vivek7405 deleted the fix/footer-brand-casing branch July 30, 2026 10:16
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.

fix: footer says "Built with webjs", should be "Built with WebJs"

1 participant