mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-05 18:39:25 +01:00
/auth/login, /auth/register and /auth/forgot-password are AccountKit's forms: password, passkey, an email sign-in link, recovery, Sign in with OrangeCat and the shared bitbaum sign-in, each when its env is set. /dashboard/security carries AccountKit's account panel (password, passkeys, two-step sign-in, linked sign-ins, deletion). compat passes screens: 'accountkit' (AccountKit 0.20). AccountKit is the only credential writer. evig's /api/auth/register, forgot-password, reset-password and verify-email and /api/user/change-password are removed: they shadowed AccountKit's endpoints of the same names. Kept, as AccountKit hooks or evig's own code: the per-account lockout, the 6-digit address code (it replaces AccountKit's confirmation mail), IT-Hilfe's claim link (now an AccountKit reset token, old links honoured), the team invitation claim, the HR hire, staff permissions and referral credit. Deletion is refused for a super admin and for a person on kept records. Migration 143 (additive, idempotent) makes the panel's rename and deletion reach users. The e2e job imports the seeded accounts before the journeys and runs a browser journey through every method, with mail caught by a sink. Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9 Co-authored-by: Claude <noreply@anthropic.com>
Documentation
Curated reference for engineers, operators, and contributors. Everything in this folder is meant to stay reasonably current — point-in-time work logs, incident reports, and superseded plans live under archive/.
Getting started
- SHARED_CONTEXT.md — tech stack, database, file layout
- COMMANDS.md — every npm script and what it does
- BEST_PRACTICES.md — engineering standards (logger, TABLE_NAMES, parameterized queries, Swiss-German rules)
- ARCHITECTURE_QUICK_START.md — the 10-minute architecture orientation
Architecture
- ARCHITECTURE_DATABASE_BACKEND.md — schema, Drizzle ORM, query patterns
- DATABASE_SCHEMA.md — the canonical schema reference
- UNIFIED_AUTH.md — Auth.js v5, JWT sessions, verify-code, shared admin login
- HIRN_AI.md — the in-house AI knowledge / action system
- API_DOCUMENTATION.md — every route under
src/app/api/, generated byscripts/hirn-ingest-api-routes.ts(rerun it after adding routes)
Product surfaces
- FEATURE_INVENTORY.md — 155-item feature/route audit matrix (living SSOT)
- BLOG_SYSTEM.md — content pipeline + approval flow
- Project pages — one dynamic route,
src/app/[locale]/projects/[slug]/page.tsx, driven bysrc/config/evig-projects.ts - SERVICE_PAGES_GUIDE.md — paid service pages
- ADMIN_QUICK_REFERENCE.md — admin surface tour for staff
- AI_BOT_SYSTEM_PROMPT.md — retired. It was Revamp-IT's shop bot, not evig's. Do not load it.
Design
- DESIGN_SYSTEM.md — CSS-variable SSOT, semantic Tailwind, dark-mode behavior
- RESPONSIVE_DESIGN_SYSTEM.md — mobile-first responsive primitives in
src/lib/responsive.ts
Operations
- MIGRATIONS.md — canonical migration path (
scripts/db/migrations/), naming, idempotency rules, applied to the prod self-hosted Hetzner Postgres on deploy (tracked inschema_migrations) - EMAIL_SETUP.md — Listmonk + Brevo configuration
- RELIABILITY.md — uptime expectations, on-call practices
- AUDIT_BACKLOG_2026-08.md — audit findings still open (the older
CODE_AUDIT.mdlist is inarchive/) - LEGAL_NONPROFIT_COMPLIANCE.md — Swiss-Verein legal posture, data handling
Mission
- MISSION_STATEMENT.md — why this codebase exists
- CODE_OF_CONDUCT.md — community norms
Subdirectories
development/— environment + workflow setupfeatures/— feature briefsguides/— how-to walkthroughshirn/— HIRN AI internalslegal/— legal textsoperations/— runbooksarchive/— superseded plans, incident reports, completed-migration logs (preserved for history, not for navigation)