Skip to content

feat(pre-flight): apply the room mode after joining - #26188

Draft
AtilaU19 wants to merge 53 commits into
bigbluebutton:v4.1.x-developfrom
AtilaU19:task-2849
Draft

AtilaU19 wants to merge 53 commits into
bigbluebutton:v4.1.x-developfrom
AtilaU19:task-2849

Conversation

@AtilaU19

@AtilaU19 AtilaU19 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Start room with a room mode picked now applies the mode before the room opens. The moderator joins behind the pre-flight's Room mode panel, the client applies the mode with the moderator actions it already has, and then the room opens.

Only what differs from the room is sent, in this order:

Step Action Sent when
Public chat, who can present, locks on join lock settings, merged over the room's any of them differs; public chat only in a room with chat
Cameras visible to everyone meetingSetWebcamOnlyForModerator(false) the room hides them
Guest policy guestUsersSetPolicy the moderator edited it in the pre-flight
Join muted meetingSetMuted(exceptPresenter: false) always; the server ignores an equal value
Whiteboard for everyone userSetWhiteboardWriteAccess(allUsers) it differs
Room mode meetingSetRoomMode last

The room mode goes last. The actions service answers only after publishing, and the meeting actor handles these in order. So once the mode shows on user_current, the settings before it have landed.

The applier is one hook, useRoomModeApplier, with nothing of the panel in it, so the in-session mode change can call it too. It runs once per join, and never over a room someone else is already running: when the join lands, a room that already has a mode, or another moderator in it, gets nothing applied, and the moderator gets a notice saying why. It never starts a recording, and breakout rooms refuse it.

If any action fails, or the mode still has not shown 15 seconds after the join, the room opens anyway with the mode unset. The steps not yet sent are skipped. Each applied setting still raises its own notification in the room.

Builds on #26180, #26113 and #26099, whose commits sit below these three.

In detail:

Closes Issue(s)

None

Motivation

A room mode picked in the pre-flight stayed in the pre-flight: the room
opened exactly as it was created.

How to test

Turn on public.app.preFlight.enabled and public.app.preFlight.roomModes.enabled. Create a meeting with
lockSettingsDisablePublicChat=true&lockSettingsLockOnJoin=false&lockSettingsPresenterPolicy=freeForAll&webcamsOnlyForModerator=true&muteOnStart=false&record=true and join as a moderator.

  1. Pick Class and click Start room. The panel stays up, joining, until the room opens.
  2. In Permissions and policies, public messages are allowed. The presentation policy is "with moderator approval".
  3. Join as a viewer: the same settings apply, and the viewer can draw on the whiteboard.
  4. Repeat with Meeting: anyone can present and the whiteboard stays the presenter's.
  5. Repeat with Class and Whiteboard for everyone switched off: the switch wins over the preset.
  6. Right after the room opens, lock public messages, then reload. They stay locked.
Start Result
Class or Meeting picked the mode's settings, then the mode
No mode picked the room as created, mode unset
Room mode set by another moderator before joining that mode kept, nothing applied
Room mode set by another moderator during the join that mode kept, nothing applied, a notice
Another moderator already in the room the room as it is, mode unset, a notice
A room without chat public chat lock left as created
An applying action refused the room opens, mode unset
No answer within 15 seconds the room opens, nothing more is sent

Automated: pre-flight/roomModeApply.spec.ts (15 cases, @ci) covers the rows above, the reload, the order of the settings and the mode, the 15 second deadline and an edited guest policy; roomModeSummary.spec.ts checks that Cancel then Start room leaves the room as created, and roomModePanel.spec.ts already covers starting without a mode. After the review round, roomModeApply.spec.ts and roomModeSummary.spec.ts pass locally, 26 of 26, twice; the whole pre-flight/ folder passed 65 of 65 before it.

Known limits

  • A moderator who changed settings and left (only viewers in the room), or one reloading a room they started without a mode, still gets the panel, and the pick is applied over those changes. Counting any user in the room as "running" would also skip the apply when participants arrive before the moderator.
  • Two moderators starting at the same moment usually both skip, since each sees the other. If both joins land before either shows up in the user list, both apply and the room ends with a mix of the two presets. A server-side "set only if empty" claim settles it and is a follow-up.
  • A room left without a mode (the first moderator started without one, or two moderators both had the apply skipped) keeps showing the panel to every moderator who arrives later. They pick and edit a mode, press Start room, and only learn at the join that nothing was applied (the running-room notice). Hiding the panel before the join needs something readable before joining, such as whether a moderator is already in the room: a user who has not joined cannot read user. Taken to design; the in-session mode change (next PR) sends that moderator to the room modes tab instead.

