Files
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
..

Erfassung - AI-Powered Product Cataloging

Overview

Erfassung is an integrated feature of the Formular platform that transforms physical products into structured data tables through AI-powered photo analysis and automated e-commerce integration. The system creates comprehensive product tables with 21 standardized fields, supports advanced export formats (CSV, XLSX, JSON, XML, TSV), and automates the complete workflow from photo capture to online shop publication.

Documentation Structure

Planning & Requirements

Technical Documentation

Implementation Guides (planned — not yet written)

  • API Specification, Development Setup, Testing Strategy, Deployment Guide

User Documentation (planned — not yet written)

  • User Guide, Administrator Guide

Quick Start

For developers new to Erfassung, start with:

  1. Product Requirements Document - Understand the business requirements
  2. Architecture Overview - Understand the technical approach
  3. Development Setup - Set up your development environment

Vision & Roadmap

Erfassung represents Formular's expansion into AI-powered business process automation. The feature demonstrates how form-building technology can be applied to complex data entry workflows beyond traditional forms.

Current Phase: Planning and Architecture
Next Phase: MVP Development
Future Phases: Multi-tenant deployment, advanced AI features, ERP integrations

Key Technologies

  • Frontend: Next.js 16, TypeScript, Tailwind CSS (consistent with the platform)
  • Backend: Node.js, tRPC, Prisma ORM (extending existing Formular stack)
  • AI/ML: OpenAI GPT-4 Vision, Tesseract OCR, custom classification models
  • Database: PostgreSQL (extending existing Formular schema)
  • Storage: Cloud storage for photos and generated exports

Integration Points

Erfassung deeply integrates with existing Formular systems:

  • User Management: Uses existing authentication and organization systems
  • Form Technology: Product data forms leverage Formular's dynamic form system
  • UI Components: Extends existing component library with Erfassung-specific components
  • Background Jobs: Uses existing job queue system for AI processing
  • API Layer: Extends existing tRPC routers with Erfassung endpoints