Skip to content

feat(compare): read version upgrade pages as before and after - #331

Merged
matschik merged 8 commits into
mainfrom
feat/version-upgrade-pages
Nov 21, 2026
Merged

matschik merged 8 commits into
mainfrom
feat/version-upgrade-pages

Conversation

@matschik

Copy link
Copy Markdown
Owner

Requested by Mathieu · project thread

  • docs: spec version upgrade pages (plus its review pass): docs/superpowers/specs/2026-11-18-version-upgrade-pages-design.md.
  • feat(compare): show upgrade pairs from the older version to the newer one. The 6 pages that compare 2 versions of one framework (Svelte, Vue, Angular, Ember, Solid, Aurelia) and the footer go old → new (/compare/solid1-vs-solid2/). Each version names its family; orderPair sorts an upgrade pair by release date. The former newer-first URLs 301; every OG image published so far stays available from an explicit snapshot (src/lib/legacyOgSlugs.ts).
  • feat(compare): compute at build which lines change between 2 versions of a framework. build/lib/upgradeDiff.ts pairs files by name, then by base name (Ember .hbs + .js → .gjs), and writes src/generatedContent/upgradeDiffs.js.
  • feat(compare): read upgrade pages as before and after. "Upgrade from X to Y" heading with the count of changed examples and the official migration guide (Svelte, Vue, Solid, Aurelia); "Changed" / "Unchanged" label per example; an unchanged example shows its code once with both playground and edit links; removed lines tinted red on the left, added lines green on the right; the menu dims unchanged examples. Any other selection shows the plain comparison.
  • fix(compare): regenerate upgrade diffs on new inputs, keep both edit links.
  • fix(compare): call an example unchanged only when its files match byte for byte.
  • fix(compare): 404 the newer-first upgrade URLs in dev, pair file base names of any case.

Checks: vp test (51), check:ci, build; every /compare/* page and /og/*.png of the previous build still answers (page, 301 or file); captures read at 1440x900 and 390x844; footer top below the first screen at both sizes; adding React to the selection removes every label and tint. Codex review: 4 passes, last one clean.

… one

The 6 pages that compare 2 versions of one framework now put the older
release on the left: /compare/solid1-vs-solid2/ and so on. Each version
names its family, orderPair sorts an upgrade pair by release date, and
redirects follow canonicalPairs, so the former newer-first URLs 301. The
OG images published so far stay available from an explicit snapshot. The
footer lists Ember with the other upgrade pairs.
On the 6 pages that compare 2 versions of one framework, each example
shows whether it changed. An unchanged example shows its code once, with
both playground links; a changed one tints removed lines in the older
column and added lines in the newer one. The heading reads "Upgrade from
Solid 1 to Solid 2", counts the examples that change and links the
official migration guide when there is one. The menu dims unchanged
examples. Any other selection shows the plain comparison.
@matschik matschik self-assigned this Nov 21, 2026
@matschik
matschik merged commit e50f4e3 into main Nov 21, 2026
2 checks passed
@matschik-usine
matschik-usine Bot deleted the feat/version-upgrade-pages branch November 22, 2026 10:59
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