Skip to content

feat: add previous and next navigation to contributor spotlight pages#501

Open
abhi-battula wants to merge 7 commits intojenkins-infra:mainfrom
abhi-battula:abhinav-issue-476-phase2
Open

feat: add previous and next navigation to contributor spotlight pages#501
abhi-battula wants to merge 7 commits intojenkins-infra:mainfrom
abhi-battula:abhinav-issue-476-phase2

Conversation

@abhi-battula
Copy link
Contributor

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.

@abhi-battula abhi-battula requested a review from a team as a code owner February 13, 2026 14:53
@abhi-battula
Copy link
Contributor Author

Hi Kris, whenever you have a moment, I’d love your feedback on this.

@DecodeX15
Copy link
Contributor

can you show a demo ?

@krisstern
Copy link
Member

@abhi-battula there is some merge conflict in this PR that needs to be resolved

@abhi-battula
Copy link
Contributor Author

Hey Kris, yeah, those were from recently merged PRs. I’ve resolved the conflicts, all clean now.

@krisstern
Copy link
Member

Hi @abhi-battula there is an additional merge conflict for this PR needs to be resolved

@abhi-battula
Copy link
Contributor Author

Hey Kris, I’ve resolved that conflict as well. Could you please take a look now when you get a chance? Thanks!

@krisstern
Copy link
Member

The light mode looks okay:

Screenshot 2026-02-17 at 2 11 54 PM

But the top wording for the dark mode is too dark in contrast to the background color:

Screenshot 2026-02-17 at 2 11 05 PM

@krisstern krisstern added the enhancement New feature or request label Feb 17, 2026
@abhi-battula
Copy link
Contributor Author

Hi Kris, thanks for pointing that out. I’ll update the dark mode text color to improve the contrast and push a fix shortly.

@abhi-battula
Copy link
Contributor Author

Hi Kris, I’ve updated the dark mode contrast. Please review it when you have time. Thanks!

@abhi-battula
Copy link
Contributor Author

Hey Kris, done with the requested changes, please take a look.

@krisstern krisstern requested a review from Copilot March 1, 2026 10:55
@krisstern krisstern changed the title add previous and next navigation to contributor spotlight pages feat: add previous and next navigation to contributor spotlight pages Mar 1, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 allAsciidoc by derived publicationDate when generating contributor pages.
  • Pass previous/next contributor metadata via pageContext during 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.

@abhi-battula abhi-battula force-pushed the abhinav-issue-476-phase2 branch from 863ddd6 to 3e1e6b4 Compare March 6, 2026 01:18
@abhi-battula
Copy link
Contributor Author

Hi Kris, addressed the Copilot suggestion. Please review when you have time. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants