-
Notifications
You must be signed in to change notification settings - Fork 12
feat: Add Perps tile to homefeed with Hyperliquid branding #495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: staging
Are you sure you want to change the base?
Conversation
- Created new PerpsTile component with gradient background - Added tile to homefeed after WalletPortfolioTile - Tile navigates to /perps app - Fixed WalletPortfolioBalance tests (mocked AccountSelector) - Fixed lint errors (button type, unused imports) - Updated test snapshots
📝 WalkthroughWalkthroughTwo new UI components (AccountSelector and PerpsTile) are introduced to the pillarx app. AccountSelector replaces the existing wallet icon header in WalletPortfolioBalance and provides a dropdown for account selection with portfolio data fetching. PerpsTile is added as a new tile in the main feed. Associated tests are updated to mock the new AccountSelector component. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant AccountSelector
participant API
participant State
participant UI
User->>AccountSelector: Render component
AccountSelector->>API: Fetch Smart Account portfolio
AccountSelector->>API: Fetch EOA portfolio
API-->>AccountSelector: Return portfolio data
AccountSelector->>AccountSelector: Compute balances (memoized)
AccountSelector->>UI: Display accounts with balances
User->>UI: Click account selection
UI->>State: setActiveAccountMode()
State-->>AccountSelector: Update active account
AccountSelector->>UI: Re-render with active styling
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (5)📚 Learning: 2025-04-23T15:04:20.826ZApplied to files:
📚 Learning: 2025-04-23T15:04:20.826ZApplied to files:
📚 Learning: 2025-12-03T10:01:15.801ZApplied to files:
📚 Learning: 2025-08-20T09:14:16.888ZApplied to files:
📚 Learning: 2025-12-11T12:40:09.964ZApplied to files:
🧬 Code graph analysis (2)src/apps/pillarx-app/components/PerpsTile/PerpsTile.tsx (1)
src/apps/pillarx-app/components/AccountSelector/AccountSelector.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (7)
✏️ Tip: You can disable this entire section by setting 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 |
Description
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.