Skip to content
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

[Issue #1965]: Reintroduce totalPages to Pagination component #1979

Merged
merged 4 commits into from
May 13, 2024

Conversation

rylew1
Copy link
Contributor

@rylew1 rylew1 commented May 9, 2024

Summary

Fixes #1965

Time to review: 5 min

Changes proposed

  • Reintroduce totalPages
  • set max pagination slots to 7

Fixing the size of the pagination and overflow issues around the 600px viewport width will be done in a separate effort

Screen.Recording.2024-05-09.at.3.58.45.PM.mov

@rylew1 rylew1 changed the title [Issue #1965]: Reintroduce totalPages [Issue #1979]: Reintroduce totalPages May 9, 2024
@rylew1 rylew1 changed the title [Issue #1979]: Reintroduce totalPages [Issue #1965]: Reintroduce totalPages May 9, 2024
@rylew1 rylew1 changed the title [Issue #1965]: Reintroduce totalPages [Issue #1965]: Reintroduce totalPages to Pagination component May 9, 2024
Copy link

github-actions bot commented May 9, 2024

Coverage report for ./frontend

St.
Category Percentage Covered / Total
🟢 Statements 84.11% 868/1032
🟡 Branches 65.01% 223/343
🟡 Functions 75.58% 164/217
🟢 Lines 84.15% 807/959

Test suite run success

164 tests passing in 56 suites.

Report generated by 🧪jest coverage report action from 481a00c

position: PaginationPosition;
searchResultsLength: number;
}

const MAX_SLOTS = 5;
const MAX_SLOTS = 7;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

bump max slots to 7

@rylew1 rylew1 marked this pull request as ready for review May 10, 2024 04:20
@rylew1 rylew1 requested review from andycochran and removed request for andycochran May 10, 2024 04:20
@rylew1 rylew1 merged commit ea70ccd into main May 13, 2024
12 checks passed
@rylew1 rylew1 deleted the rylew/1965-reintroduce-totalpages branch May 13, 2024 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Unbounded pagination shows extra pagination pages
2 participants