Repository navigation
refactor(html5): replace BBButton wrappers with library props, bump bbb-ui-components-react to 0.11.0 and drop @mui/system - #26048
Conversation
|
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:
No actionable comments were generated in the recent review. WalkthroughBreakout-room, poll, request-unmute, and timer controls now use styled button components directly or use updated button styles. The shared button-wrapper module and common checkbox and radio components were deleted. Video preview now uses Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Refactor Possibly related issues
Suggested reviewers: Merge Risk:
|
|
This pull request has conflicts ☹ |
19d2c3f to
d038ec0
Compare
|
LGTM |
|
This pull request has conflicts ☹ |
d038ec0 to
6a9af59
Compare
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues requiring further changes.
No open issues 🎉
1 file not reviewed
bigbluebutton-html5/package-lock.json: Generated file
What changed in this PR
Follows up #25942 and #25989 by moving HTML5 client controls to the UI library’s supported sizing APIs, fixing breakout button layout, and removing obsolete wrappers and dependencies.
Changes:
- Replaces button wrappers with
fullWidthandstyled(BBButton), retaining wrappers needed for disabled-button tooltips. - Separates breakout card sizing from bottom-bar sizing to restore normal button heights and constrain long labels.
- Migrates the camera brightness checkbox to
BBBCheckboxand removes unused controls and the direct@mui/systemdependency.
| File | Description |
|---|---|
bigbluebutton-html5/package.json |
Removes direct @mui/system dependency. |
bigbluebutton-html5/package-lock.json |
Removes obsolete MUI 5 dependency entries. |
bigbluebutton-html5/imports/ui/components/video-preview/component.tsx |
Uses BBBCheckbox with an accessible description. |
bigbluebutton-html5/imports/ui/components/timer/panel/styles.ts |
Defines directly styled timer action buttons. |
bigbluebutton-html5/imports/ui/components/timer/panel/component.tsx |
Removes timer button wrappers. |
bigbluebutton-html5/imports/ui/components/request-unmute-modal/styles.js |
Styles confirmation width and mobile label wrapping directly. |
bigbluebutton-html5/imports/ui/components/request-unmute-modal/component.jsx |
Uses styled buttons and omits mobile icons. |
bigbluebutton-html5/imports/ui/components/poll/styles.ts |
Styles poll buttons directly and adds equal-column footer layout. |
bigbluebutton-html5/imports/ui/components/poll/components/StartPollButton.tsx |
Enables full-width Start sizing. |
bigbluebutton-html5/imports/ui/components/poll/components/ResponseArea.tsx |
Removes the Add option button wrapper. |
bigbluebutton-html5/imports/ui/components/poll/components/PollInputs.tsx |
Uses directly styled delete-option buttons. |
bigbluebutton-html5/imports/ui/components/poll/components/LiveResultActions.tsx |
Uses styled Publish and Stop buttons. |
bigbluebutton-html5/imports/ui/components/poll/component.tsx |
Removes Cancel’s wrapper and enables full width. |
bigbluebutton-html5/imports/ui/components/common/radio/styles.js |
Deletes unused radio styles. |
bigbluebutton-html5/imports/ui/components/common/radio/component.jsx |
Deletes the unused radio component. |
bigbluebutton-html5/imports/ui/components/common/checkbox/styles.js |
Deletes replaced checkbox styles. |
bigbluebutton-html5/imports/ui/components/common/checkbox/component.jsx |
Deletes the replaced checkbox component. |
bigbluebutton-html5/imports/ui/components/common/checkbox/base.jsx |
Deletes the obsolete checkbox/radio base. |
bigbluebutton-html5/imports/ui/components/common/button-wrapper/styles.ts |
Deletes shared button-sizing wrappers. |
bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/styles.ts |
Retains a tooltip anchor without button-sizing selectors. |
bigbluebutton-html5/imports/ui/components/breakout-room/create-breakout-room/sidebar-create-breakout/component.tsx |
Enables full-width breakout Start sizing. |
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/styles.ts |
Defines truncating buttons with separate bottom-bar sizing. |
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/styles.ts |
Reuses the shared bottom-bar button style. |
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/running-room/component.tsx |
Removes Send message and Finish wrappers. |
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/styles.ts |
Exposes separate card and bottom-bar buttons. |
bigbluebutton-html5/imports/ui/components/breakout-room/breakout-room/participant-room/component.tsx |
Applies context-specific button sizing without wrappers. |
bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/styles.ts |
Sizes the dialog’s close button directly. |
bigbluebutton-html5/imports/ui/components/breakout-join-confirmation/breakout-join-confirmation-graphql/component.tsx |
Removes the close-button wrapper. |
Review effort: Balanced
|
Reviewed this PR on a live from-source 4.0 dev build (PR head 1. Checked checkbox color: MUI default blue instead of the brand color The camera settings "Whole image" checkbox renders its checked state in MUI's default blue ( For reference, the base build's old checkbox was 2. Breakout button height: the fix works, please guard it with a test The 140 px -> 46 px height change on the breakout room card buttons is the PR's fix and looks right on the live server (assigned cards, "Already in room" and free-join cards all verified). Since this bug went unnoticed by the current e2e suite, a small regression assertion would be worth adding, e.g. a bounding-box height check on the 3. Ellipsized "Ask to join" label in free-join cards At the default sidebar width the "Ask to join" button label is cut off ("Ask to j..."). This is NOT a regression (the base build truncates identically), but since this PR touches these cards, the label being unreadable is worth fixing here, e.g. allowing the label to wrap to a second line: Static checks also pass on the PR tree: |
6a9af59 to
dfc32ad
Compare
|
Thanks for the review! Addressed (also rebased on the current v4.0.x-develop):
|
|
Thanks! Verified all three on a from-source build of the new head (
Also re-checked the rebase delta: the room-card and bottom-bar button geometries are unchanged from the previous review round (46/50 px, no truncation), the join dialog close button is unaffected, and |
dfc32ad to
def562e
Compare
|
This pull request has conflicts ☹ |
def562e to
d2cf296
Compare
Since the breakout panels moved to the shared TruncatingButtonWrapper (701d27a), its `flex: 1 1 10rem` also applies inside the participant panel's column cards: the "You are in room N" card and each free-join room card. In a column the 10rem basis is a height, so the Join room and Ask to join buttons render 140px tall instead of at a normal button height. Replace the wrapper with styled(BBButton), now that BBButton forwards className (bbb-ui-components-react 0.9.0). Both buttons still reach the label span, since BBButton keeps a label on one line and can't truncate it yet (bigbluebutton/bbb-ui-components-react#105, bigbluebutton#106): - BottomBarButton, for the bottom-bar rows: the 10rem basis, and a label that still doesn't fit ellipsizes. The bottom bars keep the same layout. - CardButton, for the room cards: the label wraps instead of being cut, hyphenating a word that doesn't fit where the browser can, so a narrow free-join card no longer shows "Ask to j...". The button fills its card's spare height, so the buttons of one row of cards stay the same height. The breakout join test now checks that the room card's Join room button keeps a normal button height.
bbb-ui-components-react 0.9.0 adds BBButton's fullWidth prop and
forwards className. That makes the remaining wrappers that reach into
BBButton's markup (`> *`, `& > button`, `button { ... }`) unnecessary:
- Timer: the action buttons share their row with `flex: 1` on
styled(BBButton).
- Poll:
- The delete-option, add-option and live-result buttons are
styled(BBButton).
- Cancel and Start share a two-column grid. A flex basis of 0 would
count Cancel's padding, which Start's bare wrapper doesn't have.
- Breakout creation and poll Start: the buttons use fullWidth. Their
wrappers stay as the anchors for the tooltip explaining a disabled
Start (a disabled BBButton ignores pointer events,
bigbluebutton/bbb-ui-components-react#125), and no longer size the
button.
- Breakout join dialog: the close button is sized with styled(BBButton)
instead of `!important`.
- Request unmute: the confirmation min-width and the label wrapping on
phones move onto styled(BBButton). The icons are dropped through
iconStart instead of being hidden with CSS.
common/button-wrapper is no longer used, so it goes away.
The response-type picker keeps its wrapper until BBButton has a pressed
state (bigbluebutton/bbb-ui-components-react#107). The labels that set
white-space keep doing so until it can wrap them (bigbluebutton#105).
The camera settings' "Whole image" brightness option was the last user of common/checkbox, and common/radio has no users. They were also the only code importing @mui/system directly, which kept a 5.x copy at the top level next to the 6.x one @mui/material uses. - The option is a BBBCheckbox. Its label names the input, and its description stays linked through aria-describedby. - common/checkbox and common/radio are removed. - @mui/system is dropped from package.json, so only MUI 6.x remains. Visible differences, both from the library's look: - the checked box is blue instead of green. It is MUI's default blue, not the brand color, until the client moves to a library release with bigbluebutton/bbb-ui-components-react#121; - the box loses MUI's 9px ripple padding (39px to 21px). The label stays clickable. The old checkbox also toggled on Enter. Like a native checkbox, it now toggles on Space.
0.11.0 adds BBButton's labelOverflow prop (bigbluebutton/bbb-ui-components-react#120) and shows BBBCheckbox's checked box in the brand color (bigbluebutton/bbb-ui-components-react#121). The next commit uses labelOverflow. Visible changes, all from the library: - the camera settings' "Whole image" checkbox is brand blue when checked, shows a focus outline, and dims its label while disabled; - the poll panel's toggles show a focus outline, and "Allow multiple answers per respondent?" is dimmed while it is disabled (typed responses); - a tooltip closes on Escape. The dependencies and peer dependencies are unchanged, and so are the other components the client uses (BBBSelect, BBBTextInput, BBBTextAreaInput, BBBModal and BBBHint).
bbb-ui-components-react 0.11.0 lets BBButton wrap or truncate its label (labelOverflow), so the client no longer reaches into the button's label span or sets white-space on it: - breakout: the room cards' buttons use labelOverflow="wrap" and the bottom-bar buttons labelOverflow="ellipsis". CardButton keeps only flex-grow and hyphens, BottomBarButton only its 10rem basis. A truncated bottom-bar label now shows the full text in a tooltip. - request-unmute: on a phone the buttons wrap through labelOverflow instead of a media query. - poll: Add item wraps through labelOverflow instead of white-space: pre-wrap. The layouts are otherwise unchanged.
d2cf296 to
7849d2f
Compare
✅ Automated tests have passed! |




What does this PR do?
This follows up #25942 and #25989.
bbb-ui-components-react0.9.0 gaveBBButtonafullWidthprop and passesclassNamethrough, sostyled(BBButton)works. This PR:sizes the remaining
BBButtons with those instead of wrapperdivs that reach into the button's markup;fixes a breakout layout regression those wrappers caused;
removes the client's last direct
@mui/systemimports;moves to
bbb-ui-components-react0.11.0 and uses itslabelOverflowfor the labels that wrap or truncate.fix(breakout): keep the room cards' join buttons at their normal height
TruncatingButtonWrapper(from 701d27a) setsflex: 1 1 10rem.styled(BBButton)s, and only the bottom-bar rows get the 10rem basis.refactor(buttons): size BBButtons with fullWidth and styled(BBButton)
> *,& > buttonorbutton { … }rules onBBButtonremain there.BBButtonignores pointer events (BBButton: a disabled button can't show its tooltip bbb-ui-components-react#125).styled(BBButton). On phones the icons are dropped throughiconStartinstead of being hidden with CSS.common/button-wrapperis removed.refactor(video-preview): use BBBCheckbox and drop @mui/system
BBBCheckbox.common/checkbox(whose only user was that checkbox) andcommon/radio(which had none) are removed.@mui/system. The 5.x dependency is dropped, so only the 6.x copy that@mui/materialuses remains.build(html5): bump bbb-ui-components-react to 0.11.0
BBButton'slabelOverflow(feat(BBButton): add labelOverflow prop bbb-ui-components-react#120) and theBBBCheckboxbrand color fix (fix(BBBCheckbox): show the brand color when checked or indeterminate bbb-ui-components-react#121).refactor(buttons): wrap and truncate BBButton labels with labelOverflow
labelOverflow="wrap"and the bottom barslabelOverflow="ellipsis", so nothing reaches into the label<span>any more. A truncated bottom-bar label now shows the full text in a tooltip.labelOverflowinstead of settingwhite-space.The surfaces that change visibly:
From the 0.11.0 bump, also: keyboard focus outlines on the checkbox and the poll toggles, the dimmed disabled poll toggle, tooltips that close on Escape, and a tooltip on a truncated bottom-bar label. Everything else renders the same.
Still not covered by the library, so left as they are, with links in the code:
BBButtonhas no pressed state (BBButton: pressed state for toggle buttons bbb-ui-components-react#107).BBButtoncan't show a tooltip (BBButton: a disabled button can't show its tooltip bbb-ui-components-react#125).How to test
allowModsToUnmuteUsers=true, and have a moderator unmute a muted viewer.How it was verified:
tscand eslint are clean at each commit, and the production build passes.data-testid changed.breakout/join.tsnow checks that the room card's Join room button keeps a normal height: it fails on the base (140px) and passes here. The breakout, unmute-consent and poll specs that cover the changed buttons pass on 0.11.0.More
BBBCheckboxgaps this PR first exposed, a faint focus indicator and a pointer cursor while disabled (BBBCheckbox: no visible keyboard focus, and the label ignores disabled bbb-ui-components-react#108), are fixed in 0.11.0.^0.10.0forBBBToggle'sfullWidth. 0.11.0 keeps it, so a forward merge of this PR resolves to 0.11.0.