Skip to content

Initialize explorer home page - #48790

Merged
joshenlim merged 1 commit into
masterfrom
joshen/fe-4105-explorer-home-page
Aug 6, 2026
Merged

joshenlim merged 1 commit into
masterfrom
joshen/fe-4105-explorer-home-page

Conversation

@joshenlim

@joshenlim joshenlim commented Aug 6, 2026 •

Copy link
Copy Markdown
Member

Context

More groundwork for the Explorer - initializing the home page

Note that nothing here is functional, all just visual still

image

Summary by CodeRabbit

  • New Features

    • Added a new Explorer landing page with an assistant chat form.
    • Added quick actions for creating notebooks and SQL work.
    • Added notebook and chat template cards for faster project exploration.
  • Improvements

    • Explorer content now fills the available page height.
    • Assistant send button styling now reflects whether submission is available.

@joshenlim
joshenlim requested a review from a team as a code owner August 6, 2026 08:07
@vercel

vercel Bot commented Aug 6, 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 8:46am
studio-staging Ready Ready Preview Aug 6, 2026 8:46am
5 Skipped Deployments
Project Deployment Actions Updated (UTC)
studio Ignored Ignored Aug 6, 2026 8:46am
design-system Skipped Skipped Aug 6, 2026 8:46am
docs Skipped Skipped Aug 6, 2026 8:46am
ui-library Skipped Skipped Aug 6, 2026 8:46am
zone-www-dot-com Skipped Skipped Aug 6, 2026 8:46am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The Explorer now renders a landing page with assistant controls, notebook and SQL actions, and notebook and chat templates. The page and route use ExplorerHome, while the layout fills the available height.

Changes

Explorer home

Layer / File(s) Summary
Explorer layout and assistant controls
apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx, apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx
The Explorer content wrapper now uses full height. The assistant submit button uses the primary variant when submission is available and default otherwise.
Explorer home content
apps/studio/components/interfaces/Explorer/ExplorerHome.tsx
ExplorerHome manages assistant input and model state. It renders notebook, SQL, notebook template, and chat template cards. Creation handlers remain placeholders.
Explorer entry-point wiring
apps/studio/pages/project/[ref]/explorer/index.tsx, apps/studio/routes/project/$ref/explorer.tsx, apps/studio/components/interfaces/Explorer/ExplorerPage.tsx
The page and route render ExplorerHome inside ExplorerLayout. The previous ExplorerPage component was removed.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant ExplorerRoute
  participant ExplorerLayout
  participant ExplorerHome
  participant AssistantChatForm
  ExplorerRoute->>ExplorerLayout: Render Explorer route
  ExplorerLayout->>ExplorerHome: Render landing page
  ExplorerHome->>AssistantChatForm: Pass input and model state
  AssistantChatForm-->>ExplorerHome: Submit assistant form
Loading

Possibly related PRs

Suggested reviewers: charislam

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the visual-only Explorer work but omits most required template sections and the contributing guide confirmation. Add the required sections for contribution confirmation, change type, current behavior, new behavior, and additional context.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the primary change: initializing the Explorer home page.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 joshen/fe-4105-explorer-home-page

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.

@supabase

supabase Bot commented Aug 6, 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 commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

🎭 Playwright Test Results (tanstack)

passed  243 passed
skipped  5 skipped

Details

stats  248 tests across 29 suites
duration  4 minutes, 19 seconds
commit  5cdf13a

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 force-pushed the joshen/fe-4105-explorer-home-page branch from ada7a24 to c982151 Compare August 6, 2026 08:16
Base automatically changed from joshen/fe-4106-explorer-initialize-tabs-ui to master August 6, 2026 08:39
@joshenlim
joshenlim force-pushed the joshen/fe-4105-explorer-home-page branch from c982151 to 5cdf13a Compare August 6, 2026 08:39

@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: 1

🧹 Nitpick comments (1)
apps/studio/components/interfaces/Explorer/ExplorerHome.tsx (1)

10-14: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use consistent names for internal handlers.

onCreateNotebook and onCreateChat are internal event handlers, not prop callbacks. Rename them to handleCreateNotebook and handleCreateChat. Rename setSelectedModal to setSelectedModel to match the state name.

🤖 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/interfaces/Explorer/ExplorerHome.tsx` around lines 10
- 14, Rename the internal handlers onCreateNotebook and onCreateChat to
handleCreateNotebook and handleCreateChat, and update every reference in the
component. Correct the state setter typo setSelectedModal to setSelectedModel
and update all usages to match selectedModel.

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/interfaces/Explorer/ExplorerHome.tsx`:
- Around line 39-52: Define a SQL-specific click handler named handleRunSql in
the ExplorerHome component and pass it to the ActionCard titled “Run SQL”
instead of onCreateNotebook. Keep the notebook card wired to onCreateNotebook.

---

Nitpick comments:
In `@apps/studio/components/interfaces/Explorer/ExplorerHome.tsx`:
- Around line 10-14: Rename the internal handlers onCreateNotebook and
onCreateChat to handleCreateNotebook and handleCreateChat, and update every
reference in the component. Correct the state setter typo setSelectedModal to
setSelectedModel and update all usages to match selectedModel.
🪄 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: 61cc369c-12a9-4994-878b-ef7e0c0d0600

📥 Commits

Reviewing files that changed from the base of the PR and between 4550ee1 and 5cdf13a.

📒 Files selected for processing (6)
  • apps/studio/components/interfaces/Explorer/ExplorerHome.tsx
  • apps/studio/components/interfaces/Explorer/ExplorerPage.tsx
  • apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsx
  • apps/studio/components/ui/AIAssistantPanel/AssistantChatForm.tsx
  • apps/studio/pages/project/[ref]/explorer/index.tsx
  • apps/studio/routes/project/$ref/explorer.tsx
💤 Files with no reviewable changes (1)
  • apps/studio/components/interfaces/Explorer/ExplorerPage.tsx

Comment on lines +39 to +52
<ActionCard
icon={<NotebookText className="h-4 w-4 text-foreground" strokeWidth={1.5} />}
title="Create a notebook"
description="Combine notes, queries, and results"
bgColor="bg-blue-500"
onClick={onCreateNotebook}
/>
<ActionCard
icon={<SquareCode className="h-4 w-4 text-foreground" strokeWidth={1.5} />}
title="Run SQL"
description="Write and run an ad-hoc query"
bgColor="bg-blue-500"
onClick={onCreateNotebook}
/>

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use a SQL-specific handler for the Run SQL card.

The card titled Run SQL passes onCreateNotebook at Line 51. When the placeholder callbacks become functional, this click will invoke notebook creation. Add handleRunSql and pass it to this card.

🤖 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/interfaces/Explorer/ExplorerHome.tsx` around lines 39
- 52, Define a SQL-specific click handler named handleRunSql in the ExplorerHome
component and pass it to the ActionCard titled “Run SQL” instead of
onCreateNotebook. Keep the notebook card wired to onCreateNotebook.

@joshenlim
joshenlim merged commit 8618991 into master Aug 6, 2026
39 checks passed
@joshenlim
joshenlim deleted the joshen/fe-4105-explorer-home-page branch August 6, 2026 09:02
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