Skip to content

Surface current #1 contributor and fork CTA on SotaChart#303

Open
PunchTheDev wants to merge 1 commit into
mainfrom
punch/sota-chart-fork-route
Open

Surface current #1 contributor and fork CTA on SotaChart#303
PunchTheDev wants to merge 1 commit into
mainfrom
punch/sota-chart-fork-route

Conversation

@PunchTheDev
Copy link
Copy Markdown
Owner

Summary

SotaChart was ○ ○ ○ — the chart showed score-over-time but the contributor was buried in a Recharts tooltip and there was no path from the chart to the agent's code. First-timers couldn't close the flywheel loop without scrolling back up by hand.

Changes

  • Header right cluster: current Align dashboard types with forge-api response shapes #1 score now followed by by <Link to="/rankings/{contributor}"> and a ↑ Fork anchor (119-char tooltip) routing to the #sota-code viewer above.
  • Single-submission view: same fork-CTA + by <Link> treatment; the "Sole submission" line is now a routed link rather than plain text.
  • Below the chart (only when holders.length > 1): Held #1: alice → bob → carol chain row, each name routed to /rankings/{contributor}, current holder rendered in forge-green.
  • Link imported from react-router-dom.

Verified at 1440×900 on /problems/round_001/r01_001_easy:

  • routedContributorLinks: [{ href: "/rankings/PunchTheDev", text: "PunchTheDev" }]
  • forkAnchors: [{ href: "#sota-code", text: "↑ Fork the winning agent.py", tooltipLen: 119 }]
  • click PunchTheDev → URL /rankings/PunchTheDev
  • 0 new console errors (1 pre-existing 404 unchanged)

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