Add social preview image for shared links - #116
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Adds
public/og-image.png, the social preview card.layout.tsxalready declaresopenGraph.imagesandtwitter.imagesashttps://evm.fate.stability.nexus/og-image.png, and that URL returns 404 today, so sharing a Fate link in Discord, X or LinkedIn produces no preview. The Twitter card is declaredsummary_large_image, which specifically requires the image.og:image:widthandog:image:heightthe metadata already declares.public/icon-512.png(byte-identical source), cropped to the mark's inked box since the asset carries 43px of dead space on each side.#0a0a0aits silhouette dissolves and only the bear reads. Same contrast finding as the navbar in Replace Fate logo with new mark and fix broken icons #114; here the fix is the ground rather than the asset.#FFC517, the same gold as the Stability Nexus badge at the top of the README.Verified:
npm run buildexits 0, the asset exports toout/og-image.png, and the emittedog:imageandtwitter:imagetags resolve to it.Placeholder pending a version from the designer who produced the mark. The filename is stable, so replacing it is a one-file swap with no code change.
AI Usage Disclosure:
We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact. AI slop is strongly discouraged and may lead to banning and blocking. Do not spam our repos with AI slop.
Check one of the checkboxes below:
Checklist