-
Notifications
You must be signed in to change notification settings - Fork 37
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: balance resource view #1145
Conversation
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.
Overall, the changes look good and seem to improve both functionality and UI. The main points to be cautious about are the changes in resource output calculation and the update interval for the ResourceChip component. These might need thorough testing to ensure they don't introduce any unexpected behavior. The UI changes, particularly in the MarketModal, should enhance the visual appeal and consistency of the application.
Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Fixes a bug in the setInterval function that updates the resource balance in the RightNavigationModule, now updates dynamically the balance every second.
Continues the style transfer --> Closes #1112
PR Type
Bug fix, Enhancement, Formatting
Description
ProductionManager
.ResourceChip
.MarketModal
.Changes walkthrough 📝
ProductionManager.ts
Simplify balance calculation logic
client/src/dojo/modelManager/ProductionManager.ts
Math.min
.SelectPreviewBuilding.tsx
Update resource inputs and outputs in building preview
client/src/ui/components/construction/SelectPreviewBuilding.tsx
RESOURCE_INPUTS
import.ResourceChip.tsx
Fix and optimize resource balance update interval
client/src/ui/components/resources/ResourceChip.tsx
MarketModal.tsx
Update MarketModal styling and import order
client/src/ui/components/trading/MarketModal.tsx
useGetBanks
import.TopScreenView.tsx
Update battle view styling
client/src/ui/modules/military/battle-view/TopScreenView.tsx