Remove API pagination and fix contractor UI issues

- Remove pagination from all Django REST Framework endpoints
- Update Kotlin API clients to return direct lists instead of paginated responses
- Update iOS ViewModels to handle direct list responses
- Remove ContractorListResponse, DocumentListResponse, and PaginatedResponse models
- Fix contractor form specialty selector loading with improved DataCache access
- Fix contractor sheet presentation to use full screen (.presentationDetents([.large]))
- Improve UI test scrolling to handle lists of any size with smart end detection

🤖 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-21 22:56:43 -06:00
parent 93bd50ac3e
commit e40aed31a7
25 changed files with 145 additions and 151 deletions

View File

@@ -94,8 +94,8 @@ class DocumentViewModelWrapper: ObservableObject {
)
await MainActor.run {
if let success = result as? ApiResultSuccess<DocumentListResponse> {
let documents = success.data?.results as? [Document] ?? []
if let success = result as? ApiResultSuccess<NSArray> {
let documents = success.data as? [Document] ?? []
self.documentsState = DocumentStateSuccess(documents: documents)
} else if let error = result as? ApiResultError {
self.documentsState = DocumentStateError(message: error.message)