- 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>