Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: download ContributorsTable data as JSON/CSV #4151

Merged
merged 5 commits into from
Oct 3, 2024

Conversation

zeucapua
Copy link
Contributor

@zeucapua zeucapua commented Oct 1, 2024

Description

Implement a SplitButton in the ContributorsTable to allow the user to download the data as either JSON or CSV file.

JSON Output

{
  "brandonroberts": {
    "commits": 13,
    "prs_created": 6,
    "prs_reviewed": 21,
    "issues_created": 1,
    "commit_comments": 0,
    "total_contributions": 41,
    "login": "brandonroberts",
    "oscr": 271.125,
    "company": "@open-sauced",
    "location": "Alabama"
  },
  "nickytonline": {
    "commits": 14,
    "prs_created": 9,
    "prs_reviewed": 30,
    "issues_created": 12,
    "commit_comments": 0,
    "total_contributions": 65,
    "login": "nickytonline",
    "oscr": 250.98387096774195,
    "company": "@open-sauced",
    "location": "Montreal, Canada"
  },
  "jpmcb": {
    "commits": 0,
    "prs_created": 0,
    "prs_reviewed": 12,
    "issues_created": 0,
    "commit_comments": 0,
    "total_contributions": 12,
    "login": "jpmcb",
    "oscr": 248.2038461538462,
    "company": "@open-sauced",
    "location": "Denver, Colorado"
  },
  "zeucapua": {
    "commits": 0,
    "prs_created": 4,
    "prs_reviewed": 8,
    "issues_created": 4,
    "commit_comments": 0,
    "total_contributions": 16,
    "login": "zeucapua",
    "oscr": 173.92499999999998,
    "company": "@open-sauced",
    "location": "Los Angeles, CA"
  },
}

CSV Output (in Numbers)
image

Related Tickets & Documents

Closes #4125

Mobile & Desktop Screenshots/Recordings

image

Steps to QA

  1. Go to any Contributor Table (Contributor Insights or Repo Page's Contributor tab)
  2. Use the split button to choose between JSON and CSV
  3. Download and open the file
  4. Ensure the data is correct and consistent between JSON and CSV outputs

Tier (staff will fill in)

  • Tier 1
  • Tier 2
  • Tier 3
  • Tier 4

[optional] What gif best describes this PR or how it makes you feel?

a-man-walking-down-a-hallway-with-the-words-press-x-to-jaaaa-aaasoooon

Copy link

netlify bot commented Oct 1, 2024

Deploy Preview for oss-insights ready!

Name Link
🔨 Latest commit 323b655
🔍 Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/66feb7a31881ed0008b55f24
😎 Deploy Preview https://deploy-preview-4151--oss-insights.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 1, 2024

Deploy Preview for design-insights ready!

Name Link
🔨 Latest commit 323b655
🔍 Latest deploy log https://app.netlify.com/sites/design-insights/deploys/66feb7a306886c0008ac356a
😎 Deploy Preview https://deploy-preview-4151--design-insights.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@zeucapua zeucapua marked this pull request as ready for review October 3, 2024 15:33
@zeucapua zeucapua requested a review from a team October 3, 2024 15:33
Copy link
Member

@jpmcb jpmcb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid work!!! 👏🏼

@brandonroberts brandonroberts added this pull request to the merge queue Oct 3, 2024
Merged via the queue into beta with commit d87b37e Oct 3, 2024
25 checks passed
@brandonroberts brandonroberts deleted the feat/download-table-data branch October 3, 2024 18:51
open-sauced bot pushed a commit that referenced this pull request Oct 3, 2024
## [2.64.0-beta.1](v2.63.1-beta.1...v2.64.0-beta.1) (2024-10-03)

### 🍕 Features

* download `ContributorsTable` data as JSON/CSV ([#4151](#4151)) ([d87b37e](d87b37e))
open-sauced bot pushed a commit that referenced this pull request Oct 22, 2024
## [2.64.0](v2.63.0...v2.64.0) (2024-10-22)

### 🍕 Features

* download `ContributorsTable` data as JSON/CSV ([#4151](#4151)) ([d87b37e](d87b37e))
* removed developer pack form from user settings page ([#4173](#4173)) ([da975d7](da975d7))
* removed payments and limits ([#4171](#4171)) ([898d889](898d889))

### 🐛 Bug Fixes

* a11y rule "iframe-has-title" fails with a warning. ([#4162](#4162)) ([f15764a](f15764a))
* a11y rule "img-redundant-alt" fails with a warning ([#4176](#4176)) ([cc9cdf0](cc9cdf0))
* a11y rule "no-noninteractive-element-interactions" ([#4163](#4163)) ([4d26abc](4d26abc))
* fixed changing workspaces visibility regression ([#4172](#4172)) ([ee12474](ee12474))
* Make the "create workspace" option more obvious ([#4177](#4177)) ([9d8ae39](9d8ae39))
* removed unused code ([#4178](#4178)) ([d6fff39](d6fff39))
* resolve a11y warnings for role-supports-aria-props rule ([#4174](#4174)) ([95e2099](95e2099))
* throw errors on insight creation failure ([#4145](#4145)) ([e3f8db3](e3f8db3))
* use a tags instead of link tags ([#4158](#4158)) ([7b48770](7b48770))
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.

Feature: add "download data" option to contributor and repository tables
3 participants