SCREENSHOTS

More

  • CI: the room mode PRs add @ci cases, and CI splits them into shards by count, so shards 2 and 8 of install-and-run-bbb-tests can hit the 25-minute Run tests limit here with no test failing. test(playwright): trim the pre-flight E2E suite for CI #26284, on top of this series, trims the pre-flight suite (82 to 34 @ci tests).

Changelog

Technical — The pre-flight applies the picked room mode after the join, with the existing moderator actions, and records the mode last.

User-facing — The room mode a moderator picks before starting a room is now applied to the room.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@germanocaumo germanocaumo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on a dev server: the "How to test" room gets the Class preset about 1.5 s after Start room, and a viewer who joins later gets whiteboard access. The main issue is a room that is already running (first comment). The rest is small.

return inStep(name, run);
};

if (isBreakout) throw new Error('room modes do not apply to breakout rooms');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing here checks whether the room is already running. If the first moderator starts without a mode, the room mode stays empty, so every later moderator gets the panel. Starting with a mode then overwrites what was changed during the session. On the dev server: moderator A locked public chat and set the presentation policy to moderators only; moderator B then started Class without touching anything, and both went back, a viewer got whiteboard access, and everyone got these:

Toasts a viewer got when a later moderator started Class

I'd skip the apply when another moderator has already joined (or apply only what the moderator edited, and say so on the panel). A case with one moderator changing a setting and a second one starting would cover it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 8da62a73fe, with your first option: once the join lands, the applier counts the other moderators in the room (user_aggregate, not bots, not the user), and with any of them in it applies nothing. The room mode stays empty and the moderator gets a toast: "Another moderator is already in the room, so the room mode was not applied." Covered by "Another moderator in the room keeps it as it is": moderator 2 unmutes the room by hand, moderator 1 then starts Class, and the room stays as created with moderator 2's change.

Known limits, now in the description: a moderator who changed something and left (only viewers in the room), and a moderator reloading a room they started without a mode, still get the panel and apply over those changes. Treating any user in the room as "running" would cover both, but it would also skip the apply when students arrive before the teacher, which is the usual case for Class.

clearTimeout(timeoutRef.current);
setAllowToRender(true);
const roomModeChoice = roomModeChoiceRef.current;
if (roomModeChoice && getRoomMode(roomModeChoice.modeId)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pick is checked when Start room is clicked, not when the join lands. If another moderator sets the mode in between, this one still applies its own over it. Checking that roomMode is still '' here would avoid it. Two moderators starting at the same moment can still end with a mix of both presets; a server-side "set only if empty" on the room mode would settle that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 8da62a73fe: the apply starts only if roomMode is still '' when the join lands; otherwise the pick is dropped and the moderator gets "Another moderator set the room mode first, so yours was not applied." Covered by "A mode set during the join is not overwritten", which holds the UserJoin while moderator 2 sets Meeting. Moderator 2 is still in the room then, so the case checks which notice shows: without this check the running-room one would.

The server-side "set only if empty" goes to a follow-up, together with the expected-value claim from #26099. With the running-room check, two moderators starting at the same moment usually end with no mode and the room as created rather than a mix of both presets: each sees the other and skips. A mix is still possible if both joins land before either shows up in the user list; the description says so.

const current = lockSettingsVariables(lockSettings);
const next: LockSettingsVariables = {
...current,
disablePubChat: settings.publicChat === undefined ? current.disablePubChat : !settings.publicChat,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a room without chat, #26180 now hides "Send public messages", but publicChat is still in the resolved settings. If the room was created with public chat locked, this sends the unlock and everyone gets a "Public chat is enabled" toast. I'd leave it out of the resolved settings when chat is disabled.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 8da62a73fe: publicChat is left out of the applied settings when the room has no chat (isChatAvailable, the same rule the summary uses), so the lock stays as created. I kept it in the apply step rather than in resolveRoomModeSettings, so #26180 stays as approved. Covered by "A room without chat keeps its public chat lock".

}));
}

