Repository navigation
Landing page agent focus - #47989
Landing page agent focus#47989
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe 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. ChangesDocs setup experience
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
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (2)
apps/docs/features/ui/PromptPanel.tsx (1)
121-301: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winSolid 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 coveringcollectPrompt/collectPromptsand 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 winDuplicated prompt text risks drifting.
The plain-text
setupPrompt(used forPromptCopy/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 forsetupPrompt.🤖 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
📒 Files selected for processing (10)
apps/docs/app/page.tsxapps/docs/components/DocsCoverLogo.tsxapps/docs/components/HomePageCover.constants.tsapps/docs/components/HomePageCover.tsxapps/docs/features/docs/MdxBase.shared.tsxapps/docs/features/ui/CodeBlock/CodeBlock.tsxapps/docs/features/ui/PromptPanel.tsxapps/docs/layouts/HomeLayout.tsxpackages/config/css/animations.csspackages/config/css/utilities.css
|
|
||
| // 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)]' |
There was a problem hiding this comment.
@fsansalvadore you mean the logo offset? You think might look better having logo aligned with section content below?
There was a problem hiding this comment.
If so I do agree the logo looks a little strange
There was a problem hiding this comment.
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
There was a problem hiding this comment.
@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.)
| Prompt, | ||
| PromptContent, | ||
| PromptCopy, | ||
| PromptPanel, |
There was a problem hiding this comment.
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.
Braintrust eval report
|
…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) ...



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
Enhancements
Bug Fixes
Tests