Skip to content

Point share links at the GitHub repo with working intent URLs - #22

Merged
AshishB2000 merged 1 commit into
mainfrom
fix/share-links-github
Jul 5, 2026
Merged

AshishB2000 merged 1 commit into
mainfrom
fix/share-links-github

Conversation

@AshishB2000

Copy link
Copy Markdown
Owner

screenchart.app isn't deployed yet, so sharing it produces a blank preview card. Point every social button at the live GitHub repo (which renders a proper card) and verify each intent endpoint.

Changes (renderer/hub/hub.js)

  • SHARE_URL = GITHUB_URL (https://github.com/AshishB2000/screenchart), with a TODO to switch back to screenchart.app once it ships OG tags.
  • SHARE_TEXT → "Screenchart: screenshot any chart, table, or data and get instant AI analysis. Local-first, bring your own key."
  • X → twitter.com/intent/tweet?url=&text= (was x.com); WhatsApp → wa.me/?text= (was api.whatsapp.com/send). LinkedIn/Facebook/Reddit/Telegram already matched the spec.

Endpoint check

All six URLs parse via new URL() and encode correctly. LinkedIn uses share-offsite (attaches a preview); Facebook sharer; Reddit /submit; Telegram t.me/share/url.

Buttons open via shell.openExternal (default browser). The GitHub row already opens the repo — unchanged.

screenchart.app isn't deployed, so sharing it yields a blank preview
card. Use the live GitHub repo URL as the single shared URL (TODO to
switch back once the site ships OG tags). Update the share text, and wire
X to twitter.com/intent and WhatsApp to wa.me per their current intent
endpoints; LinkedIn/Facebook/Reddit/Telegram already matched.
@AshishB2000
AshishB2000 merged commit 91fcb68 into main Jul 5, 2026
2 checks passed
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.

1 participant