Skip to content

Added Pagination in activity screen. #3148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

anisha-e10
Copy link
Contributor

@anisha-e10 anisha-e10 commented Jun 27, 2025

Fixes #3146

  • This PR adds pagination support for activity items. The first 100 items are loaded initially, and an additional 100 items are fetched when the user scrolls to the end of the list.

  • A loading indicator is displayed at the bottom while new items are being loaded.

Reference video:

Screen.Recording.2025-06-30.at.1.15.12.PM.mov

@github-project-automation github-project-automation bot moved this to Backlog in Product Jun 27, 2025
@anisha-e10 anisha-e10 changed the title Added click actions to activity items in the Activity screen Added Pagination in activity screen. Jun 27, 2025
Copy link
Contributor

Hey there 👋,
and thanks for the contribution. But it seems like you forgot to

  • 📰 Add a markdown file in .changes/ explaining what changed

Copy link

codecov bot commented Jun 27, 2025

Codecov Report

Attention: Patch coverage is 86.00000% with 7 lines in your changes missing coverage. Please review.

Project coverage is 47.13%. Comparing base (060ef6c) to head (cb49624).

Files with missing lines Patch % Lines
...ties/providers/notifiers/activities_notifiers.dart 85.29% 5 Missing ⚠️
...lib/features/activities/pages/activities_page.dart 87.50% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3148      +/-   ##
==========================================
+ Coverage   46.76%   47.13%   +0.37%     
==========================================
  Files         948      948              
  Lines       57845    57870      +25     
==========================================
+ Hits        27049    27278     +229     
+ Misses      30796    30592     -204     
Flag Coverage Δ
integration-test 58.00% <ø> (-0.01%) ⬇️
unittest 39.92% <86.00%> (+0.63%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@anisha-e10 anisha-e10 marked this pull request as ready for review June 30, 2025 08:17
Copy link
Contributor

@gtalha07 gtalha07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't explicitly approve here because of how the providers are used to accomodate loading and pagination as they always seem abhorrent to mess with UI states (from the past experience) though I see it works based on the provided video. Perhaps @kumarpalsinh25 or @gnunicorn could also give opinions on taken approach...

Copy link
Contributor

@kumarpalsinh25 kumarpalsinh25 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although functionally this pagination looks fine in video reference, I would like to make it with proper implementation. I really doesn't like the way providers are implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

In activity screen there should be pagination on scrolling.
3 participants