Files
motovaultpro/backend/src/features/CLAUDE.md
Eric Gullickson c98211f4a2
Some checks failed
Deploy to Staging / Build Images (pull_request) Successful in 4m42s
Deploy to Staging / Deploy to Staging (pull_request) Successful in 37s
Deploy to Staging / Verify Staging (pull_request) Failing after 6s
Deploy to Staging / Notify Staging Ready (pull_request) Has been skipped
Deploy to Staging / Notify Staging Failure (pull_request) Successful in 6s
feat: Implement centralized audit logging admin interface (refs #10)
- Add audit_logs table with categories, severities, and indexes
- Create AuditLogService and AuditLogRepository
- Add REST API endpoints for viewing and exporting logs
- Wire audit logging into auth, vehicles, admin, and backup features
- Add desktop AdminLogsPage with filters and CSV export
- Add mobile AdminLogsMobileScreen with card layout
- Implement 90-day retention cleanup job
- Remove old AuditLogPanel from AdminCatalogPage

Security fixes:
- Escape LIKE special characters to prevent pattern injection
- Limit CSV export to 5000 records to prevent memory exhaustion
- Add truncation warning headers for large exports

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-11 11:09:09 -06:00

1.5 KiB

backend/src/features/

Feature capsule directory. Each feature is 100% self-contained with api/, domain/, data/, migrations/, tests/.

Subdirectories

Directory What When to read
admin/ Admin role management, catalog CRUD Admin functionality, user oversight
audit-log/ Centralized audit logging Cross-feature event logging, admin logs UI
auth/ Authentication endpoints Login, logout, session management
backup/ Database backup and restore Backup jobs, data export/import
documents/ Document storage and management File uploads, document handling
fuel-logs/ Fuel consumption tracking Fuel log CRUD, statistics
maintenance/ Maintenance record management Service records, reminders
notifications/ Email and push notifications Alert system, email templates
onboarding/ User onboarding flow First-time user setup
platform/ Vehicle data and VIN decoding Make/model lookup, VIN validation
stations/ Gas station search and favorites Google Maps integration, station data
terms-agreement/ Terms & Conditions acceptance audit Signup T&C, legal compliance
user-export/ User data export GDPR compliance, data portability
user-preferences/ User preference management User settings API
user-profile/ User profile management Profile CRUD, avatar handling
vehicles/ Vehicle management Vehicle CRUD, fleet operations