Skip to content

feat(events): cadence and other assignments read the room being assigned - #694

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

mindsers merged 2 commits into
mainfrom
feat/rooms-r4-3b-cadence-rooms

Conversation

@mindsers

Copy link
Copy Markdown
Contributor

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:

  • Who is saved on the slot (resolvePublisherCadence, resolveExternalSpeakerCadence) is read from the row of the room being assigned. The new roomBeingAssigned (model/part-rooms) picks that room, or, when none is named, the part's only or main room.
  • The cadence dot (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.
  • The outside speaker's cadence (listExternalSpeakerCadence) reads his turns in any room. Before, it read the item only, through itemsPerRoom like the members' cadence, and its history used OR item/rows.
  • Other assignments at this meeting (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-info and external-speaker-info read an optional roomId. 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-rooms integration, on the fixture's meeting with a row per room:
    • Marc is saved on « Salle B » but not on the main room;
    • a later meeting's dot names Marc when assigning its own « Salle B », and Paul for its main room;
    • an outside speaker on « Salle B » is saved there and his dot is filled;
    • Paul's other assignments count the part while « Salle B » is edited, not while his own room is.
  • All three cases fail on main.
  • The query-shape unit tests are updated: list-user-same-event-assignments is now outcome-based (left out or kept by room), and the outside speaker's history uses OR.

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
@mindsers
mindsers merged commit 8e9bb7b into main Nov 28, 2026
7 checks passed
@mindsers
mindsers deleted the feat/rooms-r4-3b-cadence-rooms branch November 28, 2026 08:08
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