2026-05-27 22:15:16 +02:00
|
|
|
{
|
|
|
|
|
"name": "admin",
|
|
|
|
|
"version": "0.1.0",
|
|
|
|
|
"private": true,
|
|
|
|
|
"scripts": {
|
|
|
|
|
"dev": "next dev --port 3001",
|
|
|
|
|
"build": "next build",
|
|
|
|
|
"start": "next start --port 3001",
|
|
|
|
|
"test": "node --import tsx --test lib/**/*.test.ts",
|
Refactor: CI, Schema-Split, 2FA-Optimierung und Code-Hygiene
CI-Pipeline (Forgejo Actions):
- .forgejo/workflows/ci.yml: lint + typecheck + test + admin build
- typecheck-Scripts in packages/api, packages/db, apps/admin ergaenzt
- ESLint FlatConfig (eslint-config-next 16) in apps/admin angelegt
- React-19-Hook-Findings im bestehenden Code als Warnings markiert
(set-state-in-effect, preserve-manual-memoization, no-unused-vars)
DB-Schema-Split:
- packages/db/src/schema/health.ts (636 Zeilen, Monolith) entfernt und auf
7 Domain-Module aufgeteilt: profiles, foods, stores, recipes, tracking,
shopping, community. index.ts re-exportiert alles.
API-Refactoring:
- 2FA-Middleware: 2 DB-Queries pro Admin-Call sind jetzt lazy + per-Request
gecached. Bei tRPC-Batch-Requests mit mehreren protected Procedures wird
der 2FA-State nur einmal geladen (siehe context.ts getTwoFactorState).
- any-Typen in trpc/init.ts und trpc/routers/health.ts entfernt; Drizzle
inferiert Closure-Typen automatisch.
- packages/api/src/trpc/routers/health/_shared.ts: alle Helper-Funktionen
und Zod-Input-Schemas aus health.ts extrahiert. health.ts: 2419 -> 2061
Zeilen. Vorbereitung fuer Procedure-Split in Folge-Session.
Konfiguration:
- .env.example um alle in turbo.json deklarierten Env-Vars erweitert,
jeweils mit Kontext-Kommentar.
- turbo.json um real genutzte Env-Vars erweitert: NEXT_PUBLIC_HELP_URL,
ENABLE_DB_MIGRATIONS, ADMIN_INITIAL_PASSWORD, DEMO_RECIPE_OWNER_EMAIL.
- .gitignore: *.tsbuildinfo (TypeScript-Build-Cache).
- apps/admin/lib/hellth-data.test.ts: fehlendes Recipe.minutes Feld in Mocks.
Offene Folge-Sessions:
- Vollstaendiger Procedure-Split von routers/health.ts in Sub-Files
- Aufteilung von apps/admin/lib/hellth-data.ts (1149 Zeilen) in Domain-Module
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 23:34:39 +02:00
|
|
|
"lint": "eslint",
|
|
|
|
|
"typecheck": "tsc --noEmit"
|
2026-05-27 22:15:16 +02:00
|
|
|
},
|
|
|
|
|
"dependencies": {
|
|
|
|
|
"@better-auth/passkey": "^1.4.18",
|
|
|
|
|
"@blocknote/core": "^0.46.2",
|
|
|
|
|
"@blocknote/mantine": "^0.46.2",
|
|
|
|
|
"@blocknote/react": "^0.46.2",
|
|
|
|
|
"@heroicons/react": "^2.2.0",
|
|
|
|
|
"@mantine/core": "^8.3.15",
|
|
|
|
|
"@mantine/hooks": "^8.3.15",
|
|
|
|
|
"@mantine/utils": "^6.0.22",
|
|
|
|
|
"@hellth/api": "workspace:*",
|
|
|
|
|
"@tanstack/react-query": "^5.72.0",
|
|
|
|
|
"@tiptap/extension-link": "^3.20.0",
|
|
|
|
|
"@tiptap/extension-placeholder": "^3.20.0",
|
|
|
|
|
"@tiptap/extension-table": "^3.20.0",
|
|
|
|
|
"@tiptap/extension-table-cell": "^3.20.0",
|
|
|
|
|
"@tiptap/extension-table-header": "^3.20.0",
|
|
|
|
|
"@tiptap/extension-table-row": "^3.20.0",
|
|
|
|
|
"@tiptap/extension-text-align": "^3.20.0",
|
|
|
|
|
"@tiptap/extension-underline": "^3.20.0",
|
|
|
|
|
"@tiptap/react": "^3.20.0",
|
|
|
|
|
"@tiptap/starter-kit": "^3.20.0",
|
|
|
|
|
"@trpc/client": "^11.1.0",
|
|
|
|
|
"@trpc/react-query": "^11.1.0",
|
|
|
|
|
"@trpc/server": "^11.1.0",
|
|
|
|
|
"better-auth": "^1.2.0",
|
|
|
|
|
"next": "16.1.6",
|
|
|
|
|
"react": "19.2.3",
|
|
|
|
|
"react-dom": "19.2.3",
|
|
|
|
|
"superjson": "^2.2.0",
|
|
|
|
|
"tesseract.js": "^7.0.0"
|
|
|
|
|
},
|
|
|
|
|
"devDependencies": {
|
|
|
|
|
"@tailwindcss/postcss": "^4",
|
|
|
|
|
"@types/node": "^20",
|
|
|
|
|
"@types/react": "^19",
|
|
|
|
|
"@types/react-dom": "^19",
|
|
|
|
|
"eslint": "^9",
|
|
|
|
|
"eslint-config-next": "16.1.6",
|
|
|
|
|
"tailwindcss": "^4",
|
|
|
|
|
"tsx": "^4.19.0",
|
|
|
|
|
"typescript": "^5"
|
|
|
|
|
}
|
|
|
|
|
}
|