Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds an AI Assist feature: UI components and dialog, SDK hooks/queries/types for pricing and assist calls, config and locale entries, publish-toolbar and entry UI integration, plus i18n lazy-loading and several unrelated UI/devtools/layout tweaks. Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant Toolbar as Publish Toolbar
participant Dialog as AiAssistDialog
participant Assist as AiAssist
participant SDK as useAiAssist / pricing queries
participant API as Private AI Assist API
participant Cache as Query Cache
User->>Toolbar: Click "AI Assist"
Toolbar->>Dialog: setShow(true)
Dialog->>Assist: mount(initialText)
Assist->>SDK: fetch points & assist prices
SDK-->>Assist: points + prices
User->>Assist: choose action + submit text
Assist->>SDK: mutate POST /private-api/ai-assist(action,text,code)
SDK->>API: HTTP POST (private API)
alt Success
API-->>SDK: AiAssistResponse(output,cost)
SDK->>Cache: invalidate points (if cost>0)
SDK->>Cache: invalidate assistPrices
SDK-->>Assist: response
Assist->>Dialog: onApply(output, action)
Dialog->>Toolbar: apply output -> update editor/state
Toolbar->>Dialog: setShow(false)
else Error (402/422/429/other)
API-->>SDK: error
SDK-->>Assist: propagate structured error
Assist->>User: show error / allow retry
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 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 |
Summary by CodeRabbit
New Features
UX / UI
Localization