Conversation
refactor(menu): add copy markdown and open in ai features
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughAdds Docker support with a multi-stage Next.js Dockerfile and a .dockerignore. Introduces a CopyButton UI with external-open menu on docs pages, integrates it into the docs page route, and adds two SVG icon components. Includes a minor formatting change to the docs layout. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant DocsPage as Docs Page
participant CopyButton as CopyButton (client)
participant Clipboard as Clipboard API
participant Window as Window
User->>DocsPage: Open /docs/[slug]
DocsPage->>CopyButton: Render with { text: rawMDX, slug }
User->>CopyButton: Click "Copy Markdown"
CopyButton->>Clipboard: navigator.clipboard.writeText(text)
Clipboard-->>CopyButton: Promise resolved
CopyButton-->>User: Show "Copied!" then revert
User->>CopyButton: Click "Open"
CopyButton-->>User: Show dropdown
User->>CopyButton: Select destination (e.g., GitHub/ChatGPT/Scira/Claude/T3)
CopyButton->>Window: window.open(computedURL, "_blank")
Note over CopyButton: Click outside closes dropdown
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (7)
✨ Finishing Touches
🧪 Generate unit tests
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
Style
Chores