[do not merge] Patch series for millionco/react-doctor leaderboard#1
Draft
aidenybai wants to merge 3 commits into
Draft
[do not merge] Patch series for millionco/react-doctor leaderboard#1aidenybai wants to merge 3 commits into
aidenybai wants to merge 3 commits into
Conversation
The cloud agent that produced this is scoped to react-doctor-benchmarks and cannot push to millionco/react-doctor. Park the patch series here so the user can git am it onto a react-doctor checkout. See .cursor-out/react-doctor-leaderboard/README.md for details. Co-authored-by: Aiden Bai <aidenybai@users.noreply.github.com>
Co-authored-by: Aiden Bai <aidenybai@users.noreply.github.com>
The refresh-leaderboard workflow now runs pnpm format after the sync script so the auto-commit lands in canonical style and main CI's format:check stays green. Co-authored-by: Aiden Bai <aidenybai@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is not meant to merge into
react-doctor-benchmarks. It exists only to make a patch series visible.Why this exists
The user asked the cloud agent to add a leaderboard to
millionco/react-doctor(packages/react-doctor's README + a website/leaderboardpage) usingresults/leaderboard.jsonfrom this benchmarks repo. The agent runs with a token scoped toreact-doctor-benchmarksand cannot push branches toreact-doctor, so the work is parked here as a patch series.What's in the patch
.cursor-out/react-doctor-leaderboard/0001-leaderboard.patchis agit format-patchseries with five commits to apply on top ofmillionco/react-doctor:main:feat(scripts): sync leaderboard data from react-doctor-benchmarksscripts/sync-leaderboard.ts. Fetcheshttps://raw.githubusercontent.com/millionco/react-doctor-benchmarks/main/results/leaderboard.json(or a local file when passed as arg). Writes the full blob topackages/website/src/app/leaderboard/leaderboard-data.json. Splices a top-10 markdown table intopackages/react-doctor/README.mdbetween<!-- LEADERBOARD:START -->/<!-- LEADERBOARD:END -->. Idempotent.leaderboard:syncpackage script.leaderboard-data.jsonwith the latest blob.docs(react-doctor): add leaderboard section synced via CI## Leaderboardsection topackages/react-doctor/README.md(top 10, link tohttps://github.com/millionco/react-doctor-benchmarks/tree/main, no em dashes).feat(website): add /leaderboard pagepackages/website/src/app/leaderboard/page.tsx. Matches the existing/sharepage style (doctor face mirrors top score, score bars, share-page links per project). Reads from the staticleaderboard-data.json.revalidate = 3600.ci: refresh leaderboard from react-doctor-benchmarks.github/workflows/refresh-leaderboard.yml. Runs daily, plusworkflow_dispatchandrepository_dispatch: leaderboard-updated. Pipeline:pnpm install→node sync-leaderboard.ts→pnpm format→ commit and push if anything changed. The format step is required so the auto-commit lands in canonical style and main CI'sformat:checkstays green.chore: drop bench:scores in favor of the synced leaderboardscripts/benchmark-scores.tsand thebench:scorespackage script. It was a hand-rolled artifact downloader for terminal viewing;leaderboard.jsonis now the canonical consumer blob, so the duplicate fetcher has no remaining users.Verified locally:
pnpm typecheck,pnpm lint,pnpm format:check,pnpm test, andpnpm --filter website buildall pass. The CI flow was simulated end to end (sync writes unaligned tables → format reformats → format:check passes).How to apply
git clone https://github.com/millionco/react-doctor.git cd react-doctor curl -sSfL https://raw.githubusercontent.com/millionco/react-doctor-benchmarks/cursor/leaderboard-patch-for-react-doctor-fff2/.cursor-out/react-doctor-leaderboard/0001-leaderboard.patch -o /tmp/leaderboard.patch git checkout -b cursor/leaderboard-from-benchmarks git am /tmp/leaderboard.patch git push -u origin cursor/leaderboard-from-benchmarksThen open a PR against
millionco/react-doctor:main. Or, easier: spawn a new cloud agent insidemillionco/react-doctorwith this same prompt and it'll be able to push directly.This PR can be closed once the patch has been applied to the right repo.