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:
@@ -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 },
|
||||
|
||||
@@ -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" }
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user