-
Notifications
You must be signed in to change notification settings - Fork 6
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
Bug Fix: changing maxPageListLength from 3 to 7 to match CMS #886
Conversation
src/constants/pagination.ts
Outdated
@@ -0,0 +1 @@ | |||
export const DEFAULT_PAGE_LIST_LENGTH = 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
@moanu404 this looks great to me. The only thing I notice is that prod shows |
no you are right, and great catch! I def looked at another field and stored it in my 🧠 and then ran with it ![]() |
Oh that makes sense, it's 7 spaces including the last page and |
src/constants/pagination.ts
Outdated
@@ -0,0 +1 @@ | |||
export const DEFAULT_PAGE_LIST_LENGTH = 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this get changed to 7?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Description
Currently in prod CMS this field is set to 7 but in
next-build
it was set and hardcoded to 3, This PR is changing this innext-build
to 7 to better match what is currently in prod, and adding it as a constant so in future we only have to change it in one place instead of a few as we scale this thing out.Ticket
Closes to #19849
Developer Task
Tasks
Testing Steps
For local testing load up

http://localhost:3999/boston-health-care/news-releases/
http://localhost:3999/boston-health-care/stories/ (although this one does not have enough pages to see a difference)
and ensure that at the bottom the component upon inspection is like
QA steps
Check the footer, ensure it works
Screenshots
Before:

After:

Is this PR blocked by another PR?
DO NOT MERGE
labelReviewer
Reviewing a PR
This section lists items that need to be checked or updated when making changes to this repository.
Standard Checks
Tasks
Merging an Approved Layout
When merging a layout, you must ensure that the content type has been turned on for
next-build
inside theCMS
. This CMS flag must be turned on for editors to preview their work using the next build preview server.Resource types (layouts) that have not been approved by design should NOT be pushed to production. Ensure that slug.tsx does not include your resource type if it is not approved.
The status of layouts should be kept up to date inside templates.md. This includes QA progress, development progress, etc. A link should be provided for where testing can occur.
Merging a Non-Approved Layout
Your new resource type should not be included inside slug.tsx. Items added here will go into production once merged into the
main
branch. It is imperative that we do not push anything live that has not been approved.Ensure that this layout has been added to the templates.md file with the current status of the work.