1.3 KiB
1.3 KiB
Agent Insights & Improvement Roadmap
Security
- Remove hard‑coded admin password (
admin123). - Add role‑based middleware (
requireRole) for all protected routes.
Database
- Migrate to versioned Supabase migrations (
supabase/migrate.sh). - Add soft‑delete columns (
deleted_at) for loads/payments.
CI/CD
- GitHub Actions workflow to build Docker image and trigger Coolify deployment via its API.
- Run lint, prettier, and unit tests on each PR.
Observability
- Integrate Pino logger and Prometheus metrics (
/metrics). - Nightly
pg_dumpcron job to S3/MinIO for backups.
Testing
- Scaffold Jest unit tests for Load CRUD and Shipper totals.
- Add integration smoke test that starts the server and hits
/health.
Front‑end UX
- Debounced search + status filter on Loads list page.
- Internationalisation via
locales/*.json. - Cache‑busting asset versioning.
Documentation
- Complete
README.mdwith setup, migrations, testing, and deployment steps.
Next Steps (commits to be made)
- Security Fix – remove default admin password, add
requireRolemiddleware. - CI/CD Workflow – create
.github/workflows/deploy.yml. - Backup Cron – add script
scripts/pg_backup.shand cron job. - Test Suite – add
tests/unit/loads.test.jsand npm script. - UI Polish – add search bar and i18n support.