Skip to content

feat: the player screen, for the television at the end of the table (slice 24) - #25

Merged
dannyclarkdev merged 2 commits into
mainfrom
feat/player-screen-slice-24
Sep 13, 2026
Merged

dannyclarkdev merged 2 commits into
mainfrom
feat/player-screen-slice-24

Conversation

@dannyclarkdev

Copy link
Copy Markdown
Owner

What

Slice 24 of the P3 queue: the player screen for a second display.

  • /campaigns/{campaign}/screen, on its own layout with no sidebar and no controls, shows what the whole party may see: the fight as the party sees it, a handout full size, a map with the pins the party found, or the revealed clocks, with the clocks in a strip the rest of the time.
  • Every read on the screen goes through a gate that takes no user and no role: Combatant::visibleToPlayers(), Clock::visibleTo(Player), and two new user-free scopes, Entity::visibleToParty() and MapMarker::visibleToParty(). A GM who opens it reads exactly what a player reads.
  • The GM chooses from an "On the screen" card on the Run screen. Putting a hidden handout up reveals it through RevealHandout on the way. Maps are offered only when the party may already see them and they have a picture.
  • The state is two columns on the campaign, screen_focus and screen_entity_id, resolved by Campaign::screen(). A focus that needs a page and gets none back through the gate resolves to nothing, so a handout taken back comes off the wall on the next render.
  • ScreenChanged broadcasts with an empty payload on the campaign's presence channel, ShouldRescue. The screen also re-renders on the four table events and polls at sixty seconds.
  • The two columns travel in the export; the reader accepts older files and refuses a page the file does not carry; the importer remaps the page after the entities. DeleteEntity clears both columns on a soft delete.
  • The demo world has the duke's letter on the screen on first run.

Checks

  • 28 new tests. Full suite: 1422 tests, 1421 passing, 1 skipped. Larastan and Pint clean.
  • Browser pass from both seats, recorded in docs/plans/2026-09-13-feat-player-screen-plan.md.

/campaigns/{campaign}/screen is one page on its own layout that shows what
the whole party may see and nothing else, whoever opened it: the turn order
with health as a word, a handout full size, a map with the pins the party
found, or the revealed clocks, with the clocks in a strip the rest of the
time. Every read goes through a gate that takes no user and no role, so a
GM who opens it on the laptop that feeds the wall reads what a player reads.

The GM chooses from a card on the Run screen. Putting a hidden handout up
reveals it through RevealHandout on the way. A ScreenChanged event with no
payload tells every open screen, and the screen also re-renders on the four
table events. The two columns travel in the export and the importer remaps
the page after the entities. DeleteEntity clears them, because a soft delete
never fires nullOnDelete. The demo world has the duke's letter up.
@dannyclarkdev
dannyclarkdev merged commit f0bc7ab into main Sep 13, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant