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: copy OSSF Scorecard as image #4000

Merged
merged 1 commit into from
Aug 21, 2024
Merged

feat: copy OSSF Scorecard as image #4000

merged 1 commit into from
Aug 21, 2024

Conversation

zeucapua
Copy link
Contributor

@zeucapua zeucapua commented Aug 21, 2024

Description

Wraps the OssfChart component with CopyContainer to allow users to copy it as an image with a branding bar on top. The button will not show if the OSSF score is still be calculated.

Related Tickets & Documents

Closes #3961

Mobile & Desktop Screenshots/Recordings

image

Steps to QA

  1. Go to a repository page
  2. If its score is still being calculated, ensure the copy button doesn't show
  3. If the score is available, copy the chart by clicking the button
  4. Paste the image on a text box that'll render it (eg GitHub markdown, Twitter post, etc.)

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?

Copy link

netlify bot commented Aug 21, 2024

Deploy Preview for design-insights ready!

Name Link
🔨 Latest commit 76178ac
🔍 Latest deploy log https://app.netlify.com/sites/design-insights/deploys/66c6289672bb62000846f2cd
😎 Deploy Preview https://deploy-preview-4000--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.

Copy link

netlify bot commented Aug 21, 2024

Deploy Preview for oss-insights ready!

Name Link
🔨 Latest commit 76178ac
🔍 Latest deploy log https://app.netlify.com/sites/oss-insights/deploys/66c62896bb0b3900084c06f5
😎 Deploy Preview https://deploy-preview-4000--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.

@zeucapua zeucapua marked this pull request as ready for review August 21, 2024 19:07
@zeucapua zeucapua requested a review from a team August 21, 2024 19:07
Copy link
Contributor

@brandonroberts brandonroberts left a comment

Choose a reason for hiding this comment

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

Works for me when pasting into Slack
image

@zeucapua zeucapua added this pull request to the merge queue Aug 21, 2024
Merged via the queue into beta with commit 690fb38 Aug 21, 2024
19 checks passed
@zeucapua zeucapua deleted the feat/copy-ossf-scorecard branch August 21, 2024 19:57
open-sauced bot pushed a commit that referenced this pull request Aug 21, 2024
## [2.60.0-beta.1](v2.59.0...v2.60.0-beta.1) (2024-08-21)

### 🍕 Features

* copy OSSF Scorecard as image ([#4000](#4000)) ([690fb38](690fb38))
open-sauced bot pushed a commit that referenced this pull request Aug 22, 2024
## [2.60.0](v2.59.0...v2.60.0) (2024-08-22)

### 🐛 Bug Fixes

* always show Add to Workspace button on repositories table ([#4003](#4003)) ([5954f32](5954f32))
* resolve incorrect redirect to 404 page on search fields ([#3959](#3959)) ([298161d](298161d))

### 🍕 Features

* copy OSSF Scorecard as image ([#4000](#4000)) ([690fb38](690fb38))
* copy repo page YOLO Chart as image ([#4014](#4014)) ([376dbe2](376dbe2))
* now you can copy the contributor confidence chart as an image ([#3966](#3966)) ([3291c6d](3291c6d))
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: Copy OpenSSF score card to clipboard as an image
3 participants