Repository navigation
Initialize notebook editor page - #48842
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
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 (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe Explorer now creates notebooks from home and resource navigation. ChangesNotebook workflow
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: Sequence Diagram(s)sequenceDiagram
participant User
participant ExplorerHome
participant NotebookEditor
participant Tabs
participant ExplorerLayout
User->>ExplorerHome: Select Create a notebook
ExplorerHome->>NotebookEditor: Open the notebook
User->>NotebookEditor: Edit and submit the title
NotebookEditor->>Tabs: Update the tab label
User->>Tabs: Select the notebook tab
Tabs->>ExplorerLayout: Navigate to the notebook route
ExplorerLayout->>NotebookEditor: Render the notebook editor
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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.
Actionable comments posted: 4
🤖 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/NotebookEditor.tsx`:
- Around line 20-21: Update the title-editing start flow near the title state in
NotebookEditor so it refreshes titleValue from the current name immediately
before setting isEditingTitle to true. Preserve the existing title commit and
blur behavior while ensuring switching notebooks cannot carry over the previous
notebook’s draft.
- Around line 85-99: Disable the unimplemented Analyze, Run, Save, Add query
cell, and Add markdown cell controls in NotebookEditor, and wrap each disabled
control with a ButtonTooltip explaining that the action is not yet available.
Preserve their existing icons, labels, and layout while ensuring users receive
the explanatory tooltip instead of an inert click.
- Around line 33-44: Update the NotebookEditor tab synchronization around
registerTab so it reruns when name changes and uses the existing tab identifier
to update an already-registered tab label. Preserve the “New Notebook” fallback
until notebook data resolves, and ensure both the tab and recent-item label are
refreshed via the tabs update mechanism.
In `@apps/studio/components/layouts/ExplorerLayout/ExplorerLayout.constants.tsx`:
- Around line 88-98: Update the ButtonTooltip rendering in the ExplorerLayout
constants so the “New” action is rendered only when type is notebook, preventing
the chat variant from appearing without behavior; preserve the existing
createNotebook handler for notebook resources.
🪄 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: 3f4c9b3d-fbfd-4e45-b10f-3bf20aa5d955
📒 Files selected for processing (5)
apps/studio/components/interfaces/Explorer/ExplorerHome.tsxapps/studio/components/interfaces/Explorer/NotebookEditor.tsxapps/studio/components/layouts/ExplorerLayout/ExplorerLayout.constants.tsxapps/studio/components/layouts/ExplorerLayout/ExplorerLayout.tsxapps/studio/state/tabs.tsx
🎭 Playwright Test Results (next)Details
Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
Braintrust eval report
|
…for-pitr-archiving-stale * origin/master: (342 commits) feat(studio): role-aware access feedback in scoped token creation (#48858) Initialize notebook editor page (#48842) test(docs): scan changed pages for WCAG 2.1 A/AA in warn mode (#48727) docs(auth): clarify audit logs storage options and configuration (#48852) feat(studio): warn that scoped tokens don't support the MCP server (#48849) feat(studio): lifecycle and role-aware scoped token view sheet (#48848) feat(www): add Open Authorization Integration Addendum (#48804) feat(studio): add legacy token mode to scoped pat creation flow (#48844) Add blog post: Supabase is now a connector on Perplexity Computer (#48776) feat(studio): enforce expiry scoped pat (#48811) fix(studio): model scoped pat permissions as OR-of-AND alternatives - smaller version (#48809) fix(ui): opaque default button hover fills (#48837) fix(ui): restore normal alert text wrapping (#48840) feat: notebook content schema (#48813) fix(ui): remove extra spacing before custom reports section (#48796) feat(marketing): add hint text below Go page form labels (#48824) Initialize notebooks store (#48801) Use white wordmark for QA.tech primary logo (#48827) fix titleless Admonition alignment (#48784) fix inconsistent product menu dividers (#48787) ...
Context
More groundwork for the Explorer - this PR initializes the Notebook editor page which you can access with the "New notebook" CTA
As usual nothing functional just yet, but this PR also addresses some UI functionality
Will probably start looking into the cells next, starting with MarkdownCell followed by QueryCell
Summary by CodeRabbit
New Features
Bug Fixes