Skip to content

Add Supabase authentication and Railway production deployment - #5

Open
CodeWithMoin wants to merge 9 commits into
mainfrom
release/railway-production
Open

CodeWithMoin wants to merge 9 commits into
mainfrom
release/railway-production

Conversation

@CodeWithMoin

Copy link
Copy Markdown
Owner

Summary

  • add Supabase Google OAuth and email magic-link authentication
  • deploy the React and FastAPI application together on Railway
  • configure Supabase Postgres and private S3-compatible document storage
  • support direct navigation to React routes such as /login and /app/qa
  • simplify authentication loading states
  • document the production deployment workflow

Validation

  • frontend production build and ESLint
  • Ruff
  • 11 focused authentication, configuration, and SPA routing tests
  • Alembic migrations against Supabase Postgres
  • Railway health checks

Tradeoff

Supabase performs external identity verification during sign-in, after which DocuLens uses its existing secure HTTP-only application session. This keeps normal API requests independent of an external auth call.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@CodeWithMoin, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 8 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 48155400-28d9-4078-854c-acb45694484c

📥 Commits

Reviewing files that changed from the base of the PR and between 218caef and 6d48155.

⛔ Files ignored due to path filters (1)
  • frontend/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (72)
  • .env.example
  • .github/workflows/backend-ci.yml
  • Makefile
  • README.md
  • app/agents/__init__.py
  • app/agents/graph.py
  • app/agents/model_client.py
  • app/agents/models.py
  • app/agents/tools.py
  • app/alembic/env.py
  • app/alembic/versions/20260730_0005_add_federated_identity.py
  • app/alembic/versions/20260730_0006_create_investigations.py
  • app/api/auth_router.py
  • app/api/endpoint.py
  • app/api/investigation_router.py
  • app/api/router.py
  • app/config/celery_config.py
  • app/config/database_config.py
  • app/config/settings.py
  • app/core/observability.py
  • app/database/database_utils.py
  • app/database/investigation.py
  • app/database/models.py
  • app/database/user.py
  • app/doc_utils/chunking.py
  • app/doc_utils/embedding.py
  • app/doc_utils/extraction.py
  • app/doc_utils/search.py
  • app/doc_utils/utils/tokenizer.py
  • app/evaluation/investigation.py
  • app/frontend.py
  • app/main.py
  • app/pipelines/doculens_pipeline.py
  • app/services/auth_service.py
  • app/services/document_storage.py
  • app/services/investigation_service.py
  • app/services/vector_store.py
  • app/start.sh
  • app/tasks/tasks.py
  • app/utils/insert_vectors.py
  • docker/Dockerfile.celery
  • docker/Dockerfile.railway
  • docker/docker-compose.yml
  • docs/deploy-railway.md
  • frontend/package.json
  • frontend/src/api/client.ts
  • frontend/src/api/types.ts
  • frontend/src/auth/AuthProvider.tsx
  • frontend/src/auth/ProtectedRoute.tsx
  • frontend/src/auth/supabase.ts
  • frontend/src/auth/types.ts
  • frontend/src/components/layout/AppShell.tsx
  • frontend/src/main.tsx
  • frontend/src/pages/IntakePage.tsx
  • frontend/src/pages/InvestigationPage.tsx
  • frontend/src/pages/LandingPage.tsx
  • frontend/src/pages/LoginPage.tsx
  • frontend/src/styles/globals.css
  • frontend/vite.config.ts
  • pyproject.toml
  • pyrightconfig.json
  • railway.toml
  • railway.worker.toml
  • tests/conftest.py
  • tests/test_api_endpoints.py
  • tests/test_auth_service.py
  • tests/test_database_models.py
  • tests/test_investigation_agent.py
  • tests/test_investigation_evaluation.py
  • tests/test_lightweight_extraction.py
  • tests/test_settings.py
  • tests/test_spa_static_files.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant