Skip to content

feat(projects): improve pagination summary respecting limit and page#12

Merged
fhverga merged 3 commits intomainfrom
feature/projects-pagination-summary
Feb 27, 2026
Merged

feat(projects): improve pagination summary respecting limit and page#12
fhverga merged 3 commits intomainfrom
feature/projects-pagination-summary

Conversation

@fhverga
Copy link
Contributor

@fhverga fhverga commented Feb 27, 2026

Summary

Improve pagination summary in conviso projects list to correctly respect
custom --limit values and dynamically calculate total pages.

Previously, the CLI relied on the API totalPages value, which may not
accurately reflect custom limits passed via the CLI.

This PR recalculates pagination locally using:

  • total_count returned by the API
  • current page
  • effective limit
  • math.ceil() for total page calculation

This guarantees accurate CLI feedback regardless of the API pagination metadata.


Example

Command:

conviso projects list -c 14 -l 100

Output
Showing 1-100 of 264 (page 1/3)

@fhverga fhverga merged commit b564587 into main Feb 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant