Skip to content

Conversation

@FO214
Copy link
Contributor

@FO214 FO214 commented Mar 11, 2025

Made a nicer share card for people to use, took out the share because everyone just screenshots anw, download should also work, going to check the vercel for any network issues

fixes #22
fixes #23

@vercel
Copy link

vercel bot commented Mar 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
github-stats ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 12, 2025 5:18am

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR overhauls the share functionality by replacing network-dependent image generation with client-side rendering and simplifying the user experience.

Key changes:

  • Removed API routes for SVG/PNG generation in favor of client-side image generation using html-to-image
  • Added new ShareCard component with improved mobile UI scaling and consistent styling
  • Removed social media sharing in favor of direct image downloads based on user behavior
  • Consolidated image generation libraries (dom-to-image, html-to-image, html2canvas, html2pdf.js) which may cause bloat
  • Modified ShareModal width from max-w-4xl to max-w-md for better mobile display

The changes look solid but consider:

  • Evaluate and remove redundant image generation libraries to reduce bundle size
  • Add error handling for client-side image generation
  • Test download functionality across different browsers and devices

11 file(s) reviewed, 9 comment(s)
Edit PR Review Bot Settings | Greptile

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
@FO214
Copy link
Contributor Author

FO214 commented Mar 12, 2025

Somethng still wrong with scroll, dont merge yet

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.

Fix the download issue Share Widget Mobile UI could use some work

2 participants