Repository navigation
feat: downtime, what each character did between sessions (slice 25) - #26
Merged
Merged
Conversation
downtime_activities is a list per character: what they did, how many days it cost, an optional Markdown note, the session it happened around, and, when the campaign has a calendar, the day in the world it began, from which the page prints the range it covered through Reckoning::add(). The days are summed on every read, per character and for the campaign, and never stored. A row is visible to whoever may see the character: scopeVisibleTo() is a whereIn over Entity::visibleTo(), with no second switch. A player writes their own PC's rows and a GM writes anyone's, the rule EntityPolicy::update() already spells, and editing follows the character rather than the author. Downtime\Log is one component on the character's page, the session's page, and /downtime. The section travels in the export with both links remapped, and lands on the character's page in the vault. The demo world has three rows in the fortnight between the first two sessions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Slice 25 of the P3 queue: downtime tracking.
downtime_activities: what a character did between sessions, a cost in days, an optional Markdown note, the session it happened around, and an optional start date in the world's calendar stored as three columns underGameDateCast. The end date is computed throughReckoning::add()and the row prints the range. Days are summed on every read, never stored.DowntimeActivity::scopeVisibleTo()is awhereInoverEntity::visibleTo(), so a GM-only character's rows never load for a player. The session link is loaded separately throughGameSession::visibleTo().DowntimeActivityPolicy: a player writes on their own PC, a GM on anyone, and editing follows the character rather than the author.Downtime\Logis one component in three places: the character's page (a PC always, an NPC once it has a row), the session's page, and/downtimewith a total per character. The date picker is the session form's, checked against the calendar the same way, and absent without a calendar.downtimesection with both links remapped, the reader refusing a row whose character the file does not carry, and a "Downtime" section on the character's vault page.Checks
docs/plans/2026-09-13-feat-downtime-plan.md.