feat: integrate Gemini AI smart flowchart generator#33
Conversation
|
Someone is attempting to deploy a commit to the itzzavdhesh's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
✅ Thanks! This PR is linked to #22 and will close it automatically when merged. |
|
Warning Review limit reached
More reviews will be available in 59 minutes and 7 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ 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.
1 issue found across 2 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="src/App.tsx">
<violation number="1" location="src/App.tsx:242">
P2: Passing raw `setBlocks` to `LeftSidebar` can leave stale `selectedBlockId`/`activeParentId` after AI-generated block replacement</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| onDeleteBlock={handleDeleteBlock} | ||
| activeParentId={activeParentId} | ||
| onCancelActiveParent={() => setActiveParentId(null)} | ||
| onSetBlocks={setBlocks} |
There was a problem hiding this comment.
P2: Passing raw setBlocks to LeftSidebar can leave stale selectedBlockId/activeParentId after AI-generated block replacement
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/App.tsx, line 242:
<comment>Passing raw `setBlocks` to `LeftSidebar` can leave stale `selectedBlockId`/`activeParentId` after AI-generated block replacement</comment>
<file context>
@@ -239,6 +239,7 @@ export default function App() {
onDeleteBlock={handleDeleteBlock}
activeParentId={activeParentId}
onCancelActiveParent={() => setActiveParentId(null)}
+ onSetBlocks={setBlocks}
/>
</file context>
|
This pull request has been inactive for 14 days. Push a commit or comment if you're still working on it, otherwise it'll be closed in 7 days. |
Related Issue
Closes #22
Summary
This PR implements the Google Gemini AI smart flowchart generator inside the Left Sidebar panel.
Changes Made
setBlocksdown toLeftSidebarviaonSetBlocks.GoogleGenAIand configured it usinggemini-2.5-flashwith system instructions requesting a structuredBlock[]JSON output.Testing
Screenshots
N/A
Impact
Enables the core AI feature of the application, improving user productivity.
Checklist
Summary by cubic
Integrates a Gemini-powered flowchart generator into the Left Sidebar so users can create flowcharts from a text prompt. Wires generated Block[] directly into the canvas for a faster start.
New Features
@google/genaiwithgemini-2.5-flashto return a structured Block[] JSON.onSetBlocksprop to push generated blocks to the canvas.Migration
Written for commit eb8f8fa. Summary will update on new commits.