Skip to content

[4.0] Review sidebar panel footer buttons for consistency - #25409

Merged
lfzawacki merged 22 commits into
bigbluebutton:v4.0.x-developfrom
guiiBecker:v.4.0.x-2611
Sep 4, 2026
Merged

lfzawacki merged 22 commits into
bigbluebutton:v4.0.x-developfrom
guiiBecker:v.4.0.x-2611

Conversation

@guiiBecker

Copy link
Copy Markdown
Contributor

What does this PR do?

Migrates footer/panel action buttons from the legacy Button component to
BBButton (@mconf/bbb-ui-components-react), across:

  • Breakout room (participant-room, running-room, sidebar-create-breakout)
  • Poll panel (start button, live-result actions)
  • Timer panel
  • The generic ConfirmationModal
  • Recording-indicator "notify" modal
  • Video-preview modal
  • Media-sharing presentation view
  • Breakout-join-confirmation dialog

Also:

  • Bumps @mconf/bbb-ui-components-react to ^2.3.0
  • Reorders timer panel controls so Start stays on the right and Stop/Deactivate
    stay on the left, matching the convention used elsewhere
  • Fixes a variant regression caught in review: LiveResult's "Back" button (shown
    when a poll ends with zero answers) had lost its primary/prominent styling
    during the migration

No behavior changes beyond button appearance/library — mutation calls, state
logic, and data flow are unchanged.

Motivation

