Repository navigation
chore: BigBlueButton 3.0.31 iteration - #25299
Conversation
The reply intention preview and the quote inside sent replies extract the first visible line of the original message with getFirstVisibleLineHtml. The function treated the inline tags <a> and <code> as block-level, walked the root children in reverse order and removed every node that precedes the last "block" found - so a message like "Hello https://example.com" was previewed as just the link. Rewrite the extraction to walk the DOM in document order and truncate at the first visual line break (newline in a non-whitespace-only text node, <br>, or the end of the first nested block element), keeping inline content of the first line intact. Lists now preview their first item instead of the last one. Add an e2e scenario covering both previews when replying to a message with text followed by a link. Co-authored-by: Tainan Felipe <[email protected]>
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 #25169
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: #25169
fix(video-provider): show raised hand indicator on audio-only tiles
fix(chat): preserve text before links in reply message preview
Add client setting to not display guest lobby position
WalkthroughThis PR introduces three independent changes. First, a new Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@bigbluebutton-html5/imports/ui/components/chat/chat-graphql/service.ts`:
- Around line 10-13: The early return for whitespace-only text nodes occurs
before checking for newline characters, which prevents newline-only nodes from
being treated as line breaks. Reorder the checks so that the search for newline
characters using indexOf('\n') happens before the whitespace trimming check,
ensuring that text nodes containing only a newline character are correctly
identified as visual line breaks when white-space: pre-wrap is applied, rather
than being dismissed as non-visual formatting markup.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 3e45a056-14d6-453f-879e-3db8bd2daac1
⛔ Files ignored due to path filters (1)
bigbluebutton-tests/playwright/core/media/fakespeech.wavis excluded by!**/*.wav
📒 Files selected for processing (15)
bigbluebutton-html5/imports/ui/Types/meetingClientSettings.tsbigbluebutton-html5/imports/ui/components/chat/chat-graphql/service.tsbigbluebutton-html5/imports/ui/components/join-handler/guest-wait/component.tsxbigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/component.tsxbigbluebutton-html5/imports/ui/core/initial-values/meetingClientSettings.tsbigbluebutton-html5/private/config/settings.ymlbigbluebutton-tests/playwright/chat/chat.spec.tsbigbluebutton-tests/playwright/chat/messageActions.tsbigbluebutton-tests/playwright/core/elements.tsbigbluebutton-tests/playwright/core/settings.tsbigbluebutton-tests/playwright/core/setup/browsersConfig.tsbigbluebutton-tests/playwright/user/multiusers.tsbigbluebutton-tests/playwright/user/user.spec.tsdocs/docs/administration/customize.mddocs/docs/new-features.md
| // whitespace-only nodes are markup formatting between elements, not a visual break | ||
| if (!text.trim()) return false; | ||
| const newlineIndex = text.indexOf('\n'); | ||
| if (newlineIndex === -1) return false; |
There was a problem hiding this comment.
Treat newline-only text nodes as line breaks.
Line 11 returns early for whitespace-only text before checking \n. With white-space: pre-wrap, a "\n"-only node is still a visual line break, so second-line content can remain in the preview.
Suggested fix
if (node.nodeType === Node.TEXT_NODE) {
const text = node.textContent || '';
- // whitespace-only nodes are markup formatting between elements, not a visual break
- if (!text.trim()) return false;
const newlineIndex = text.indexOf('\n');
if (newlineIndex === -1) return false;
// eslint-disable-next-line no-param-reassign
node.textContent = text.slice(0, newlineIndex);
return true;
}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| // whitespace-only nodes are markup formatting between elements, not a visual break | |
| if (!text.trim()) return false; | |
| const newlineIndex = text.indexOf('\n'); | |
| if (newlineIndex === -1) return false; | |
| if (node.nodeType === Node.TEXT_NODE) { | |
| const text = node.textContent || ''; | |
| const newlineIndex = text.indexOf('\n'); | |
| if (newlineIndex === -1) return false; | |
| // eslint-disable-next-line no-param-reassign | |
| node.textContent = text.slice(0, newlineIndex); | |
| return true; | |
| } |
🤖 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-html5/imports/ui/components/chat/chat-graphql/service.ts`
around lines 10 - 13, The early return for whitespace-only text nodes occurs
before checking for newline characters, which prevents newline-only nodes from
being treated as line breaks. Reorder the checks so that the search for newline
characters using indexOf('\n') happens before the whitespace trimming check,
ensuring that text nodes containing only a newline character are correctly
identified as visual line breaks when white-space: pre-wrap is applied, rather
than being dismissed as non-visual formatting markup.
✅ Automated tests have passed! |
|



Wishlist for this iteration (in no specific order unless specified otherwise)
Estimated release date: TBD
We welcome comments/suggestions, specifically looking for items that are high priority in your eyes.