if (guestPolicy !== undefined && guestPolicy !== usersPolicies.guestPolicy) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guestPolicy falls back to the room's value from user_current, so this compares two subscriptions rather than checking for an edit. If they briefly disagree (another moderator just changed it), this sends the older value back. Sending it only when edits.guestPolicy is set would match the description.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 8da62a73fe: the guest policy is sent only when the moderator edited it (or a mode asserts one, which neither does). "An edited guest policy is applied" covers the edit, and "Start room applies the class preset" now checks that no SetPolicy goes out without one.

}

// Edits stay on the panel until Start room: the room still holds what it was created with.
async appliesNothingBeforeStart() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reads the room before the join, when the server drops any moderator command anyway, so it can't fail. It also no longer checks the lock settings, which release-testing.md:816 still mentions. Making the edits, pressing Cancel, then Start room, and checking the room is as created would test the real path.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 8da62a73fe: the case now edits every setting, presses Cancel, then Start room, and reads the whole room after the join, lock settings included, against the values it was created with (created away from the Class preset, so a leak shows). release-testing.md step 4 says the same.


// The room mode request is never answered: the room opens with no mode once the
// apply's deadline passes, after the join.
async opensRoomWhenApplyHangs(page: PlaywrightPage, options: InitExtraPageOptionsProps = {}) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This passes even without the applier: nothing checks that SetRoomMode was actually held. Counting the held messages, as the other routed cases do, would fix it.
  • In sendsNothingAfterDeadline, checking that the released lock settings landed (and that webcamsOnlyForModerator stays as created) would show the deadline really stopped the rest.
  • The fixed 30000 ms waits don't scale like the rest of the suite's timeouts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All three in 8da62a73fe:

  • The hang case keeps the held SetRoomMode messages and fails if none was held.
  • sendsNothingAfterDeadline now waits for the released lock settings to land, then checks that webcamsOnlyForModerator and muteOnStart stay as created.
  • The two 30 s waits are ELEMENT_WAIT_EXTRA_LONG_TIME * 2, so they scale with the multiplier.

);
}

async viewerJoiningLaterSeesAppliedSettings(page: PlaywrightPage, options: InitExtraPageOptionsProps = {}) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The viewer re-reads the same meeting row the moderator already read. Reading the viewer's own locked (the room is created with lockOnJoin=false) would show the applied lock settings reach people who join later.
  • The guest policy step has no case: the room read doesn't include guestPolicy, and no case edits it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both in 8da62a73fe:

  • The viewer now reads its own user_current.locked, which can only be true through the applied lock on join (the room is created with lockOnJoin=false).
  • The room read includes guestPolicy, with a case that edits it and a check that it isn't sent otherwise.

AtilaU19 added a commit to AtilaU19/bigbluebutton that referenced this pull request Oct 26, 2026
Addresses the review on bigbluebutton#26188:

- Skip the apply when another moderator is already in the room, and
  tell the moderator with a toast: a mode is never applied over a
  running room.
- Apply only if the room still has no mode when the join lands; a mode
  another moderator set since Start room stays, with its own toast.
- Leave public chat out of the applied settings in a room without chat.
- Send the guest policy only when the moderator edited it.
- Summary test: edit, Cancel, Start room, then read the whole room
  after the join, lock settings included.
- Apply tests: count the held SetRoomMode, check what lands after the
  deadline, read the viewer's own lock, cover the guest policy, and
  scale the long waits with the suite's timeouts.
- New cases: another moderator in the room, a mode set during the
  join, a room without chat, an edited guest policy.
- Shared test helpers moved to roomMode.ts and roomModePanel.ts.
- release-testing.md follows the specs.
@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

Carry a room-level mode id on the meeting (empty means not configured),
readable by every client, including those still on the pre-flight, and
writable by a moderator through meetingSetRoomMode.

- bbb-common-message: SetRoomModeCmdMsg and RoomModeChangedEvtMsg
- akka-bbb-apps: MeetingStatus2x mirror, handler (moderator only, not
  in breakout rooms), MeetingDAO column and update, event broadcast
- bbb-graphql-server: meeting."roomMode" column, exposed to bbb_client
  and bbb_client_not_in_meeting, and the meetingSetRoomMode action
- bbb-graphql-actions: meetingSetRoomMode handler (moderator only, id
  validated as ^([a-z][a-z0-9-]{0,31})?$)
- bbb-graphql-middleware: allow the getRoomMode operation for users who
  have not joined yet
- bigbluebutton-html5: read roomMode in the meeting subscription
- tests: pre-flight/roomMode.spec.ts
Address the inline comments of the bigbluebutton#26099 review:

