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 Tasks

205 tasks
#1

Generate system requirement document

1m 34s0.2 cr used
Done
#2

Generate personas & user flows

1m 20s0.2 cr used
Done
#7

Create flow for Individual Policyholder

1m 18sCredits in parent
Done
#8

Create flow for Business Compliance Manager

1m 18sCredits in parent
Done
#9

Create flow for Registered Account User

1m 18sCredits in parent
Done
#10

Landing

9m 23sCredits in subtasks
Done
#38

Fix Landing review findings: Tablet navigation links are compressed and wrap into… (+3 more)

1m 5s0.4 cr used
Done
#36

Fix Landing review findings: Capability descriptions are constrained to a narrow column… (+3 more)

1m 18s0.4 cr used
Done
#32

Landing / Navigation

0m 21s0.85 cr used
Done
#28

Landing / Title Board

0m 24s0.85 cr used
Done
#29

Landing / Capability Lines

0m 30s0.85 cr used
Done
#30

Landing / Audience Statement

0m 26s0.85 cr used
Done
#31

Landing / Action Band

0m 23s0.85 cr used
Done
#33

Landing / Footer

0m 20s0.85 cr used
Done
#34

Navigation

0m 21sCredits in parent
Done
#35

Footer

0m 20sCredits in parent
Done
#37

Retry First Page

2m 56s0.4 cr used
Done
#11

Registration, login, logout, and password reset

6m 57sCredits in subtasks
Done
#46

Fix Registration, login, logout, and password reset review findings: frontend/src/components/Identity Access Panel.jsx…

3m 18s0.4 cr used
Done
#39

Registration, login, logout, and password reset / Identity Access Header

0m 0s0.85 cr used
Done
#40

Registration, login, logout, and password reset / Identity Access Panel

0m 51s0.85 cr used
Done
#41

Registration, login, logout, and password reset / Identity Access Footer

0m 0s0.85 cr used
Done
#12

Home dashboard

7m 27sCredits in subtasks
Done
#58

Fix Home dashboard review finding: Q1 as reviewed now: The dashboard displays a negative…

0m 24s0.4 cr used
Done
#42

Home dashboard / Navigation Slot

0m 0s0.85 cr used
Done
#43

Home dashboard / Departure Board

0m 41s0.85 cr used
Done
#44

Home dashboard / Vendor Compliance Entry

0m 34s0.85 cr used
Done
#45

Home dashboard / Footer Slot

0m 0s0.85 cr used
Done
#13

Home

10m 59sCredits in subtasks
Done
#70

Fix Home review finding: The fixed bottom navigation overlays the Active policies…

0m 25s0.4 cr used
Done
#59

Fix Home review findings: Home Destination Panel.jsx renders a generic 'Home… (+2 more)

1m 40s0.4 cr used
Done
#47

Home / Navigation Slot

0m 0s0.85 cr used
Done
#48

Home / Destination Panel

0m 32s0.85 cr used
Done
#49

Home / Bottom Tab Rail

0m 25s0.85 cr used
Done
#50

Home / Footer Slot

0m 0s0.85 cr used
Done
#14

Insurance policy list

7m 5sCredits in subtasks
Done
#51

Insurance policy list / Policy List Navigation Slot

0m 0s0.85 cr used
Done
#52

Insurance policy list / Policy List Board

0m 58s0.85 cr used
Done
#53

Insurance policy list / Policy List Footer Slot

0m 1s0.85 cr used
Done
#15

Policies

10m 22sCredits in subtasks
Done
#65

Fix Policies review findings: frontend/src/components/Policies Bottom Tab Rail.jsx: the… (+1 more)

0m 54s0.4 cr used
Done
#54

Policies / Navigation Slot

0m 0s0.85 cr used
Done
#55

Policies / Destination Panel

0m 31s0.85 cr used
Done
#56

Policies / Bottom Tab Rail

0m 28s0.85 cr used
Done
#57

Policies / Footer Slot

0m 0s0.85 cr used
Done
#16

Add, edit, view, archive, and delete policy workflows

11m 46sCredits in subtasks
Done
#75

Fix Add, edit, view, archive, and delete policy workflows review finding: The workflow page does not display a…

0m 22s0.4 cr used
Done
#60

Add, edit, view, archive, and delete policy workflows / Policy Workflows Navigation Slot

0m 0s0.85 cr used
Done
#61

Add, edit, view, archive, and delete policy workflows / Policy Record Detail

0m 27s0.85 cr used
Done
#62

Add, edit, view, archive, and delete policy workflows / Policy Record Form

0m 51s0.85 cr used
Done
#63

Add, edit, view, archive, and delete policy workflows / Policy Removal Actions

