9 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 05d1b2da83 feat(auth): every way in, on @bitbaum/accountkit, keeping every account (#342)
* feat(auth): every way in, on @bitbaum/accountkit, keeping every account

Sign-in offered email and password and Continue with OrangeCat, on
next-auth. It now runs on AccountKit's runtime and screens: email and
password, the emailed sign-in link, passkeys, two-step codes, recovery,
OrangeCat and the shared sign-in (Google, Apple, GitHub, X, Facebook), each
shown once configured. /account holds passkeys, two-step codes, the
password, sign-in methods and deletion. next-auth, the hand-rolled
OrangeCat resolver and the unused /api/v1/auth/{login,register} are gone.

Every account is kept. The Prisma migration 20261101120000 adds
AccountKit's tables (auth_ prefix, modelled in schema.prisma so Prisma
never proposes dropping them) and imports each person under the same id:
the bcrypt / $bs1$ hash (legacyBcrypt) and the OrangeCat link keyed on the
sub, with AccountKit's own placeholder for a person without an address.
A trigger mirrors anyone the old server creates during the cutover. It is
re-runnable and refuses addresses that collide once lower-cased.

/api/v1/* takes the session cookie or the API token /api/account mints in
the format the Express backend verifies. The session key is
BETTER_AUTH_SECRET, or derived from the secret the box already holds.

CI: a new browser-smoke job rehearses the import twice (counts, no Prisma
drift) and drives Chromium through an imported account signing in with
its old password, sign-up, sign-out, a refused wrong password, sign-in,
recovery through the reset link, both API auth paths and every way in at
320, 390 and 1280px.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* test(browser): give the first article visit on next dev a compile-sized wait

The shared-article suite runs on next dev, which compiles a route on its
first visit. The account route (better-auth, pg) now compiles beside the
article for the header, so the first click can outlast the default 5s.
A production server answers at once; the account journey checks that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

* ci: re-run checks on the latest head

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-01 23:21:15 +01:00
Cato 6411dc9a50 test(frontend): exercise shared article renderer in browsers (#299)
* test(frontend): exercise shared article renderer in browsers

* ci: use supported LTS runner for the locked browser
2026-10-27 18:23:37 +01:00
CatoandClaude da2f2b778c docs(business): label unsourced figures as estimates or targets (#295)
Market sizes, prices, revenue projections and success metrics in the
business docs, the Erfassung PRD and VISION carried no source and no
label. They are now marked as estimates, planned prices or targets.
The three 'case studies' reported results with no evidence behind
them; they are now illustrative scenarios with target outcomes. The
SOC 2 compliance claim becomes a target, since no audit exists.


Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 14:18:05 +02:00
CatoandClaude 9f1d1c720d docs: clear docs-truth drift; drop dead site links (#294)
- docs/business/README.md was a pasted chat transcript holding four docs at
  once (an old index, the business case, the full use cases and a stale copy
  of the architecture doc). Keep only the business case; restore the full
  use cases into use-cases.md (it held only the first 13 lines).
- Point related-doc links at docs that exist; fix the blog.ts path and the
  backend migrate command (pnpm -C backend run migrate).
- Live site: remove the FAQ nav link (/about/faq) and the footer's Privacy,
  Terms and Contact links — all four answered 404 and no such pages exist.


Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-19 13:58:53 +02:00
8c22fc5e6a docs: sync docs with actual stack (#247)
- npm/npx commands -> pnpm across all docs (packageManager pnpm@11.25.0); dropped npm-only --legacy-peer-deps and the `--` arg separator
- package-lock.json -> pnpm-lock.yaml in the preflight description
- Next.js 15 -> 16, Node 18+ -> 20+ (.nvmrc pins 24) wherever stated
- Jest "planned" -> Vitest active (frontend + backend, one runner); Playwright E2E documented as deferred from CI
- DEPLOYMENT.md CI/CD section now describes the real workflows: ci.yml verify gate, auto-merge sweep, deploy.yml -> selfhost-deploy to the Hetzner box (bitbaum, behind Caddy)
- README structure block matches the real layout (frontend/ + backend/, no apps/ or packages/); backend port 5000 -> 5001
- docs/README.md index renamed Formular -> DataCat and now links only documents that exist; erfassung README's never-written guides marked planned
- clone URLs your-org -> bitbaum/datacat; cd formular -> cd datacat


Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 16:48:17 +00:00
Mao Nakamoto 94497195b4 fix(db): remove stale init.sql, make Prisma migrations the schema SSOT
init.sql predated Prisma and had drifted out of sync with schema.prisma
(snake_case columns vs. the app's camelCase models, a manual
trigger_set_timestamp() trigger that Prisma's @updatedAt already
handles at the ORM level). docker-compose still mounted it into the
postgres container, so any fresh dev DB got seeded from the wrong
schema. Drop the file and the mount, and point the setup docs at
`npm run docker:migrate` / `prisma migrate dev` instead.
2026-08-04 04:01:56 +00:00
Mao NakamotoandClaude Opus 4.8 d7661f4912 chore: purge stale Vercel infra refs and doc-drift
DataCat is self-hosted on the Hetzner box (bitbaum, behind Caddy) via
Docker, no longer on Vercel. Align docs/config with that reality.

- GEMINI.md: deployment now self-hosted (datacat.orangecat.ch); drop
  Vercel from MCP/infra/workflow/best-practices sections
- AGENTS.md: deployment row -> Docker self-hosted on Hetzner behind Caddy
- frontend/README.md: replace create-next-app boilerplate header with a
  real frontend overview; preserve the German changelog below
- remove frontend/vercel.json (dead artifact: Vercel build config + dead
  Railway backend URL; no crons; zero live refs)
- remove docs/deployment/vercel-setup.md (obsolete, unlinked; the real
  path is docs/deployment/docker-setup.md)
- add .mailmap normalizing all human commits to Mao Nakamoto

VISION.md / rearchitecture-plan.md (aspirational "or Vercel/AWS" options)
and docs/decisions/** (history) left untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 21:30:29 +02:00
g-butandClaude Opus 4.5 cb6c2b5ac0 chore: fix security vulnerabilities
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>
2026-01-07 19:58:41 +01:00
Your NameandClaude b2a4656d16 feat: prepare for deployment - update documentation and backend structure
- Updated CLAUDE.md with unified Erfassung platform concept
- Enhanced backend controllers and routes structure
- Updated dependencies and configurations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-07 19:49:19 +02:00