Skip to content

fix(platform): bridge Hyper Engineers identity by shared raw email too - #207

Merged
clickmatos merged 1 commit into
mainfrom
fix-hyper-engineers-email-bridge
Aug 27, 2026
Merged

fix(platform): bridge Hyper Engineers identity by shared raw email too#207
clickmatos merged 1 commit into
mainfrom
fix-hyper-engineers-email-bridge

Conversation

@clickmatos

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #206. That PR fixed Hyper Engineers grouping when a repo's commit author name is literally the person's GitHub handle (checking userMap by name at grouping time, not just at display time). This extends the same "known mapping learned elsewhere" trick with one more signal: raw commit email.

Case this closes: a person is "identified" in one repo (their name there resolves to a github via nameToGithub/userMap), but in another repo commits under a completely different name (nickname, typo, alternate spelling) with the same actual email — neither name-based lookup catches that second entry, so today it renders as a separate "unidentified" card for the same real person.

Fix

computeHyperEngineers now does a first pass over all hyper-engineer author entries to learn email -> github wherever a name-based lookup resolves one, then uses that as an additional (last-resort) signal during the actual grouping pass — same two-tier pattern as the name-based lookup, just keyed by email instead.

Doesn't merge genuinely unidentified people who share no name, github, or email signal with anyone — those stay in "Não identificados" as before, by design.

Test plan

  • New test in platform/tests/org-summary.test.ts: two repos, same email, unrelated names, only one resolves by name — asserts they merge into one identified entry
  • npx vitest run — full suite passes (276/276)
  • npx tsc --noEmit — clean
  • npx eslint — clean

Extends the same grouping-time lookup added earlier in this branch (check
userMap by name, not just at display time) with one more signal: a
name->github mapping learned from ANY entry is now also indexed by that
entry's raw commit email, so a later entry with a totally different name
but the same actual email (e.g. a nickname, instead of an unresolved
handle-as-name) still resolves to the same identity instead of rendering
as a separate "unidentified" card for the same real person.

Co-Authored-By: claude-code_2-1-238_agent <claude-code_2-1-238_agent@iris.invalid>
@vercel

vercel Bot commented Aug 27, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
clickbus-iris Ready Ready Preview Aug 27, 2026 7:53pm

Request Review

@clickmatos
clickmatos merged commit da16235 into main Aug 27, 2026
5 checks 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