Skip to content

Feature Spaet, Mourier, and Rummer 2026 paper - #111

Merged
Luen merged 3 commits into
mainfrom
feat/spaet-mourier-rummer-2026
Aug 14, 2026
Merged

Feature Spaet, Mourier, and Rummer 2026 paper#111
Luen merged 3 commits into
mainfrom
feat/spaet-mourier-rummer-2026

Conversation

@Luen

@LuenLuen commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Feature the new Frontiers Perspective on gender equity in elasmobranch research on /publications#featured.
  • Add the same paper to Women in Science, with DOI and RummerLab PDF links.
  • Wire #featured, #articles, and #books anchors used in the publications menu.

Test plan

  • Open /publications#featured and confirm the Spaet, Mourier, and Rummer 2026 card, DOI, and PDF links work.
  • Open /women-in-science and confirm the latest-research card and links.
  • Check light and dark mode on both pages.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Luen <Luen@users.noreply.github.com>
@vercel

vercelBot commented Aug 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
jodierummerReadyReadyPreviewAug 14, 2026 6:27am

@github-actionsgithub-actionsBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Claude BugBot Analysis

No bugs found in the changes. The diff adds a featured publication (content + JSON-LD) to the publications and women-in-science pages, following existing patterns exactly (same rendering loop shape, same author-splitting and JSON-LD construction as the pre-existing journalArticles/bookChapters code), with correctly matched anchor id/href pairs and no null derefs, off-by-ones, or structural issues.

No bugs were detected in this PR.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Luen <Luen@users.noreply.github.com>
@Luen

Luen commented Aug 14, 2026

Copy link
Copy Markdown
CollaboratorAuthor

Featured publications now come from RummerLab instead of a hardcoded list:

  • GET https://rummerlab.com/api/papers/featured
  • Women in Science still highlights this gender-equity paper (page-specific), and the PDF link is resolved from GET /api/papers

Merge RummerLab/rummerlab-website#194 first so production exposes the papers API. Until then, featured falls back to a RummerLab publications link.

Follow-up: #112 (full journal-article list from RummerLab APIs).

@github-actionsgithub-actionsBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 Claude BugBot Analysis

Found 1 potential bug in this PR.

high: 1

The PR adds an AGENTS.md rule prohibiting hardcoded featured publications, but the women-in-science page hardcodes the newly featured paper's title, authors, journal, and DOI in JSX and JSON-LD instead of pulling it from the RummerLab featured-papers API as the publications page correctly does.

Comment threadapp/women-in-science/page.tsx Outdated
</p>
</div>

<article className="mt-12 rounded-2xl border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-900 p-8">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟠 HIGH: Hardcoded featured publication violates newly-added AGENTS.md rule

This same PR adds the rule to AGENTS.md (line 46): "Team data and featured papers come from RummerLab APIs (... /api/papers/featured). Do not hardcode featured publications." Yet the new <article> block in app/women-in-science/page.tsx (lines 119-160) hardcodes the title, authors, journal citation, and DOI of the Spaet/Mourier/Rummer 2026 paper directly in JSX, rather than sourcing it from getRummerlabFeaturedPapers() (which is correctly used for this purpose on app/publications/page.tsx). Only the PDF link (spaetPaper) is fetched from the API via getRummerlabPapers(); the rest of the featured-publication content is static and will go stale/incorrect if the paper's metadata changes, directly contradicting the rule this PR itself introduces. Fix by deriving the headline/authors/journal/DOI/date from the fetched paper object (e.g. via getRummerlabFeaturedPapers() or the spaetPaper record) instead of hardcoding them.

Additional Locations

  • app/women-in-science/page.tsx:296 — The JSON-LD subjectOf block also hardcodes the same paper's title, authors, publisher, and a datePublished of '2026-08-14' (today's date, not the paper's actual publication date) instead of sourcing it from the fetched paper data.

Women in Science and featured lists now use only RummerLab /api/papers data, and nanoid is overridden to 3.3.18 for the postcss transitive dependency.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Luen <Luen@users.noreply.github.com>

@github-actionsgithub-actionsBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Claude BugBot Analysis

No new bugs found. The previously reported hardcoded-featured-publication issue in app/women-in-science/page.tsx is fixed: both the JSX article block and the JSON-LD subjectOf block now derive title, URL, and date from the fetched RummerLab paper data via findRummerlabPaper/getRummerlabFeaturedPapers instead of hardcoded strings.

No bugs were detected in this PR.

@Luen
Luen merged commit 0d8f073 into mainAug 14, 2026
12 checks passed
@Luen
Luen deleted the feat/spaet-mourier-rummer-2026 branch August 14, 2026 06:29
Sign up for freeto 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

@Luen