Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 12:15 UTC
feat(docs): redesign social preview cards (#4502)
## Summary Rebuilds the docs social preview (`/api/og`) as one shared shell with a slot per section, on the docs dark surface. - **Shell:** dark ground with a faded pixel-grid background, Composio wordmark top-left, mono uppercase section eyebrow top-right, centered content. `theme=light` renders the flat light surface. - **Docs:** balanced title plus description. - **Toolkits:** Composio mark and toolkit logo in linked tiles, "<Name> Toolkit" title, description. No tile when there is no logo. Logos load only from `logos.composio.dev` / `assets.composio.dev` over https and use the CDN's `theme=dark` variant. - **API reference:** REST API pill with the version label. - **Changelog:** date shown once as an eyebrow; multi-entry days use "N updates" as the title so the date is not repeated. - **Home:** headline with brand-blue accent and a description that counts apps from the live catalog label. Type is Geist Sans / Geist Mono, vendored as TTF with the OFL because Satori cannot read the site's woff2 files. The wordmark and mark are sliced from the existing logo SVGs; no new brand asset was added. Fonts, logos, and the background are added to `outputFileTracingIncludes` so the route ships them on Vercel. `getOgImageUrl` now emits `section` and optional `logo`, `date`, and `version` params; the toolkit, changelog, and reference pages pass them. ## Before / after Before: charcoal card, orange accent, default sans-serif, identical for every section. After (dark by default): | Home | Toolkit | Reference | Changelog | | --- | --- | --- | --- | | headline + description | mark ⟶ logo, title, description | pill + version, title | date eyebrow, title | ## Notes - Output PNGs are ~1.5 MB each because of the photographic background; a flatter texture would bring that down if it matters. - Typecheck errors in this branch (`LayoutProps`, `PageProps`, `docs-index`) predate the change and come from missing generated types without a build. - The 8 failing static tests are in `kb-update-workflow.test.ts` and are unrelated. ## Test plan - [x] `bun test tests/static/og-image.test.ts` — 6 tests: every section renders a 1200×630 PNG, URL builder forwards params, logo host allowlist, theme default and override - [x] Rendered every variant locally and reviewed the PNGs - [ ] Verify a deployed preview URL renders `/api/og?section=toolkits&title=GitHub&logo=https%3A%2F%2Flogos.composio.dev%2Fapi%2Fgithub` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
No changes.