A lot of documentation still described the retired stack. Updated to ground truth:
prod DB = self-hosted Postgres 17 on Hetzner (Neon retired for prod+auth, single
DATABASE_URL pool); images on Cloudflare R2 (revampit-media); deploys via GitHub
Actions → rsync → systemd revampit-app (Vercel retired); nightly off-box backups
to R2 (revampit-backups). Rewrote DISASTER_RECOVERY.md and deployment.md for the
self-host flow, marked github-vercel-setup.md legacy, and added HISTORICAL banners
to point-in-time audit/architecture docs (DATABASE_AUDIT, AUDIT_REPORT, CODE_AUDIT,
guides/ARCHITECTURE, BACKEND_CONTENT_MANAGEMENT, hosting-migration-frauenfeld).
Surgical factual fixes to README, SHARED_CONTEXT, COMMANDS, MIGRATIONS,
ARCHITECTURE_DATABASE_BACKEND, system-integration, installation, MIGRATION_PLAN_QQQ5,
production-ready-checklist, and the docs index.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Autonomous design system gradient+shadow compliance pass (12+ fixes), SSOT error messages extension, DRY cleanup in donate tiers, stale it-hilfe legacy TODO investigated+closed, typecheck/lint verified clean.
RevampIT Code Audit Findings
⚠️ HISTORICAL SNAPSHOT. Some entries reference the retired Neon Postgres setup (e.g. "Neon cold start" fixes). Production is now self-hosted Postgres 17 on Hetzner; see docs/SHARED_CONTEXT.md. Findings are kept as a historical record.
Last Audit Date: 2026-06-01 (autonomous maintenance pass)
This document tracks code quality issues, security findings, and performance problems identified during code audits.
Replaced 12+ decorative bg-gradient-to-* (admin avatars, chatbot CTAs/FABs/headers, section heroes, about hero, suggestion headers) with flat semantic bg-primary-700 / bg-primary-500 / bg-neutral-500 per CLAUDE.md rules and DESIGN_TOKENS. Reduces dark-mode drift and maintains "color in focused moments only". One subtle suggestion hover tint left as non-decorative.
Design token SSOT enforcement
FIXED
Updated data/about.ts hero bg and multiple admin/team components to use palette solids instead of ad-hoc gradients.
API error message consistency (SSOT)
FIXED
src/app/api/donations/dropoff/route.ts: replaced hardcoded German success/error with English internal + ERROR_MESSAGES.INTERNAL_SERVER_ERROR. src/app/api/admin/certifications/[id]/verify/route.ts: now uses new CERTIFICATION_ALREADY_VERIFIED key (added to SSOT).
Error messages SSOT extension
FIXED
Added CERTIFICATION_ALREADY_VERIFIED to src/config/error-messages.ts (German, matching all other user-facing errors).
Verification: npm run typecheck clean; targeted ESLint on 15+ edited files passed with 0 warnings. No behavior changes, no email/payment paths touched.
Summary of Recent Fixes (2026-05-01)
Fix
Status
Details
Seller profile SEO metadata
FIXED
/sellers/[id]/layout.tsx added — generateMetadata + JSON-LD Person schema. Translation keys (techniker.seller.meta.*) added to de.json with deepMerge fallback.
Build is clean — no ignoreBuildErrors or ignoreDuringBuilds flags.
Always run npm run typecheck and npm run lint before commits.
Remaining TODOs
Low Priority
Voice transcription service is manual start (npm run transcription:start) — consider adding to docker-compose when Python deps are standardized
2026-06-01 update (autonomous investigation): "itHilfe Phase 2 legacy table" TODO appears stale. Current src/db/schema/itHilfe.ts and services.ts define only repairer_profiles + related (no legacy repairers/it_hilfe_repairers table in active schema). All references in src/ (reviews, technicians, offers, dashboard) already target repairer_profiles (via TABLE_NAMES.REPAIRER_PROFILES). The /api/repairers list route is an intentional thin proxy (with name remap) for backwards compat per its own header comment — not a migration artifact. No DB drop or query updates needed; removed from active tracking. Proxy deprecation would require user decision on external callers + migration plan.
Notes on img tags
BlogFeaturedGrid.tsx already uses next/image — stale TODO removed
ImageUploadGrid.tsx and ProductImageUpload.tsx use raw <img> for blob URL previews — this is correct (next/image cannot optimize blob: URLs)
Testing Coverage
Current Coverage: 7353 tests across 497 test suites (updated 2026-05-03)
API routes (src/app/api/**/tests/): 251/251 routes covered
All non-framework routes have dedicated test files
auth/[...nextauth] excluded (NextAuth boilerplate with no testable logic)
hirn/providers/groq, openrouter, ollama: require API keys
Integration tests: require live Neon DB connection
Summary of Recent Fixes (2026-05-02)
Fix
Status
Details
JSON-LD Product schema on shop product pages
FIXED
/shop/product/[uuid]/page.tsx now emits Product schema (name, brand, condition, price CHF, availability, seller org) + openGraph with image.
Wrong item_uuid alias in getInventoryProductByUuid
FIXED
WHERE i.item_uuid queried inventory_items (no such column). Fixed to WHERE p.item_uuid from ai_extracted_products. Product detail page was always 404-ing.
Sitemap shop product URLs used wrong UUID
FIXED
Sitemap used aiExtractedProducts.id (PK UUID) instead of aiExtractedProducts.itemUuid (I-YYMMDD-NNNN). Also added INNER JOIN inventory_items to only include products with published+in-stock inventory.