[priority: high] Equipment names displayed twice in Equipment tab #197
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
BUG: Equipment instance name renders redundantly next to type name
Bug Summary
In the Equipment tab, each equipped item shows its name twice because
instance.nameandtype?.nameresolve to the same string.Root Cause
src/components/game/tabs/EquipmentTab/EquipmentSlotGrid.tsxfont-semiboldCurrent Display
Suggested Fix
Remove the redundant type name display (
type?.name || instance.typeIdon line 47) sinceinstance.namealready shows the same value. Or, if instances can be renamed in the future, keep the type name as a subtitle but differentiate the styling more clearly (e.g., show type name in italics or muted color below the custom name).Priority
HIGH - Visual clutter in frequently-used equipment screen
Starting work on the equipment name duplication bug. Examining EquipmentSlotGrid.tsx now.
Fixed the equipment name duplication bug in EquipmentSlotGrid.tsx. Removed the redundant
type?.nameline (line 46-47) sinceinstance.namealready displays the same value.Changes:
<div className="text-xs text-[var(--text-secondary)]">{type?.name || instance.typeId}</div>from EquipmentSlotGrid.tsxCommit:
7123572