-
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
ref: combat #1120
ref: combat #1120
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
1bd3d44
to
0bc717b
Compare
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, Tests, Bug fix
Description
Changes walkthrough 📝
13 files
tailwind.config.js
Add utility class to hide scrollbars
client/tailwind.config.js
.no-scrollbar
to hide scrollbars acrossdifferent browsers.
useArmies.tsx
Refactor and enhance army-related hooks and utilities
client/src/hooks/helpers/useArmies.tsx
formatArmies
function to improve data handling.useArmies
touseMovableArmies
.useBattles.tsx
Refactor and enhance battle-related hooks and utilities
client/src/hooks/helpers/battles/useBattles.tsx
getBattle
function to fetch and process battle data.ArmyManagementCard.tsx
Update ArmyManagementCard component to use new army data structure
client/src/ui/components/military/ArmyManagementCard.tsx
entity
prop toarmy
.ViewOnMapIcon
component.BattleManager.ts
Refactor BattleManager class for improved battle data handling
client/src/dojo/modelManager/BattleManager.ts
BattleManager
class to improve battle data handling.useStructures.tsx
Refactor and enhance structure-related hooks and utilities
client/src/hooks/helpers/useStructures.tsx
useEntities.tsx
Refactor and enhance entity-related hooks and utilities
client/src/hooks/helpers/useEntities.tsx
useEntities
intouseEntities
anduseEntitiesUtils
.EntityDetails.tsx
Add EntityDetails component to display entity information
client/src/ui/modules/entity-details/EntityDetails.tsx
EntityDetails
.or clicked hex.
ArmyChip.tsx
Update ArmyChip component to use new army data structure
client/src/ui/components/military/ArmyChip.tsx
ArmyChip
component to use new army data structure.Entity.tsx
Update Entity component to use new entity and battle data structure
client/src/ui/components/entities/Entity.tsx
Entity
component to use new entity and battle data structure.BattleActions.tsx
Update BattleActions component to use new battle data structure
client/src/ui/modules/military/battle-view/BattleActions.tsx
BattleActions
component to use new battle data structure.ArmyInfoLabel.tsx
Update ArmyInfoLabel component to use new army data structure
client/src/ui/components/worldmap/armies/ArmyInfoLabel.tsx
ArmyInfoLabel
component to use new army data structure.Army.tsx
Update Army and ArmySelectionOverlay components to use new army data
structure
client/src/ui/components/worldmap/armies/Army.tsx
Army
andArmySelectionOverlay
components to use new army datastructure.
2 files
useBattlesUtils.test.tsx
Add unit tests for useBattlesUtils functions
client/src/hooks/helpers/battles/test/useBattlesUtils.test.tsx
useBattlesUtils
functions.useBattles.test.tsx
Add unit tests for useBattles functions
client/src/hooks/helpers/battles/test/useBattles.test.tsx
useBattles
functions.66 files
ProductionManager.ts
...
client/src/dojo/modelManager/ProductionManager.ts
...
BattleView.tsx
...
client/src/ui/modules/military/battle-view/BattleView.tsx
...
Battle.tsx
...
client/src/ui/modules/military/battle-view/Battle.tsx
...
useHyperstructures.tsx
...
client/src/hooks/helpers/useHyperstructures.tsx
...
TroopChip.tsx
...
client/src/ui/components/military/TroopChip.tsx
...
useGuilds.tsx
...
client/src/hooks/helpers/useGuilds.tsx
...
TopMiddleNavigation.tsx
...
client/src/ui/modules/navigation/TopMiddleNavigation.tsx
...
useTrade.tsx
...
client/src/hooks/helpers/useTrade.tsx
...
Battles.tsx
...
client/src/ui/components/models/buildings/worldmap/Battles.tsx
...
StructureCard.tsx
...
client/src/ui/components/hyperstructures/StructureCard.tsx
...
GroundGrid.tsx
...
client/src/ui/components/construction/GroundGrid.tsx
...
ShardsMines.tsx
...
client/src/ui/components/models/buildings/worldmap/ShardsMines.tsx
...
useHexPosition.tsx
...
client/src/hooks/helpers/useHexPosition.tsx
...
useTravel.tsx
...
client/src/hooks/helpers/useTravel.tsx
...
ArmyViewCard.tsx
...
client/src/ui/components/military/ArmyViewCard.tsx
...
MarketManager.ts
...
client/src/dojo/modelManager/MarketManager.ts
...
RealmListItem.tsx
...
client/src/ui/components/worldmap/realms/RealmListItem.tsx
...
Battle.tsx
...
client/src/ui/components/military/Battle.tsx
...
InstancedCastles.tsx
...
client/src/ui/components/models/buildings/worldmap/InstancedCastles.tsx
...
TradeHistoryEvent.tsx
...
client/src/ui/components/trading/TradeHistoryEvent.tsx
...
Armies.tsx
...
client/src/ui/components/worldmap/armies/Armies.tsx
...
LeftNavigationModule.tsx
...
client/src/ui/modules/navigation/LeftNavigationModule.tsx
...
useResources.tsx
...
client/src/hooks/helpers/useResources.tsx
...
HexceptionViewScene.tsx
...
client/src/ui/modules/scenes/HexceptionViewScene.tsx
...
useBuildings.tsx
...
client/src/hooks/helpers/useBuildings.tsx
...
ArmyHitBox.tsx
...
client/src/ui/components/worldmap/armies/ArmyHitBox.tsx
...
utils.tsx
...
client/src/ui/components/worldmap/armies/utils.tsx
...
useRoads.tsx
...
client/src/hooks/helpers/useRoads.tsx
...
useBanks.tsx
...
client/src/hooks/helpers/useBanks.tsx
...
RightNavigationModule.tsx
...
client/src/ui/modules/navigation/RightNavigationModule.tsx
...
WorldStructuresMenu.tsx
...
client/src/ui/modules/world-structures/WorldStructuresMenu.tsx
...
BattleDetails.tsx
...
client/src/ui/modules/military/battle-view/BattleDetails.tsx
...
StructureListItem.tsx
...
client/src/ui/components/worldmap/structures/StructureListItem.tsx
...
useBlockchainStore.tsx
...
client/src/hooks/store/useBlockchainStore.tsx
...
HexGrid.tsx
...
client/src/ui/components/models/biomes/HexGrid.tsx
...
GrasslandBiome.tsx
...
client/src/ui/components/models/biomes/GrasslandBiome.tsx
...
DeepOceanBiome.tsx
...
client/src/ui/components/models/biomes/DeepOceanBiome.tsx
...
DesertBiome.tsx
...
client/src/ui/components/models/biomes/DesertBiome.tsx
...
OceanBiome.tsx
...
client/src/ui/components/models/biomes/OceanBiome.tsx
...
useRealm.tsx
...
client/src/hooks/helpers/useRealm.tsx
...
useQuestStore.tsx
...
client/src/hooks/store/useQuestStore.tsx
...
vitest.config.ts
...
client/vitest.config.ts
...
DeciduousForestBiome.tsx
...
client/src/ui/components/models/biomes/DeciduousForestBiome.tsx
...
SubtropicalDesertBiome.tsx
...
client/src/ui/components/models/biomes/SubtropicalDesertBiome.tsx
...
TemperateDesertBiome.tsx
...
client/src/ui/components/models/biomes/TemperateDesertBiome.tsx
...
TemperateRainforestBiome.tsx
...
client/src/ui/components/models/biomes/TemperateRainforestBiome.tsx
...
TropicalSeasonalForestBiome.tsx
...
client/src/ui/components/models/biomes/TropicalSeasonalForestBiome.tsx
...
_mapStore.tsx
...
client/src/hooks/store/_mapStore.tsx
...
ScorchedBiome.tsx
...
client/src/ui/components/models/biomes/ScorchedBiome.tsx
...
SnowBiome.tsx
...
client/src/ui/components/models/biomes/SnowBiome.tsx
...
TropicalRainforestBiome.tsx
...
client/src/ui/components/models/biomes/TropicalRainforestBiome.tsx
...
BeachBiome.tsx
...
client/src/ui/components/models/biomes/BeachBiome.tsx
...
ShrublandBiome.tsx
...
client/src/ui/components/models/biomes/ShrublandBiome.tsx
...
TaigaBiome.tsx
...
client/src/ui/components/models/biomes/TaigaBiome.tsx
...
TundraBiome.tsx
...
client/src/ui/components/models/biomes/TundraBiome.tsx
...
BattleLabel.tsx
...
client/src/ui/components/worldmap/armies/BattleLabel.tsx
...
useCaravans.tsx
...
client/src/hooks/helpers/useCaravans.tsx
...
global.ts
...
sdk/packages/eternum/src/constants/global.ts
...
ArmyPanel.tsx
...
client/src/ui/components/military/ArmyPanel.tsx
...
BattlesArmyTable.tsx
...
client/src/ui/components/military/BattlesArmyTable.tsx
...
DepositResources.tsx
...
client/src/ui/components/resources/DepositResources.tsx
...
pnpm-lock.yaml
...
pnpm-lock.yaml
...
tests.cairo
...
contracts/src/systems/combat/tests.cairo
...
package.json
...
client/package.json
...
test-contracts.yml
...
.github/workflows/test-contracts.yml
...
test-client.yml
...
.github/workflows/test-client.yml
...