mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
## 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` <img width="1389" height="500" alt="image" src="https://github.com/user-attachments/assets/8f293992-97d9-403e-91d6-2e104cd20eb5" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
23 lines
668 B
TypeScript
23 lines
668 B
TypeScript
import { useState } from 'react'
|
|
|
|
import { ExplorerNavResourceWrapper } from './ExplorerLayout.constants'
|
|
|
|
export const ExplorerNavNotebooks = ({ onBack }: { onBack: () => void }) => {
|
|
const [search, setSearch] = useState('')
|
|
|
|
// [Joshen] Eventually will have data fetching for notebooks via RQ
|
|
|
|
return (
|
|
<ExplorerNavResourceWrapper
|
|
type="notebook"
|
|
search={search}
|
|
setSearch={setSearch}
|
|
onBack={onBack}
|
|
>
|
|
<div className="flex flex-1 flex-col gap-px overflow-y-auto px-3 pb-3">
|
|
<p className="px-2 py-2 text-xs text-foreground-lighter">No notebooks created yet</p>
|
|
</div>
|
|
</ExplorerNavResourceWrapper>
|
|
)
|
|
}
|