Skip to content

Fix the Edit Contributor button opening the wrong person - #557

Merged
doomlab merged 1 commit into
devfrom
fix/539-edit-contributor-link
Oct 9, 2026
Merged

doomlab merged 1 commit into
devfrom
fix/539-edit-contributor-link

Conversation

@doomlab

@doomlab doomlab commented Oct 8, 2026

Copy link
Copy Markdown
Member

Related to #539 (found while tracing it; does not by itself close it).

Problem

On a contributor's page, Edit Contributor linked to the edit page with the person's user id, but the edit page (like the contributor page) looks people up by project member id. Those are separate number sequences, so the button opened a different contributor in that project, or a not-found page, for most people.

Fix

Pass the page's own contributorId (the project member id), as the contributors table and the edit page's own links already do. I checked every other link to these pages: they pass member ids correctly (the tag people table's userId field is a member id, just misleadingly named).

Testing

ContributorPage.test.tsx: with member 41 whose user id is 7, the Edit button points at /projects/3/contributors/41/edit. It fails without the change (it pointed at /7/edit). Typecheck (apart from the existing getJsonSchema.test.ts errors) and lint pass. Not yet checked in a browser.

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@doomlab
doomlab merged commit 66fd012 into dev Oct 9, 2026
1 check passed
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