Download a leaderboard as CSV

Open Beginner friendly
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
90/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript

Research direction

In web/template.html, read renderBoard() and ranked(scope, cat) to see how the filtered leaderboard rows are built. Start with npm run data, then npm run build and open site/leaderboard.html. Add the browser download using a Blob and an a download element; confirm the CSV includes all filtered rows and opens cleanly in Excel or Google Sheets with names containing commas and quotes.

Written by the indexing model from the issue text.

Description

enhancement good first issue

People will want the numbers in a spreadsheet.

What to build

  • A "Download CSV" button next to the leaderboard's search box that downloads the list as it is filtered (place and category), with columns: rank, login, location, name, state, parish, and every category.
  • Built in the browser (a Blob and an <a download>), no server.

Where

  • web/template.html: renderBoard() builds the list; ranked(scope, cat) gives every row, not only the first 100.

Done when

  • The file opens cleanly in Excel and Google Sheets, including names with commas and quotes.

Getting started: npm run data, then npm run build, then open site/leaderboard.html. No dependencies; see CONTRIBUTING.md.

Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
1m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from wbp318/github-leaderboard

All issues in wbp318/github-leaderboard

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.