MosswartOverlord/frontend
Erik a8078c51ec fix(v2): inventory — full item normalization + all visual fixes
1. Item normalization: normalizeItem() handles ALL formats:
   - Inventory service (snake_case): current_wielded_location, object_class
   - Plugin raw (PascalCase): CurrentWieldedLocation, ObjectClass
   - Plugin IntValues: IntValues['10'] for wielded, ['5'] for burden
   - Sentinel filtering: -1 values properly excluded

2. Equipment slots: armor (object_class=2) fills ALL matching slots.
   Non-armor uses exact mask match first, then first bit overlap.
   Body container ID detected to separate worn from pack items.

3. Slot colors: per-slot-type backgrounds matching v1:
   purple (#3a2555) for jewelry, blue (#1e2e55) for armor,
   teal (#1e3e3e) for clothing, dark blue (#142040) for weapons

4. Burden: fetches /character-stats/{name} for burden_units and
   encumbrance_capacity. Shows percentage when available, raw burden
   otherwise. Bar fills 0-200% mapped to 0-100% height with
   green/orange/red thresholds.

5. Mana panel: shows equipped items with current/max mana + estimated
   time remaining. State dot green/red. Sorted by mana ascending.

6. Fonts: switched to system font stack (-apple-system etc.) instead
   of Palatino for crisp rendering.

7. Tooltip: proper system font, larger text (13px), structured sections

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 21:40:32 +02:00
..
src fix(v2): inventory — full item normalization + all visual fixes 2026-04-12 21:40:32 +02:00
.gitignore feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
index.html feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
package-lock.json feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
package.json feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
tsconfig.json feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
tsconfig.tsbuildinfo feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00
vite.config.ts feat: v2 dashboard — React + Vite parallel implementation 2026-04-12 15:07:11 +02:00