Skip to content

Scaffold the explorer layout - #48740

Merged
joshenlim merged 3 commits into
masterfrom
explorer/scaffold-layout
Aug 6, 2026
Merged

joshenlim merged 3 commits into
masterfrom
explorer/scaffold-layout

Conversation

@joshenlim

@joshenlim joshenlim commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

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-prototype

image

Summary by CodeRabbit

New Features

  • Added a project Explorer page accessible from /project/:ref/explorer.
  • Added navigation for browsing notebooks and chats.
  • Added search fields, back navigation, animated transitions, and empty states for Explorer sections.
  • Added a conditional Explorer link to the SQL Editor menu when enabled.

Documentation

  • Marked the Explorer route migration as complete in the migration checklist.

@joshenlim
joshenlim requested a review from a team as a code owner August 5, 2026 09:39
@vercel

vercel Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
studio-self-hosted Ready Ready Preview Aug 6, 2026 4:46am
studio-staging Ready Ready Preview Aug 6, 2026 4:46am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 6, 2026 4:46am
design-system Skipped Skipped Aug 6, 2026 4:46am
docs Skipped Skipped Aug 6, 2026 4:46am
ui-library Skipped Skipped Aug 6, 2026 4:46am
zone-www-dot-com Skipped Skipped Aug 6, 2026 4:46am

Request Review

@joshenlim joshenlim changed the title Scaffolds the explorer layout Scaffold the explorer layout Aug 5, 2026
@supabase

supabase Bot commented Aug 5, 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 ↗︎.

@coderabbitai

coderabbitai Bot commented Aug 5, 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 Plus

Run ID: ebb8295c-7c74-4c7e-8f1e-77e7de19b9ff

📥 Commits

Reviewing files that changed from the base of the PR and between f7ae334 and 1213116.

📒 Files selected for processing (1)
  • apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx

📝 Walkthrough

Walkthrough

Added the Explorer page and /project/$ref/explorer route. Added authenticated Explorer navigation for notebooks and chats with search, transitions, back navigation, and empty states. Added a feature-flagged Explorer link in the SQL Editor menu.

Changes

Explorer feature

Layer / File(s) Summary
Explorer navigation shell
apps/studio/components/layouts/ExplorerLayout/*
Added the Explorer layout, section navigation, resource wrappers, search inputs, transitions, back navigation, and empty states.
Explorer page and route
apps/studio/components/interfaces/Explorer/ExplorerPage.tsx, apps/studio/pages/project/[ref]/explorer/index.tsx, apps/studio/routes/project/$ref/explorer.tsx, apps/studio/TANSTACK_MIGRATION.md
Added the placeholder Explorer page, nested layouts, TanStack route, and completed migration checklist entry.
SQL Editor entry point
apps/studio/components/layouts/Navigation/ProductMenuBar.tsx, apps/studio/components/layouts/ProjectLayout/index.tsx, apps/studio/components/layouts/ProjectLayout/index.test.tsx
Added a feature-flagged Explorer link for SQL Editor projects and updated the named ProductMenuBar export wiring.

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
Loading
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the Explorer scaffolding and issue, but it omits most required template sections and the CONTRIBUTING.md confirmation. Use the template headings and add the CONTRIBUTING.md confirmation, change type, current behavior, new behavior, and additional context sections.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the primary change: adding the Explorer layout scaffold.
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 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch explorer/scaffold-layout

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.

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 win

Add coverage for the Explorer CTA conditions.

No supplied test verifies the real ProductMenuBar. Add Vitest coverage that confirms the Explorer link renders only when useFlag('explorer') is enabled and title is "SQL Editor". Verify that the link targets the current project ref. Use customRender.

🤖 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

📥 Commits

Reviewing files that changed from the base of the PR and between 9952d6f and 4bf159a.

⛔ Files ignored due to path filters (1)
  • apps/studio/routeTree.gen.ts is excluded by !**/routeTree.gen.ts
