mirror of
https://github.com/bitbaum/evig.git
synced 2026-12-04 04:46:59 +01:00
- Production host is evig.orangecat.ch everywhere a doc presents the current address; revampit.orangecat.ch is the retired 308 redirect. - Box was renamed /opt/revampit -> /opt/evig (systemd evig-app, evig-cron@*, evig-backup, scripts/selfhost-deploy-evig.sh); docs and the Layer B list still named the old paths and a deploy script that no longer exists. - CLAUDE.md claimed auth-smoke/inventory-smoke target the old host; CI now defaults PLAYWRIGHT_BASE_URL to evig.orangecat.ch, so the redirect has no CI coverage. Say so. - Local dev DB is the Docker Postgres on 5433, not Neon. - Email is Resend first (src/config/email.ts), not Listmonk/Brevo. - README: no "Swiss-compliant donation receipts" while in formation; real test layout, eight locales, actual CI jobs. - CONTRIBUTING / PR template / REVIEW: evig name, pnpm, Node 22.13+, messages/ path; no donate link to Revamp-IT. - ARCHITECTURE_QUICK_START: drop the example that granted staff by e-mail. - Payment setup docs: canonical webhook URLs plus a note on providers configured before the rename. Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD Co-authored-by: Claude <noreply@anthropic.com>
1.9 KiB
1.9 KiB
REVIEW.md — evig review bar
Judge the DIFF against these gates, in order. Flag correctness and requirement gaps only — lint owns style. Global standards load via CLAUDE.md; this file is ONLY evig's scars.
Fatal invariants (one violation = block)
drizzle-kit pushis FORBIDDEN — schema changes go through generated SQL migrations inscripts/db/migrations/(CI replays them against a throwaway Postgres). A push once broke CI for everyone; never again.is_revampitis a stored column (evig stock vs. P2P listing) — NEVER re-derive it, or staff status (users.is_staff), from the@revamp-it.chemail domain in queries or logic.- Prod/dev DB split — no code path may point dev tooling at the prod DB;
check connection-string provenance on anything touching
DB_*env. - Payments —
lib/services/payment-webhook.tsis the highest-blast-radius money path; any change there requires its test suite green (921-line webhook test) + a manual reasoning note in the PR body. - Swiss German —
ßnever appears in user-facing strings (ssonly); real umlauts ä/ö/ü required, never ae/oe/ue.pnpm run lint:umlautsgates it.
Repo gotchas that have bitten before
- CHECK-constraint drift between migrations and live DB — if the diff adds a constraint, confirm the migration replay job still passes.
- i18n arrays must stay parallel across locales — the i18n audit script gates this; don't hand-edit one locale.
- Env files:
.env.example+.env.selfhost.local.exampleare the ONLY tracked env files. Any diff adding another.env*to git = block.
Process gates
verify/CI green before review (lint, tsc, build, migrations replay, e2e journeys).- Diff updates CLAUDE.md/docs if it changes documented structure/behavior.
- Second fix of the same bug class ships the rule/test that ends the class.