Commit Graph

17 Commits

Author SHA1 Message Date
centron\schwoerer
dcbd76adb8 feat(gowlers-tracking-ledger): add source detection and change user to source column
- 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>
2025-11-20 10:40:29 +01:00
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
33aebf2b87 1 2025-11-18 16:35:03 +01:00
centron\schwoerer
167cd0e02d sth 2025-11-18 16:17:05 +01:00
centron\schwoerer
4f0b3af6e1 zwischenstand 2025-11-18 14:32:01 +01:00
centron\schwoerer
e553e809ae rename folder 2025-11-18 09:46:37 +01:00
centron\schwoerer
aec929b433 working 2025-11-18 09:46:10 +01:00
centron\schwoerer
f054a31b20 zischenstand 2025-11-14 14:52:43 +01:00
centron\schwoerer
30aa03c6db history 2025-11-14 10:30:00 +01:00
centron\schwoerer
5669aa75ca track HP in chat 2025-11-14 09:25:31 +01:00
Claude Code
15355c35ea Initial commit: Fresh start with current state 2025-11-06 14:04:48 +01:00