- **SSOT**: CATEGORY_LABELS renamed to scoped names (SERVICE_CATEGORY_LABELS,
MARKETPLACE_CATEGORY_LABELS) to prevent collision; REVIEW_STATUS_CONFIG,
LOCATION_STATUS_CONFIG, WORKSHOP_*_OPTIONS moved to their config files
- **DRY**: Extract generateSelector() to lib/utils/element-selector and
submitSuggestionToAPI() to lib/api/submit-suggestion; both feedback
feature trees now share these utilities
- **DRY**: Extract callAnalyzeProductAPI() to lib/api/ai-product-analysis;
useAIProductAnalysis and useProductAnalysis share the API call
- **SSOT**: FeedbackScope type and SCOPE_CONFIG moved to src/config/feedback-scopes;
floating-ui and feedback feature trees both import from there, eliminating
duplicate type definitions and hardcoded scope arrays
- **Rate limiting**: Add rateLimiters.listingBrowse to /api/workshops and
/api/technicians (previously missing on public listing endpoints)
- **Auth error map**: Replace switch/case in LoginForm with a lookup table
- Fix typecheck errors introduced by renames
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Test coverage section was stale (2581/92 → 7353/497). Rewrote the
Testing Coverage section to reflect the full API route coverage sprint
and all lib/config/schema test suites added since 2026-05-01.
Also tracks cms-api source files (Dockerfile, auth utility, migration)
that were untracked since the CMS backend was scaffolded.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaces stale 608/35 figures with current numbers and enumerates all
covered test areas by module.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Adds src/app/sitemap.ts covering all 7 locales × public static pages,
published blog posts, active workshops, and approved shop products
- Removes public/sitemap.xml which included admin/auth/dashboard paths
that should not be indexed, and had no locale variants
- De defaults to no prefix (as-needed), fr/en/it/es/ja/ko get /<locale>/
- Each section has independent error handling so one DB failure doesn't
break the whole sitemap
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Document that TABLE_NAMES constants must use sql.raw() when interpolated
inside Drizzle's sql`` template tag (plain strings are parameterized as
bound values, which is invalid in SQL identifier positions like FROM/INTO).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- services/data.ts: strip all hardcoded German strings; add ServiceConfig
with key + categoryKey fields. Service type becomes ServiceConfig +
translated fields, built at runtime in page.tsx.
- services/page.tsx: use useTranslations('services.catalog') + .raw() to
hydrate services from translations; build filter labels from services.page
translations; schemaType now uses actual translated service titles.
- FilterableSection: add 'use client' and useTranslations('common') to
eliminate hardcoded "Alle" allLabel, "Filter zurücksetzen" reset button,
and "{n} von {m} Ergebnissen" results count.
- messages/*.json (all 7 locales): add services.catalog.{computerRepair,
dataRecovery, hardwareRecycling, webDesign, linuxOpenSource,
openSourceSolutions, buildYourComputer} with title/description/features/
highlight/pricing; add services.page.categoryLabels + filterByCategory;
add common.resetFilters + common.resultsCount.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Footer: wrap Öffnungszeiten, Mo/Di-Fr hours, and Transparenz link in t() calls
— these appeared on every page in every locale as hardcoded German
- space/page.tsx: use OPENING_HOURS from org.ts instead of hardcoded '9-12 | 13-17'
(SSOT fix — the hardcoded times also didn't match the actual org hours)
- MobileMenu: add LocaleSwitcher to footer so mobile users can switch locale
(previously locale switching was desktop-only)
- Add footer.openingHours, openingHoursMonday, openingHoursTueFri, transparency,
and nav.language keys to all 7 locale files (de/fr/en/it/es/ja/ko)
- ImpactStatsSection: fetch live stats from DB at render time instead of static
estimates; falls back to org-numbers defaults if DB is unavailable
- New /api/stats/impact route: computes real device counts and CO2 savings
by category using co2-impact.ts Fraunhofer IZM methodology
- AUDIT_REPORT.md: full 6-phase audit report (8.3/10 overall)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6-phase audit covering first principles, best practices, mission
alignment, functional correctness, UI/UX, and improvement roadmap.
Key findings: 2 critical payment bugs fixed this session, Subscription
Exchange remains the only unimplemented mission pillar, 10 god
components still need decomposition.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Phase 1 — IT-Hilfe ↔ Repairer unification:
- Add repairer_profile_id to it_hilfe_offers (soft FK to repairer_profiles)
- New API: GET /api/repairers/[id]/matching-requests (skill-based matching)
- New MatchingRequestsTab component on repairer detail pages
- IT-Hilfe offers now display repairer profile info (verified badge, rating)
- Repairers can see and respond to matching IT-Hilfe requests
Phase 2 — Erfassung vs Intake audit:
- docs/ERFASSUNG_INTAKE_AUDIT.md: full overlap analysis and consolidation plan
- Erfassung = AI-powered capture, Intake = checklist pipeline
- Recommended: merge into single pipeline with AI as optional first step
- Update codebase audit report with latest findings
- Refactor repairer application approval route to Drizzle ORM
- Fix marketplace page and ReviewForm minor issues
- Fix rate-limiter test flakiness with timer mocks
- Update jest.setup.js for test stability
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Mark completed items: CSRF bypass (already fixed), failing test
(fixed), rate limiting (already existed), section auth (already
existed), dead code deletion, status string SSOT (~50 replaced),
Zod validation (~55 routes), img->Image migration (6 of 8),
7 god component decompositions. Score improves from 6.5 to ~7.8.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Apply Zod validation imports and status config imports across
remaining page components (admin approvals, decisions, locations,
protocols, workshops, blog, dashboard, IT-Hilfe, marketplace).
Delete unused MarketplaceCheckoutForm. Update audit report with
current findings and scores.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove all Medusa-specific documentation (MEDUSA_*.md, SETUP_*.md,
README_MEDUSA.md, AI_AGENT_QUICK_REFERENCE.md, REVAMPIT_SHOP_*.md).
Update remaining docs, README, AGENTS.md, CLAUDE.md, env examples,
sitemap, and agent config files to reflect the simplified architecture
without Medusa dependency. Replace Medusa.js with WooCommerce in
service offerings documentation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Create paginatedQuery() using COUNT(*) OVER() window function to
combine data + count into a single DB round-trip
- Migrate 9 high-traffic API routes from 2-query to 1-query pagination
(listings, it-hilfe/requests, repairers, reviews, admin/users,
admin/donations, admin/reviews, admin/inventory, admin/workshops)
- Add Dockerfile and docker-compose entry for voice transcription
service (faster-whisper Flask server on port 5111)
- Update test mocks for paginatedQuery in IT-Hilfe tests
- Mark Phase 5 as complete in development plan
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
All phases substantially complete except E2E testing (Phase 3).
49 commits ahead of origin/main, all quality gates passing.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Increase Neon connection timeout from 5s to 10s for cold starts
- Increase retry delays from [100,300]ms to [500,1500]ms
- Preserve query params in middleware callbackUrl redirects
- Add 60s TTL cache to AI provider config (was querying DB every call)
- Add 5-minute TTL to user columns cache (was never invalidating)
- Update CODE_AUDIT.md with all recent fixes and test coverage
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add EditHistoryEntry type and edit tracking fields to WorkshopProposal
- Add reviewer_name and editor_name to WorkshopProposalWithProposer
- Fix type assertions in API routes (currentProposal as WorkshopProposal)
- Fix optional property access in EditProposalModal and EditSubmissionModal
- Fix Heading import (default vs named export)
- Add null checks in test file
- All typechecks now pass
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Fundraising and business documentation now lives exclusively in
Nextcloud (Revamp-Hirn) as the SSOT. The dev repo keeps only
technical docs (api-documentation.md, database-schema.md).
Removed: Hirn methodology, Digital Brain presentations, fundraising
gap analysis, content strategy docs, templates, and related files.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add koyeb.yaml for one-click deployment
- Update docs with Koyeb as primary free option
- Keep self-hosted as alternative
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add docker-compose.prod.yml for server deployment
- Add deploy.sh helper script
- Update docs with step-by-step free deployment
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Phase 1 & 2 of architecture improvement plan complete:
Repository Layer:
- Add base repository with query/transaction helpers
- Add repairer repository (N+1 fix: 101→1 query)
- Add helper repository (N+1 fix: 76→1 query)
Unified Permissions:
- Create compatibility layer for dual auth systems
- Migrate all admin routes to hasAdminAccessUnified()
- Support both old role and new is_staff systems
- Prevent staff lockouts during migration
Service Layer:
- Extract payment webhook logic to PaymentService
- Reduce webhook route from 419→129 lines (69%)
Files migrated to unified auth:
- middleware/admin-access.ts, middleware/admin.ts
- api/admin/products, api/repairer/dashboard, api/seller/dashboard
- api/payments/webhook
- dashboard/page.tsx, dashboard/seller/*
- config/dashboard.ts
Also fixes pre-existing typecheck error by adding config/registration.ts
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Peer Repair Marketplace ("Uber for repairs"):
- Create database migration for peer_repair_requests and peer_repair_offers tables
- Add API routes for requests, offers, and acceptance flow
- Build browse, create, and detail pages for repair requests
- Implement my-requests and my-offers dashboard pages
- Add peer-repairs config with categories, skills, and budget types
HIRN Admin Dashboard:
- Add financial data visualization with yearly income charts
- Create kennzahlen (KPIs), transparenz, and wirkung pages
- Implement data loading utilities and TypeScript types
- Add comprehensive documentation and presentation materials
Supporting changes:
- Update navigation config with new routes
- Add useMediaQuery hook for responsive layouts
- Extend constants with new configuration values
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Wrap FilterBar and ComparisonCard with React.memo to prevent
unnecessary re-renders when parent components update
- Update CODE_AUDIT.md to reflect all recent fixes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updated vulnerable packages where possible.
Some vulnerabilities remain due to next-contentlayer peer dependency conflicts.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix UserMenu buttons to show immediately without waiting for session check
- Update password validation to enforce 12 character minimum
- Add database connection error handling in auth routes
- Improve session provider configuration for non-blocking session checks
- Add graceful error handling for slow local database connections