-
Notifications
You must be signed in to change notification settings - Fork 53
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
Fix/markets #1115
Fix/markets #1115
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
PR Reviewer Guide 🔍
|
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.
Overall, this pull request includes several improvements to the UI components, particularly in the trading and resource management areas. The changes enhance user experience with better layouts, more efficient data handling, and improved search functionality. The code also shows good attention to edge cases and type safety. These updates should make the application more user-friendly and robust.
Thanks for using MentatBot. Reply with feedback or to ask MentatBot to review other parts of the PR. Please give feedback with emoji reacts.
client/src/ui/components/cityview/realm/trade/Roads/RoadRealmSelector.tsx
Show resolved
Hide resolved
PR Code Suggestions ✨
|
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.
lgtm
PR Type
Enhancement, Bug fix
Closes #1103
Closes #1109
Closes #1108
Description
isAmm
prop to various components to handle specific logic for AMM.key
prop toTradeHistoryEvent
components to fix rendering issues.Changes walkthrough 📝
8 files
Swap.tsx
Add `isAmm` prop to `ResourceSwap` component
client/src/ui/components/bank/Swap.tsx
isAmm
prop toResourceSwap
component.RoadRealmSelector.tsx
Improve readability of distance calculation
client/src/ui/components/cityview/realm/trade/Roads/RoadRealmSelector.tsx
TradeRealmSelector.tsx
Improve readability of distance calculation
client/src/ui/components/cityview/realm/trade/TradeRealmSelector.tsx
SelectLocationPanel.tsx
Improve readability of distance calculation
client/src/ui/components/entities/SelectLocationPanel.tsx
ResourceWeight.tsx
Add `isAmm` prop and adjust donkey amount calculation
client/src/ui/components/resources/ResourceWeight.tsx
isAmm
prop toTravelInfo
component.isAmm
prop.ToggleComponent.tsx
Enhance toggle logic with search term handling
client/src/ui/components/toggle/ToggleComponent.tsx
useEffect
to handlesearchTerm
prop.searchTerm
andopen
props.MarketOrderPanel.tsx
Improve layout and add account name display
client/src/ui/components/trading/MarketOrderPanel.tsx
MarketResource
component.OrderRow
component.TransferBetweenEntities.tsx
Add search functionality and display account names
client/src/ui/components/trading/TransferBetweenEntities.tsx
2 files
MarketModal.tsx
Remove unused variable and fix layout issue
client/src/ui/components/trading/MarketModal.tsx
userTrades
variable.MarketResourceSidebar
.MarketTradingHistory.tsx
Add key prop to TradeHistoryEvent components
client/src/ui/components/trading/MarketTradingHistory.tsx
key
prop toTradeHistoryEvent
components.