Repository navigation
Scaffold the explorer layout - #48740
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
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 Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdded the Explorer page and ChangesExplorer feature
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ProductMenuBar
participant ProjectExplorerRoute
participant ExplorerLayout
participant ExplorerPage
ProductMenuBar->>ProjectExplorerRoute: Navigate to /project/$ref/explorer
ProjectExplorerRoute->>ExplorerLayout: Render ExplorerPage within layout
ExplorerLayout->>ExplorerPage: Render page content
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 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.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/studio/components/layouts/Navigation/ProductMenuBar.tsx (1)
17-38: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winAdd coverage for the Explorer CTA conditions.
No supplied test verifies the real
ProductMenuBar. Add Vitest coverage that confirms the Explorer link renders only whenuseFlag('explorer')is enabled andtitleis"SQL Editor". Verify that the link targets the current project ref. UsecustomRender.🤖 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/studio/components/layouts/Navigation/ProductMenuBar.tsx` around lines 17 - 38, Add Vitest coverage for the real ProductMenuBar using customRender. Mock or configure useFlag('explorer') and route params to verify the Explorer CTA appears only when the flag is enabled and title is "SQL Editor", and assert its link uses the current project ref; also cover the CTA being absent when either condition is false.Source: Coding guidelines
🤖 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.
Inline comments:
In `@apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx`:
- Around line 18-25: Remove the activeTabLabel placeholder and stop assigning a
fallback to entity in the mergedBrowserTitle object near ExplorerLayout.
Preserve browserTitle?.entity when provided, but leave entity undefined when it
is absent until the tabs integration supplies a real value.
- Around line 33-40: Update the AnimatePresence block in ExplorerLayout to
replace the nested ternary with separate && branches for the home, notebooks,
and chats sections. Assign stable key props of home, notebooks, and chats to the
corresponding ExplorerNavHome, ExplorerNavNotebooks, and ExplorerNavChats
children so Framer can track transitions.
In `@apps/studio/TANSTACK_MIGRATION.md`:
- Line 159: Update the migration entry for `routes/project/$ref/explorer.tsx` to
reference the legacy page path `pages/project/[ref]/explorer/index.tsx`,
preserving the existing route mapping and description.
---
Outside diff comments:
In `@apps/studio/components/layouts/Navigation/ProductMenuBar.tsx`:
- Around line 17-38: Add Vitest coverage for the real ProductMenuBar using
customRender. Mock or configure useFlag('explorer') and route params to verify
the Explorer CTA appears only when the flag is enabled and title is "SQL
Editor", and assert its link uses the current project ref; also cover the CTA
being absent when either condition is false.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: f22cb56d-9846-4b7f-be95-a86516eebe7f
⛔ Files ignored due to path filters (1)
apps/studio/routeTree.gen.tsis excluded by!**/routeTree.gen.ts
📒 Files selected for processing (12)
apps/studio/TANSTACK_MIGRATION.mdapps/studio/components/interfaces/Explorer/ExplorerPage.tsxapps/studio/components/layouts/ExplorerLayout/ExplorerLayout.constants.tsxapps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsxapps/studio/components/layouts/ExplorerLayout/ExplorerNavChats.tsxapps/studio/components/layouts/ExplorerLayout/ExplorerNavHome.tsxapps/studio/components/layouts/ExplorerLayout/ExplorerNavNotebooks.tsxapps/studio/components/layouts/Navigation/ProductMenuBar.tsxapps/studio/components/layouts/ProjectLayout/index.test.tsxapps/studio/components/layouts/ProjectLayout/index.tsxapps/studio/pages/project/[ref]/explorer/index.tsxapps/studio/routes/project/$ref/explorer.tsx
🎭 Playwright Test Results (tanstack)Details
Flaky testsFeatures › rls-policies.spec.ts › RLS Policies › Create RLS Policy › should cancel policy creation Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
Braintrust eval report
|
Context
Resolves FE-4074
Just adds scaffolding for the explorer UI - no data fetching yet. Initializes the page + side nav, based off Saxon's POC in
poc/explorer-prototypeSummary by CodeRabbit
New Features
/project/:ref/explorer.Documentation