This document tracks the current state of data integration across the StellarSplit frontend. It helps contributors distinguish between fully integrated production paths and simulation/mock-backed features.
| Feature | Screen/Component | Status | Backend Service | Notes |
|---|---|---|---|---|
| Splits | Dashboard, Split Detail | ✅ Live | SplitsModule |
Fully integrated. |
| History | User Profile History | ✅ Live | SplitHistoryModule |
Fully integrated. |
| OCR | Receipt Scanning | ReceiptsModule |
Live OCR extraction, but fallback to mocks if processing fails. | |
| Analytics | Spending Trends, Category | AnalyticsModule |
Spending and Categories are live. Debt balances and Heatmaps are currently mocks. | |
| Groups | Group Management | ✅ Live | GroupModule |
Fully integrated. |
| Settlement | Suggestions | 🧪 Mock | SettlementModule |
Currently uses deterministic mocks for demo purposes. |
- Live Path: Fetches data from
/api/analytics/spending-trends,/api/analytics/category-breakdown, and/api/analytics/top-partners. - Mock Fallback: If the backend is unreachable or returns an error, the
analyticsDataProviderfalls back to a full set ofMOCK_*fixtures defined infrontend/src/services/analyticsDataProvider.ts. - Hardcoded Mocks: Even in "live" mode,
debtBalances,heatmapData, andtimeDistributionare currently fulfilled byPromise.resolve(MOCK_*).
- Processing: The scanning logic is live and performed by the backend.
- Simulation: In development environments without a functional Tesseract.js worker, the frontend may simulate successful parsing for UI testing.
- Live Path: Integrated with
GroupModuleandFriendshipModule. - Fixtures: Some complex graph visualizations may use generated fixtures if the user has a small social graph.
For a "production-ready" status, the following must be addressed:
- Replace
Promise.resolve(MOCK_*)inanalyticsDataProvider.tswith real API calls. - Integrate
SettlementModulewith live blockchain data for debt simplification suggestions. - Remove all mock-fallback logic from
NODE_ENV=productionbuilds.
Important
When testing new features, ensure you are not accidentally looking at mock data. Use the "Source Indicator" (if available in your dev tools) to verify data provenance.