Files
gh-christianlouis-inboxconv…/docs/TODO.md
T
copilot-swe-agent[bot] c4d8f392f8 chore: merge dependency updates from PRs #26-#49 and remove CodeQL checks
Backend (Python):
- pydantic 2.5.3 → 2.12.5
- pydantic-settings 2.1.0 → 2.13.1
- psycopg2-binary 2.9.9 → 2.9.11
- asyncpg 0.29.0 → 0.31.0
- stripe 7.11.0 → 14.4.1
- aioimaplib 1.0.1 → 2.0.1
- google-auth-httplib2 0.2.0 → 0.3.0
- celery 5.3.6 → 5.6.2
- redis 5.0.1 → 7.3.0
- tenacity 8.2.3 → 9.1.4

Frontend (npm):
- react 19.2.3 → 19.2.4
- @tanstack/react-query ^5.90.20 → ^5.95.0
- axios ^1.13.5 → ^1.13.6
- zustand ^5.0.11 → ^5.0.12
- eslint ^9 → ^10
- eslint-config-next 16.1.6 → 16.2.1

Docker:
- Python base image 3.11-slim → 3.14-slim

CI/CD:
- actions/setup-python v5 → v6
- actions/setup-node v4 → v6
- docker/setup-buildx-action v3 → v4
- codecov/codecov-action v3 → v5
- Python version 3.11 → 3.14, Node.js 18 → 20
- Removed CodeQL checks (was blocking builds)

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
Agent-Logs-Url: https://github.com/christianlouis/pop_puller_to_gmail/sessions/d8a6f888-1c85-4de6-a36d-55e9dcd7489e
2026-03-23 12:33:33 +00:00

11 KiB
Raw Blame History

TODO & Milestones

Comprehensive task breakdown for repository improvements and production readiness.

🔴 Critical - Security (In Progress)

Completed

  • Add SECRET_KEY validation on startup
  • Add ENCRYPTION_KEY validation on startup
  • Implement security headers middleware (X-Frame-Options, CSP, HSTS, etc.)
  • Implement CSRF protection middleware
  • Document all error codes in docs/ERRORS.md
  • Create security ADR (Architecture Decision Records)

In Progress 🔨

  • Enable rate limiting per user/tier
  • Fix bare exception handlers throughout codebase
  • Update datetime usage to timezone-aware (datetime.now(timezone.utc))
  • Validate redirect_uri to prevent open redirect vulnerabilities
  • Add per-user random salt for encryption (currently deterministic)

Not Started 📋

  • Implement audit logging middleware
  • Add 2FA support
  • Implement API key authentication
  • Set up secrets management (HashiCorp Vault or AWS Secrets Manager)
  • Professional security audit/penetration testing

🤖 High Priority - Agentic Coding Infrastructure

Completed

  • Create .github/ISSUE_TEMPLATE/ (bug_report.md, feature_request.md, test_needed.md)
  • Create .github/PULL_REQUEST_TEMPLATE.md
  • Create docs/CODING_PATTERNS.md with best practices
  • Create docs/ERRORS.md documenting error codes
  • Create docs/adr/ for Architecture Decision Records
  • Add Makefile with common development tasks
  • Add .pre-commit-config.yaml with black, ruff, mypy
  • Create CHANGELOG.md with version history
  • Add .yamllint.yml configuration
  • Add .secrets.baseline for detect-secrets

In Progress 🔨

  • Reorganize documentation into docs/ directory
  • Complete ADR documentation (add ADR-003 through ADR-010)
  • Create GitHub Projects board for task management

Not Started 📋

  • Add commitlint.config.js for conventional commits
  • Create video tutorials for setup
  • Add interactive setup wizard
  • Document migration path from legacy script
  • Create performance benchmarks baseline
  • Set up Discord/Slack community

🧪 High Priority - Testing Infrastructure

