fix: update manteca refund activity ui#1746
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
WalkthroughThe changes refactor how "refunded" transaction status is handled across the component system. The refunded status shifts from error-red styling to secondary-yellow styling, adopts a new "undo" icon, and gains specialized handling in transaction detail components for visibility and action text/icon rendering. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 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)
📝 Coding Plan
Comment |
|
@coderabbitai review in depth. Evaluate:
Also, write a very concise testing guide for QA |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 7495 🏁 Script executed: Length of output: 99478
🔍 In-Depth Review: PR
|
| Step | Action | Expected |
|---|---|---|
| 1 | Open Activity / Transaction History | Locate a refunded Manteca QR payment entry |
| 2 | Inspect the transaction card row | Label reads "Refund" (not the original payment type) |
| 3 | Inspect the action icon on the card | Shows arrow-down-left icon (incoming) |
| 4 | Inspect the StatusPill |
Shows yellow pill with undo (↩) icon, not red x |
| 5 | Inspect the StatusBadge elsewhere |
Shows yellow badge styling (not red) |
| 6 | Tap to open the transaction detail drawer | Drawer opens successfully |
| 7 | Check detail rows | Token & Network row is hidden |
| 8 | Check action buttons | "Split this bill" button is hidden |
| 9 | Check date row | A "Refunded" row appears with a date |
🚫 Regression — Non-Refunded Statuses Must Be Unchanged
| Status | Expected Badge Color | StatusPill Icon |
|---|---|---|
cancelled |
Red | cancel (✕) |
failed |
Red | cancel (✕) |
pending |
Yellow | pending |
processing |
Yellow | pending |
completed |
Green | success (✓) |
🔲 Edge Cases
- Open a non-QR refunded transaction → "Split this bill" button should not appear (already wasn't shown, but verify)
- Verify the "Issues with this transaction?" support link still renders correctly on a refunded transaction drawer
🧠 Learnings used
Learnt from: Hugo0
Repo: peanutprotocol/peanut-ui PR: 852
File: src/hooks/useTransactionHistory.ts:177-239
Timestamp: 2025-05-14T21:16:06.369Z
Learning: When reviewing code, pay attention to and resolve CodeRabbit comments as they can contain useful refactoring suggestions and insights.
Learnt from: Hugo0
Repo: peanutprotocol/peanut-ui PR: 594
File: src/components/Request/Pay/Views/Initial.view.tsx:188-213
Timestamp: 2024-12-31T15:08:15.640Z
Learning: Always resolve coderabbit comments when reviewing code, since they can contain useful suggestions.
Uh oh!
There was an error while loading. Please reload this page.