Add hidden AI install panel to plugin docs#594
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe documentation site gains MDX support by adding Changes
Sequence Diagram(s)sequenceDiagram
actor User
participant PageTitle as PageTitle Component
participant InstallPrompt as InstallPromptForAI
participant Parser as Route Parser
participant PromptPanel as InstallPromptForAIPanel
participant Clipboard as Clipboard API
User->>PageTitle: View documentation page
PageTitle->>InstallPrompt: Render component
InstallPrompt->>Parser: Extract route ID
Parser-->>InstallPrompt: pluginSlug + description
InstallPrompt->>InstallPrompt: Normalize action names
InstallPrompt->>InstallPrompt: Compute installation prompt
InstallPrompt->>PromptPanel: Render with promptHtml
PromptPanel-->>User: Display AI setup prompt panel
User->>PromptPanel: Click "Copy for AI"
PromptPanel->>Clipboard: Copy prompt to clipboard
Clipboard-->>PromptPanel: Success/failure status
PromptPanel-->>User: Update button label (2s reset)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes 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 docstrings
🧪 Generate unit tests (beta)
Review rate limit: 0/5 reviews remaining, refill in 52 minutes and 27 seconds. Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|



Summary\n- add a shared collapsed panel that exposes a copyable AI install prompt on plugin getting-started pages\n- resolve plugin packages from docs metadata and plugin registry so the prompt works across localized and nested getting-started routes\n- keep the panel hidden by default and add one-click copy support\n\n## Testing\n- bun run check\n- coverage script confirmed 748 plugin getting-started pages resolve to at least one package
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes