Commit Graph

8 Commits

Author SHA1 Message Date
centron\schwoerer
86fb09a867 feat(gowlers-tracking-ledger): add separate date started and date finished columns
- 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>
2025-11-20 10:34:19 +01:00
centron\schwoerer
f050a988f9 fix(gowlers-tracking-ledger): use correct Foundry combat hooks for v11
- 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>
2025-11-20 10:16:56 +01:00
centron\schwoerer
049f47c4b3 fix(gowlers-tracking-ledger): improve encounter tracking with extended time window and detailed logging
- 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>
2025-11-20 09:58:45 +01:00
centron\schwoerer
8646ebd3e1 fix(gowlers-tracking-ledger): link XP gains to encounters after combat ends
- 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>
2025-11-19 15:44:51 +01:00
centron\schwoerer
ea595ab191 refactor(gowlers-tracking-ledger): simplify render hook by removing redundant jQuery tab handlers
- 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>
2025-11-19 15:13:41 +01:00
centron\schwoerer
b97604d506 feat(gowlers-tracking-ledger): implement tab switching with global handler function
- 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>
2025-11-19 12:51:58 +01:00
centron\schwoerer
e71d54659e test 2025-11-19 11:47:02 +01:00
centron\schwoerer
e553e809ae rename folder 2025-11-18 09:46:37 +01:00