Skip to content

feat(web): panel social cards for projects and products - #1055

Merged
PrzemyslawKlys merged 2 commits into
mainfrom
code/social-card-panel
Oct 6, 2026
Merged

PrzemyslawKlys merged 2 commits into
mainfrom
code/social-card-panel

Conversation

@PrzemyslawKlys

@PrzemyslawKlys PrzemyslawKlys commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Project and product collections can use generated branded share cards while retaining a page image inside the card. The new panel layout places the title, description, platform chips, and site address beside either the page image or headline project metrics. It supports product accents, localized site addresses, and long titles.

Enable the layout through the existing social configuration:

"GeneratedCardCollections": ["projects", "products"],
"GeneratedCardVariantsByCollection": {"projects": "panel", "products": "panel"}

meta.social_card: false remains an opt-out. Image lookup supports the existing og_image and twitter_image aliases. Generated cards report their own dimensions, and release metrics preserve semantic versions with prerelease labels and build metadata. The strict site schema now covers the current social options, including panel, theme overrides, and custom metrics.

Validation: all 74 focused social-card tests pass. An independent local review and targeted confirmation are complete; dark and light cards, including a long title, were inspected as rendered images.

Add a ChangeIntel-style 'panel' card layout: accent bar, identity row,
eyebrow, stepped title, description, chips with the site address, and a
right panel with the page image or headline stats. Social.GeneratedCardCollections
gives whole collections generated cards, with a page image shown inside
the card instead of replacing it.

Also report generated card dimensions even when a page declares its image
size, and keep release versions when shortening long tags.
@PrzemyslawKlys
PrzemyslawKlys merged commit 8e92aa9 into main Oct 6, 2026
9 checks passed
@PrzemyslawKlys
PrzemyslawKlys deleted the code/social-card-panel branch October 6, 2026 13:53
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