Repository navigation
feat(events): the meeting page shows each room of a part - #697
Merged
Merged
Conversation
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
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.
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.
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:
It sits under no room heading. Copies written before R4 (an item per room) join their part the same way, since
partsInRoomsreads 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:
roomId. feat(events): assigning writes the room's row #696's writers check that the room is one of the part's.roomId, read since feat(events): the assignment dialog's facts read the rooms #693/feat(events): cadence and other assignments read the room being assigned #694).&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 besidegetEventProgramme, whose shape stays, so no reference snapshot moves. The room line's type lives inmodel/part-room-view.ts.Moved, for the size budgets:
PartRow/PartActionsgo toPartRow.tsx, with an optional room.ParallelPartRows.tsx.assign-editors.ts, and « Modifier le planning » inScheduleEditLink.tsx.EventView.tsxis 386 lines (budget 400).Tests:
event-part-rooms.queriesintegration, 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-targetunit: the part as a room holds it; a copy read before rooms; the open room.view-payloadmocks 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):
itemId=988,roomId=171and the subtitle « Joyaux spirituels · Salle B »;Unit (6,984) and integration (194 files) pass, no reference moved, and the guards and typecheck pass.