feat: portfolio loading UX & cache persistence#217
Conversation
Add spinner + status text during initial load and a subtle refresh icon during background refetches. Extend gcTime to 30min and staleTime to 30s so cached data survives drawer close/reopen and tab switches. Use keepPreviousData to prevent flash-to-empty on query key changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
Disabled knowledge base sources:
📝 WalkthroughWalkthroughThis PR adds five new ticket documents describing bugs, feature requests, and chores (USDC swap reversion, dollar-sign stripping, ENS name support, generic error messages, and stale portfolio display), alongside improvements to portfolio components' loading UI states and React Query caching configuration. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
- Empty state: distinguish "no wallet" vs "wallet with no assets" - Header skeleton: match balance height to prevent layout shift - Delta skeleton: match text-xs dimensions for smoother transition Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ting Created tickets from comprehensive e2e browser testing of all agent tools: - tic-32f9 [P1] USDC swap reverts after approval on Arbitrum - tic-616a [P2] Dollar sign stripped from chat input messages - tic-78e5 [P3] External address lookup does not support ENS names - tic-fc5f [P3] Portfolio side panel shows stale 'No assets found' state - tic-93f0 [P4] Generic error messages for backend failures lack detail Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
gcTimefrom 5min to 30min andstaleTimefrom 10s to 30s so cached data survives drawer close/reopen and tab switcheskeepPreviousDatato prevent empty-state flash when query keys change (e.g. Dynamic SDK re-init)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Improvements