TrueSparrowSystems / AI-SalesSparrow-Android-App

MIT License
1 stars 0 forks source link

Homescreen pagination #86

Closed dakshbhardwaj closed 1 year ago

dakshbhardwaj commented 1 year ago

Summary:

Summary by CodeRabbit

coderabbitai[bot] commented 1 year ago

Walkthrough

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.

Changes

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? 🎉"


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - Mention `@coderabbitai` in any *review comment* for bot assistance. The bot stays silent unless called upon. - Note: Review comments are made on code diffs or files, not on the PR overview. ### Pause Incremental Reviews - Insert `@coderabbitai: ignore` in the PR description to halt the bot's ongoing reviews. Remove the line to resume.