Repository navigation
fix: Artifact creation issues - #616
Conversation
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR enhances artifact management and assistant panel UI by introducing unique title generation for artifacts to prevent collisions, refactoring artifact creation to use a command-driven dropdown menu, and improving the assistant panel with a close button and refined settings dialog. ChangesArtifact Management and UI Updates
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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: 2
🤖 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/sqlrooms-cli-ui/src/components/AssistantPanel.tsx`:
- Around line 42-98: When currentSessionId becomes falsy the Dialog unmounts but
settingsPanelOpen.isOpen can remain true; add a small effect in
AssistantPanel.tsx that watches currentSessionId and, if currentSessionId is
null/undefined and settingsPanelOpen.isOpen is true, call
settingsPanelOpen.onClose() (or otherwise reset the open state) so the panel
state is cleared when the session disappears; reference the existing
settingsPanelOpen handlers (settingsPanelOpen.isOpen and
settingsPanelOpen.onClose) and place the effect alongside other hooks in the
AssistantPanel component.
In `@apps/sqlrooms-cli-ui/src/workspace/ArtifactsContainerPanel.tsx`:
- Around line 81-99: invokeCreateArtifactCommand currently awaits invokeCommand
but doesn't catch rejections, so callers that drop the returned promise (e.g.
the places that call invokeCreateArtifactCommand with void) can cause unhandled
promise rejections; wrap the call to invokeCommand inside
invokeCreateArtifactCommand in a try/catch, handle/log the error (or surface it
to UI) and return early on failure, then keep the artifactId extraction and
artifactTabs.selectArtifact(artifactId) inside the success path—this ensures
callers can safely ignore the returned promise without causing unhandled
rejections.
🪄 Autofix (Beta)
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: defaults
Review profile: CHILL
Plan: Pro
Run ID: 4c3a296d-51bd-4dea-8cbd-cdb2f18d4784
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (4)
apps/sqlrooms-cli-ui/src/components/AssistantPanel.tsxapps/sqlrooms-cli-ui/src/createDashboardCommands.tsapps/sqlrooms-cli-ui/src/workspace/ArtifactsContainerPanel.tsxpackages/documents/package.json
|
I'd decompose AssistantPanel: 7ab57bb |
Summary by CodeRabbit
New Features
UI Improvements