- Source column now shows attacker name and item: "Damage (Chyvvom, Binding Contracts)"
- Add damage breakdown detection from pf1DamageData
- Add hover tooltips to delta (Δ) column showing damage/healing breakdown
- Extract damage types and values: "5 physical, 5 fire" etc.
- Store damageBreakdown field in history entries
- Support tooltips for HP and XP changes
- Update version to 0.1.13
Now you can see detailed damage types and amounts by hovering over the delta column,
and source column shows exactly who dealt the damage and with what ability.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Replace 'User' column with 'Source' column in HP, XP, and Currency tabs
- Add automatic source detection: Attack, Spell, Healing, Damage, XP Award, Manual
- Pass options and change data to recordHistoryEntry for source detection
- Detects source based on pf1DamageData, healing flag, spell action type, and value changes
- Defaults to 'Manual' for direct edits
- Update version to 0.1.12
Now you can see what caused each stat change (attack, spell, healing, etc)
in the tracking ledger instead of just the user who made the change.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Split 'Date' column into 'Date Started' (dateCreated) and 'Date Finished' (dateUpdated)
- 'Date Finished' shows when encounter status changed to 'finished'
- Provides better visibility into encounter duration
- Update version to 0.1.11
Encounters tab now clearly shows when each encounter started and when it ended.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Change combatStart hook to createCombat (correct hook for Foundry v11)
- Change combatEnd hook to deleteCombat (correct hook when combat is deleted)
- Add debug logging to confirm combat hooks are registered
- Update version to 0.1.10
Fixes issue where combat end was never being detected, preventing encounter
status from being updated to 'finished' and XP from being linked to encounters.
The console logs showed onCombatEnd was never firing because the hooks had
incorrect names for Foundry v11.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Increase XP linking time window from 5 to 30 seconds after combat ends
- Add detailed console logging to debug encounter status updates
- Log XP entry creation with encounter ID information
- Log encounter summary updates to verify status changes are persisted
- Track active combat state during XP recording
This helps debug why encounters show as 'ongoing' and XP not linked to encounters.
Update version to 0.1.9
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Add lastCombatId and lastCombatEndTime tracking to preserve encounter data
- Update recordHistoryEntry to link XP within 5 seconds of combat end to last encounter
- Change encounter status from 'ended' to 'finished' for clarity
- Store encounter ID when combat ends to catch post-combat XP awards
Fixes issue where XP gained after combat ends was not linked to the encounter,
and encounters were not being marked as finished in the history.
Update version to 0.1.8
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Remove jQuery event listeners for tab switching now handled by onclick attributes
- Simplify render hook to focus solely on config button creation
- Add debug logging to confirm render hook execution
- Reduce potential conflicts between onclick and jQuery handlers
- Update version to 0.1.7
Optimizes dialog rendering and improves code clarity.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
- Add window.switchHistoryTab() global function to handle tab switching via onclick
- Function manages active tab state by toggling CSS classes and display properties
- Includes detailed console logging for debugging tab switches
- Update version to 0.1.6
Fixes tab switching functionality in the history dialog where buttons were not responding to clicks.
🤖 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>