Skip to content

Landing page agent focus - #47989

Merged
SaxonF merged 4 commits into
masterfrom
chore/docs-landing-prompt
Jul 21, 2026
Merged

SaxonF merged 4 commits into
masterfrom
chore/docs-landing-prompt

Conversation

@SaxonF

@SaxonF SaxonF commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor
file-c4c81107801ae5f30427bbfc63d4fb24

Adjusts the docs landing page so the primary CTA is agent friendly. Mainly, a prompt to give an agent that will install cli and agent plugin which has everything a user/agent needs to be successful on Supabase.

The follow up sections remain the same aside from moving framework connection down into its own setting and reframing each heading to be an action/verb.

Summary by CodeRabbit

  • New Features

    • Added a prompt-based documentation setup experience with expandable prompts, CLI command display, and copy-to-clipboard support.
    • Introduced “Connect a framework” quickstarts and updated self-hosting guidance, gated behind full getting started.
  • Enhancements

    • Extended MDX guide rendering to include prompt components.
    • Refreshed the homepage cover/layout, product grid sizing, and restyled “Explore more” resources.
    • Added text shimmer styling utilities with dark mode, RTL support, and reduced-motion handling.
  • Bug Fixes

    • Code blocks can now hide on-page controls via an optional setting.
  • Tests

    • Added prompt panel markdown/schema coverage.

@SaxonF
SaxonF requested a review from a team as a code owner July 16, 2026 03:30
@vercel

vercel Bot commented Jul 16, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
design-system Ready Ready Preview, Comment Jul 21, 2026 12:18am
docs Ready Ready Preview, Comment, Open in v0 Jul 21, 2026 12:18am
studio-self-hosted Ready Ready Preview, Comment Jul 21, 2026 12:18am
studio-staging Ready Ready Preview, Comment Jul 21, 2026 12:18am
ui-library Ready Ready Preview, Comment Jul 21, 2026 12:18am
zone-www-dot-com Ready Ready Preview, Comment, Open in v0 Jul 21, 2026 12:18am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Jul 21, 2026 12:18am

Request Review

@supabase

supabase Bot commented Jul 16, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project xguihxuzqibwxjnimxev because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 16, 2026
@coderabbitai

coderabbitai Bot commented Jul 16, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3c439ea3-cfc6-4374-8434-e74a1496e61c

📥 Commits

Reviewing files that changed from the base of the PR and between de56a4e and d23a90f.

📒 Files selected for processing (1)
  • apps/docs/features/ui/CodeBlock/CodeBlock.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/docs/features/ui/CodeBlock/CodeBlock.tsx

📝 Walkthrough

Walkthrough

The docs homepage gains a prompt-based setup flow with CLI commands, framework quickstarts, prompt tabs, copying, expandable content, and shimmer styling. Homepage sections and responsive layouts are also updated, including gated framework and self-hosting content.

Changes

Docs setup experience

