Skip to content

feat(events): the assignment dialog's facts read the rooms - #693

Merged
mindsers merged 2 commits into
mainfrom
feat/rooms-r4-3-dialog-facts-rooms
Nov 28, 2026
Merged

mindsers merged 2 commits into
mainfrom
feat/rooms-r4-3-dialog-facts-rooms

Conversation

@mindsers

Copy link
Copy Markdown
Contributor

Parallel rooms R4, PR 3a (independent of #690–#692). This moves the assignment dialog's facts (listSlotCandidateFacts) to the room rows before the writers stop updating the item's columns.

Changes:

  • Last time on the slot: a turn in any room of a part is a turn on it. This covers members (speaker or reader) and outside speakers, read from each row. A part read before rooms, with no row, is a line of its own.
  • Already at this meeting: only the room being assigned is left out, whole, as before for its other slot. The person in another room of the same part now counts as elsewhere. The same rule applies to outside speakers.
  • The slot names the room being assigned (roomId on the part target; candidate-facts.tsx reads it from the query). With none, it falls back to the part's only or main room, which is today's behaviour. The dialog sends a room from PR 5, which draws each room.

Visible today: nothing. A copy is its own item with its own row. Unit (6,963) and integration (188 files) pass, and candidate-facts.json didn't move.

Tests: slot-facts-in-rooms integration, on the fixture's meeting with a row per room (the copies the week before emptied):

  • Marc in « Salle B » and an outside speaker there each have the meeting as their last time;
  • assigning « Salle B » lists Paul, in the main room, as elsewhere, and not Marc;
  • assigning the main room (no room named) lists Marc, not Paul.

Both cases fail on main.

Next, PR 3b: cadence (resolve-publisher-cadence, list-user-cadence, the outside-speaker cadence, same-meeting assignments) per room.

Parallel rooms R4, before its writers (no dual-write):
- A turn in any room of a part counts as holding it (last time, for members
  and outside speakers), read from its rows.
- « Already at this meeting » leaves out only the room being assigned: the
  person in another room of the same part is elsewhere.
- The slot takes the room being assigned (roomId, candidate-facts reads it
  from the query); none, the part's only or main room, as today.
…lpers

speakerFacts back under the complexity limit.
@mindsers
mindsers merged commit 75a6db9 into main Nov 28, 2026
7 checks passed
@mindsers
mindsers deleted the feat/rooms-r4-3-dialog-facts-rooms branch November 28, 2026 07:17
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).
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