We're standardizing on @mconf/bbb-ui-components-react as the single source
of truth for common UI elements like buttons. Today, buttons in the core client
are implemented ad hoc per component (each with its own styled(Button)
variant, its own color/size conventions), which duplicates styling logic and
makes it easy for near-identical buttons to drift apart visually over time (as
this PR's own review turned up).

@github-actions

Copy link
Copy Markdown

Thank you for this contribution!
Could you please confirm if you already sent in the signed Contributor License Agreement?
See https://docs.bigbluebutton.org/support/faq.html#why-do-i-need-to-sign-a-contributor-license-agreement-to-contribute-source-code
Thanks in advance!

@guiiBecker
guiiBecker requested a review from germanocaumo July 13, 2026 17:29
@coderabbitai

coderabbitai Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The HTML5 client adds @mconf/bbb-ui-components-react and replaces local styled button implementations with BBButton across modals, breakout-room actions, polls, timers, media sharing, recording notifications, and video preview. Supporting styles now provide layout wrappers, while button props, test attributes, tooltips, and timer color assertions are updated.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant BreakoutJoinConfirmation
  participant BBButton
  participant BreakoutRoom
  User->>BreakoutJoinConfirmation: Open confirmation
  BreakoutJoinConfirmation->>BBButton: Render close and join actions
  User->>BBButton: Select an action
  BBButton->>BreakoutJoinConfirmation: Invoke handler
  BreakoutJoinConfirmation->>BreakoutRoom: Confirm breakout join
Loading

Suggested reviewers: germanocaumo

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is related to the changeset, though it is narrower than the PR and emphasizes consistency over the broader BBButton migration.
Description check ✅ Passed The description matches the diff by describing the BBButton migration, dependency bump, timer control reorder, and LiveResult styling fix.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

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

Actionable comments posted: 3

🧹 Nitpick comments (3)
bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx (1)

490-570: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Clarify the split deactivateButton rendering.

deactivateButton is rendered either inside the else branch of controlButtons (idle state) or in the separate block at Line 845 (running/paused), and the two are mutually exclusive by construction (!running && !isPaused vs. running || isPaused). This is correct today, but the split isn't obvious — a future edit to either condition could easily cause the button to render twice or not at all.

💡 Suggested comment
+  // NOTE: deactivateButton is rendered here for the idle state (paired with Start),
+  // and separately below for running/isPaused states. Keep the two conditions
+  // (`!running && !isPaused` vs `running || isPaused`) in sync.
   let controlButtons;
   if (running) {

Also applies to: 845-849

🤖 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/timer/panel/component.tsx` around
lines 490 - 570, Add a concise comment documenting that deactivateButton is
rendered either in the idle controlButtons branch or in the separate
running/paused block, with the mutually exclusive conditions !running &&
!isPaused versus running || isPaused. Keep the existing rendering logic
unchanged and place the clarification near the split rendering locations.
bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx (1)

80-83: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duplicate focus-restoration logic vs. useModalRegistration.

useModalRegistration's open()/close() already save and restore document.activeElement internally (per modalController.tsx). This component still keeps its own local previousFocusRef and a mirroring effect (further down, keyed on isOpen) doing the same job. Now that the lifecycle is delegated to the hook, this local duplication is redundant and adds a second source of truth for the same concern — worth consolidating once the migration settles.

🤖 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/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx`
around lines 80 - 83, Remove the component-level previousFocusRef and its
associated isOpen focus-mirroring/restoration effect, relying exclusively on
useModalRegistration’s open() and close() lifecycle handling while preserving
the dialog’s remaining focus behavior.
bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/styles.ts (1)

43-50: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider a native size prop instead of !important overrides.

Forcing button { width/height: 1.75rem !important } to shrink BBButton's hardcoded 3rem circle layout works, but is brittle against internal markup/spacing changes in future @mconf/bbb-ui-components-react releases. Worth checking whether BBButton exposes a size/compact variant for icon-only circular buttons before relying on !important CSS overrides.

🤖 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/breakout-join-confirmation/breakout-join-confirmation-graphql/styles.ts`
around lines 43 - 50, Update CloseButtonWrapper and its BBButton usage to use
the native BBButton size or compact variant for icon-only circular buttons, if
the component API provides one, instead of overriding width and height with
!important. Remove the brittle CSS overrides while preserving the dialog’s
1.75rem close-button footprint.
🤖 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/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx`:
- Around line 223-227: Update the breakout confirmation dialog’s useEffect to
require !isOpen before calling open(), and include isOpen in the dependency
array. Preserve the existing breakout, user-joined, and dismissal conditions so
open() runs only when the dialog is currently closed.

In
`@bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsx`:
- Around line 372-383: Add the missing dataTest prop to the per-room BBButton in
the free-join room-list rendering, using the existing room-specific test
identifier pattern from the surrounding migrated buttons or the former
Styled.FreeJoinRequestBtn hook. Preserve the current label, disabled state, and
handleFreeJoinRoom onClick behavior.

In `@bigbluebutton-html5/package.json`:
- Line 71: Update the `@mconf/bbb-ui-components-react` dependency entry in
package.json from an exact 2.3.0 pin to the caret range ^2.3.0, matching the
stated objective and sibling dependency convention.

---

Nitpick comments:
In
`@bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx`:
- Around line 80-83: Remove the component-level previousFocusRef and its
associated isOpen focus-mirroring/restoration effect, relying exclusively on
useModalRegistration’s open() and close() lifecycle handling while preserving
the dialog’s remaining focus behavior.

In
`@bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/styles.ts`:
- Around line 43-50: Update CloseButtonWrapper and its BBButton usage to use the
native BBButton size or compact variant for icon-only circular buttons, if the
component API provides one, instead of overriding width and height with
!important. Remove the brittle CSS overrides while preserving the dialog’s
1.75rem close-button footprint.

In `@bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx`:
- Around line 490-570: Add a concise comment documenting that deactivateButton
is rendered either in the idle controlButtons branch or in the separate
running/paused block, with the mutually exclusive conditions !running &&
!isPaused versus running || isPaused. Keep the existing rendering logic
unchanged and place the clarification near the split rendering locations.
🪄 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: ba01c8e6-6476-40a8-853a-30d678cae67c

📥 Commits

Reviewing files that changed from the base of the PR and between b2c1511 and f2f0bf2.

⛔ Files ignored due to path filters (1)
  • bigbluebutton-html5/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (21)
  • bigbluebutton-html5/imports/ui/components/actions-bar/media-area/media-sharing/presentation/component.jsx
  • bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/styles.ts
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/styles.ts
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/styles.ts
  • bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/styles.ts
  • bigbluebutton-html5/imports/ui/components/common/modal/confirmation/component.jsx
  • bigbluebutton-html5/imports/ui/components/common/modal/confirmation/styles.js
  • bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/component.tsx
  • bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/styles.ts
  • bigbluebutton-html5/imports/ui/components/poll/components/LiveResult.tsx
  • bigbluebutton-html5/imports/ui/components/poll/components/StartPollButton.tsx
  • bigbluebutton-html5/imports/ui/components/poll/styles.ts
  • bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx
  • bigbluebutton-html5/imports/ui/components/timer/panel/styles.ts
  • bigbluebutton-html5/imports/ui/components/video-preview/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-preview/styles.ts
  • bigbluebutton-html5/package.json
💤 Files with no reviewable changes (1)
  • bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/styles.ts

Comment thread bigbluebutton-html5/package.json Outdated
"@hocuspocus/provider": "^3.4.4",
"@livekit/components-react": "2.9.19",
"@mconf/bbb-diff": "^1.2.0",
"@mconf/bbb-ui-components-react": "2.3.0",

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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Dependency version uses exact pin instead of caret range.

The PR objectives state ^2.3.0, but the actual entry is "2.3.0" (no caret). The sibling @mconf/bbb-diff on line 70 uses ^1.2.0. If the exact pin is intentional, consider documenting why; otherwise, align with the project's caret-range convention and the stated PR objective.

-    "`@mconf/bbb-ui-components-react`": "2.3.0",
+    "`@mconf/bbb-ui-components-react`": "^2.3.0",
📝 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.

Suggested change
"@mconf/bbb-ui-components-react": "2.3.0",
"`@mconf/bbb-ui-components-react`": "^2.3.0",
🤖 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/package.json` at line 71, Update the
`@mconf/bbb-ui-components-react` dependency entry in package.json from an exact
2.3.0 pin to the caret range ^2.3.0, matching the stated objective and sibling
dependency convention.

BBButton doesn't emit the `color` DOM attribute the legacy Button
leaked, so toHaveAttribute('color', ...) no longer matches. Assert the
computed background's dominant channel (red when running, blue when
stopped) instead.
@sonarqubecloud

Copy link
Copy Markdown

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsx (1)

348-359: 📐 Maintainability & Code Quality | 🟡 Minor | 💤 Low value

Missing dataTest on the free-join room-list button.

Every other migrated BBButton in this file carries a dataTest prop for e2e targeting. This per-room free-join button drops it entirely, losing the test hook for selecting join/request-to-join actions per room.

🔧 Proposed fix
                   <Styled.ButtonWrapper>
                     <BBButton
                       variant={isCurrent ? 'primary' : 'secondary'}
                       label={(() => {
                         if (breakout.isUserCurrentlyInRoom) return intl.formatMessage(intlMessages.alreadyConnected);
                         if (isCurrent) return intl.formatMessage(intlMessages.joinRoom);
                         return intl.formatMessage(intlMessages.requestToJoin);
                       })()}
                       disabled={isRequesting || breakout.isUserCurrentlyInRoom}
                       onClick={() => handleFreeJoinRoom(breakout)}
+                      dataTest={breakout.isUserCurrentlyInRoom ? 'alreadyConnected' : `requestToJoinRoom${breakout.sequence}`}
                     />
                   </Styled.ButtonWrapper>
🤖 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/breakout-room/breakout-room/participant-room/component.tsx`
around lines 348 - 359, Add the missing dataTest prop to the BBButton in the
free-join room-list rendering, using the same per-room test-hook convention as
the other migrated BBButton instances in this component so join/request-to-join
actions remain individually targetable.
🤖 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/video-preview/styles.ts`:
- Around line 227-230: Remove the unused isBlurred prop and its invalid overlay
object block from VideoPreviewModal, since component.tsx does not pass that
prop. Preserve the remaining valid styled-components CSS and update the
component typing accordingly.

---

Duplicate comments:
In
`@bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsx`:
- Around line 348-359: Add the missing dataTest prop to the BBButton in the
free-join room-list rendering, using the same per-room test-hook convention as
the other migrated BBButton instances in this component so join/request-to-join
actions remain individually targetable.
🪄 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: 314dae52-d422-4ac8-b3cf-49db5d731ece

📥 Commits

Reviewing files that changed from the base of the PR and between 98968e6 and 5aed562.

📒 Files selected for processing (10)
  • bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsx
  • bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/component.tsx
  • bigbluebutton-html5/imports/ui/components/poll/components/StartPollButton.tsx
  • bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-preview/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-preview/styles.ts
  • bigbluebutton-tests/playwright/user/timer.ts
🚧 Files skipped from review as they are similar to previous changes (5)
  • bigbluebutton-html5/imports/ui/components/poll/components/StartPollButton.tsx
  • bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/component.tsx
  • bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx

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

Caution

Inline review comments failed to post. This is likely due to GitHub's internal server error or limits when posting large numbers of comments. If you are seeing this consistently it is likely a permissions issue. Please check "Moderation" -> "Code review limits" under your organization settings.

Actionable comments posted: 1

♻️ Duplicate comments (1)
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsx (1)

348-359: 📐 Maintainability & Code Quality | 🟡 Minor | 💤 Low value

Missing dataTest on the free-join room-list button.

Every other migrated BBButton in this file carries a dataTest prop for e2e targeting. This per-room free-join button drops it entirely, losing the test hook for selecting join/request-to-join actions per room.

🔧 Proposed fix
                   <Styled.ButtonWrapper>
                     <BBButton
                       variant={isCurrent ? 'primary' : 'secondary'}
                       label={(() => {
                         if (breakout.isUserCurrentlyInRoom) return intl.formatMessage(intlMessages.alreadyConnected);
                         if (isCurrent) return intl.formatMessage(intlMessages.joinRoom);
                         return intl.formatMessage(intlMessages.requestToJoin);
                       })()}
                       disabled={isRequesting || breakout.isUserCurrentlyInRoom}
                       onClick={() => handleFreeJoinRoom(breakout)}
+                      dataTest={breakout.isUserCurrentlyInRoom ? 'alreadyConnected' : `requestToJoinRoom${breakout.sequence}`}
                     />
                   </Styled.ButtonWrapper>
🤖 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/breakout-room/breakout-room/participant-room/component.tsx`
around lines 348 - 359, Add the missing dataTest prop to the BBButton in the
free-join room-list rendering, using the same per-room test-hook convention as
the other migrated BBButton instances in this component so join/request-to-join
actions remain individually targetable.
🤖 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/video-preview/styles.ts`:
- Around line 227-230: Remove the unused isBlurred prop and its invalid overlay
object block from VideoPreviewModal, since component.tsx does not pass that
prop. Preserve the remaining valid styled-components CSS and update the
component typing accordingly.

---

Duplicate comments:
In
`@bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsx`:
- Around line 348-359: Add the missing dataTest prop to the BBButton in the
free-join room-list rendering, using the same per-room test-hook convention as
the other migrated BBButton instances in this component so join/request-to-join
actions remain individually targetable.
🪄 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: 314dae52-d422-4ac8-b3cf-49db5d731ece

📥 Commits

Reviewing files that changed from the base of the PR and between 98968e6 and 5aed562.

📒 Files selected for processing (10)
  • bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsx
  • bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/component.tsx
  • bigbluebutton-html5/imports/ui/components/poll/components/StartPollButton.tsx
  • bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-preview/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-preview/styles.ts
  • bigbluebutton-tests/playwright/user/timer.ts
🚧 Files skipped from review as they are similar to previous changes (5)
  • bigbluebutton-html5/imports/ui/components/poll/components/StartPollButton.tsx
  • bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/component.tsx
  • bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx
🛑 Comments failed to post (1)
bigbluebutton-html5/imports/ui/components/video-preview/styles.ts (1)

227-230: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Fix invalid CSS syntax or remove unused isBlurred block.

The isBlurred block contains a JavaScript object literal (overlay: { ... }) injected directly into a CSS string template. Styled-components expects valid CSS rules (e.g., targeting a class like .ReactModal__Overlay with standard CSS properties like backdrop-filter and z-index), so this block will be ignored by the CSS parser.

Additionally, isBlurred does not appear to be passed from the <Styled.VideoPreviewModal> usage in component.tsx. If this was an artifact, consider removing it entirely; otherwise, convert it to valid CSS targeting the correct overlay class.

♻️ Proposed fix (removal of unused/invalid code)
 const VideoPreviewModal = styled(ModalSimple)<{
   isPhone: boolean,
-  isBlurred: boolean
 }>`
   padding: 1rem;
   min-height: 25rem;
   max-height: 100vh;
 
   `@media` ${smallOnly} {
     height: unset;
     min-height: 22.5rem;
   }
 
   ${({ isPhone }) => isPhone && `
     min-height: 100%;
     min-width: 100%;
     border-radius: 0;
   `}
 
   ${ModalStyles.Content} {
     flex-grow: 1;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
   }
-  ${({ isBlurred }) => isBlurred && `
-    overlay: {
-      position: 'fixed',
-      top: 0,
-      left: 0,
-      width: '100%',
-      height: '100%',
-      backdropFilter: 'blur(10px)',
-      zIndex: 998,
-    }
-  `}
 `;

Also applies to: 252-262

🤖 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/video-preview/styles.ts` around
lines 227 - 230, Remove the unused isBlurred prop and its invalid overlay object
block from VideoPreviewModal, since component.tsx does not pass that prop.
Preserve the remaining valid styled-components CSS and update the component
typing accordingly.

@github-actions

Copy link
Copy Markdown

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

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx (1)

227-246: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Keep Stop on the left.

Line 237 renders Stop after Reset, making it the rightmost action. This conflicts with the PR’s stated ordering of Stop/Deactivate on the left and Start on the right; swap the Reset and Stop wrappers in the running branch.

🤖 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/timer/panel/component.tsx` around
lines 227 - 246, In the running branch’s controlButtons layout, swap the Reset
and Stop Styled.ButtonWrapper blocks so the Stop action rendered by timerStop()
appears on the left and Reset remains on the right. Preserve both buttons’
existing labels, handlers, variants, and test identifiers.
🤖 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.

Outside diff comments:
In `@bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx`:
- Around line 227-246: In the running branch’s controlButtons layout, swap the
Reset and Stop Styled.ButtonWrapper blocks so the Stop action rendered by
timerStop() appears on the left and Reset remains on the right. Preserve both
buttons’ existing labels, handlers, variants, and test identifiers.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3ccc2ee2-1594-4bfc-b816-32b5872212be

📥 Commits

Reviewing files that changed from the base of the PR and between 5aed562 and 6e5c437.

⛔ Files ignored due to path filters (1)
  • bigbluebutton-html5/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (5)
  • bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsx
  • bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/styles.ts
  • bigbluebutton-html5/imports/ui/components/poll/styles.ts
  • bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-preview/styles.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsx
  • bigbluebutton-html5/imports/ui/components/video-preview/styles.ts
  • bigbluebutton-html5/imports/ui/components/poll/styles.ts

@lfzawacki
lfzawacki self-requested a review July 31, 2026 18:33
@github-actions

Copy link
Copy Markdown

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

lfzawacki and others added 2 commits September 1, 2026 14:59
fix(styles): Reuse 'visuallyHidden' component, reduce reliance in magic numbers, add missing data-tests
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@lfzawacki lfzawacki 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.

Long PR, but removes a lot of redundant styles and reuses the BBButton component from the react ui library, keeping it consistent within the client and with plugins that implement their UI based on it.

@lfzawacki
lfzawacki requested review from ramonlsouza and removed request for germanocaumo September 4, 2026 18:49
@lfzawacki
lfzawacki merged commit 82b4bd3 into bigbluebutton:v4.0.x-develop Sep 4, 2026
36 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.

4 participants