Skip to content

docs: sync docs with actual stack - #133

Merged
github-actions[bot] merged 1 commit into
mainfrom
docs/truth-sweep
Sep 4, 2026
Merged

docs: sync docs with actual stack#133
github-actions[bot] merged 1 commit into
mainfrom
docs/truth-sweep

Conversation

@catomean

@catomean catomean commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

Docs truth-sweep: every claim below was verified against repo ground truth (package.json, CI workflow, src/lib/bonus-codes.ts, src/lib/db/schema.ts, scripts/db/seed.ts) before editing. npm→pnpm and Prisma→Drizzle migration in the docs was already complete; the drift found was elsewhere.

README.md

  • Badges + tech-stack table claimed Next.js 15 / TypeScript 5 → package.json has next ^16.3.3, typescript ^6.0.3 → now 16 / 6
  • Prerequisites claimed "Node.js 18+" → engines.node >=20, CI runs Node 24 → now "20+ (CI runs on 24)"
  • Setup said cp .env.example .env.local → no .env.example exists (.env* is gitignored) → replaced with "create .env.local with …" comment
  • Claimed 30-day bonus expiry → getBonusExpiryDate() adds one calendar month → now "one-month"

.claude/CLAUDE.md

  • Tech table: Next.js 15 → 16
  • Bonus rules claimed "20% of repair cost (max CHF 50)" and "expire after 1 year" → calculateBonusAmount() returns fixed 100, expiry is one month → fixed
  • ShopCategory shown as a 10-value union → DB enum has exactly ELECTRONICS | CLOTHING | SHOES → fixed
  • "Default Users (After Seeding)" table (admin/customer logins) → scripts/db/seed.ts creates shops only, zero users → replaced with truthful Seed Data note
  • Insert example used amount: 50 and a nonexistent generateCode() → now uses the real helpers
  • Last Updated stamp → 2026-09-04

docs/how-it-works-implementation.md

  • Stack claim "Next.js 15 and React 18" → 16 / 19 (React ^19.0.0); header Last Modified updated per the doc's own standard
  • Its "30 Tage" statements were left alone: they accurately describe the page copy (Gültig für 30 Tage in src/app/how-it-works/page.tsx)

pnpm run format:check passes.

🤖 Generated with Claude Code

- README: badges + stack table Next.js 15/TS 5 -> 16/6 (package.json:
  next ^16.3.3, typescript ^6.0.3); Node 18+ -> 20+ (engines >=20, CI
  runs 24); drop `cp .env.example` (no such file, .env* gitignored);
  bonus expiry "30 days" -> one month (getBonusExpiryDate adds 1 month)
- .claude/CLAUDE.md: Next.js 15 -> 16; bonus rules were wrong (20% max
  CHF 50, 1-year expiry) -> fixed CHF 100, one-month expiry per
  src/lib/bonus-codes.ts; ShopCategory list of 10 -> actual 3-value DB
  enum; "Default Users (After Seeding)" table removed — seed.ts creates
  shops only, no users; insert example uses real helper names/amount
- docs/how-it-works-implementation.md: stack claim Next.js 15/React 18
  -> 16/19

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn
@github-actions
github-actions Bot merged commit 9e82af8 into main Sep 4, 2026
1 check passed
@github-actions
github-actions Bot deleted the docs/truth-sweep branch September 4, 2026 13:52
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