0m 44s0.85 cr used
Done
#64

Add, edit, view, archive, and delete policy workflows / Policy Workflows Footer Slot

0m 0s0.85 cr used
Done
#17

Document upload

12m 18sCredits in subtasks
Done
#80

Fix Document upload review finding: The third processed row’s unbounded data-URI title and…

0m 28s0.4 cr used
Done
#66

Document upload / Navigation Slot

0m 1s0.85 cr used
Done
#67

Document upload / Intake

0m 48s0.85 cr used
Done
#68

Document upload / Processed Row

0m 41s0.85 cr used
Done
#69

Document upload / Footer Slot

0m 1s0.85 cr used
Done
#18

Secure document vault

15m 29sCredits in subtasks
Done
#95

Fix Secure document vault review finding: Q1 as reviewed now: The third document displays an encoded…

1m 23s0.4 cr used
Done
#85

Fix Secure document vault review finding: The third vault document renders an encoded image-data…

0m 33s0.4 cr used
Done
#71

Secure document vault / Vault Navigation Slot

0m 0s0.85 cr used
Done
#72

Secure document vault / Vault Document Board

0m 55s0.85 cr used
Done
#73

Secure document vault / Vault Document Actions

0m 29s0.85 cr used
Done
#74

Secure document vault / Vault Footer Slot

0m 0s0.85 cr used
Done
#19

Documents

13m 39sCredits in subtasks
Done
#90

Fix Documents review finding: The Fire policy endorsement row exposes the encoded data…

0m 33s0.4 cr used
Done
#76

Documents / Navigation Slot

0m 0s0.85 cr used
Done
#77

Documents / Destination Panel

0m 41s0.85 cr used
Done
#78

Documents / Bottom Tab Rail

0m 37s0.85 cr used
Done
#79

Documents / Footer Slot

0m 1s0.85 cr used
Done
#20

OCR extraction review

13m 23sCredits in subtasks
Done
#83

OCR extraction review / Navigation

0m 1s0.85 cr used
Done
#81

OCR extraction review / Ocr Extraction Board

0m 50s0.85 cr used
Done
#82

OCR extraction review / Ocr Document Handoff

0m 43s0.85 cr used
Done
#84

OCR extraction review / Footer

0m 1s0.85 cr used
Done
#21

AI document analysis

16m 51sCredits in subtasks
Done
#100

Fix AI document analysis review findings: frontend/src/components/Ai Analysis Board.jsx: the page's… (+1 more)

1m 30s0.4 cr used
Done
#86

AI document analysis / Ai Analysis Navigation

0m 0s0.85 cr used
Done
#87

AI document analysis / Ai Analysis Board

0m 43s0.85 cr used
Done
#88

AI document analysis / Ai Document Handoff

0m 37s0.85 cr used
Done
#89

AI document analysis / Ai Analysis Footer

0m 0s0.85 cr used
Done
#22

Expiry calendar, reminders, and notification history

16m 6sCredits in subtasks
Done
#93

Expiry calendar, reminders, and notification history / Navigation

0m 1s0.85 cr used
Done
#91

Expiry calendar, reminders, and notification history / Expiry Calendar Timeline

1m 27s0.85 cr used
Done
#92

Expiry calendar, reminders, and notification history / Reminder Notification History

0m 47s0.85 cr used
Done
#94

Expiry calendar, reminders, and notification history / Footer

0m 1s0.85 cr used
Done
#23

AI assistant

19m 57sCredits in subtasks
Done
#127

Fix AI assistant review finding: Q1 as reviewed now: In…

0m 26s0.4 cr used
Done
#126

Fix AI assistant review finding: Q1 as reviewed now: The third register row’s encoded…

0m 26s0.4 cr used
Done
#113

Fix AI assistant review finding: Authorized-document metadata is squeezed into a narrow…

0m 42s0.4 cr used
Done
#96

AI assistant / Navigation Slot

0m 0s0.85 cr used
Done
#97

AI assistant / Conversation

0m 46s0.85 cr used
Done
#98

AI assistant / Authorized References

0m 33s0.85 cr used
Done
#99

AI assistant / Footer Slot

0m 0s0.85 cr used
Done
#24

Business vendor and subcontractor management

18m 46sCredits in subtasks
Done
#121

Fix Business vendor and subcontractor management review findings: Document vault action is unusably narrow and…

0m 24s0.4 cr used
Done
#101

Business vendor and subcontractor management / Navigation

0m 0s0.85 cr used
Done
#102

Business vendor and subcontractor management / Vendor Register Board

0m 46s0.85 cr used
Done
#103

Business vendor and subcontractor management / Vendor Record Detail

0m 39s0.85 cr used
Done
#104