- bbb-graphql-actions: refuse a breakout room up front; akka refuses it
  too, but only after the call has answered true
- akka-bbb-apps: log RoomModeChangedEvtMsg in AnalyticsActor
- playwright: runMutation returns a rejected call as errors, so callers
  get one shape
- playwright: skip, naming the requirement, when the Apollo probe is not
  exposed (allowOverrideClientSettingsOnCreateCall)
- playwright: assert user_current.joined is false on the pre-join read
- playwright: cover the refusals only akka makes (a moderator still on the
  pre-flight, a breakout room) and invalid ids
- playwright: drop the viewer removal from the reload case, which could
  not fail on the room mode
feat(pre-flight): add room mode state on the meeting

Carry a room-level mode id on the meeting (empty means not configured),
readable by every client, including those still on the pre-flight, and
writable by a moderator through meetingSetRoomMode.

- bbb-common-message: SetRoomModeCmdMsg and RoomModeChangedEvtMsg
- akka-bbb-apps: MeetingStatus2x mirror, handler (moderator only, not
  in breakout rooms), MeetingDAO column and update, event broadcast
- bbb-graphql-server: meeting."roomMode" column, exposed to bbb_client
  and bbb_client_not_in_meeting, and the meetingSetRoomMode action
- bbb-graphql-actions: meetingSetRoomMode handler (moderator only, id
  validated as ^([a-z][a-z0-9-]{0,31})?$)
- bigbluebutton-html5: read roomMode in the meeting subscription and in
  userCurrentSubscription (user_current.meeting), which users who have
  not joined yet already receive
- tests: pre-flight/roomMode.spec.ts
Refuse an empty room mode, in bbb-graphql-actions and in akka. Empty is
only the column's default: accepting it let any moderator reopen the
pre-flight panel for everyone arriving after them, and no client path
needs to clear the mode. The invalid-mode case now also sends ''.
Follow the probe's switch upstream from the raw create module (APOLLO_CLIENT_SETTINGS_MODULE) to APOLLO_CLIENT_SETTINGS_OVERRIDE through createClientSettingsOverride.
AtilaU19 added a commit to AtilaU19/bigbluebutton that referenced this pull request Nov 23, 2026
Addresses the review on bigbluebutton#26188:

- Skip the apply when another moderator is already in the room, and
  tell the moderator with a toast: a mode is never applied over a
  running room.
- Apply only if the room still has no mode when the join lands; a mode
  another moderator set since Start room stays, with its own toast.
- Leave public chat out of the applied settings in a room without chat.
- Send the guest policy only when the moderator edited it.
- Summary test: edit, Cancel, Start room, then read the whole room
  after the join, lock settings included.
- Apply tests: count the held SetRoomMode, check what lands after the
  deadline, read the viewer's own lock, cover the guest policy, and
  scale the long waits with the suite's timeouts.
- New cases: another moderator in the room, a mode set during the
  join, a room without chat, an edited guest policy.
- Shared test helpers moved to roomMode.ts and roomModePanel.ts.
- release-testing.md follows the specs.
Sort the breakout create import as simple-import-sort expects (playwright-code-validation).
The pre-flight is getting a room mode panel for moderators entering a
room nobody has configured. Picking a mode applies nothing to the room
yet, so the panel needs a switch of its own, off by default and apart
from the pre-flight's.

Add public.app.preFlight.roomModes.enabled (false), overridable per
session with userdata-bbb_pre_flight_room_modes, and
isRoomModePanelEnabled, which also requires the pre-flight and is
therefore off in breakout rooms.
The join's notices ("Device permission pending", joining without
audio) live in the join step's header, and the join button points at
one of them with aria-describedby. A second panel beside the setup one
has to show the same notices above its own footer and start the room
with the same join.

Move the notices into JoinNotices, rendered by exactly one place, and
let JoiningRoomHeader leave them out. JoiningRoomActions takes an
optional label and a secondary action shown before the button. The
screen itself is unchanged.
The pre-flight lays out the setup panel and the join step side by
side, stacked on a phone. The moderator's room mode panel needs a
place of its own beside the setup panel.

PreFlight takes an optional panel. Beside the setup panel it replaces
the join step, with the actions as its footer; the session's heading
stays in the page, visually hidden, as its heading and title. An error
still takes the panel's place, as it takes the join step's.

