Skip to content

Improve X share card preview#46

Merged
sidhujag merged 4 commits into
syscoin:masterfrom
bigpoppa-sys:codex/share-card-preview
May 18, 2026
Merged

Improve X share card preview#46
sidhujag merged 4 commits into
syscoin:masterfrom
bigpoppa-sys:codex/share-card-preview

Conversation

@bigpoppa-sys
Copy link
Copy Markdown
Member

@bigpoppa-sys bigpoppa-sys commented May 18, 2026

What changed

  • added the provided 1200x630 social share image at public/social-card.png
  • added static Open Graph and X image tags in public/index.html so crawlers can render the homepage preview from raw HTML
  • removed the static SPA-shell canonical tag so catch-all HTML does not pin every route to the homepage URL
  • kept a static og:url fallback in public/index.html for non-JavaScript crawlers
  • updated src/components/PageMeta.js to derive og:url from the router location and refresh it on path, query, and hash changes
  • added a regression test in src/components/PageMeta.test.js for same-component query-string navigation, starting from the static og:url shell state
  • tightened the default homepage/share description for cleaner preview text

Why

Shared links on X needed a branded large-image preview, and review feedback surfaced separate SPA metadata issues around static canonical handling and raw-HTML Open Graph URL fallback.

Impact

  • links to sysnode.info should render with a branded large-image preview on X and other Open Graph consumers after deployment and cache refresh
  • raw HTML keeps an og:url identifier for crawlers that do not execute React
  • SPA navigation keeps location-based Open Graph URLs aligned with the current route
  • the static shell no longer canonicalizes deep routes back to the homepage

Validation

  • npm run build
  • CI=true npm test -- --watchAll=false --runInBand src/components/PageMeta.test.js src/lib/formatters.test.js

@sidhujag sidhujag marked this pull request as ready for review May 18, 2026 00:03
@sidhujag
Copy link
Copy Markdown
Member

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cf7a25db33

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread public/index.html Outdated
Comment thread src/components/PageMeta.js Outdated
Copy link
Copy Markdown
Member Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 47f9ccead3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread public/index.html
Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@sidhujag sidhujag merged commit 116caf9 into syscoin:master May 18, 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.

2 participants