Business vendor and subcontractor management / Vendor Record Form

0m 56s0.85 cr used
Done
#105

Business vendor and subcontractor management / Vendor Insurance Documents

0m 51s0.85 cr used
Done
#106

Business vendor and subcontractor management / Vendor Removal Actions

1m 13s0.85 cr used
Done
#107

Business vendor and subcontractor management / Vendor Compliance Handoff

0m 26s0.85 cr used
Done
#108

Business vendor and subcontractor management / Footer

0m 0s0.85 cr used
Done
#25

Project compliance dashboard

18m 8sCredits in subtasks
Done
#109

Project compliance dashboard / Project Compliance Navigation

0m 1s0.85 cr used
Done
#110

Project compliance dashboard / Project Compliance Board

1m 7s0.85 cr used
Done
#111

Project compliance dashboard / Project Compliance Vendor Handoff

0m 35s0.85 cr used
Done
#112

Project compliance dashboard / Project Compliance Footer

0m 1s0.85 cr used
Done
#26

User profile, security settings, notification preferences, privacy, and help

20m 39sCredits in subtasks
Done
#128

Fix User profile, security settings, notification preferences, privacy, and help review finding: The push-delivery…

0m 29s0.4 cr used
Done
#119

User profile, security settings, notification preferences, privacy, and help / Navigation

0m 0s0.85 cr used
Done
#114

User profile, security settings, notification preferences, privacy, and help / Profile Settings Header

0m 17s0.85 cr used
Done
#115

User profile, security settings, notification preferences, privacy, and help / Profile Settings Board

0m 55s0.85 cr used
Done
#116

User profile, security settings, notification preferences, privacy, and help / Profile Notification Preferences

0m 52s0.85 cr used
Done
#117

User profile, security settings, notification preferences, privacy, and help / Profile Privacy And Help

0m 31s0.85 cr used
Done
#118

User profile, security settings, notification preferences, privacy, and help / Profile Logout Actions

1m 11s0.85 cr used
Done
#120

User profile, security settings, notification preferences, privacy, and help / Footer

0m 0s0.85 cr used
Done
#27

Profile

21m 8sCredits in subtasks
Done
#129

Fix Profile review findings: The first settings row’s label and description overlap at… (+1 more)

0m 30s0.4 cr used
Done
#122

Profile / Navigation Slot

0m 0s0.85 cr used
Done
#123

Profile / Destination Panel

0m 40s0.85 cr used
Done
#124

Profile / Bottom Tab Rail

0m 34s0.85 cr used
Done
#125

Profile / Footer Slot

0m 0s0.85 cr used
Done
#5

Architecture

1m 56s0.2 cr used
Done
#130

Create backend_modules diagram

1m 14sCredits in parent
Done
#131

Create er_diagram diagram

1m 14sCredits in parent
Done
#132

Create frontend_modules diagram

1m 13sCredits in parent
Done
#133

Create sequence diagram

1m 13sCredits in parent
Done
#134

Create service_network diagram

1m 13sCredits in parent
Done
#6

Workspace task plan

9m 37s0.2 cr used
Done
#135

Policy create, edit, archive, and delete with confirmation

120 cr estimated
To Do
#136

Home dashboard statistics, renewal alerts, and expiry hero

120 cr estimated
To Do
#137

Profile settings, logout confirmation, and destination switching

100 cr estimated
To Do
#138

Profile form validation and preference persistence

80 cr estimated
To Do
#139

Policy detail, edit, and delete with confirmation dialogs

100 cr estimated
To Do
#140

Account settings, security, and privacy content management

80 cr estimated
To Do
#141

Document vault preview, download, version history, and OCR correction

120 cr estimated
To Do
#142

OCR extraction review and AI document analysis

120 cr estimated
To Do
#143

Project compliance monitoring, report download, and business authorization

140 cr estimated
To Do
#144

Vendor and subcontractor record management with confirmed removal

120 cr estimated
To Do
#145

OCR extraction review with per-field confidence and manual correction

120 cr estimated
To Do
#146

AI document analysis with confidence indicators and supporting evidence

140 cr estimated
To Do
#147

Policy list search, sort, and filter with full-list restore

100 cr estimated
To Do
#148

Secure document vault preview, download, and version history

140 cr estimated
To Do
#149

Vendor and subcontractor insurance coverage records with save recovery

120 cr estimated
To Do
#150

Expiry calendar, renewal reminders, and notification history

140 cr estimated
To Do
#151

Account lifecycle: registration, login, password reset, and logout

140 cr estimated
To Do
#152

Business compliance monitoring, profile settings, and report download

140 cr estimated
To Do
#153

Policy management: create, edit, view, archive, delete, search, sort, and filter

