Closed dakshbhardwaj closed 1 year ago
This update introduces pagination support to the account feed in the sales application. It modifies various components, including API services, UI elements, and data models, to handle paginated data effectively and improve user experience during data loading.
File | Summary |
---|---|
.../sales/api/ApiService.kt .../sales/repository/HomeRepository.kt .../sales/viewmodals/HomeScreenViewModal.kt |
Introduced optional paginationIdentifier parameter to getAccountFeed function for pagination support. Added new function getAccountFeedWithPagination . Updated HomeScreenViewModal to track current pagination identifier. |
.../sales/common_components/AccountName.kt |
Minor UI changes to AccountName composable function, including addition of a Spacer component and modification of interactionSource parameter. |
.../sales/models/AccountFeedResponse.kt |
Minor formatting change in AccountCardData data class. |
.../sales/screens/HomeScreen.kt |
Added state variables for pagination and loading indicators. Modified handling of account feed data and updated loading indicators based on new state variables. |
🐇💻
"In the land of code where the shadows lie,
We've made some changes, oh me, oh my!
Pagination's here, no more endless wait,
For your data load, isn't it great? 🎉"
Summary:
Summary by CodeRabbit
getAccountFeed
function across multiple classes to support the new pagination feature.AccountName
composable function for better readability and maintainability.HomeScreen
for managing loading states and page identifiers.