On a phone the panels become tabs, "Set up devices" and "Set up room",
with the actions pinned below both. The panels stay mounted and are
only hidden, so the camera preview and the picks survive switching.
The setup panel is always inside the tabs on a phone, with the tab
list hidden while it is alone, so a panel arriving later does not
remount it.
A moderator entering a room nobody has configured has nowhere in the
pre-flight to say what the session is for.

With the room mode panel setting on, a moderator entering a room whose
room mode is empty (not a bot, not in a breakout) gets a "Room mode"
panel beside the setup panel. The mode is read before the join through
the getRoomMode operation, which the middleware lets through for users
who have not joined yet. A spinner holds the join button's place while
it is read; a read that fails or gets no answer in 10 seconds falls
back to the regular join step.

Class and Meeting can be picked; Event, Streamed session (Webinar) and
Thesis defense are listed as coming soon. The cards form a radio
group, with the arrow keys moving between the modes that can be
picked. Until a pick, the panel shows an illustration, with a dark
variant for the dark theme since an image cannot read its tokens; then
the selected mode. Cancel clears the pick (not on a phone, as in the
design) and Start room joins, with or without a mode.

The pick only lives in the pre-flight's state: nothing reaches the
room yet, so starting leaves the room as it was created.
Install the client settings overrides on the breakout's context with upstream's applyClientSettingsOverridesToContext, which replaces installClientSettingsOverrides.
In the phone layout the room mode panel lays its content out in a
single 1fr column. A 1fr track never shrinks below its content's
minimum width, so a wide control under the cards pushes the panel
past the screen and its end is cut off.

Size the column with minmax(0, 1fr), so it takes the screen's width
and its content wraps or shrinks inside it.
Picking a room mode in the pre-flight says nothing about what the
room will do, and leaves the moderator no say in it.

Each mode now carries a preset: the settings it asserts, as plain data
the in-session mode change can read too. Class and Meeting both join
muted with the public chat open; Class has participants present with
a moderator's approval and everyone on the whiteboard, Meeting lets
anyone present and keeps the whiteboard the presenter's. The waiting
room is left as the room was created.

Under the picked mode, a summary lists what the moderator can change
(guest policy, join muted, public chat, who can present, whiteboard
for everyone) with switches and selects, and what is applied without
asking (cameras visible to everyone, locks reaching later arrivals).
Each control starts from the preset, or from the room's own value for
what the mode leaves as created: the guest policy is read before the
join from user_current.meeting, with a policy the list does not offer
kept on offer while it is the room's. A room set to record on its own
starts recording as the moderator enters, so "Recording never starts
on its own" is only listed for a room that does not; that is read the
same way.

Edits live in the pre-flight's state: picking the same mode keeps
them, another mode or Cancel drops them, and once the room is starting
the controls ignore changes, as the cards do. Nothing reaches the room
yet.

BBBToggle 0.8.0 puts its aria-labelledby and aria-describedby on the
switch's span rather than its input, so the helper text read as part
of the name; the summary points the input at the label and helper
until the library is bumped to 0.9.0, which fixes it.
The recording policy is fixed when the room is created, so it is read
from the meeting's static data instead of being polled with every
user's user_current. Only the guest policy, which can change, stays in
that subscription.
A room created without chat has no public chat to lock: the summary
leaves the setting out, as the lock viewers modal does, reading the
disabled features from the meeting's static data before the join.
A guest policy the list does not offer stays on offer while it is the
room's or the picked one, so the select never shows a value it has no
option for when the room's policy changes under it.
The recording line is listed only in a room that may record and is
not set to start recording on its own. Whether a recording is already
running cannot be read before the join.
Comments say what each preset and the list order are for, without
pointing to a document readers of this repository cannot open.
stringVarMutation declares every variable as a non-null String, so a
probe could not call a mutation that takes a Boolean or a list, such
as meetingSetMuted or the lock settings.

typedVarMutation takes each variable with its GraphQL type ('Boolean!',
'[String]!') and builds the same plain document. stringVarMutation now
goes through it, with the same output as before.
From 0.9.0 BBBToggle takes slotProps.input instead of inputProps, so
data-test and aria-disabled move there on that bump.
The lock settings mutation takes all eleven settings, and the lock
viewers modal mapped them from the meeting's lock settings inline. The
room mode applier needs the same mapping, so it moves to a service
both read.

