Skip to content

Website content v2, redesign bug fixes, and Playwright test suite - #2

Merged
AnselmJo merged 1 commit into
mainfrom
website-content-v2-and-improvements
Aug 5, 2026
Merged

AnselmJo merged 1 commit into
mainfrom
website-content-v2-and-improvements

Conversation

@AnselmJo

@AnselmJo AnselmJo commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements the remaining prompt-website-content-v2.md scope plus verified bugs from the redesign brief, and fixes several issues found during manual/user testing.

Content v2

  • Hero subhead, new "Deine Daten bleiben bei dir" section (CSS-only flow diagram), trimmed trust bar
  • Feature cards regrouped into Verstehen/Planen/Vorausdenken + Steuererklärung scenario paragraph
  • Annotated dashboard screenshot (4 native <details>/<summary> markers, no JS)
  • Strengthened open-source section, "Für wen"/"nicht für dich" section, FAQ expanded to 7 questions
  • New /datenschutz page (data table + network-call disclosure), linked from the footer only

Verified bugs from the redesign brief

  • Centralized the GitHub repo reference in src/lib/repo.ts (was hardcoded to the wrong org in Hero/Header/Footer/README) and fixed the org itself
  • /windows /macos /linux are now thin <meta http-equiv="refresh"> redirects to /download#anchor instead of duplicating all install content
  • Fixed a duplicate id="download" (Hero + DownloadButtons) that produced invalid HTML and broke anchor scrolling — found by the new test suite

Follow-up fixes from testing

  • Footer GitHub stats were refetching the API 3x per page × 6 pages per build, which burns through the unauthenticated rate limit fast (hit this during dev). Memoized into src/lib/github-stats.ts so it fetches once per build/dev process.
  • /download page tabs referenced a non-existent rounded-klein Tailwind class plus a legacy !important override, producing an unstyled, cramped layout. Rebuilt as a proper pill tab-switcher with glass-card panels; removed the dead CSS override and the unused legacy tailwind.config.mjs (Tailwind v4 uses the CSS-based @theme in global.css instead, so the JS config was never actually loaded).
  • Hero rotating example replaced with a small vanilla-JS typewriter effect (delete-and-retype, 8 well-known example transactions), after confirming no suitable off-the-shelf library exists — the popular ones (Typed.js, TypeIt) are GPL-3.0 and would conflict with this repo's MIT license; the MIT alternative requires React. Reduced-motion users get an instant hard-cut swap instead of per-character animation.
  • Removed 8 dead CSS files and an unused FeatureCard component that were never imported anywhere.

Testing
Added a Playwright smoke-test suite (21 tests) covering navigation/anchors, OS redirects, the FAQ accordion, download tabs + copy button, footer stats structure, and the typewriter effect's typing/deleting/cycling/reduced-motion behavior. Wired into CI: a new ci.yml runs it on PRs, and a test step runs before deploy in deploy-website.yml so a broken build never ships.

Test plan

  • npm run build succeeds
  • npm test (21 Playwright tests) passes locally
  • Manually clicked through all pages in the browser preview (hero, trust bar, data-privacy section, features, screenshots with markers, open-source section, für-wen, FAQ, /download tabs on all 3 OS, /datenschutz, OS redirects)
  • Live GitHub Actions run (CI + deploy) after this PR is opened
  • GitHub stats footer should be spot-checked on the deployed site — this session's sandbox IP was rate-limited by repeated local testing, so it couldn't be visually confirmed with real numbers here (the fix reduces future rate-limit risk regardless)

Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com

Implements the remaining content-v2 prompt (subhead, data-privacy section,
grouped features, annotated screenshot, open-source/for-whom sections, 7-item
FAQ, /datenschutz page) plus the verified bugs from the redesign brief:
centralizes the GitHub repo reference (was hardcoded to the wrong org in
several places), turns /windows /macos /linux into thin redirects to
/download#anchor instead of duplicating content, and fixes a duplicate
id="download" that broke anchor scrolling.

Also addresses issues found during manual + user testing:
- Footer GitHub stats were refetching the API 3x per page x 6 pages per
  build, burning through the unauthenticated rate limit; memoized into
  src/lib/github-stats.ts so it fetches once per build/dev process.
- /download page tabs used a non-existent `rounded-klein` Tailwind class and
  a `!important` legacy override, producing a cramped, unstyled layout;
  rebuilt as a proper pill tab-switcher with glass-card panels, removed the
  dead `!important` CSS and the unused legacy tailwind.config.mjs (Tailwind
  v4 uses the CSS-based @theme in global.css instead).
- Hero rotating example replaced with a small vanilla-JS typewriter effect
  (delete-and-retype, 8 well-known example transactions) after establishing
  that no suitable off-the-shelf library exists (Typed.js/TypeIt are
  GPL-3.0, conflicting with this repo's MIT license; the MIT alternative
  requires React). Reduced-motion users get an instant hard-cut swap
  instead of per-character animation.
- Removed 8 dead CSS files and an unused FeatureCard component that were
  never imported anywhere.

Adds a Playwright smoke-test suite (21 tests) covering navigation/anchors,
redirects, the FAQ accordion, download tabs and copy button, footer stats
structure, and the typewriter effect's typing/deleting/cycling/reduced-motion
behavior - wired into CI (new ci.yml for PRs, test step in the deploy
workflow) so these regressions are caught automatically going forward.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@AnselmJo
AnselmJo merged commit d65c911 into main Aug 5, 2026
1 check passed
@AnselmJo
AnselmJo deleted the website-content-v2-and-improvements branch September 3, 2026 20:51
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