Commit Graph
4 Commits
Author SHA1 Message Date
894b203602 docs: sync docs with actual stack (#447)
Docs truth-sweep against ground truth (package.json, CI workflows):
- npm → pnpm across evergreen docs (pnpm 11.25.0 is the package manager;
  npx tsx → pnpm exec tsx, npx ts-prune/jscpd → pnpm dlx, npm ci →
  pnpm install --frozen-lockfile, package-lock.json → pnpm-lock.yaml)
- Jest → Vitest in README, CONTRIBUTING, COMMANDS (vitest 4 is installed)
- Node claims: README 20+ → 22.13+ (engines) with CI/deploy on 24;
  deployment.md "Setup Node 20 (npm cache)" → Node 24 (pnpm cache), and
  the pipeline line now shows `pnpm run verify` as CI actually runs
- TypeScript 5.x claims → 6 (typescript ^6.0.3); Next.js 14 → 16 in
  BLOG_SYSTEM, guides/ARCHITECTURE, AI_BOT_SYSTEM_PROMPT
- COMMANDS.md: dropped nonexistent `dev:cms` script; services list fixed
  to db/meilisearch/listmonk (no redis in compose)
- HR_RUNBOOK: `npm run test -- src/…` → `pnpm run test src/…` (pnpm
  passes args without the `--` separator)

Historical records (docs/archive/**, dated audit reports, UPGRADE_PLAN)
left as-is — they describe what was true when written.


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 15:01:39 +00:00
G 3b7f7d450f feat(admin): language switching + compact stats strip (#211)
Admin now follows the NEXT_LOCALE cookie (was hard-pinned to German); LocaleSwitcher in the admin top bar + mobile user menu pills; sidebar/bottom-nav/command-palette section labels localized in all 8 locales via admin.sections with a config↔de.json parity test. AdminStatsGrid card wall replaced by a compact AdminStatsStrip (same quick-filter API) so list pages show actual content above the fold on mobile; DonationStatsCards consolidated onto the shared strip; dead marketplace StatsCard removed.
2026-07-16 09:20:45 +02:00
Mao NakamotoandClaude Opus 4.7 a3228567d1 feat(design+infra): land Phase P/Q/R/S/T — design refinement (x.ai aesthetic, RevampIT colors); npm tier-1 update; i18n:apply companion; TimecardsClient extraction; upgrade-plan revision
Phase P (design):
- Heading: new "display" variant (text-4xl→8xl, tracking-tighter, leading-[1.05]) for billboard-sized hero headlines while keeping "site"/"admin" scales unchanged — three opt-in scales, never duplicate hardcoded
- PageHero: optional icon (omit when a badge over a massive headline becomes noise), opt-in size="display" with breathing-room py-20→py-36, removed decorative accent line (x.ai: headline does the work, never the chrome)
- Section: new SSOT primitive (density: compact/default/spacious + tone: surface/tinted/inverse) — eliminates the py-12 sm:py-16 hardcoded scatter; pages adopt incrementally
- Applied on homepage hero (display, no icon) and /transparenz/co2 (PageHero + Section throughout)

Phase Q (Tier 1 deps):
- npm update bumped patches/minors per docs/UPGRADE_PLAN.md Tier 1 (next 16.2.7, @auth/pg-adapter, @playwright/test, framer-motion, jest, next-intl, nodemailer, pg, postcss, zod, ioredis, lru-cache, tailwind-merge, others)
- Puppeteer 24.43 dropped 'networkidle0' from setContent waitUntil type — switched to 'load' (correct gate for inline-HTML invoice generation, no external requests)

Phase R (i18n):
- New scripts/i18n-apply.mjs: reverse-merge translator output (messages/_missing/<locale>.json with filled-in translations) back into messages/<locale>.json — safe by design (never overwrites existing non-empty values; surfaces conflicts when existing differs from candidate; skips empty/whitespace translations so partial returns work)
- npm run i18n:apply <locale>
- TRANSLATION.md updated with the apply workflow

Phase S (Phase L done right):
- TimecardsClient.tsx 669 → 635 lines — extracted types (PeriodMode, TimecardAIResult, DraftState) to src/app/admin/timecards/types.ts and pure helpers (createDraft, toDraftState) to draft-utils.ts; no behavior change, no state moved (state stays bound to the only consumer; testable in isolation); removed unused TimecardStatus import

Phase T (upgrade investigation):
- Discovered next-auth@5.0.0-beta.31 + recharts both already declare react ^19 in peerDeps — UPGRADE_PLAN's "wait 1-2 weeks for ecosystem" was overly cautious; updated to "upgradable now" with concrete branch-effort estimate
- No actual upgrade in this commit — that's a dedicated branch with smoke testing

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 16:18:55 +02:00
Mao NakamotoandClaude Opus 4.7 36234fb346 feat(mission+infra): land Phase J/M/N/O — surface live impact on /shop + /marketplace via shared <MissionStrip> ("Jeder Kauf hält ein Gerät aus dem Müll" + live devices-rehomed + CO₂-avoided stat with methodology link, server-component reusing the same fetchImpactStats helper as ImpactStatsSection so the homepage stat / methodology page / commerce strip never drift apart); wire Sentry inert-until-DSN (src/instrumentation.ts + sentry.server.config.ts + sentry.edge.config.ts; @sentry/nextjs installed; SENTRY_DSN added to src/env.ts schema as optional; zero bundle impact / zero startup cost when DSN absent); generate i18n translator inventory (npm run i18n:missing emits per-locale messages/_missing/<locale>.json with the 1334 missing keys broken down by namespace; docs/TRANSLATION.md explains workflow, priority queue, and why machine-translation is the wrong tool); document dependency upgrade plan (docs/UPGRADE_PLAN.md — Tier 1 safe-today, Tier 2 React 19 + TS 6 + ESLint 10 dedicated branch, Tier 3 Tailwind 4 wait-for-ecosystem); remove obsolete @types/puppeteer (puppeteer 24+ ships own types); explicitly deferred TimecardsClient refactor (Phase L) — 669-line component with no tests, low mission value, refactor risk outweighs benefit until test coverage exists
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-03 15:39:46 +02:00