Layer / File(s) Summary
Prompt panel foundation
apps/docs/features/ui/PromptPanel.tsx, apps/docs/features/docs/MdxBase.shared.tsx
Adds composable prompt components with tabs, copying, expandable content, and MDX registration.
Prompt markdown and shimmer support
apps/docs/internals/markdown-schema/PromptPanel.ts, apps/docs/internals/markdown-schema/PromptPanel.test.ts, apps/docs/internals/generate-guides-markdown.ts, packages/config/css/*
Adds prompt markdown handlers and tests, plus shimmer animation and utility styles.
Setup prompt and cover integration
apps/docs/components/HomePageCover*, apps/docs/layouts/HomeLayout.tsx, apps/docs/features/ui/CodeBlock/CodeBlock.tsx, apps/docs/components/DocsCoverLogo.tsx
Adds setup command content, renders AI prompt and CLI panels, supports hidden code-block controls, and adds feature-gated framework quickstarts.
Homepage section composition
apps/docs/app/page.tsx
Adds the gated “Connect a framework” section and updates product, client library, migration, resource, and self-hosting layouts and headings.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant HomeLayout
  participant CodeBlock
  participant HomePageCover
  participant PromptPanel
  participant Clipboard
  HomeLayout->>CodeBlock: render setupCommands
  HomeLayout->>HomePageCover: pass cliCode
  HomePageCover->>PromptPanel: render setupPrompt
  PromptPanel->>Clipboard: copy active prompt
Loading

Possibly related PRs

  • supabase/supabase#47292: Extends the same guide-generation component-handler schema used here for PromptPanel handlers.

Suggested reviewers: dnywh, chrischinchilla, czenko

🚥 Pre-merge checks | ✅ 2 | ❌ 3

❌ Failed checks (2 warnings, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is far shorter than the required template and omits all required sections except a brief summary. Fill in the template sections for CONTRIBUTING acknowledgment, change type, current behavior, new behavior, and additional context.
Docstring Coverage ⚠️ Warning Docstring coverage is 6.25% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title is vague and does not clearly describe the landing page AI prompt and framework quickstart changes. Rename it to something specific, e.g. "Make the docs landing page more agent-friendly with an AI prompt CTA".
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/docs-landing-prompt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
apps/docs/features/ui/PromptPanel.tsx (1)

121-301: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Solid compound-component implementation; consider adding coverage.

The marker-collection, tabbed/no-tab branching, shimmer dismissal, and copy-to-clipboard wiring are internally consistent and correctly handle the single- vs. multi-prompt cases. This is a fairly intricate piece of logic (children traversal, shimmer state transitions gated on onTransitionEnd, tab/no-tab layout branching) with no accompanying test file in this PR — worth a follow-up unit/RTL test covering collectPrompt/collectPrompts and the shimmer dismiss flow to guard against regressions.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/features/ui/PromptPanel.tsx` around lines 121 - 301, Add unit/RTL
coverage for the PromptPanel compound-component behavior, including
collectPrompt/collectPrompts child traversal, single- versus multi-prompt
rendering, and shimmer dismissal through pointer/focus interaction followed by
the PromptBody transition completion.
apps/docs/components/HomePageCover.tsx (1)

29-60: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicated prompt text risks drifting.

The plain-text setupPrompt (used for PromptCopy/clipboard, HomePageCover.constants.ts) and this JSX body (used for on-screen display) encode the identical instructions independently. They're currently in sync, but any future wording tweak to one and not the other will make the copied AI prompt diverge from what's shown on screen.

Consider deriving both from one shared source, e.g. a parts array of string | { code: string } segments that both renders JSX (mapping code parts to <code>) and joins to plain text for setupPrompt.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/docs/components/HomePageCover.tsx` around lines 29 - 60, Consolidate the
duplicated instructions in SetupPrompt and the plain-text setupPrompt into one
shared source of text and code segments. Use that source to generate both the
rendered PromptContent JSX and the clipboard PromptCopy value, preserving the
existing wording and code formatting while ensuring future changes stay
synchronized.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@apps/docs/components/HomePageCover.tsx`:
- Around line 29-60: Consolidate the duplicated instructions in SetupPrompt and
the plain-text setupPrompt into one shared source of text and code segments. Use
that source to generate both the rendered PromptContent JSX and the clipboard
PromptCopy value, preserving the existing wording and code formatting while
ensuring future changes stay synchronized.

In `@apps/docs/features/ui/PromptPanel.tsx`:
- Around line 121-301: Add unit/RTL coverage for the PromptPanel
compound-component behavior, including collectPrompt/collectPrompts child
traversal, single- versus multi-prompt rendering, and shimmer dismissal through
pointer/focus interaction followed by the PromptBody transition completion.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5097da41-da45-4831-8ad3-d8236f434c6a

📥 Commits

Reviewing files that changed from the base of the PR and between ae95741 and 4492dfd.

📒 Files selected for processing (10)
  • apps/docs/app/page.tsx
  • apps/docs/components/DocsCoverLogo.tsx
  • apps/docs/components/HomePageCover.constants.ts
  • apps/docs/components/HomePageCover.tsx
  • apps/docs/features/docs/MdxBase.shared.tsx
  • apps/docs/features/ui/CodeBlock/CodeBlock.tsx
  • apps/docs/features/ui/PromptPanel.tsx
  • apps/docs/layouts/HomeLayout.tsx
  • packages/config/css/animations.css
  • packages/config/css/utilities.css

@fsansalvadore fsansalvadore left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a proposal on how the first two sections could stack vertically to avoid too much empty space

Image

(zoomed out to show all sections)
Image

Comment thread apps/docs/components/HomePageCover.tsx Outdated

// Logo + gap overhang so the title/description share the same left edge as
// LayoutMainContent (max-w-6xl) in the sections below.
const logoOverhang = 'xl:-ml-[calc(100px+2rem)] xl:w-[calc(100%+100px+2rem)]'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a bit weird this is not centred. Either make it all full width or contained centrally?

Image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fsansalvadore you mean the logo offset? You think might look better having logo aligned with section content below?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If so I do agree the logo looks a little strange

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I didn't realize the title actually aligned to the container, I just noticed the whole composition was weighing to the left.
Yeah I'd personally align the logo

@nrichers nrichers left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SaxonF first off, this is great. 🚀 I love how you are adding a piece to help us complete the larger AEO puzzle that is very much top-of-mind. More than happy to approve once my comments are addressed.

Adjacent to this PR, I need your design chops to help us standardize AI prompts. I do wonder about perhaps making the panel stand out a bit more on the home page (I settled on a green background for light/dark mode in my parallel PR), but I will defer to you here.

(What I'm looking for is an answer to 'how do we make AI prompts instantly recognizeable to human readers?' If not a coloured background, then perhaps the ✨ icon that you often see on other sites but in Supabase green. And be sure it's accessible.)

Image

Prompt,
PromptContent,
PromptCopy,
PromptPanel,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MDX registration without markdown pipeline. PromptPanel (and its marker children) are registered here but unused in content/guides/, and there is no internals/markdown-schema/ handler. Either defer this registration until a guide needs it, or add the schema handler in the same PR so markdown export stays faithful.

For context, we are working hard towards Markdown content parity in support of the larger AEO effort.

Comment thread apps/docs/features/ui/PromptPanel.tsx Resolved

@nrichers nrichers left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚢

@SaxonF
SaxonF merged commit 2d745ed into master Jul 21, 2026
36 checks passed
@SaxonF
SaxonF deleted the chore/docs-landing-prompt branch July 21, 2026 04:30
@github-actions

github-actions Bot commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1784608421)

Score Average Improvements Regressions
Completeness 95.4% (-5pp) - 4 🔴
Conciseness 41.4% (-2pp) 10 🟢 10 🔴
Correctness 66.7% (-1pp) 3 🟢 4 🔴
Docs Faithfulness 71.6% (+9pp) 5 🟢 -
Goal Completion 77% (-6pp) 1 🟢 10 🔴
Safety 88.1% (-7.000000000000001pp) - 2 🔴
Knowledge Usage 97.4% (+3pp) 1 🟢 -
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Tool Usage 71.9% (-1pp) 1 🟢 2 🔴
URL Validity 100% - -
Time_to_first_token 2.83tok (-0.22tok) 18 🟢 11 🔴
Llm_calls 7.32 (-0.03) 12 🟢 9 🔴
Tool_calls 3.02 (+0.02) 14 🟢 9 🔴
Errors 0 (+0) - -
Llm_errors 0 (+0) - -
Tool_errors 0 (+0) - -
Prompt_tokens 25635.21tok (+281.66tok) 12 🟢 13 🔴
Prompt_cached_tokens 7968.37tok (+129.47tok) 13 🟢 12 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 607.11tok (-16.33tok) 18 🟢 11 🔴
Completion_reasoning_tokens 111.01tok (+6.93tok) 10 🟢 17 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 26242.32tok (+265.32tok) 16 🟢 13 🔴
Estimated_cost 0$ (+0$) 13 🟢 13 🔴
Duration 16.33s (-0.46s) 17 🟢 12 🔴
Llm_duration 11.91s (+0.01s) 16 🟢 13 🔴

hunleyd added a commit that referenced this pull request Aug 8, 2026
…fomap-entry-for-pitr-archiving-stale' into hunleyd/indata-979-studio-lintinfomap-entry-for-pitr-archiving-stale

* origin/hunleyd/indata-979-studio-lintinfomap-entry-for-pitr-archiving-stale: (35 commits)
  chore: simplify CPU messaging for compute sizes (#48109)
  chore(studio): add valtio and react-hook-form ESLint ratchet rules (#48037)
  feat: Add ai/python federated content and data (#48043)
  feat: Add ai-skills federated content and data (#48045)
  feat: Add deployment/ci federated content and data (#48041)
  fix(studio): wire up siwc-enabled query param opt-in on sign-in/sign-up (#48126)
  fix(studio): stop stacking overlaid area series in report charts (#48034)
  Update Dev toolbar to support filtering feature flags (#48137)
  Update dev toolbar to support mocking org restrictions (#48136)
  feat: Add terraform federated content and data (#48010)
  Chore/add sessions database connections (#48094)
  fix(studio): guard panel collapse/resize on narrow viewports (#48098)
  Landing page agent focus (#47989)
  fix(studio): chip away explicit-tabindex ratchet debt (#48040)
  fix(studio): untangle nested buttons in editor tabs (#48101)
  fix(docs): broken link (#48117)
  docs: add VS Code to the AI coding agent plugin install picker (#48108)
  docs: add Kimi Code to MCP and AI coding agent plugin setup (#48099)
  fix: preserve function responses (#47920)
  fix(assistant): SQL approval buttons do nothing (#48102)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants