Skip to content

0.6.0

Latest
Compare
Choose a tag to compare
@IlliaChemolosov IlliaChemolosov released this 25 Feb 19:14
5943660

New Features

Improved Pagination for User Selection

  • Implemented infinite scrolling in CreateDialogViewModel for better performance.
  • Added pagination tracking to efficiently fetch additional users.
  • Ensured selected users appear first, while filtering out duplicates and the current user.

Enhanced Member Management Pagination

  • Introduced paginated user fetching in RemoveMembersView and MembersDialogViewModel.
  • Optimized API calls to prevent redundant requests and improve scrolling performance.
  • Updated UserListView with loading indicators and onNext callbacks for seamless pagination.

Refined Data Synchronization

  • Implemented paginated user retrieval in SyncDialog for better batch processing.
  • Updated displayDialogMembers(by:) to support batched user fetching.
  • Improved synchronization logic to avoid redundant API calls.

Performance Improvements

  • Refactored Remote Data Source: Simplified pagination logic, ensuring correct batch processing.
  • Optimized API Integration: Improved handling of pagination metadata and missing users.
  • UI State Enhancements: Added isAdding flags to indicate loading states, ensuring smooth scrolling.

General Fixes

  • Fixed potential index out-of-bounds errors when slicing user ID arrays for API requests.
  • Ensured UI updates run on the main thread to prevent race conditions.
  • Centralized pagination settings with PaginationSettings for consistent data handling.