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

Feat/cdd 2182 integrate with cms pagination #586

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

Conversation

Temiakinsoto
Copy link
Contributor

@Temiakinsoto Temiakinsoto commented Feb 3, 2025

Description

This PR adds feature for toggling pagination component visibility with the "Show pagination" checkbox (cms), and also limits child pages shown based on "Pagination size."

Fixes #CDD-2182

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Unit tests
  • Playwright e2e tests
  • Mobile responsiveness
  • Accessibility (i.e. Lighthouse audit)
  • Disabled JavaScript

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • Any styles in this change follow the 'STYLES.md' guide
  • My changes are progressively enhanced with graceful degredagation for older browsers and non-JavaScript users
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

This commit adds a show-pagination flag and takes a
pagination-size value from the CMS. The show-pagination
flag is used to hide/display the pagination component.
The pagination-size is used to set the amount of items per page
When show pagination is set to false, all items are displayed at once on the page."
@Temiakinsoto Temiakinsoto marked this pull request as ready for review February 5, 2025 09:18
@Temiakinsoto Temiakinsoto requested a review from a team as a code owner February 5, 2025 09:18
Copy link

github-actions bot commented Feb 5, 2025

Unit tests coverage

Lines Statements Branches Functions
Coverage: 95%
94.29% (1901/2016) 84.49% (485/574) 94.46% (307/325)
Tests Skipped Failures Errors Time
555 0 💤 0 ❌ 0 🔥 16.104s ⏱️

Copy link

sonarqubecloud bot commented Feb 7, 2025

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

Successfully merging this pull request may close these issues.

1 participant