📒 Files selected for processing (12)
  • apps/studio/TANSTACK_MIGRATION.md
  • apps/studio/components/interfaces/Explorer/ExplorerPage.tsx
  • apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.constants.tsx
  • apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx
  • apps/studio/components/layouts/ExplorerLayout/ExplorerNavChats.tsx
  • apps/studio/components/layouts/ExplorerLayout/ExplorerNavHome.tsx
  • apps/studio/components/layouts/ExplorerLayout/ExplorerNavNotebooks.tsx
  • apps/studio/components/layouts/Navigation/ProductMenuBar.tsx
  • apps/studio/components/layouts/ProjectLayout/index.test.tsx
  • apps/studio/components/layouts/ProjectLayout/index.tsx
  • apps/studio/pages/project/[ref]/explorer/index.tsx
  • apps/studio/routes/project/$ref/explorer.tsx

Comment thread apps/studio/TANSTACK_MIGRATION.md Resolved
@github-actions

github-actions Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  242 passed
flaky  1 flaky
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  3 minutes, 14 seconds
commit  1213116

Flaky tests

Features › rls-policies.spec.ts › RLS Policies › Create RLS Policy › should cancel policy creation

Skipped tests

Features › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled
Features › sql-editor.spec.ts › SQL Editor › snippet favourite works as expected
Features › sql-editor.spec.ts › SQL Editor › share with team works as expected
Features › sql-editor.spec.ts › SQL Editor › folders works as expected
Features › sql-editor.spec.ts › SQL Editor › other SQL snippets actions work as expected

@joshenlim
joshenlim merged commit a767101 into master Aug 6, 2026
38 checks passed
@joshenlim
joshenlim deleted the explorer/scaffold-layout branch August 6, 2026 05:11
@github-actions

github-actions Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Braintrust eval report

Assistant (master-1785993274)

Score Average Improvements Regressions
Completeness 97.7% (-2pp) - 2 🔴
Conciseness 41.4% (+2pp) 8 🟢 5 🔴
Docs Faithfulness 63.3% (-1pp) 4 🟢 4 🔴
Goal Completion 81.6% (+2pp) 7 🟢 4 🔴
Knowledge Usage 94.9% (-5pp) - 2 🔴
Tool Usage 72.5% (-1pp) 1 🟢 1 🔴
Correctness 70% (-4pp) 1 🟢 4 🔴
SQL Identifier Quoting 100% (+0pp) - -
SQL Validity 100% (+0pp) - -
Safety 100% (+5pp) 1 🟢 -
URL Validity 100% - -
Time_to_first_token 3tok (-0.22tok) 17 🟢 12 🔴
Llm_calls 7.21 (-0.07) 10 🟢 14 🔴
Tool_calls 3.05 (-0.05) 9 🟢 14 🔴
Errors 0 (-0.02) 1 🟢 -
Llm_errors 0 (-0.01) 1 🟢 -
Tool_errors 0 (+0) - -
Prompt_tokens 28077.56tok (+3931.01tok) 14 🟢 12 🔴
Prompt_cached_tokens 8445.06tok (-441.38tok) 7 🟢 15 🔴
Prompt_cache_creation_tokens 0tok (+0tok) - -
Prompt_cache_creation_5m_tokens 0tok (+0tok) - -
Prompt_cache_creation_1h_tokens 0tok (+0tok) - -
Completion_tokens 611.02tok (-3.89tok) 16 🟢 13 🔴
Completion_reasoning_tokens 98.75tok (-8.38tok) 17 🟢 10 🔴
Completion_accepted_prediction_tokens 0tok (+0tok) - -
Completion_rejected_prediction_tokens 0tok (+0tok) - -
Completion_audio_tokens 0tok (+0tok) - -
Total_tokens 28688.59tok (+3927.13tok) 15 🟢 14 🔴
Estimated_cost 0$ (+0$) 11 🟢 14 🔴
Duration 16.65s (-1.28s) 15 🟢 14 🔴
Llm_duration 10.73s (-2.01s) 23 🟢 6 🔴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants