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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user