Skip to content

fix(video-provider): show raised hand indicator on audio-only tiles - #25220

Merged
ramonlsouza merged 2 commits into
bigbluebutton:v4.0.x-developfrom
imdt-claudiop:fix/raised-hand-indicator-audio-only-tiles
Jun 11, 2026
Merged

ramonlsouza merged 2 commits into
bigbluebutton:v4.0.x-developfrom
imdt-claudiop:fix/raised-hand-indicator-audio-only-tiles

Conversation

@Tainan404

Copy link
Copy Markdown
Member

What does this PR do?

Raising your hand draws the ✋ indicator (with queue position) on your video tile, but it was missing on audio-only tiles — the placeholder tiles shown for users who joined
with audio only (when showAudioOnlyOnFirstPage is enabled). The hand still appeared in the participants list, just never on the tile itself.

The raiseHand flag was only computed for GRID and STREAM tiles; the AUDIO_ONLY case was missing, so the indicator was suppressed.

Closes Issue(s)

Closes #25169

How to test

Requires public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage enabled (default unified layout).

  1. Presenter shares a webcam so the camera dock is visible.
  2. An attendee joins with mic and speaks to take the audio floor, this surfaces their audio-only tile on the first page of the grid.
  3. The attendee raises their hand.
  4. The ✋ indicator (with position number) should now appear on the audio-only tile.

An e2e Playwright test (Raise hand indicator on audio-only tile) covers this. It feeds the fake mic a looping tone (fakespeech.wav) so the attendee actually takes the audio
floor. Fails before the fix, passes after.

More

Before vs after

claudio full notes and comments here: Tainan404#43

The raised hand indicator was only computed for GRID and STREAM tile
types, so audio-only tiles never displayed it even though the user data
(raiseHand) and the render path were already in place. Include the
AUDIO_ONLY tile type in the raiseHand condition.

Add a data-test hook to the indicator and an end-to-end test covering an
audio-only tile raising its hand.

Closes bigbluebutton#25169
@coderabbitai

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 315a7a88-dae0-4545-a166-48f868446ba0

📥 Commits

Reviewing files that changed from the base of the PR and between 9d89fbb and ef6602c.

📒 Files selected for processing (2)
  • bigbluebutton-tests/playwright/core/settings.ts
  • bigbluebutton-tests/playwright/user/multiusers.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • bigbluebutton-tests/playwright/user/multiusers.ts

Walkthrough

This pull request fixes a bug where the raised hand indicator was not displayed on audio-only video tiles. The VideoListItem component was updated to include stream.user?.raiseHand in the raised-hand visibility condition for VIDEO_TYPES.STREAM and a test attribute was added to the raised-hand element. Test infrastructure was extended with new Playwright selectors, a settings flag, and fake-audio browser arg. A test helper and a new test case validate the raised-hand indicator appears on audio-only tiles.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested reviewers

  • guiiBecker
  • prlanzarin
  • antobinary
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately summarizes the primary fix: adding the raised hand indicator to audio-only tiles, which is the main change across the codebase.
Description check ✅ Passed The description comprehensively explains the bug, the root cause (missing AUDIO_ONLY case), the fix, testing approach, and references the closed issue #25169.
Linked Issues check ✅ Passed The PR fully addresses issue #25169 by adding AUDIO_ONLY to the raiseHand condition in VideoListItem, implementing test infrastructure support, and adding an end-to-end test that validates the fix.
Out of Scope Changes check ✅ Passed All changes are directly related to fixing the audio-only tile raised hand indicator issue: component fix, test infrastructure, test selectors, fake audio setup, and new test case.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

Review ran into problems

🔥 Problems

Stopped waiting for pipeline failures after 30000ms. One of your pipelines takes longer than our 30000ms fetch window to run, so review may not consider pipeline-failure results for inline comments if any failures occurred after the fetch window. Increase the timeout if you want to wait longer or run a @coderabbit review after the pipeline has finished.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (2)
bigbluebutton-tests/playwright/user/multiusers.ts (2)

205-240: 💤 Low value

Document or verify the configuration dependency.

The test comments (line 208) state that public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage must be enabled, but the test doesn't verify this configuration. If the setting is disabled in the test environment, the test will fail with an unclear error (audio-only tile won't appear).

