Repository navigation
feat(events): assigning writes the room's row - #696
Merged
Merged
Conversation
Parallel rooms R4, the writers (no dual-write): a part's people go on its room rows, its item keeping its own fields and marked changed (updatedAt, on the app's clock). - assignPart / unassignPart take the room being assigned (roomId; none, the part's only or main room) and write its row; a room that is not the part's is refused. Nobody holds two rooms of one part (user, 2026-11-28). - refreshConflictFlags flags each room a member holds; duties stay items. - deleteExternalSpeaker frees the planned talks in any room and counts the past ones by rows. - assign-part and remove-assignment read an optional room. - Tests reading a part's flag or outside speaker read its row.
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 4b: the switch-over. Every reader moved to the room rows first (#690–#694), and #695's trigger takes a part with a row per room. Now the writers put a part's people on its rows only. As decided, there is no dual-write to the item's columns.
Writers:
assignPart/unassignParttake the room being assigned (roomId). With none, it is the part's only or main room, which is what the page sends until PR 5 draws each room. They write that room's row. The item keeps its own fields (topic, duration) and itsupdatedAtmoves, on the app's clock, because the board's content version and the calendar feed read it.roomIdthat isn't one of the part's rooms is refused (assignment not found). This is the check the review asked for on feat(events): the assignment dialog's facts read the rooms #693 and feat(events): cadence and other assignments read the room being assigned #694.previousAssigneeId/previousAssistantId(who to notify) come from that room's row.refreshConflictFlagsflags each room a member holds, with batcheditemRoom.updateMany, then touches those parts. Duties stay items.deleteExternalSpeakerfrees the planned talks in any room and counts the past ones by rows (an item's own column may still name a freed speaker).assign-partreads an optionalroomId(schema),remove-assignmentan optionalroom. A form from the previous version posts none.PART_ROOMS,inAnotherRoom,writeRoom) live inpart-room-writes.server.ts, which keepsevent-part-assignments.server.tsunder its 350-line budget.Visible today: nothing for one-room parts. A copy's one row gets the same people its columns used to. Unit (6,977) and integration (193 files) pass, and no reference snapshot moved (assignments, programme-pages, feeds…).
Tests:
assign-in-roomsintegration, on the fixture's meeting with a row per room:part-room-writesunit tests forinAnotherRoom.hasConflict/ outside speaker from the item now read its row:dashboard,absence-conflicts,days-off,draft-conflict-flow,external-speakers, and therefresh-conflict-flags/external-speakersunit mocks.Lint:
refreshConflictFlagswas already over the complexity limit on main (25), and is 24 now.Next: PR 5, the meeting page and assignment dialog per room (board « TourA-Salles-Reunion »). Then the archive with rooms (2.24, one copy per room for older versions, as decided), then creation with one item and a row per room.