Skip to content

docs: redraw the architecture overview as a themed SVG component - #1181

Open
teallarson wants to merge 4 commits into
mainfrom
teallarson/nicer-diagram
Open

docs: redraw the architecture overview as a themed SVG component#1181
teallarson wants to merge 4 commits into
mainfrom
teallarson/nicer-diagram

Conversation

@teallarson

@teallarson teallarson commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Diagram in the preview env: https://docs-git-teallarson-nicer-diagram-arcade-ai.vercel.app/en/get-started/about-arcade#how-arcade-solves-this

What

BEFORE:
Screenshot 2026-09-04 at 3 50 23 PM

AFTER:
Screenshot 2026-09-04 at 3 50 00 PM

The architecture diagram on About Arcade was a pair of 3112×1741 PNGs, one per theme. Replaced with a single hand-placed SVG component.

Why

The PNGs blurred at zoom, their labels were invisible to search and translation, and editing them meant round-tripping through whatever tool drew them — plus keeping two files in sync.

The component follows the active theme from design-system tokens (--brand-accent, --card, --border, --muted-foreground) instead of shipping a second asset, scales cleanly to any width, and keeps every label as selectable text with a <desc> summary for screen readers. On narrow screens the figure scrolls horizontally rather than shrinking the type into illegibility.

What changed in the diagram itself

Nothing structural. Same boxes, same topology, same arrow directions (including the bidirectional links the original used).

Labels moved to sentence case per STYLEGUIDE.md, and IDPs, & Entitlement Servers lost its stray comma:

Before After
Tool Authentication, Authorization, and Secrets Tool authentication, authorization, and secrets
Distributed Tool Runtime & Management Distributed tool runtime and management
Pre-built Arcade Tools Pre-built Arcade tools
IDPs, & Entitlement Servers IdPs and entitlement servers
Local Single-User LLM Agents and Applications Local single-user agents and applications

On mermaid

Tried it first, since Nextra already ships @theguild/remark-mermaid and the glossary uses it. Rejected after two tuning passes: dagre placed Local to the right of Platform, floated the governance boxes into a dead column, and clipped the bottom arrows through the container border. Its light theme renders yellow and lavender, and the only fix — an %%{init}%% theme block — pins one theme and breaks the other, since Nextra picks dark/default at render time.

Mermaid is right for the glossary's three-node graphs. Here the layout is the information.

Checks

  • pnpm build — compiled successfully
  • pnpm lint / tsc --noEmit — clean
  • pnpm test — 873 passed, 2 skipped
  • Verified in both themes at 1440px and at 390px

🤖 Generated with Claude Code


Note

Low Risk
Docs-only UI change on a single page; no runtime, auth, or API behavior is affected.

Overview
About Arcade no longer uses separate light/dark PNG architecture images. The page now renders a new ArchitectureDiagram React component: a hand-placed SVG that uses theme tokens, stays sharp at zoom, and exposes selectable labels plus SVG title/desc for accessibility.

The figure keeps the same Local vs Platform topology and connector semantics as before. Copy on the diagram shifts to sentence case and fixes a few labels (e.g. IdPs wording). A collapsible Architecture summary under the figure mirrors the diagram in prose and links operators to /operate/deploy/architecture.

On narrow viewports the diagram scrolls horizontally (min-w-[720px]) instead of shrinking text.

Reviewed by Cursor Bugbot for commit d924567. Bugbot is set up for automated code reviews on this repo. Configure here.

The About Arcade diagram was a pair of 3112x1741 PNGs, one per theme. It
blurred at zoom, its labels were invisible to search and translation, and
editing it meant round-tripping through whatever tool drew it.

Replace both with one hand-placed SVG component. It follows the active theme
from design-system tokens instead of shipping a second asset, scales cleanly,
and keeps every label as selectable text with a screen-reader description.
Labels move to sentence case per STYLEGUIDE.md, and "IDPs, & Entitlement
Servers" loses its stray comma. The topology, the arrow directions, and the
box set are unchanged.

Mermaid was tried first and rejected: dagre put Local to the right of
Platform, floated the governance boxes into dead space, and its light theme
renders yellow and lavender with no way to brand it that survives a theme
switch.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Sep 4, 2026 8:51pm UTC

Request Review

Give the About Arcade diagram a collapsible prose summary so agents and
markdown export get explicit topology without relying on SVG geometry.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drop the decorative underline and render Local and Platform in brand-accent
semibold instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use semibold foreground with letter-spacing so Local and Platform read as
section headers without competing with MCP and consumer accent elements.

Co-authored-by: Cursor <cursoragent@cursor.com>
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