fix(desktop): PR返信ダイアログの返信元をMarkdownレンダリング対応 (#214)#216
Conversation
- ReplyDialog の返信元プレビューが getCommentPreviewText でプレーンテキスト化されていたため、画像・リンク・コードブロック等が表示されていなかった - ReviewPanel 内の CommentBody をコンポーネント化し、ReplyDialog でも再利用することで GFM/リンク/コードハイライト/GitHub blockquote alert を含むフルレンダリングに統一 - リンククリックは ReviewPanel の handleOpenUrl を経由し、ブラウザタブで開く挙動を維持
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 12 minutes and 4 seconds. ⌛ 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: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ 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 |
概要
Issue #214 対応。PR コメント返信ダイアログ (
ReplyDialog) の「返信元コメント」表示がgetCommentPreviewTextによってプレーンテキスト化されており、画像・リンク・コードブロックなど Markdown 要素がレンダリングされていなかった問題を修正する。変更内容
ReviewPanel内にインライン定義されていたCommentBodyコンポーネントをcomponents/CommentBody/に切り出し、ReviewPanelとReplyDialogの両方から再利用できるようにしたReplyDialogの返信元プレビュー表示をgetCommentPreviewTextによる1行プレーンテキストからCommentBodyによるフル Markdown レンダリング (GFM / rehype-sanitize / blockquote alert / コードブロック) に差し替えmax-h-32→max-h-48に拡張し、複数行/画像入りの本文でもスクロールで読めるように調整ReviewPanelからReplyDialogへonOpenUrlを渡し、返信元内リンクも既存のブラウザタブで開く挙動に統一関連 Issue
Closes #214
テスト観点