-
Notifications
You must be signed in to change notification settings - Fork 3
Feature/sharecard #29
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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>
…file-widget into feature/SHARECARD
|
Somethng still wrong with scroll, dont merge yet |
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