Skip to content

fix(og): put the landing model and integration cards on the brandbook template - #6913

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/og-landing-cards
Aug 21, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/og-landing-cards

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #6907, which moved the shared-file card onto the brandbook cover template. The five models/integrations cards were the last ones still rendering the retired design — dark #121212 field, the old green square-icon logo, Geist — so a shared /integrations/slack link and a shared file unfurled as two different products.

  • Migrated all five opengraph-image.tsx routes (models index, provider, model, integrations index, integration) to createCoverOgImage.
  • Retired app/(landing)/og-utils.tsx and its test, the og-sim-logo component, and the two Geist TTFs — nothing else referenced any of them. Also dropped MAX_CONTEXT_WINDOW, which existed only to feed a pill row.
  • Card size goes 1200x630 → 1200x675, the template's ratio. All five routes now export COVER_OG_SIZE rather than restating it.

Captions now wrap to two lines (COVER_MAX_CAPTION_LINES), ellipsized past that. A one-line caption was fine for shared-file provenance but would have gutted a catalog description.

What the template drops

The reference template is a title and a caption, so the eyebrow, the pill row, and the domainLabel have no slot. Rather than re-add them and re-fork the design we just unified, the counts the pills carried are folded into the two index captions — "Browse N models from N providers…", "Connect N apps and services and N+ tools…". The per-item cards already named their provider and pricing in the caption. Happy to reinstate a pill row on the template if the density is worth it, but that's a design call rather than a bug fix.

One fix in the shared renderer

translateY(14px) moves the title visually but not in flow, so the title descended into the caption's gap and the two crowded. The caption's marginTop now adds the nudge back, restoring the intended optical gap. Because the footer is bottom-anchored this lifts the title rather than pushing the caption into the bottom padding — verified against rendered output, and it improves the shared-file card too.

Type of Change

  • Bug fix

Testing

Rendered every card shape and compared against a library cover. Layout tests extended for caption wrapping and truncation, and they measure the font independently of the renderer, so an estimator regression turns them red. Confirmed all five routes omit openGraph.images so the file-based card is what actually ships — Next skips the file-based image whenever a page declares that key, including as undefined. bun run lint, bun run check:audits (32/32), check-block-registry, tsc --noEmit, and 16 tests pass.

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Loading
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