feat: link AI section buttons to get-started AI pages#459
feat: link AI section buttons to get-started AI pages#459katieschilling wants to merge 1 commit into
Conversation
Replace the home page AI tool card's MCP install deeplinks with links to each of the five "Use AI" pages (Agent Skills as a featured top button, plus a 2x2 grid for MCP Server, Agent Plugins, Agent Shell, Agent Kit). Top-align the CLI terminal with the SDK terminal, stretch the CLI box to the SDK's lower terminal bottom, and align the AI button section's top with the existing-code terminal. Move the editor install buttons to the MCP quickstart page in a dedicated MCPInstallBox component. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Assisted-by: Claude Opus 4.7 via Claude Code
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR refactors the home-page AI tool card from MCP deeplink buttons to navigational links pointing to five "Use AI" doc pages, and moves the deeplink install buttons into a new
Confidence Score: 4/5Safe to merge; all destination routes exist in the docs tree and the install deeplinks are unchanged from their previous location. The link paths are all verified against existing files, and the URL strings for Cursor/VS Code/Claude deeplinks are correctly preserved in MCPInstallBox. The only notable issues are cosmetic: the transition: background-color property won't animate gradient changes on the featured button hover, and the AI grid buttons are missing a focus-visible state that their sibling MCPInstallBox already includes. Minor styling inconsistencies are confined to src/components/ToolCards/styles.css; no other files need additional attention. Important Files Changed
Reviews (1): Last reviewed commit: "feat: link AI section buttons to get-sta..." | Re-trigger Greptile |
| transition: | ||
| background-color 0.18s ease, | ||
| border-color 0.18s ease, | ||
| transform 0.18s ease; | ||
| } | ||
|
|
||
| .tool-card-ai-buttons .tool-card-mcp-btn:hover { |
There was a problem hiding this comment.
The
transition on the AI card buttons lists background-color, but the hover rules change background (a shorthand that includes linear-gradient). CSS cannot interpolate between gradient values using background-color, so the featured button's gradient shift on hover will snap instantly rather than animate smoothly. Transitioning background directly or using a pseudo-element overlay is the common workaround; at minimum switching the property name to background makes the intent consistent, though browsers will still snap gradients.
| transition: | |
| background-color 0.18s ease, | |
| border-color 0.18s ease, | |
| transform 0.18s ease; | |
| } | |
| .tool-card-ai-buttons .tool-card-mcp-btn:hover { | |
| transition: | |
| background 0.18s ease, | |
| border-color 0.18s ease, | |
| transform 0.18s ease; | |
| } | |
| .tool-card-ai-buttons .tool-card-mcp-btn:hover { |
| .tool-card-ai-buttons .tool-card-mcp-btn:hover { | ||
| background: rgba(98, 254, 181, 0.1); | ||
| border-color: rgba(98, 254, 181, 0.35); | ||
| transform: translateY(-1px); | ||
| } |
There was a problem hiding this comment.
Keyboard-navigable
Link buttons inside the AI card have no :focus-visible style in these overrides, while MCPInstallBox (the sibling component) does include one. Users who tab into the AI grid will get the browser default outline (or nothing if it's stripped elsewhere) rather than the branded green highlight. Adding :focus-visible here mirrors the MCPInstallBox pattern and keeps the two components consistent.
| .tool-card-ai-buttons .tool-card-mcp-btn:hover { | |
| background: rgba(98, 254, 181, 0.1); | |
| border-color: rgba(98, 254, 181, 0.35); | |
| transform: translateY(-1px); | |
| } | |
| .tool-card-ai-buttons .tool-card-mcp-btn:hover, | |
| .tool-card-ai-buttons .tool-card-mcp-btn:focus-visible { | |
| background: rgba(98, 254, 181, 0.1); | |
| border-color: rgba(98, 254, 181, 0.35); | |
| transform: translateY(-1px); | |
| outline: none; | |
| } |
Summary
MCPInstallBoxcomponent placed near the top ofdocs/quickstarts/mcp.mdx.Test plan
/docs/and confirm the AI tool card shows the new featured "Agent Skills" button plus the 2×2 grid; click each button and verify it navigates to the correct page.app.tsbox; confirm the AI buttons top aligns with the "Use Your Existing Code" terminal top./docs/quickstarts/mcpand confirm the install box renders with the eyebrow + title + subtitle, three install buttons, and the "See all integrations" link; verify the deeplinks/URLs match the previous behavior.🤖 Generated with Claude Code