Skip to content

feat(events): a room's share text, S-89 slip and absences link - #699

Merged
mindsers merged 2 commits into
mainfrom
feat/rooms-r4-5b-room-share-slip
Nov 28, 2026
Merged

mindsers merged 2 commits into
mainfrom
feat/rooms-r4-5b-room-share-slip

Conversation

@mindsers

Copy link
Copy Markdown
Contributor

Parallel rooms R4, PR 5b, after the meeting page's rooms (#697). The three things that still read a part as its main room now read the room.

Share message: each room of a part held in several rooms gets its own, with its people. buildRoomShareTexts (beside buildShareTextsForEvent, sharing its rule that a draft programme shares nothing) is keyed by roomKey (item:room) and does one link lookup. Each room line's share button sends its room's message, where #697 showed it on the main room and copies only.

S-89 slip: the slip route takes ?room= and prints that room's student and second speaker, with its box on the form (the room's order: main 0, then 1, 2). A room that isn't the part's sends the reader back to the event; without room, the slip is as before. Each room line's slip button carries its room. PartRoomView gains order.

Absences « Réattribuer » (raised in #697's review, needed before PR 7):

  • listCongregationAbsences lists a conflict per flagged room.
  • For a part with a row per room, a conflict names its room, and the key becomes part-12@79 (assignKey / parseAssignKey). The meeting page opens that room in the editor (the side editor's sub).
  • A part held in one room, which is every part in production and the reference fixture, keeps its part-12 key and its shape, so the absences reference doesn't move.

Tests:

  • build-share-message unit: a message per room with its person, keyed by room, one link lookup; nothing from a draft, or with no part in several rooms.
  • part-slip route: a room's slip is named after that room's student; a foreign room is refused.
  • reassign unit: the key with a room, without one, a malformed one, and the reassign link.
  • assign-in-rooms integration: an absence of Marc (« Salle B ») lists its conflict with that room. It fails with the previous query.

Unit (6,990) and integration (194 files) pass, no reference moved, and the guards and typecheck pass.

Parallel rooms R4, after the meeting page's rooms (#697):
- Each room of a part held in several rooms has its own share message, with
  its people (buildRoomShareTexts, keyed item:room, one link lookup).
- Its S-89 slip prints that room's student and box (`?room=` on the slip
  route; a room not the part's goes back to the event).
- The absences page lists a conflict per flagged room, and for a part with a
  row per room its « Réattribuer » opens that room (`?item=part-12@79`,
  read into the editor's room). Parts in one room keep their key as it was.
part-slip's loader back under the complexity limit (slipPart), and the
event page's loader below where it was on main (pageRooms).
@mindsers
mindsers merged commit 9c3bb75 into main Nov 28, 2026
7 checks passed
@mindsers
mindsers deleted the feat/rooms-r4-5b-room-share-slip branch November 28, 2026 15:29
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