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

Frontend: Adds "Save Image To Clipboard" option #3705

Merged

Conversation

benhammondmusic
Copy link
Collaborator

@benhammondmusic benhammondmusic commented Oct 4, 2024

Description and Motivation

Img to Clipboard Feature

  • closes Card option to "Copy Image to Clipboard" #3703
  • repurposed "save image" function to allow saving to clipboard or download
  • makes new card option button to save img to clipboard
  • adds snackbar notification that clipboard save was successful
  • adds image thumbnail into snackbar notice

Refactors

  • refactors <HetDialog> to accept a child element to make it more reusable, rather than sending in specific pieces of the message as props
  • new reusable component for Card Export Menu Items
  • new hook to co-locate all card image/share stuff
  • settings tweak to auto-organize imports and remove unused imports automatically

Has this been tested? How?

  • passing

Screenshots (if appropriate)

Screenshot 2024-10-04 at 2 15 13 PM Screenshot 2024-10-04 at 2 15 26 PM Screenshot 2024-10-04 at 2 15 41 PM

Types of changes

(leave all that apply)

  • New content or feature
  • Refactor / chore

New frontend preview link is below in the Netlify comment 😎

Copy link

netlify bot commented Oct 4, 2024

Deploy Preview for health-equity-tracker ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 13815dc
🔍 Latest deploy log https://app.netlify.com/sites/health-equity-tracker/deploys/67005551e66b1700088a12db
😎 Deploy Preview https://deploy-preview-3705--health-equity-tracker.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.

@benhammondmusic benhammondmusic marked this pull request as ready for review October 4, 2024 20:22
@benhammondmusic benhammondmusic self-assigned this Oct 4, 2024
@benhammondmusic benhammondmusic merged commit baa7331 into SatcherInstitute:main Oct 4, 2024
10 checks passed
@benhammondmusic benhammondmusic deleted the save-img-to-clipboard branch October 4, 2024 21:59
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.

Card option to "Copy Image to Clipboard"
2 participants