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>
This commit is contained in:
centron\schwoerer
2025-11-20 10:34:19 +01:00
parent f050a988f9
commit 86fb09a867
2 changed files with 4 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
const MODULE_ID = "gowlers-tracking-ledger";
const MODULE_VERSION = "0.1.10";
const MODULE_VERSION = "0.1.11";
const TRACK_SETTING = "actorSettings";
const FLAG_SCOPE = "world";
const MAX_HISTORY_ROWS = 100;
@@ -465,7 +465,8 @@ function buildHistoryContent(actor, tabArg) {
flag: ENCOUNTER_FLAG,
columns: [
{ label: "Encounter ID", render: (entry) => entry.encounterID.slice(0, 8) },
{ label: "Date", render: (entry) => formatDate(entry.dateCreated) },
{ label: "Date Started", render: (entry) => formatDate(entry.dateCreated) },
{ label: "Date Finished", render: (entry) => formatDate(entry.dateUpdated) },
{ label: "Status", render: (entry) => entry.status ?? "unknown" },
{ label: "Rounds", render: (entry) => entry.rounds || 0 },
{ label: "Participants", render: (entry) => entry.participants ? entry.participants.length : 0 },

View File

@@ -3,7 +3,7 @@
"type": "module",
"title": "Gowler's Tracking Ledger",
"description": "Adds HP/XP/Currency log buttons to PF1 sheets and opens the tracking dialog preloaded with the actor's logs.",
"version": "0.1.10",
"version": "0.1.11",
"authors": [
{ "name": "Gowler", "url": "https://foundryvtt.com" }
],