Repository navigation
feat(events): cadence and other assignments read the room being assigned - #694
Merged
Merged
Conversation
Parallel rooms R4, before its writers (no dual-write): - Who is saved on the slot is the room being assigned's row (publisher and outside speaker), not the item's columns. - A cadence dot names the person of the room being assigned, matched across meetings by name (the main room by key); filled for a turn in any room. - An outside speaker's cadence reads his turns in any room. - « Other assignments at this meeting » keeps the part being edited when the person holds another of its rooms. - publisher-info and external-speaker-info read an optional roomId; none, the part's only or main room, as today.
…nce-rooms # Conflicts: # app/features/events/model/part-rooms.ts
This was referenced Nov 28, 2026
mindsers
added a commit
that referenced
this pull request
Nov 28, 2026
**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:** - Its « Assigner », or a click on its empty slot, opens the editor for **that room**. The subtitle names it (« Joyaux spirituels · Salle B »), it shows that room's people, and the form posts `roomId`. #696's writers check that the room is one of the part's. - The candidate facts, the publisher card and the outside-speaker card ask for that room (`roomId`, read since #693/#694). - « Retirer » frees that room alone (`&room=`). - Share and S-89 buttons show where they are right today: on a copy's own line, and on the main room's line. Per-room share texts and slips come in the next PR. **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).
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 3b (independent of #690–#693). It moves the assignment dialog's cadence and « other assignments » to the room rows before the writers stop updating the item's columns.
Changes:
resolvePublisherCadence,resolveExternalSpeakerCadence) is read from the row of the room being assigned. The newroomBeingAssigned(model/part-rooms) picks that room, or, when none is named, the part's only or main room.listUserCadence) names the person of the room being assigned on each meeting, matched across meetings by name, the main room by key (isSameRoom). This is the default for the hover name: the user asked for the dot to be filled when the person had the part in any room and left the hover unsettled. When that meeting has no such room, it falls back to the first room, as before. The dot is still filled for a turn in any room.listExternalSpeakerCadence) reads his turns in any room. Before, it read the item only, throughitemsPerRoomlike the members' cadence, and its history used OR item/rows.listUserSameEventAssignments): the part being edited is left out only when the person holds it in the edited room alone. Held in another of its rooms, it is another assignment. A part read before rooms is left out whole, as before.publisher-infoandexternal-speaker-inforead an optionalroomId. With none, the behaviour is today's; the dialog sends one from PR 5.Visible today: nothing. Unit (6,964) and integration (188 files) pass, and no reference snapshot moved.
Tests:
cadence-in-roomsintegration, on the fixture's meeting with a row per room:list-user-same-event-assignmentsis now outcome-based (left out or kept by room), and the outside speaker's history uses OR.