refactor(frontend): extract DetailRow for transaction details dialog#2269
Conversation
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ 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: defaults 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. Review rate limit: 0/1 reviews remaining, refill in 37 minutes and 30 seconds.Comment |
18a948e to
6e673a7
Compare
9096250 to
b698f7f
Compare
Pulls the repeated `<div><label/><value+copy/></div>` shape out of TransactionItem and OnchainTransactionItem into a shared component with an optional `copyable` prop. Replaces ~16 hand-written rows in the lightning dialog and 4 in the on-chain dialog. Lightning also gets parent-driven `gap-6` spacing in place of per-row `mt-6` / `mt-8`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
b698f7f to
5427e4e
Compare
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
Summary
Cleans up the transaction details dialog by extracting a single
DetailRowcomponent to replace ~16 hand-written rows with the same shape. Moves inter-row spacing to the parent (gap-6), dropping the duplicatedmt-6/mt-8margins (themt-8rows looked accidental).DetailRowtakes acopyableprop for rows that should show a copy icon (BOLT-12 Offer Id, Preimage, Hash, Invoice, Failure Reason, Metadata).No behavioral change.
Test plan