Add PDF reports, file uploads, admin auth, and comprehensive tests

Features:
- PDF service for generating task reports with ReportLab-style formatting
- Storage service for file uploads (local and S3-compatible)
- Admin authentication middleware with JWT support
- Admin user model and repository

Infrastructure:
- Updated Docker configuration for admin panel builds
- Email service enhancements for task notifications
- Updated router with admin and file upload routes
- Environment configuration updates

Tests:
- Unit tests for handlers (auth, residence, task)
- Unit tests for models (user, residence, task)
- Unit tests for repositories (user, residence, task)
- Unit tests for services (residence, task)
- Integration test setup
- Test utilities for mocking database and services

Database:
- Admin user seed data
- Updated test data seeds

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-11-27 23:36:20 -06:00
parent 2817deee3c
commit 469f21a833
50 changed files with 6795 additions and 582 deletions

View File

@@ -21,6 +21,15 @@ services:
ports:
- "8000:8000"
admin:
build:
context: .
target: admin
environment:
NEXT_PUBLIC_API_URL: "http://localhost:8000"
ports:
- "3000:3000"
worker:
build:
context: .
@@ -29,12 +38,3 @@ services:
DEBUG: "true"
volumes:
- ./:/app/src:ro
admin:
build:
context: .
target: admin
environment:
DEBUG: "true"
ports:
- "9000:9000"