Completed

  • Create backend/tests/ directory structure (unit, integration, e2e)
  • Add backend/tests/conftest.py with fixtures
  • Add backend/pytest.ini configuration
  • Create sample unit tests (test_security.py, test_config.py)
  • Add user and mail account factory fixtures
  • Write unit tests for security module (100% coverage)
  • Write unit tests for middleware (98% coverage)
  • Write unit tests for schemas and validation
  • Write unit tests for application factory and core endpoints
  • Reach 50%+ test coverage (currently 57%)

In Progress 🔨

  • Write unit tests for authentication (target 80%+ coverage)
  • Write unit tests for mail processing
  • Write integration tests for API endpoints
  • Write tests for Celery tasks

Not Started 📋

  • Add end-to-end tests
  • Add performance/load tests
  • Create mock POP3/IMAP server for testing
  • Add test data seeding scripts
  • Reach 80%+ code coverage

🔄 High Priority - CI/CD Pipeline

Completed

  • Create .github/workflows/test.yml for automated testing
  • Create .github/workflows/lint.yml for code quality checks
  • Create .github/workflows/security.yml for security scanning
  • Existing .github/workflows/docker-build.yml for Docker images
  • Set up automatic dependency updates (Dependabot)
  • Merge Dependabot dependency updates (PRs #26#49)
  • Remove CodeQL checks from CI (was blocking builds)

In Progress 🔨

  • Configure branch protection rules
  • Set up Codecov integration

Not Started 📋

  • Add deployment workflow (staging/production)
  • Add release workflow with automated changelog
  • Configure status checks for PRs
  • Add performance regression detection

🟡 Medium Priority - Code Quality

Completed

  • Create coding patterns documentation
  • Define error code structure

In Progress 🔨

  • Add comprehensive type hints to all functions
  • Add docstrings to all public methods
  • Move magic numbers to constants
  • Improve error messages with context

Not Started 📋

  • Add database indexes for performance
  • Complete database migration scripts
  • Implement retry logic for Celery tasks
  • Add structured JSON logging
  • Refactor mixed async/blocking code in mail processor
  • Complete API documentation with examples

📦 Medium Priority - Production Readiness

Completed

  • Basic health check endpoint exists

In Progress 🔨

  • Improve health checks (DB/Redis connectivity)
  • Add environment variable validation

Not Started 📋

  • Create production docker-compose.yml
  • Add Kubernetes manifests (deployment, service, ingress)
  • Create Helm chart for easy deployment
  • Add nginx reverse proxy configuration
  • Document backup strategy
  • Create comprehensive deployment guide
  • Set up log aggregation (ELK/Loki)
  • Configure alerting system

📊 Medium Priority - Observability

Not Started 📋

  • Add Prometheus metrics endpoints
  • Integrate Sentry for error tracking
  • Add structured logging with correlation IDs
  • Create Grafana dashboard templates
  • Document monitoring setup
  • Add APM (Application Performance Monitoring)
  • Set up uptime monitoring
  • Create runbook for common issues

Low Priority - Feature Completion

Not Started 📋

  • Implement Stripe webhook handling
  • Add scheduled Celery tasks for email processing
  • Implement GDPR data export endpoint
  • Complete notification service integration (Apprise)
  • Add advanced email filtering
  • Implement OAuth2 for Gmail (instead of App Passwords)
  • Add attachment handling improvements
  • Add email archiving feature
  • Implement webhook support for external integrations

🖥️ High Priority - Frontend Completion

The Next.js frontend has pages and components implemented but is not functional because the API client layer is missing.

Critical Blockers 🔴

  • Create frontend/src/lib/api.ts — API client using axios
    • Must export: authApi, mailAccountsApi, processingRunsApi, userApi
    • Must export types: User, MailAccount, MailAccountCreate
    • 8 files import from @/lib/api and will fail to compile without it: AuthGuard.tsx, AddMailAccountModal.tsx, authStore.ts, login/page.tsx, register/page.tsx, auth/callback/page.tsx, dashboard/page.tsx, accounts/page.tsx

Existing Pages (UI done, need API wiring) 🔨

  • Landing page (app/page.tsx)
  • Login page with email/password + Google OAuth
  • Registration page
  • OAuth callback handler
  • Dashboard with stats cards and processing runs table
  • Mail accounts list with CRUD operations
  • Settings page
  • AddMailAccountModal component (auto-detect, test connection)
  • DashboardLayout with responsive sidebar
  • AuthGuard for protected routes

Not Started 📋

  • End-to-end testing of frontend against backend API
  • Error boundary components
  • Loading skeletons / proper loading states
  • Notification preferences UI
  • Subscription management / billing UI

📅 Milestone Timeline

Milestone 1: Security & Infrastructure (Week 1-2) 🔴

Goal: Make repository secure and AI-agent friendly

Tasks:

  • Complete all security hardening
  • Finish agentic coding infrastructure
  • Set up CI/CD pipeline
  • Reach 50% test coverage

Success Criteria:

  • All security validators passing
  • CI/CD running on all PRs
  • Issue/PR templates in use
  • Pre-commit hooks working

Milestone 2: Testing & Quality (Week 3-4) 🧪

Goal: Establish quality baseline

Tasks:

  • Write comprehensive test suite
  • Reach 80% code coverage
  • Fix all linting issues
  • Complete API documentation

Success Criteria:

  • 80%+ test coverage
  • All tests passing
  • Zero critical security issues
  • API docs complete

Milestone 3: Production Readiness (Week 5-6) 📦

Goal: Ready for production deployment

Tasks:

  • Complete observability setup
  • Add Kubernetes manifests
  • Implement rate limiting
  • Add audit logging
  • Complete deployment documentation

Success Criteria:

  • Can deploy to Kubernetes
  • Monitoring and alerting active
  • Health checks comprehensive
  • Deployment documented

Milestone 4: Feature Completion (Week 7-8)

Goal: Complete remaining features

Tasks:

  • Implement Stripe webhooks
  • Add Celery scheduled tasks
  • Complete notification integration
  • Build basic frontend

Success Criteria:

  • Stripe integration working
  • Scheduled tasks running
  • Notifications functional
  • Basic UI available

📊 Progress Tracking

Overall Progress by Category

Category Progress Status
Security 60% 🟡 In Progress
Agentic Infrastructure 95% 🟢 Near Complete
Testing 57% 🟡 In Progress
CI/CD 80% 🟢 Near Complete
Code Quality 40% 🔴 Needs Work
Production Ready 20% 🔴 Needs Work
Observability 10% 🔴 Needs Work
Backend Features 80% 🟢 Near Complete
Frontend 30% 🔴 Blocked (missing lib/api.ts)

Overall Repository Readiness: 52% ⚠️


🎯 Next Actions (Priority Order)

  1. Immediate (Today):

    • Create frontend/src/lib/api.ts (frontend is broken without it)
    • Fix remaining security issues (bare excepts, datetime, redirect_uri)
  2. This Week:

    • Enable rate limiting
    • Add audit logging
    • Write more unit tests (target 70% coverage)
    • Complete ADR documentation
    • End-to-end test frontend against backend
  3. Next Week:

    • Kubernetes manifests
    • Prometheus metrics
    • Sentry integration
    • Production docker-compose
  4. This Month:

    • 80% test coverage
    • Complete all documentation
    • Professional security audit
    • First production deployment

📝 Notes

Dependencies Between Tasks

  • Security hardening must complete before production deployment
  • Test infrastructure needed before reaching coverage goals
  • CI/CD needed before enforcing quality standards
  • Observability needed before production monitoring

AI Agent Readiness

After Milestone 1 completes, AI agents will have:

  • Clear issue templates to report bugs
  • Coding patterns to follow
  • Test fixtures to write tests
  • CI/CD to validate changes
  • Pre-commit hooks to enforce quality

Production Blockers

Must complete before production:

  1. All critical security issues
  2. Basic monitoring/alerting
  3. Backup strategy
  4. Incident response plan
  5. 50%+ test coverage

Last Updated: 2026-03-23 Maintained By: Development Team Review Frequency: Weekly