Add documents and warranties feature with image upload support

- Implement complete document management system for warranties, manuals, receipts, and other property documents
- Add DocumentsScreen with tabbed interface for warranties and documents
- Add AddDocumentScreen with comprehensive form including warranty-specific fields
- Integrate image upload functionality (camera + gallery, up to 5 images)
- Fix FAB visibility by adding bottom padding to account for navigation bar
- Fix content being cut off by bottom navigation bar (96dp padding)
- Add DocumentViewModel for state management with CRUD operations
- Add DocumentApi for backend communication with multipart image upload
- Add Document model with comprehensive field support
- Update navigation to include document routes
- Add iOS DocumentsWarrantiesView and AddDocumentView for cross-platform support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Trey t
2025-11-10 22:38:34 -06:00
parent d3caffa792
commit e716c919f3
11 changed files with 3047 additions and 5 deletions

View File

@@ -31,12 +31,20 @@ struct MainTabView: View {
.tag(2)
NavigationView {
ProfileTabView()
DocumentsWarrantiesView(residenceId: nil)
}
.tabItem {
Label("Profile", systemImage: "person.fill")
Label("Documents", systemImage: "doc.text.fill")
}
.tag(3)
// NavigationView {
// ProfileTabView()
// }
// .tabItem {
// Label("Profile", systemImage: "person.fill")
// }
// .tag(4)
}
}
}