-
Notifications
You must be signed in to change notification settings - Fork 52
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
Enh/cleanup #1151
Enh/cleanup #1151
Conversation
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.
This pull request appears to be a cleanup effort, removing unused files and components related to bank functionality, and reorganizing some imports and type definitions. The changes look good overall, with just a couple of minor CSS class duplications that could be cleaned up. The removal of unused code and the consolidation of type definitions should improve code maintainability.
Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
PR Type
enhancement, miscellaneous
Description
bankEventQueries.ts
,useBankStore.tsx
,BankEntityList.tsx
, andBankStats.tsx
.ResourceMiningTypes
in multiple files to use the new path fromconfig
.TroopMenuRow
andBattleDetails
components.StructureConstructionMenu
..knip.json
configuration to remove unused file paths.Changes walkthrough 📝
6 files
bankEventQueries.ts
Remove bank event queries and related functions
client/src/dojo/events/bankEventQueries.ts
computeBankStats
function and related interfaces and helperfunctions.
useBankStore.tsx
Remove bank store hooks
client/src/hooks/store/useBankStore.tsx
useBankStore
anduseComputeBankStats
hooks.BankEntityList.tsx
Remove BankEntityList component
client/src/ui/components/bank/BankEntityList.tsx
BankEntityList
component.BankStats.tsx
Remove BankStats component
client/src/ui/components/bank/BankStats.tsx
BankStats
component.config.tsx
Export ResourceMiningTypes as enum
client/src/ui/config.tsx
ResourceMiningTypes
to be exported as an enum.utils.tsx
Remove local ResourceMiningTypes definition and update import path
client/src/ui/utils/utils.tsx
ResourceMiningTypes
.ResourceMiningTypes
.8 files
useUISound.tsx
Update import path for ResourceMiningTypes in useUISound
client/src/hooks/useUISound.tsx
ResourceMiningTypes
.BuildArea.tsx
Update import path for ResourceMiningTypes in BuildArea
client/src/ui/components/construction/BuildArea.tsx
ResourceMiningTypes
.ExistingBuildings.tsx
Update import path for ResourceMiningTypes in ExistingBuildings
client/src/ui/components/construction/ExistingBuildings.tsx
ResourceMiningTypes
.GroundGrid.tsx
Update import path for ResourceMiningTypes in GroundGrid
client/src/ui/components/construction/GroundGrid.tsx
ResourceMiningTypes
.SelectPreviewBuilding.tsx
Update import path for ResourceMiningTypes in SelectPreviewBuilding
client/src/ui/components/construction/SelectPreviewBuilding.tsx
ResourceMiningTypes
.TroopChip.tsx
Fix duplicate class in TroopMenuRow component
client/src/ui/components/military/TroopChip.tsx
w-full
class inTroopMenuRow
component.StructureConstructionMenu.tsx
Remove unused imports in StructureConstructionMenu
client/src/ui/components/structures/construction/StructureConstructionMenu.tsx
BattleDetails.tsx
Fix duplicate class in BattleDetails component
client/src/ui/modules/military/battle-view/BattleDetails.tsx
p-2
class inBattleDetails
component.1 files
.knip.json
Clean up unused file paths in knip configuration
.knip.json