Repository navigation
feat(events): a room's share text, S-89 slip and absences link - #699
Merged
Merged
Conversation
Parallel rooms R4, after the meeting page's rooms (#697): - Each room of a part held in several rooms has its own share message, with its people (buildRoomShareTexts, keyed item:room, one link lookup). - Its S-89 slip prints that room's student and box (`?room=` on the slip route; a room not the part's goes back to the event). - The absences page lists a conflict per flagged room, and for a part with a row per room its « Réattribuer » opens that room (`?item=part-12@79`, read into the editor's room). Parts in one room keep their key as it was.
part-slip's loader back under the complexity limit (slipPart), and the event page's loader below where it was on main (pageRooms).
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 5b, after the meeting page's rooms (#697). The three things that still read a part as its main room now read the room.
Share message: each room of a part held in several rooms gets its own, with its people.
buildRoomShareTexts(besidebuildShareTextsForEvent, sharing its rule that a draft programme shares nothing) is keyed byroomKey(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; withoutroom, the slip is as before. Each room line's slip button carries its room.PartRoomViewgainsorder.Absences « Réattribuer » (raised in #697's review, needed before PR 7):
listCongregationAbsenceslists a conflict per flagged room.part-12@79(assignKey/parseAssignKey). The meeting page opens that room in the editor (the side editor'ssub).part-12key and its shape, so the absences reference doesn't move.Tests:
build-share-messageunit: a message per room with its person, keyed by room, one link lookup; nothing from a draft, or with no part in several rooms.part-sliproute: a room's slip is named after that room's student; a foreign room is refused.reassignunit: the key with a room, without one, a malformed one, and the reassign link.assign-in-roomsintegration: an absence of Marc (« Salle B ») lists its conflict with that room. It fails with the previous query.Unit (6,990) and integration (194 files) pass, no reference moved, and the guards and typecheck pass.