Skip to content

feat(events): the meeting page shows each room of a part - #697

Merged
mindsers merged 2 commits into
mainfrom
feat/rooms-r4-5-meeting-page-rooms
Nov 28, 2026
Merged

mindsers merged 2 commits into
mainfrom
feat/rooms-r4-5-meeting-page-rooms

Conversation

@mindsers

@mindsers mindsers commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Parallel rooms R4, PR 5, following board « TourA-Salles-Reunion » (and « TourA-Salles-Mobile »).

On the meeting page, a part held in several rooms at the same time is:

  • one line: its name, « 2 salles en même temps » (after its subject, when it has one), its duration;
  • then a line per room, indented: the room's name, its speaker and second speaker, and its own actions;
  • on a phone, a block per room under the part, with full-width slots.

It sits under no room heading. Copies written before R4 (an item per room) join their part the same way, since partsInRooms reads both shapes.

Production meetings change visibly, not only R4 data. Meetings whose parallel parts were written as copies, which is every one in production today, used to show « Salle principale · 3 parties » / « Salle B · 3 parties » blocks. They now show each part once with its rooms under it, as the board and the template-page note ask (parallel rooms count once). Counts follow. For example, « Appliquons-nous au ministère · 6 sans durée » becomes « 3 sans durée », and the footer « 15 parties · 8 sans durée » becomes « 12 parties · 5 sans durée ».

Navigation: ↑/↓ stop on each room line, with « n sur N » counting them, for parts with a row per room and for copies alike. The side editor's target gains an optional `sub` (here, the room): another room of the same part is another item, which asks before dropping unsaved changes, and the editor remounts on it. A part held in several rooms without a duration reads « — », like any part.

Assigning a room:

Data: listEventPartRooms (new, event-part-rooms.queries.ts) reads each part held in several rooms with its rooms' people, plus the copies that join a part. It is read beside getEventProgramme, whose shape stays, so no reference snapshot moves. The room line's type lives in model/part-room-view.ts.

Moved, for the size budgets:

  • PartRow / PartActions go to PartRow.tsx, with an optional room.
  • The head and room lines are in ParallelPartRows.tsx.
  • The editors' setup is in assign-editors.ts, and « Modifier le planning » in ScheduleEditLink.tsx.
  • EventView.tsx is 386 lines (budget 400).

Tests:

  • `part-room-target` unit: also `partStops` (a stop per room, joined copies not again) and `roomOf`.
  • event-part-rooms.queries integration, on both fixture shapes: the rooms in order with their people, only parallel parts listed, the joined copies named, and the item and room each line writes.
  • part-room-target unit: the part as a room holds it; a copy read before rooms; the open room.
  • view-payload mocks the new reader.

Checked in the browser (demo meeting 4100, which already had copies; a temporary « Salle B » row added on « Lecture de la Bible », removed afterwards):

  • desktop and 390 px both match the board;
  • « Assigner » on « Salle B » opens the editor with itemId=988, roomId=171 and the subtitle « Joyaux spirituels · Salle B »;
  • a post wrote the « Salle B » row only, keeping the main room's speaker and the item's column.

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

Parallel rooms R4, board « TourA-Salles-Reunion »: a part held in several
rooms is one line (its name, « N salles en même temps », its duration), then
a line per room with its speakers; on a phone a block per room. Copies
written before R4 join their part the same way.
- listEventPartRooms reads each part's rooms with their people beside
  getEventProgramme, whose shape stays (the references do not move).
- A room's « Assigner » opens the editor for that room: its subtitle names
  the room, the form posts roomId, the facts and cadence ask for it;
  removing frees that room alone.
- PartRow moves to its own file with an optional room; the assignment
  editors' setup and « Modifier le planning » too, EventView keeping its
  budget.
…ut duration

- The side editor's target names a room (sub): ↑ ↓ stop on each room line,
  « n sur N » counting them, alike for parts with a row per room and for
  copies; another room of the same part asks before dropping changes.
- A part held in several rooms without a duration reads « — », as any part.
- PartRow's name and duration cells as components: back under the
  complexity limit.
@mindsers
mindsers merged commit 2d4560f into main Nov 28, 2026
7 checks passed
@mindsers
mindsers deleted the feat/rooms-r4-5-meeting-page-rooms branch November 28, 2026 14:50
mindsers added a commit that referenced this pull request Nov 28, 2026
**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.
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