insurance-document-tracking

bySRD

# MASTER PROMPT: InsureTrack India — AI Insurance & Document Tracking Android App Act as a senior Android developer, Python backend engineer, PostgreSQL database architect, AI integration specialist, and software security engineer. Build a complete, production-oriented native Android application named **InsureTrack India**. This application helps Indian individuals and businesses manage insurance policies, securely store documents, track expiry dates, receive renewal reminders, analyze insurance documents using AI, and monitor vendor insurance compliance. **Important:** Build a working application with real frontend-to-backend integration. Do not create only a UI prototype, static dashboard, or pseudocode. Implement the project incrementally, provide complete source files, and clearly distinguish implemented features from unfinished features. ## 1. Technology Stack ### Android - Android Studio and Kotlin - Jetpack Compose and Material 3 - MVVM architecture with clean separation of concerns - Navigation Compose - Retrofit and OkHttp for REST API communication - Kotlin Coroutines and StateFlow - Room for local caching - DataStore for preferences - Firebase Cloud Messaging (FCM) for push notifications - Android Camera and Activity Result APIs for document capture and selection - Android Keystore-backed secure token storage ### Backend - Python 3.12+ - FastAPI and Pydantic - SQLAlchemy 2.x and Alembic - PostgreSQL - JWT access and refresh tokens - Argon2id or bcrypt password hashing - Redis and Celery for background processing and scheduled jobs - Private S3-compatible object storage, with a local development option - PaddleOCR or Tesseract for OCR - LiteLLM for configurable LLM providers - Pytest for backend tests Use Docker and Docker Compose for local development. Keep secrets in environment variables and provide a complete `.env.example`. ## 2. Android Application Screens Implement the following screens with functional navigation, validation, loading states, error handling, and backend integration: 1. Splash screen and onboarding. 2. Registration, login, logout, and password reset. 3. Home dashboard with policy statistics and renewal alerts. 4. Insurance policy list with search, sorting, and filters. 5. Add, edit, view, archive, and delete policy workflows. 6. Document upload using camera, gallery, and PDF picker. 7. Secure document vault with previews, downloads, and version history. 8. OCR extraction review and manual correction. 9. AI document analysis with confidence indicators and evidence. 10. Expiry calendar, reminders, and notification history. 11. AI assistant for questions about authorized documents. 12. Business vendor and subcontractor management. 13. Project compliance dashboard and downloadable reports. 14. User profile, security settings, notification preferences, privacy, and help. Use a bottom navigation bar containing Home, Policies, Documents, AI Assistant, and Profile. Use Material 3 components and adaptive layouts. Support light and dark themes, accessible touch targets, empty states, loading indicators, error messages, confirmation dialogs, and subtle animations. ### UI Theme - Primary teal: `#2A9D8F` - Secondary blue: `#457B9D` - Light teal: `#A8DADC` - Background: `#F1FAEE` - White surfaces: `#FFFFFF` - Text: `#1D3557` - Expiry alerts: `#E63946` - Warnings: `#F4A

LandingHomeRegistration, login, logout, and password resetHome dashboardInsurance policy listDocument uploadPoliciesExpiry calendar, reminders, and notification historyOCR extraction reviewAdd, edit, view, archive, and delete policy workflowsDocumentsSecure document vaultAI document analysisUser profile, security settings, notification preferences, privacy, and helpProject compliance dashboardAI assistantProfileBusiness vendor and subcontractor management
Landing

Comments (0)

No comments yet. Be the first!

Project compliance dashboard design preview
Landing: Read capability explanations
Landing: Proceed to login
Registration, login, logout, and password reset: 1. Submit login credentials
Registration, login, logout, and password reset: 2. Retry after invalid credentials
Registration, login, logout, and password reset: 3. Request password reset
Registration, login, logout, and password reset: 4. Complete password reset
Home: Open home destination
Home dashboard: Open vendor management
Business vendor and subcontractor management: 1. Add vendor or subcontractor
Business vendor and subcontractor management: 2. Edit vendor record
Business vendor and subcontractor management: 3. View vendor record
Business vendor and subcontractor management: 4. Attach vendor insurance document
Business vendor and subcontractor management: 5. Remove vendor with confirmation
Business vendor and subcontractor management: 6. Retry after save failure
Project compliance dashboard: 7. Monitor project compliance
Project compliance dashboard: 1. Download compliance report
Project compliance dashboard: 2. Retry after report failure
Project compliance dashboard: 8. Open vendor record
Landing design preview
Landing: Read capability explanations
Landing: Proceed to login
Registration, login, logout, and password reset: 1. Submit login credentials
Registration, login, logout, and password reset: 2. Retry after invalid credentials
Registration, login, logout, and password reset: 3. Request password reset
Registration, login, logout, and password reset: 4. Complete password reset
Home: Open home destination
Home dashboard: Open vendor management
Business vendor and subcontractor management: 1. Add vendor or subcontractor
Business vendor and subcontractor management: 2. Edit vendor record
Business vendor and subcontractor management: 3. View vendor record
Business vendor and subcontractor management: 4. Attach vendor insurance document
Business vendor and subcontractor management: 5. Remove vendor with confirmation
Business vendor and subcontractor management: 6. Retry after save failure
Project compliance dashboard: 7. Monitor project compliance
Project compliance dashboard: 1. Download compliance report
Project compliance dashboard: 2. Retry after report failure
Project compliance dashboard: 8. Open vendor record