How ramawaterfilter/seller-board works
Rama Commerce Intelligence is an early commerce-reporting foundation, not a finished reporting product. The implemented user workflow is sign-in with MFA, select a workspace, then manage Shopify connections and manually verify or sync a store; sync imports raw commerce records. The dashboard is currently a shell, and profit reporting, Amazon, and manual B2B workflows are not implemented here. Edges reflect shown calls, source-index references, or README statements; unsampled reporting internals are omitted.
Main entry points: main.py FastAPI application · auth.py Auth service · App.tsx App shell · deps.py Permissions and dependencies
Components 24
Web interface
- App shell
web/src/App.tsx - Sign-in UI
web/src/pages/Login.tsx - Channels UI
web/src/pages/Channels.tsx - Dashboard shell
web/src/pages/Dashboard.tsx - Web API client
web/src/api.ts
Identity and access
- Auth endpoints
api/src/app/workspace/api/auth.py - Auth service
api/src/app/workspace/service/auth.py - Session handling
api/src/app/workspace/service/session.py - Permissions and dependencies
api/src/app/workspace/api/deps.py - RBAC checks
api/src/app/workspace/service/rbac.py - TOTP MFA
api/src/app/workspace/service/totp.py - Email OTP sender
api/src/app/workspace/service/email_otp.py
Shopify ingestion
- Shopify endpoints
api/src/app/ingestion/api/shopify.py - Connector and sync service
api/src/app/ingestion/service/shopify.py - Shopify client
api/src/app/ingestion/connectors/shopify/client.py - GraphQL operations
api/src/app/ingestion/connectors/shopify/queries.py
API platform
- FastAPI application
api/src/app/main.py - Health and readiness
api/src/app/platform/health.py - PostgreSQL access
api/src/app/platform/database.py - Audit log
api/src/app/platform/audit.py
Other components
- Workspace user
- Redis
- Shopify store
- PostgreSQL
Connections 33
- Workspace user → App shell: uses
README.md - App shell → Sign-in UI: renders
web/src/App.tsx - App shell → Dashboard shell: renders
web/src/App.tsx - App shell → Channels UI: renders
web/src/App.tsx - App shell → Web API client: calls
web/src/App.tsx - Sign-in UI → Web API client: calls
web/src/api.ts - Channels UI → Web API client: calls
web/src/pages/Channels.tsx - Web API client → FastAPI application: sends requests
- FastAPI application → Auth endpoints: registers
api/src/app/main.py - FastAPI application → Shopify endpoints: registers
api/src/app/main.py - FastAPI application → Health and readiness: registers
api/src/app/main.py - Auth endpoints → Auth service: calls
api/src/app/workspace/api/auth.py - Auth endpoints → Permissions and dependencies: uses dependencies
api/src/app/workspace/api/auth.py - Auth service → Session handling: issues sessions
api/src/app/workspace/service/auth.py - Auth service → Audit log: records events
api/src/app/workspace/service/auth.py - Auth service → TOTP MFA: checks MFA
api/src/app/workspace/service/auth.py - Auth endpoints → Session handling: hashes tokens
api/src/app/workspace/api/auth.py - Permissions and dependencies → Auth service: uses
api/src/app/workspace/api/deps.py - Permissions and dependencies → Session handling: validates sessions
api/src/app/workspace/api/deps.py - Permissions and dependencies → RBAC checks: checks grants
api/src/app/workspace/api/deps.py - Shopify endpoints → Connector and sync service: calls
api/src/app/ingestion/api/shopify.py - Shopify endpoints → Permissions and dependencies: uses dependencies
api/src/app/ingestion/api/shopify.py - Shopify endpoints → Audit log: records events
api/src/app/ingestion/api/shopify.py - Connector and sync service → Shopify client: queries store
api/src/app/ingestion/service/shopify.py - Shopify client → GraphQL operations: uses operations
api/src/app/ingestion/connectors/shopify/client.py - Shopify client → Shopify store: sends GraphQL
api/src/app/ingestion/connectors/shopify/client.py - Connector and sync service → PostgreSQL: stores raw records
api/src/app/ingestion/service/shopify.py - FastAPI application → PostgreSQL access: creates and closes
api/src/app/main.py - FastAPI application → Redis: creates and closes
api/src/app/main.py - Health and readiness → PostgreSQL access: checks readiness
README.md - Health and readiness → Redis: checks readiness
README.md - PostgreSQL access → PostgreSQL: connects
api/src/app/platform/database.py - Auth service → Email OTP sender: sends OTP