* docs: regenerate API documentation from src/app/api (329 routes) The generator only recognised `export async function GET`, so every route exported as a guarded const (`export const GET = withAdmin(...)`) or a destructured re-export was missing: the doc listed 116 endpoints, many of them since renamed or removed, against 329 route files today. Teach it the other two export shapes and the withAuth/withAdmin guards, and regenerate both copies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: archive dated audits, compliance trackers and migration proposals Moves point-in-time records into docs/archive/ (with a README saying they describe the day they were written): the 2026-01 dev-guide compliance plan, codebase audit, DRY/SSOT and Phase 1 fix logs, the 2026-02 overnight cross-project plan, the 2026-07-02 audit report, the 2026-07-06 Shopware migration plan and system migration strategy, and CODE_AUDIT.md. CODE_AUDIT.md was listed in .claude/CLAUDE.md, .gemini/GEMINI.md and docs/README.md as the current list of issues to fix while its own banner called it a historical snapshot; those entries now point at docs/AUDIT_BACKLOG_2026-08.md, the list of findings still open. docs/README also stops linking api/, legacy/ and reference/, which do not exist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: archive closed trackers and docs for removed code Into docs/archive/: ARCHITECTURE_DEBT (status CLOSED 2026-06-30), DATABASE_AUDIT (Neon, pre-cutover), UPGRADE_PLAN (2026-06-03 snapshot; Tailwind 4 and React 19 are done), MIGRATION_PLAN_QQQ5 and PROFILES_SSOT_PLAN (both executed: migrations 105 and 121/122), production-ready-checklist (Frauenfeld plan that never shipped), and three docs whose code is gone: PROJECT_PAGES_GUIDE (src/components/projects and the per-project pages, now one [slug] route), RevampCopilot (no src/features/chatbot) and projects/upcycling (the /projects/upcycling pages and businessPlan messages are no longer in the tree). Inbound references follow the move, including three code comments. SHARED_CONTEXT and COMMANDS stop describing the upcycling mini-site as live; COMMANDS drops db:migrate-users, which is not a script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: correct live docs against the tree - BLOG_SYSTEM: rewritten from the code. There is no TinaCMS and no content/submissions; posts merge content/posts/*.md with blog_posts, and submissions are blog_submissions rows reviewed by staff. - installation guide: rewritten. There is no cms-api, no docker-compose.dev.yml and no default admin password; setup is services:up, db:migrate, setup-admins, dev. - RELIABILITY: migration 005b (not 005), no ENABLE_CMS gate, prod facts. - RESPONSIVE_DESIGN_SYSTEM: ResponsiveSection/Hero/Heading were removed; document Section, PageHero and Heading instead. - DEAD_CODE: the /api/repairers and /api/it-hilfe/helpers proxies and the routes.helpers alias are deleted, not 410; fix a stale line range. - DEV_GUIDE, AGENTS, claude/cursor/gemini guides, .cursorrules: DEVELOPMENT_GUIDELINES.md never existed here; protected files are in .claude/CLAUDE.md. src/config/site.ts -> org.ts/urls.ts; Next.js 16. - src/middleware.ts -> src/proxy.ts; components/ui/Button.tsx -> src/components/ui/button.tsx; reference page paths. - docs-paths baseline 68 -> 6, as the check asks when the count falls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs: fix dead links in package and example READMEs ai-native-cms-core linked a Next.js plugin, a CLI and docs/quick-start.md that do not exist in this repo; ai-native-cms-react has no README; the saldo README pointed at the repo root instead of the implementation in src/lib/team/saldo.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD --------- Co-authored-by: Claude <noreply@anthropic.com>
3.3 KiB
Dead Code Inventory
Created: 2026-06-07
Last Modified: 2026-06-19
Last Modified Summary: Removed service-booking orphan; documented live pay path
Code that has zero importers in src/ and is a candidate for removal in
a future cleanup PR. Listed here instead of deleted because the team
hasn't signed off on a bulk deletion yet (NNN.3, June 2026).
Re-verify before deleting — orphan status can change if a feature is turned back on.
Verified orphaned (last checked: 2026-06-15)
~Payment / service-booking flow (590 lines) — REMOVED 2026-06-19
Was orphaned: service-booking/ UI, CurrencySelector, book-with-payment API,
useCustomerBookings. Live service payment path is book via POST /api/appointments,
then pay via POST /api/appointments/[id]/pay from /dashboard/appointments/[id].
Routes SSOT: src/config/service-appointments.ts.
~Onboarding info page (330 lines) — REMOVED 2026-06-15
Was: OnboardingInfoPage.tsx + config/onboarding.ts. Deleted; live
onboarding is OnboardingChecklist on /dashboard.
Seller-applications Drizzle block (~50 lines)
The schema file itself marks this DEPRECATED, UNUSED (per migration
031, which made seller profiles auto-created instead of going through an
application step). The live DB table can stay; only the Drizzle reference
is dead.
src/db/schema/marketplace.ts(the "SELLER APPLICATIONS — DEPRECATED, UNUSED" block) —sellerApplicationstable +SellerApplication+NewSellerApplicationtype exports
Note: keep the email template adminNewSellerApplication —
that's a different thing and is still in use.
Misc enum values
REPAIRER_AVAILABILITY_TYPE.BLOCKEDinsrc/config/repairer-status.ts— defined but never referenced.
Technician API proxies + singular /helper/ routes (QQQ.3) — 410 Gone (2026-06-19)
The two list proxies have since been deleted outright; their successors are
/api/technicians?tier=professional (was /api/repairers) and
/api/technicians?tier=community (was /api/it-hilfe/helpers). The
/api/repairers/[id]/ per-resource routes are gone too: technicians are read
through src/app/api/technicians/[id]/route.ts.
The singular /helper/ routes below still exist and return 410 Gone via
src/lib/api/deprecated-endpoint.ts with Link: rel="successor-version":
src/app/api/it-hilfe/helper/my-offers/route.ts→ use/api/it-hilfe/my-offerssrc/app/api/it-hilfe/helper/matching-requests/route.ts→ use/api/it-hilfe/requests?matchMySkills=true— removed; useIT_HILFE.api.helpersIT_HILFE.api.technicians/technician(id)— renamed toIT_HILFE.routes.helpersroutes.techniciansinsrc/config/it-hilfe.ts; the one-release alias has since been removed
Removed 2026-06-23
src/components/technicians/— deleted; it was a duplicate TechnicianCard (zero importers; live card atsrc/app/[locale]/it-hilfe/techniker/TechnicianCard.tsx)
Possibly orphaned, not yet reverified
How to re-verify before deletion
# Replace SYMBOL with the export name.
grep -rn "from '@/components/payments/service-booking'\|ServiceBookingPayment" src
# For a whole directory:
grep -rn "components/payments/service-booking" src
A directory is safe to delete when both queries above return nothing outside the directory itself.