The meeting comparator now also compares lockOnJoin and
lockOnJoinConfigurable, so a change to either reaches useMeeting, and
the LockSettings type declares the two fields the subscription
already selects.
While the room starts, the summary's controls are dimmed like the
mode cards they lock with.
A room mode picked in the pre-flight stayed in the pre-flight: the
room opened exactly as it was created.

Starting the room with a mode picked now joins the moderator behind
the panel, applies the mode with the moderator actions the client
already has, and only then opens the room. Each step is sent only
when it changes something, in order: the lock settings merged over
the room's own (public chat, who can present, locks on join), cameras
visible to everyone, the guest policy when it was edited, join muted,
and the whiteboard for everyone. The room mode goes last: the actions
service answers only after publishing and the meeting actor handles
these in order, so the mode showing on user_current proves the rest
landed.

The applier is one hook, with nothing of the panel in it, so the
in-session mode change can call it too. It runs once per join, and
only for a pick whose panel is still up when the moderator joins: a
pick that went away because another moderator set the mode is not
applied over it. A reload loses the pick, so nothing is applied
twice. It never starts a recording, and breakout rooms refuse it.

Any failure opens the room anyway, with the mode unset: an action
refused, or the room still without the mode 15 seconds after the
join, after which the steps not yet sent are skipped (a room mode
already sent may still land). A join that
landed after it stalled leaves the delayed screen for the panel's
joining state while the mode is applied. Each applied setting still
raises its own notification in the room.
The guest policy select uses the sentence-case guest policy title.
The summary spec checks the meeting's automatic items and guest
policy, that a policy the list leaves out is not offered in a room
without it, that a room that cannot record leaves the recording line
out, and that the summary stays within a phone's screen. The mode
summary case uses a room that may record, the only one where that line
shows.
Addresses the review on bigbluebutton#26188:

- Skip the apply when another moderator is already in the room, and
  tell the moderator with a toast: a mode is never applied over a
  running room.
- Apply only if the room still has no mode when the join lands; a mode
  another moderator set since Start room stays, with its own toast.
- Leave public chat out of the applied settings in a room without chat.
- Send the guest policy only when the moderator edited it.
- Summary test: edit, Cancel, Start room, then read the whole room
  after the join, lock settings included.
- Apply tests: count the held SetRoomMode, check what lands after the
  deadline, read the viewer's own lock, cover the guest policy, and
  scale the long waits with the suite's timeouts.
- New cases: another moderator in the room, a mode set during the
  join, a room without chat, an edited guest policy.
- Shared test helpers moved to roomMode.ts and roomModePanel.ts.
- release-testing.md follows the specs.
bbb-ui-components-react 0.9.0 (now on v4.1.x-develop) takes slotProps.input instead of inputProps, and puts aria-labelledby and aria-describedby on the input itself, so the two pointers go.
The bbb_pre_flight_room_modes row still said the pick is not applied.
Give the guest policy row a key of its own,
app.preFlight.roomMode.settings.guestPolicy ("Guest policy"): the
app.guest-policy.title it used left en.json in 707b4ff, so the
summary showed the message id. The summary test now checks that no
label shows a message id.
}).toPass({ timeout: ELEMENT_WAIT_LONGER_TIME });

await this.modPage.page.reload();
await this.modPage.waitForSelector(e.layoutContainer, ELEMENT_WAIT_EXTRA_LONG_TIME);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wait races the server: after the reload, the client skips the pre-flight only while user_current still has the user as joined. When the server has already processed the old tab leaving, the moderator lands on the pre-flight again ("Join session", no panel since the room has a mode) and the layout never shows. It failed 2 of 4 runs locally, as the reload step of "Start room applies the class preset once, for everyone" at the top of the stack.

Could the step accept both landings? If the pre-flight shows, check that it has no panel, click "Join session", then wait for the layout.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed. The reload lands on the pre-flight once akka has removed the user who left (their left flag expires after meetingExpireWhenLastUserLeftInMs). The step now goes through a reloadsIntoRoom helper that accepts both landings: on the pre-flight, it checks there is no room mode panel, clicks "Join session" and waits for the layout.

I forced the second landing: a viewer keeps the room, the moderator leaves for 80 s and comes back. The old step times out waiting for the layout, and the new one joins without applying the mode again.

A reload lands on the pre-flight once the server has removed the user
who left, and the room layout never shows. The reload step now accepts
both landings: on the pre-flight, it checks there is no panel and joins
the room.
@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

This branch has not been deployed

No deployments
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.

3 participants