-
Notifications
You must be signed in to change notification settings - Fork 0
Improve list design #169
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
Improve list design #169
Conversation
…yling and animations - Updated the animation properties for the StrategiesTable component for smoother transitions. - Refactored the card styles in StrategiesTable to include a gradient background, hover effects, and improved layout. - Added a scrollbar customization for better visibility in the StrategiesTable. - Enhanced the StrategyEntry component with new styles, including a gradient background and hover effects. - Improved mobile layout for both StrategiesTable and StrategyEntry, ensuring better usability. - Added conditional rendering for displaying strategy counts and loading states. - Updated typography styles for better readability and visual hierarchy. - Refined the layout of strategy details, including TVL, APR, and user stake information.
- Updated TransactionsHeader component to improve hover effects and styling. - Refactored TransactionsTable to utilize new card styles and improve responsiveness. - Enhanced tab selection styles in VolumeChart for better user interaction. - Improved tooltip design in VolumeChart for clearer data presentation. - Adjusted spacing and layout across components for a more cohesive design.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR “Improve list design” introduces enhanced sorting options and layout refinements across both API and UI components. Key changes include:
- Adding sortBy and sortOrder properties to the AdvancedTradesParams and updating API calls accordingly.
- Refining UI components with updated spacing, typography, and motion animations in transactions, volume charts, and strategies lists.
- Updating filter and sort logic in history and transactions pages for improved maintainability and visual consistency.
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/utils/src/trade_api/types.ts | Added sortBy and sortOrder fields to support API-level sorting |
| packages/utils/src/trade_api/trade_api.ts | Reformatted condition logic for improved readability |
| packages/utils/src/api/fetchTrades.ts | Propagated sort-related parameters through the API call |
| packages/ui/src/Transactions/VolumeChart/VolumeChart.tsx | Updated styling and motion effects for tab and chart container design |
| packages/ui/src/Transactions/TransactionsTable/TransactionsTable.tsx | Improved layout, animations, and typographic adjustments in transaction listing |
| packages/ui/src/Transactions/TransactionsTable/TransactionsHeader.tsx | Updated sort handling with a consistent mapping approach |
| packages/ui/src/Transactions/TransactionsTable/TransactionEntry.tsx | Added helper functions for formatting dates, amounts, and transaction hashes |
| packages/ui/src/Earn/StrategiesTable/StrategyEntry.tsx | Refactored UI layout and updated APR display, with modified calculation factor |
| packages/ui/src/Earn/StrategiesTable/StrategiesTable.tsx | Adjusted spacing, margins, and responsiveness in the strategies table |
| packages/ui/src/Earn/FilterBar/FilterBar.tsx | Overhauled filter UI styling and behavior with new theme variable usage |
| packages/core/app/pools/page.tsx | Updated layout margins and spacing for pool pages |
| packages/core/app/history/page.tsx | Separated volume chart timeframes and refined load/sort logic for history filtering |
Comments suppressed due to low confidence (2)
packages/ui/src/Earn/StrategiesTable/StrategyEntry.tsx:195
- It appears the APR is now displayed as half of the original value (i.e. divided by 2). Please confirm whether this change is intentional.
up to {((apr * 100)/2).toFixed(1)}%
packages/utils/src/trade_api/types.ts:73
- [nitpick] Consider adding inline documentation/comments for the new 'sortBy' and 'sortOrder' fields to clarify their intended usage and accepted values for future maintainability.
sortBy?: string; sortOrder?: "asc" | "desc";
No description provided.