docs: sync docs with actual stack - #133
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
next ^16.3.3,typescript ^6.0.3→ now 16 / 6engines.node >=20, CI runs Node 24 → now "20+ (CI runs on 24)"cp .env.example .env.local→ no.env.exampleexists (.env*is gitignored) → replaced with "create .env.local with …" commentgetBonusExpiryDate()adds one calendar month → now "one-month".claude/CLAUDE.md
calculateBonusAmount()returns fixed 100, expiry is one month → fixedShopCategoryshown as a 10-value union → DB enum has exactlyELECTRONICS | CLOTHING | SHOES→ fixedscripts/db/seed.tscreates shops only, zero users → replaced with truthful Seed Data noteamount: 50and a nonexistentgenerateCode()→ now uses the real helpersdocs/how-it-works-implementation.md
^19.0.0); header Last Modified updated per the doc's own standardGültig für 30 Tagein src/app/how-it-works/page.tsx)pnpm run format:checkpasses.🤖 Generated with Claude Code