Skip to content

Align funded_project references with project titles (retire the remap) - #86

Open
bendichter wants to merge 3 commits into
mainfrom
refactor/normalize-funded-project-refs
Open

bendichter wants to merge 3 commits into
mainfrom
refactor/normalize-funded-project-refs

Conversation

@bendichter

@bendichter bendichter commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Several NWB conversions referenced their funded project by a different name than the project's own title. To reconcile them, FundedProject.tsx carried a hard-coded remap table and NWBConversions.tsx carried matching slug special-cases. That is fragile: every new naming mismatch needs another branch in the code.

This makes each conversion's funded_project equal to its project's title, so the reconciliation code can be removed. The direction differs per project so the display name stays the nicest option in each case:

project approach resulting name
ASAP rename the project to its full name (conversions already used it) Aligning Science Across Parkinson's
Ripple U19 normalize the conversions to the project title Ripple U19 NWB Adoption
NYU Librarians normalize the conversions to the project title NYU Librarians NWB Adoption

The ASAP project keeps its full name, "Aligning Science Across Parkinson's", instead of the shorter "ASAP NWB Adoption". Its 13 conversions are unchanged from main.

With the values aligned, the reconciliation code is gone:

  • FundedProject.tsx — the affiliated-conversions filter is now a direct conv.funded_project === projectTitle match.
  • NWBConversions.tsx — the funded-project link slug is now a plain slugify of funded_project.

Verification

Ran a full npm run build. Affiliated-conversions sections still populate: the Aligning Science Across Parkinson's page (/funded-projects/aligning-science-across-parkinson-s) lists the Dombeck, Lerner, Turner, Higley, Schwerdt (and more) conversions, and the Ripple U19 page lists Buzsaki, Losonczy, Schnitzer, and Soltesz.

🤖 Generated with Claude Code

Several conversions referenced funded projects by a different name than
the project's own title, so the affiliated-conversions logic needed a
hard-coded remap table to reconcile them:

- "Aligning Science Across Parkinson's" -> "ASAP NWB Adoption" (13)
- "Ripple U19" -> "Ripple U19 NWB Adoption" (4)
- "NYU Librarians" -> "NYU Librarians NWB Adoption" (2)

This updates the funded_project value in those conversions to match the
project title exactly, then removes the remap in FundedProject.tsx and
the equivalent slug special-cases in NWBConversions.tsx. Affiliated
conversions and the funded-project links now resolve by direct title
match. Verified with a full build.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

Deploy Preview for catalystneuro ready!

Name Link
🔨 Latest commit a39da41
🔍 Latest deploy log https://app.netlify.com/projects/catalystneuro/deploys/6a5aa198d8f4b70008efe764
😎 Deploy Preview https://deploy-preview-86--catalystneuro.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

…project

Rather than renaming the 13 ASAP conversions to the project's short title,
this renames the project itself to its full name, which is the better
display label. The conversions already referenced "Aligning Science
Across Parkinson's", so they now match the project title directly and
are reverted to their original values. The Ripple U19 and NYU Librarians
conversions are still normalized to their project titles. Verified with
a full build: the project page renders at
/funded-projects/aligning-science-across-parkinson-s with its affiliated
conversions intact.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bendichter bendichter changed the title Normalize funded_project references to match project titles Align funded_project references with project titles (retire the remap) Jul 17, 2026
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