120 cr estimated
To Do
#154

Document upload to private storage and processed marking

120 cr estimated
To Do
#155

Expiry tracking, reminders, and notification history

140 cr estimated
To Do
#156

Insurance policy list fetch with search, sort, and filter

100 cr estimated
To Do
#157

Document intake, secure storage, and authorized AI analysis

160 cr estimated
To Do
#158

Secure document vault: preview, download, and version history

120 cr estimated
To Do
#159

Personal policy records: create, edit, view, archive and delete

120 cr estimated
To Do
#160

Self-service registration, login sessions and password reset

140 cr estimated
To Do
#161

Open, preview, download and version-history for vault documents

120 cr estimated
To Do
#162

Private document list and document opening in the vault

80 cr estimated
To Do
#163

Bottom-navigation destination loading with retry

100 cr estimated
To Do
#164

Profile, security, notification, privacy and help settings

120 cr estimated
To Do
#165

Document upload from camera, gallery or PDF picker

120 cr estimated
To Do
#166

Destination switching and profile settings navigation

100 cr estimated
To Do
#167

Deliver renewal reminders and durable notification history

140 cr estimated
To Do
#168

Answer AI assistant questions only from authorized documents

140 cr estimated
To Do
#169

Serve home dashboard statistics, renewal alerts, and policy list browsing

120 cr estimated
To Do
#170

Track policy expiry and expose calendar, reminders, and notification history

120 cr estimated
To Do
#171

Review and correct OCR extraction with revert

120 cr estimated
To Do
#172

Manage vendors and subcontractors with compliance monitoring

120 cr estimated
To Do
#173

Project compliance dashboard with verifiable coverage and downloadable reports

140 cr estimated
To Do
#174

Browse, search, and add insurance policies

120 cr estimated
To Do
#175

Answer questions only from a user's authorized documents

140 cr estimated
To Do
#176

Let a policyholder add, edit, view, archive, and delete policies

120 cr estimated
To Do
#177

Monitor vendor and project compliance and download reports

140 cr estimated
To Do
#178

Register, log in, and reset password with secure token storage

140 cr estimated
To Do
#179

Manage vendors and subcontractors with insurance coverage

120 cr estimated
To Do
#180

Gate business compliance data behind authenticated business authorization

120 cr estimated
To Do
#181

Require application authentication for protected surfaces

120 cr estimated
To Do
#182

Enforce application authorization for protected resources

120 cr estimated
To Do
#183

Wire Android client to Fast API backend with Postgre SQL and object storage persistence

160 cr estimated
To Do
#184

Gate vendor, subcontractor, and report data behind authenticated business authorization

120 cr estimated
To Do
#185

Serve landing content with loading, success, error, and retry states

80 cr estimated
To Do
#186

Enforce authorized access control on private document storage

120 cr estimated
To Do
#187

Run AI document analysis with in-progress status and loading indicator

120 cr estimated
To Do
#188

Return fetch or save failure with retry for profile and settings

80 cr estimated
To Do
#189

Serve privacy and help content with failure and retry handling

80 cr estimated
To Do
#190

Bind AI document analysis page to live analysis, confidence, and evidence data

120 cr estimated
To Do
#191

Wire registration, login, logout, and password reset to the live backend

140 cr estimated
To Do
#192

Bind the secure document vault to live document, preview, download, and OCR data

140 cr estimated
To Do
#193

Bind the project compliance dashboard to live vendor and report data

140 cr estimated
To Do
#194

Wire policy add, edit, view, archive, and delete to the live backend

120 cr estimated
To Do
#195

Bind the Home dashboard departure board to live policy statistics and renewals

120 cr estimated
To Do
#196

Bind profile, security, notification, privacy, and help settings to live data

100 cr estimated
To Do
#197

Bind the anonymous Landing surface to live content and entry actions

80 cr estimated
To Do
#198

Bind the Documents destination to live document intake, storage, and AI analysis

120 cr estimated
To Do
#199

Wire expiry calendar, reminders, and notification history to live data

120 cr estimated
To Do
#200

Wire insurance policy list to live search, sort, and filter

120 cr estimated
To Do
#201

Wire OCR extraction review to live extraction and correction

120 cr estimated
To Do
#202

Wire document upload to private storage with processed feedback

120 cr estimated
To Do
#203

Wire Home bottom navigation and destination loading

100 cr estimated
To Do
#204

Wire Policies destination to live policy management

120 cr estimated
To Do
#205

Wire Profile settings, preferences, and logout to live backend

120 cr estimated
To Do
#206

Wire AI assistant to authorized-document question answering

140 cr estimated
To Do
#207

Wire vendor and subcontractor management to live compliance data

140 cr estimated
To Do
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
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