Skip to content

Added opengraph and twitter meta tags to index.html#1387

Open
KanakReshi wants to merge 3 commits into
BlazeUp-AI:mainfrom
KanakReshi:add-opengraph-and-twitter-meta-tags
Open

Added opengraph and twitter meta tags to index.html#1387
KanakReshi wants to merge 3 commits into
BlazeUp-AI:mainfrom
KanakReshi:add-opengraph-and-twitter-meta-tags

Conversation

@KanakReshi

Copy link
Copy Markdown

Purpose / Description

web/index.html only has a basic <title> and <meta name="description"> but no OpenGraph or Twitter Card meta tags. When an Observal link is shared on Slack, Discord, Twitter/X, or LinkedIn, it renders as a bare URL with no rich preview (no title card, no description, no image). This PR adds the necessary meta tags so shared links display a professional preview card.

Fixes

Approach

Added OpenGraph (og:title, og:description, og:image, og:url, og:type) and Twitter Card (twitter:card, twitter:title, twitter:description, twitter:image) meta tags to web/index.html. Used summary_large_image for the Twitter card type to maximize preview visibility. All tags use the existing title ("Observal") and description ("Agent registry with built-in observability") already present in the document, keeping values consistent and DRY. Image references point to /og-image.png in web/public/. A dedicated 1200×630 branded OG image was added for optimal social preview rendering.

How Has This Been Tested?

  • Verified the updated index.html is valid HTML with correct tag placement inside <head>.
  • Confirmed no existing tags or font-face declarations were modified.
  • Validated that /og-image.png resolves correctly from web/public/.
  • Can be further validated post-deploy using Facebook Sharing Debugger and Twitter Card Validator.

Learning (optional, can help others)

Checklist

  • You have a descriptive commit message with a short title (first line, max 50 chars).
  • You have commented your code, particularly in hard-to-understand areas
  • You have performed a self-review of your own code
  • UI changes: include screenshots of all affected screens (in particular showing any new or changed strings)

@CLAassistant

CLAassistant commented Jun 7, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions github-actions Bot added new contributor Pull request from a first-time contributor server Pull request touches server code web Pull request touches web frontend code labels Jun 7, 2026
@KanakReshi KanakReshi changed the title Add opengraph and twitter meta tags Added opengraph and twitter meta tags to index.html Jun 7, 2026

@Haz3-jolt Haz3-jolt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please sign CLA as well

Comment thread web/index.html Outdated
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="Observal" />
<meta name="twitter:description" content="Agent registry with built-in observability" />
<meta name="twitter:image" content="/og-image.png" />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Link the existing logo do not create your own

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok

Comment thread observal-server/api/routes/mcp.py Outdated

await db.commit()
await db.refresh(listing)
if listing.status == ListingStatus.pending or listing.status == ListingStatus.rejected:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why this unrelated change??

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This was done by me few days ago , I found a dead branch so i changed it , My bad

@codecov

codecov Bot commented Jun 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@KanakReshi KanakReshi force-pushed the add-opengraph-and-twitter-meta-tags branch from 06cb0b7 to a1362e4 Compare June 7, 2026 10:51
@KanakReshi KanakReshi requested a review from Haz3-jolt June 7, 2026 11:03


# --- Version sub-routes ---
router.include_router(create_version_router("mcp", McpListing, McpVersion))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Your net diff is 0; what are you doing? Don't touch. what is not in scope

@Haz3-jolt

Copy link
Copy Markdown
Contributor

Squash into one commit and add screenshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new contributor Pull request from a first-time contributor server Pull request touches server code web Pull request touches web frontend code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add OpenGraph and Twitter meta tags to index.html

3 participants