Repository navigation
[4.0] Review sidebar panel footer buttons for consistency - #25409
Conversation
|
Thank you for this contribution! |
|
Note Reviews pausedIt 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 Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThe HTML5 client adds 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
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 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: 3
🧹 Nitpick comments (3)
bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx (1)
490-570: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winClarify the split
deactivateButtonrendering.
deactivateButtonis rendered either inside theelsebranch ofcontrolButtons(idle state) or in the separate block at Line 845 (running/paused), and the two are mutually exclusive by construction (!running && !isPausedvs.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 winDuplicate focus-restoration logic vs.
useModalRegistration.
useModalRegistration'sopen()/close()already save and restoredocument.activeElementinternally (permodalController.tsx). This component still keeps its own localpreviousFocusRefand a mirroring effect (further down, keyed onisOpen) 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 valueConsider a native size prop instead of
!importantoverrides.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-reactreleases. Worth checking whetherBBButtonexposes a size/compact variant for icon-only circular buttons before relying on!importantCSS 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
⛔ Files ignored due to path filters (1)
bigbluebutton-html5/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (21)
bigbluebutton-html5/imports/ui/components/actions-bar/media-area/media-sharing/presentation/component.jsxbigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsxbigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/styles.tsbigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/styles.tsbigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/styles.tsbigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/styles.tsbigbluebutton-html5/imports/ui/components/common/modal/confirmation/component.jsxbigbluebutton-html5/imports/ui/components/common/modal/confirmation/styles.jsbigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/component.tsxbigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/styles.tsbigbluebutton-html5/imports/ui/components/poll/components/LiveResult.tsxbigbluebutton-html5/imports/ui/components/poll/components/StartPollButton.tsxbigbluebutton-html5/imports/ui/components/poll/styles.tsbigbluebutton-html5/imports/ui/components/timer/panel/component.tsxbigbluebutton-html5/imports/ui/components/timer/panel/styles.tsbigbluebutton-html5/imports/ui/components/video-preview/component.tsxbigbluebutton-html5/imports/ui/components/video-preview/styles.tsbigbluebutton-html5/package.json
💤 Files with no reviewable changes (1)
- bigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/styles.ts
| "@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", |
There was a problem hiding this comment.
📐 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.
| "@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.
|
There was a problem hiding this comment.
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 valueMissing
dataTeston the free-join room-list button.Every other migrated
BBButtonin this file carries adataTestprop 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
📒 Files selected for processing (10)
bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsxbigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/component.tsxbigbluebutton-html5/imports/ui/components/poll/components/StartPollButton.tsxbigbluebutton-html5/imports/ui/components/timer/panel/component.tsxbigbluebutton-html5/imports/ui/components/video-preview/component.tsxbigbluebutton-html5/imports/ui/components/video-preview/styles.tsbigbluebutton-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
There was a problem hiding this comment.
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 valueMissing
dataTeston the free-join room-list button.Every other migrated
BBButtonin this file carries adataTestprop 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
📒 Files selected for processing (10)
bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsxbigbluebutton-html5/imports/ui/components/nav-bar/nav-bar-graphql/recording-indicator/notify/component.tsxbigbluebutton-html5/imports/ui/components/poll/components/StartPollButton.tsxbigbluebutton-html5/imports/ui/components/timer/panel/component.tsxbigbluebutton-html5/imports/ui/components/video-preview/component.tsxbigbluebutton-html5/imports/ui/components/video-preview/styles.tsbigbluebutton-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
isBlurredblock.The
isBlurredblock 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__Overlaywith standard CSS properties likebackdrop-filterandz-index), so this block will be ignored by the CSS parser.Additionally,
isBlurreddoes not appear to be passed from the<Styled.VideoPreviewModal>usage incomponent.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.
|
This pull request has conflicts ☹ |
chore: BigBlueButton 4.0.0-beta.4 iteration
There was a problem hiding this comment.
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 winKeep 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
⛔ Files ignored due to path filters (1)
bigbluebutton-html5/package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (5)
bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsxbigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/styles.tsbigbluebutton-html5/imports/ui/components/poll/styles.tsbigbluebutton-html5/imports/ui/components/timer/panel/component.tsxbigbluebutton-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
…utton component from the UI lib
… the BBButton component from the UI lib
|
This pull request has conflicts ☹ |
fix(styles): Reuse 'visuallyHidden' component, reduce reliance in magic numbers, add missing data-tests
✅ Automated tests have passed! |
lfzawacki
left a comment
There was a problem hiding this comment.
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.



What does this PR do?
Migrates footer/panel action buttons from the legacy
Buttoncomponent toBBButton(@mconf/bbb-ui-components-react), across:ConfirmationModalAlso:
@mconf/bbb-ui-components-reactto^2.3.0stay on the left, matching the convention used elsewhere
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-reactas the single sourceof 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).