Skip to content

feat(seo): add Open Graph and Twitter card tags to dashboard - #196

Closed
adamshatzkamer wants to merge 1 commit into
DepRadarOrg:mainfrom
adamshatzkamer:feat/og-meta-169
Closed

adamshatzkamer wants to merge 1 commit into
DepRadarOrg:mainfrom
adamshatzkamer:feat/og-meta-169

Conversation

@adamshatzkamer

Copy link
Copy Markdown

Closes #169

Problem

Shared dashboard links show no preview card — frontend/index.html had only title + description, no Open Graph or Twitter card tags.

Changes

  • frontend/public/og-image.png — 1200×630 PNG derived from assets/banner.svg (same background gradient, teal→blue title gradient, radar mark, "LIVE ON STELLAR TESTNET" pill). Committed under tracked assets so it survives builds.
  • frontend/index.html — added og:type, og:url, og:title, og:description, og:image (+ width/height/type) and twitter:card summary_large_image + twitter:title/twitter:description/twitter:image. The image URL points at the raw GitHub asset, so the preview resolves immediately on merge regardless of hosting; swap it for the deploy URL if the dashboard gets one ([CONTRIBUTING discusses hosting? N/A]).
  • PROGRESS.md — entry added per the Definition of Done.

Link-preview evidence

Link preview card

Harness replicates the rendered preview: image card + title + description, as X/Discord/Slack would show it.

Verification

  • npm run lint — 0 warnings, 0 errors
  • npm run typecheck — clean
  • npm test — 21/21 passing
  • npm run build — succeeds

If this is useful, there's a $1 tip option at https://grantshatz.gumroad.com/l/mpkqyq — no pressure, just helps fund more open-source maintenance.

Shared dashboard links showed no preview card. Adds og:title,
og:description, og:type, og:url, og:image (1200x630 PNG derived from
assets/banner.svg) plus og:image dimensions/type and twitter:card
summary_large_image tags to frontend/index.html. Adds PROGRESS.md
entry and link-preview screenshot evidence.

Closes DepRadarOrg#169
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.

[frontend] Open Graph and social preview tags

2 participants