Files
supabase/apps/docs/features/ui/AgentPluginsPanel.data.ts
T
Anthony Lio 3aa70c221f feat(docs): ai layout groundwork (#52971)
## Problem

- docs layout redesign needs a flag, so the team can check the new
layout on production first
- ai tools agent cards open a setup page with no agent selected, so the
reader picks the agent again

## Solution

- adds the `docs-layout-v2` posthog flag, and
`?docs-layout-v2=true|false` overrides it for the rest of the browser
session
- adds a `layout-v2:` css variant, so server components can style the
new layout and the current layout from the same markup
- changes the agent cards to set `?client=` on their link, so the setup
page opens with that agent selected
- replaces the footer with link cells for status, product updates and
issue reports, and keeps the old footer for the flag

merge the stack together, because the new footer shows for every reader
until #PR5 adds the flag switch

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. open
[/docs/guides/getting-started?docs-layout-v2=true](https://docs-git-antlio-docs-v2-1-groundwork-supabase.vercel.app/docs/guides/getting-started?docs-layout-v2=true),
and make sure that the `<html>` element has `data-docs-layout="v2"`
2. open the same page with `?docs-layout-v2=false`, and make sure that
`data-docs-layout` is gone

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-11 16:31:31 +02:00

92 lines
2.7 KiB
TypeScript

import type { McpClient } from 'ui-patterns/McpUrlBuilder'
export interface PluginClient extends McpClient {
repoUrl?: string
docsUrl?: string
docsLinkText?: string
}
export const AGENT_CLIENT_PARAM = 'client'
export const PLUGIN_CLIENTS: PluginClient[] = [
{
key: 'claude-code',
label: 'Claude Code',
icon: 'claude',
repoUrl: 'https://github.com/supabase-community/supabase-plugin',
docsUrl: 'https://code.claude.com/docs/en/discover-plugins',
},
{
key: 'codex',
label: 'Codex',
icon: 'openai',
hasDistinctDarkIcon: true,
repoUrl: 'https://github.com/supabase-community/codex-plugin',
docsUrl: 'https://developers.openai.com/codex/plugins',
},
{
key: 'cursor',
label: 'Cursor',
icon: 'cursor',
hasDistinctDarkIcon: true,
repoUrl: 'https://github.com/supabase-community/cursor-plugin',
docsUrl: 'https://cursor.com/docs/plugins',
},
{
key: 'antigravity',
label: 'Antigravity',
icon: 'antigravity',
repoUrl: 'https://github.com/supabase-community/supabase-plugin',
docsUrl: 'https://antigravity.google/docs/plugins/#managing-plugins-by-surface',
docsLinkText: 'View Antigravity plugin documentation',
},
{
key: 'gemini-cli',
label: 'Gemini CLI',
icon: 'gemini-cli',
repoUrl: 'https://github.com/supabase-community/supabase-plugin',
docsUrl: 'https://geminicli.com/docs/extensions/',
},
{
key: 'github-copilot',
label: 'GitHub Copilot',
icon: 'copilot',
hasDistinctDarkIcon: true,
repoUrl: 'https://github.com/supabase-community/supabase-plugin',
docsUrl:
'https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/plugins-finding-installing',
},
{
key: 'grok',
label: 'Grok',
icon: 'grok',
hasDistinctDarkIcon: true,
repoUrl: 'https://github.com/supabase-community/supabase-plugin',
docsUrl: 'https://docs.x.ai/build/features/skills-plugins-marketplaces#plugins',
docsLinkText: 'View Grok plugins docs',
},
{
key: 'kimi',
label: 'Kimi Code',
icon: 'kimi',
hasDistinctDarkIcon: true,
repoUrl: 'https://github.com/supabase-community/supabase-plugin',
docsUrl: 'https://www.kimi.com/code/docs/en/kimi-code-cli/customization/plugins.html',
},
{
key: 'omp',
label: 'omp',
icon: 'omp',
repoUrl: 'https://github.com/supabase-community/supabase-plugin',
docsUrl: 'https://github.com/can1357/oh-my-pi/blob/main/docs/marketplace.md',
docsLinkText: 'View omp plugin docs',
},
{
key: 'vscode',
label: 'VS Code',
icon: 'vscode',
repoUrl: 'https://github.com/supabase-community/supabase-plugin',
docsUrl: 'https://code.visualstudio.com/docs/agent-customization/agent-plugins',
},
]