Skip to content

chore(brand): replace default Vercel/Mintlify favicons + add OG image - #6

Merged
gkhngyk merged 3 commits into
mainfrom
chore/branded-favicons-and-og
May 9, 2026
Merged

gkhngyk merged 3 commits into
mainfrom
chore/branded-favicons-and-og

Conversation

@gkhngyk

@gkhngyk gkhngyk commented May 9, 2026

Copy link
Copy Markdown
Contributor

When sharing app.ansvisor.com or docs.ansvisor.com on WhatsApp / Twitter
the preview was showing the host's default chrome (Vercel logo for the
app, Mintlify wordmark for docs). Same problem on browser tabs.

  • web/src/app/icon.svg: brand mark, picked up automatically by
    Next.js as the favicon (overrides the legacy favicon.ico for modern
    browsers; old .ico kept as fallback for IE-era clients).
  • web/src/app/opengraph-image.tsx: dynamic 1200x630 OG card built
    with next/og's ImageResponse — gradient backdrop, brand mark,
    tagline, AI-engine list across the bottom. Renders on demand at
    /opengraph-image so we don't have to ship a binary asset.
  • web/src/app/layout.tsx: metadataBase + openGraph + twitter card
    config so the OG image and brand metadata are emitted on every
    page (including the auth pages).
  • docs/favicon.svg: matching favicon for Mintlify (mint.json already
    referenced /favicon.svg, just adds the file).
  • docs/mint.json: metadata block pointing og:image at the web app's
    /opengraph-image endpoint so previews share the same look without
    duplicating the asset.

When sharing app.ansvisor.com or docs.ansvisor.com on WhatsApp / Twitter
the preview was showing the host's default chrome (Vercel logo for the
app, Mintlify wordmark for docs). Same problem on browser tabs.

  - web/src/app/icon.svg: brand mark, picked up automatically by
    Next.js as the favicon (overrides the legacy favicon.ico for modern
    browsers; old .ico kept as fallback for IE-era clients).
  - web/src/app/opengraph-image.tsx: dynamic 1200x630 OG card built
    with next/og's ImageResponse — gradient backdrop, brand mark,
    tagline, AI-engine list across the bottom. Renders on demand at
    /opengraph-image so we don't have to ship a binary asset.
  - web/src/app/layout.tsx: metadataBase + openGraph + twitter card
    config so the OG image and brand metadata are emitted on every
    page (including the auth pages).
  - docs/favicon.svg: matching favicon for Mintlify (mint.json already
    referenced /favicon.svg, just adds the file).
  - docs/mint.json: metadata block pointing og:image at the web app's
    /opengraph-image endpoint so previews share the same look without
    duplicating the asset.
@vercel

vercel Bot commented May 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ansvisor Ready Ready Preview, Comment May 9, 2026 0:20am

Request Review

@mintlify

mintlify Bot commented May 9, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
ansvisor 🟢 Ready View Preview May 9, 2026, 12:15 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

gkhngyk added 2 commits May 9, 2026 15:18
The first cut shipped a stylised "A" placeholder because rendering the
SVG inside next/og's ImageResponse needs a real <img> source. Read
public/logo_dark.svg from disk, base64-encode it, and pass it to the
inline <img> via a data URL so the actual swirl mark shows up on
WhatsApp / Twitter / Slack previews. logo_dark is the white-glyph
variant — looks correct on the dark gradient backdrop.
The OG card was overdesigned. Strip everything except the brand mark
itself, sized 360x360 and centered on the same dark gradient backdrop.
Cleaner, more recognisable at thumbnail size, and works as the WhatsApp
chat preview tile without competing text.
@gkhngyk
gkhngyk merged commit df1eee3 into main May 9, 2026
2 checks passed
gkhngyk pushed a commit that referenced this pull request Nov 21, 2026
Today's Where you stand showed "27.4" with no unit and ranked the brand
among the five competitors named most, so it read "#6 of 6 brands" next
to 19 tracked competitors (AC-02). It now shows the Visibility score out
of 100 (D1, D2), says which run it is from (D7), and ranks among the
brand's primary rivals, its Direct competitors, with a rival no answer
named at 0 (D5). With none marked it ranks among every competitor named
in 10 or more prompts (D8), read from the full competitor list rather
than the top-5 slice. The text names the set: "#3 of 6 with your primary
rivals". Chat's and the MCP Server's summary reads are unchanged; get_today
also says which set the rank is among.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

This branch was successfully deployed

2 active (1 outdated) deployments
Preview — 03db84c9 Deployed May 9, 2026 by vercel[bot]
staging - docs — 1f7182f1 Deployed May 9, 2026 by mintlify[bot]
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