Consider adding a comment in the test file documentation or the test suite setup to ensure this configuration is enabled for the test environment.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@bigbluebutton-tests/playwright/user/multiusers.ts` around lines 205 - 240,
The test raiseHandIndicatorOnAudioOnlyTile relies on the setting
public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage but never verifies
it; add an explicit precondition check at the start of
raiseHandIndicatorOnAudioOnlyTile (or in the test suite setup) that reads the
runtime test config/environment and asserts the flag is true (or
programmatically enables it), and if not present produce a clear skip/fail
message explaining that showAudioOnlyOnFirstPage must be enabled so the
audio-only tile appears; reference the test helper/init flow (initUserPage,
modPage) to decide where to place the check and fail fast with a descriptive
error if the flag is disabled.

226-229: ⚖️ Poor tradeoff

Consider a more specific selector for audio-only tiles.

The current selector uses webcamConnecting to identify audio-only tiles, but webcamConnecting is also rendered for unhealthy/connecting video streams (component.tsx lines 537-539) and self-view disabled streams (lines 540-541). While the test is likely stable in this specific scenario, the selector could be fragile if the moderator's webcam is slow to connect or experiences health issues.

Consider adding a more specific selector or filtering by the attendee's username to make the test more robust.

💡 Alternative approach using username filter
 const audioOnlyTiles = this.modPage.page
   .locator(`${e.webcamItem}, ${e.webcamItemTalkingUser}`)
-  .filter({ has: this.modPage.page.locator(e.webcamConnecting) });
+  .filter({ 
+    has: this.modPage.page.locator(e.webcamConnecting) 
+  })
+  .filter({ hasText: this.userPage.username });
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@bigbluebutton-tests/playwright/user/multiusers.ts` around lines 226 - 229,
The selector for audioOnlyTiles is too broad because it relies on
e.webcamConnecting which also matches unhealthy/connecting or self-view-disabled
streams; update the locator used in audioOnlyTiles (the modPage.page.locator
call referencing e.webcamItem, e.webcamItemTalkingUser, and e.webcamConnecting)
to be more specific—either add a filter by the target attendee username (use the
attendee name element in the tile) or introduce a dedicated CSS/test-id that
uniquely marks audio-only tiles and use that in the locator; then keep the
expect assertion the same but target this narrower locator to avoid false
positives when webcams are slow or unhealthy.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@bigbluebutton-tests/playwright/user/multiusers.ts`:
- Around line 205-240: The test raiseHandIndicatorOnAudioOnlyTile relies on the
setting public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage but never
verifies it; add an explicit precondition check at the start of
raiseHandIndicatorOnAudioOnlyTile (or in the test suite setup) that reads the
runtime test config/environment and asserts the flag is true (or
programmatically enables it), and if not present produce a clear skip/fail
message explaining that showAudioOnlyOnFirstPage must be enabled so the
audio-only tile appears; reference the test helper/init flow (initUserPage,
modPage) to decide where to place the check and fail fast with a descriptive
error if the flag is disabled.
- Around line 226-229: The selector for audioOnlyTiles is too broad because it
relies on e.webcamConnecting which also matches unhealthy/connecting or
self-view-disabled streams; update the locator used in audioOnlyTiles (the
modPage.page.locator call referencing e.webcamItem, e.webcamItemTalkingUser, and
e.webcamConnecting) to be more specific—either add a filter by the target
attendee username (use the attendee name element in the tile) or introduce a
dedicated CSS/test-id that uniquely marks audio-only tiles and use that in the
locator; then keep the expect assertion the same but target this narrower
locator to avoid false positives when webcams are slow or unhealthy.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 93cf4be6-8a1c-4c5c-9fe7-791c86b0242f

📥 Commits

Reviewing files that changed from the base of the PR and between 0ff59a1 and 9d89fbb.

⛔ Files ignored due to path filters (1)
  • bigbluebutton-tests/playwright/core/media/fakespeech.wav is excluded by !**/*.wav
📒 Files selected for processing (5)
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/component.tsx
  • bigbluebutton-tests/playwright/core/elements.ts
  • bigbluebutton-tests/playwright/core/setup/browsersConfig.ts
  • bigbluebutton-tests/playwright/user/multiusers.ts
  • bigbluebutton-tests/playwright/user/user.spec.ts

@antobinary antobinary added this to the Release 4.0 milestone Jun 3, 2026
@Arthurk12
Arthurk12 self-requested a review June 8, 2026 15:13

@Arthurk12 Arthurk12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!
Only a minor adjustment left.

async raiseHandIndicatorOnAudioOnlyTile() {
// Regression test for issue 25169: the raised hand indicator must also show
// on audio-only tiles, not only on webcam tiles.
// Requires `public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage` enabled

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This tests relies on a specific html5 client setting to be enabled. Please, add a propper check to run this test only when public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage is enabled.

Just like it is done here:

const isEmojiRainEnabled = settings?.emojiRain ?? true;
if (!isEmojiRainEnabled) {
await this.modPage.waitForSelector(e.whiteboard);
await this.modPage.waitAndClick(e.reactionsButton);
await this.modPage.waitAndClick(smilingEmojiReaction);
await this.modPage.wasRemoved(e.emojiRain, 'should not display the emoji rain when disabled');
return;
}

Address review feedback (Arthurk12): the audio-only tile only appears when
public.kurento.cameraSortingModes.showAudioOnlyOnFirstPage is enabled. Expose
that setting in the playwright settings helper and skip the test (instead of
failing with an opaque "tile never appeared" error) when it is disabled,
mirroring the existing pattern already used for other client-setting-dependent
tests (e.g. emojiRainTest).

Ref: bigbluebutton#25169
@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@Tainan404
Tainan404 requested a review from Arthurk12 June 9, 2026 14:14
@github-actions

Copy link
Copy Markdown

✅ Automated tests have passed!

@ramonlsouza
ramonlsouza merged commit db19aed into bigbluebutton:v4.0.x-develop Jun 11, 2026
55 of 63 checks passed
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.

5 participants