feat: add previous and next navigation to contributor spotlight pages#501
feat: add previous and next navigation to contributor spotlight pages#501abhi-battula wants to merge 7 commits intojenkins-infra:mainfrom
Conversation
|
Hi Kris, whenever you have a moment, I’d love your feedback on this. |
|
can you show a demo ? |
|
@abhi-battula there is some merge conflict in this PR that needs to be resolved |
|
Hey Kris, yeah, those were from recently merged PRs. I’ve resolved the conflicts, all clean now. |
|
Hi @abhi-battula there is an additional merge conflict for this PR needs to be resolved |
|
Hey Kris, I’ve resolved that conflict as well. Could you please take a look now when you get a chance? Thanks! |
|
Hi Kris, thanks for pointing that out. I’ll update the dark mode text color to improve the contrast and push a fix shortly. |
|
Hi Kris, I’ve updated the dark mode contrast. Please review it when you have time. Thanks! |
|
Hey Kris, done with the requested changes, please take a look. |
There was a problem hiding this comment.
Pull request overview
Implements Phase 2 of #476 by enabling sequential navigation between Contributor Spotlight profile pages using the same published-date ordering as the home page.
Changes:
- Sort
allAsciidocby derivedpublicationDatewhen generating contributor pages. - Pass
previous/nextcontributor metadata viapageContextduring page creation. - Render “Previous Profile” / “Next Profile” navigation UI on the contributor detail template.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
gatsby-node.js |
Sorts contributors by publicationDate and wires previous/next data into page context. |
src/templates/contributor-details.jsx |
Adds bottom-of-page previous/next navigation UI and dark-mode detection for nav label styling. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
863ddd6 to
3e1e6b4
Compare
|
Hi Kris, addressed the Copilot suggestion. Please review when you have time. Thanks! |


This PR implements Phase 2 of the #476 .
It adds Previous and Next navigation links to the bottom of the contributor detail page.
The navigation follows the same published date order used on the home page, so browsing between profiles is consistent and predictable.