Skip to content

feat: Layout System Revamp (Camera sorting and pagination) - #24250

Merged
antobinary merged 16 commits into
bigbluebutton:v3.0.x-releasefrom
ramonlsouza:layout-changes-cameras
Dec 9, 2025
Merged

antobinary merged 16 commits into
bigbluebutton:v3.0.x-releasefrom
ramonlsouza:layout-changes-cameras

Conversation

@ramonlsouza

@ramonlsouza ramonlsouza commented Nov 19, 2025 •

Copy link
Copy Markdown
Member

What does this PR do?

Part of #24186 changes. Implements the following changes to the camera area:

  • introduces new sorting method for cameras: PRESENTER_LOCAL_PINNED (default), which sorts cameras by: presenter -> local camera -> pinned users -> others
  • adjusts video pagination so presenter, local and pinned camera tiles do not appear in every page
  • adds new icon in the presenter camera
  • adds "You" to the current user camera label, similar to userlist
  • introduces new flag in settings.yml: syncCameraDockSizeAndPosition (default: false) to control if camera position and size should be propagated to the presenter to viewers

presenter icon and "you" label

Screenshot from 2025-11-19 09-28-22

Closes Issue(s)

Closes (partially) #24186

How to test

  1. join a meeting with more users than the value in desktopPageSizes or mobilePageSizes settings
  2. share camera with all users
  3. check if the presenter icon is presenter in presenter camera tile
  4. check if "You" is displayed in the current user camera tile
  5. switch to page 2 of the cameras
  6. confirm that presenter and local camera only appear in the first page

@coderabbitai

coderabbitai Bot commented Nov 19, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Adds a new sorting method PRESENTER_LOCAL_PINNED and a SortingMethodConfig that can enable customPagination. When customPagination is true, streams are globally sorted, paginated across the full sorted list, and local streams not on the current page are appended with render: false. When not using custom pagination, existing partitioning (local/pinned/others) is retained with sorting applied to the paginated subset. UI changes add a Presenter button for presenter streams and show "you" for the local user. A render?: boolean flag and visibility filtering are added; a layout setting gates camera dock sync for non-presenters.

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

  • bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts — new SortingMethodConfig, new sorting functions, updated getSortingMethod and SORTING_METHODS entries
  • bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts — customPagination branch, global sort + pagination, render flag assignment
  • bigbluebutton-html5/imports/ui/components/video-provider/types.ts — added render?: boolean to Stream
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx — visibility filtering, grid/focus adjustments, shouldRender gating
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/pin-area/* — PresenterButton UI and styling changes
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-actions/component.tsx — local user display name ("you")
  • bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx — gated camera dock sync setting
  • bigbluebutton-html5/private/config/settings.yml and public locales — config and i18n additions

Areas needing extra attention:

  • Correctness of comparison logic and CONNECTING handling in new sort functions
  • Consistency of pagination counts (totalNumberOfOtherStreams) between old and new paths
  • Ensuring render flag propagation doesn't break other consumers and that visibility-based counts (grid/focus) match UX expectations

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description is well-related to the changeset, detailing the new sorting method, pagination behavior, UI elements, and settings additions that align with the code modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title accurately reflects the main changes: introducing a new camera sorting method (PRESENTER_LOCAL_PINNED), adjusting pagination behavior, and revamping layout-related functionality for the camera system.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

@prlanzarin
prlanzarin self-requested a review November 19, 2025 14:08
@ramonlsouza
ramonlsouza marked this pull request as ready for review November 24, 2025 19:32

@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: 0

🧹 Nitpick comments (3)
bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-actions/component.tsx (1)

81-84: Local “You” labelling is consistent; consider reflecting it in aria-labels

Using stream.userId === Auth.userID plus intlMessages.you to build displayName and wiring it through the squeezed entry and default dropdown/user label matches the user list behaviour and the PR goal.

To make screen-reader output consistent with the visual label, you could also use displayName in the squeezed button aria-label:

-            label={intl.formatMessage(intlMessages.squeezedLabel)}
-            aria-label={`${name} ${intl.formatMessage(intlMessages.squeezedLabel)}`}
+            label={intl.formatMessage(intlMessages.squeezedLabel)}
+            aria-label={`${displayName} ${intl.formatMessage(intlMessages.squeezedLabel)}`}

Also applies to: 131-135, 173-175, 324-325, 344-345

bigbluebutton-html5/imports/ui/components/video-provider/service.ts (1)

28-28: Local-stream preservation during pagination looks right; consider reusing prefix logic and hardening Auth.userID typing

The change to skip disconnecting streams whose IDs start with the local prefix ensures your own cameras aren’t unintentionally torn down when paginating, which matches the new global sorting/pagination behaviour.

Two follow‑ups worth considering:

  • Avoid duplicating prefix construction: getStreamsToConnectAndDisconnect now hand-builds localPrefix, while getPrefix() + isLocalStream() already encapsulate the same logic. To keep things in sync if the prefix format changes, it’d be safer to derive the prefix from a single helper (e.g. factoring out a static getLocalPrefix() or using videoService.getPrefix() inside this method).

  • Address the Sonar warning on Auth.userID: Here Auth.userID is interpolated into a string for localPrefix. If there’s any chance it’s not already a string, wrapping it once makes the intent explicit and silences the warning:

-    const clientSessionUUID = sessionStorage.getItem('clientSessionUUID') || '0';
-    const localPrefix = `${Auth.userID}${TOKEN}${clientSessionUUID}`;
+    const clientSessionUUID = sessionStorage.getItem('clientSessionUUID') || '0';
+    const userId = String(Auth.userID ?? '');
+    const localPrefix = `${userId}${TOKEN}${clientSessionUUID}`;

Also, please double‑check that explicit unshare/leave paths (useExitVideo / useStopVideo) remain responsible for cleaning up local publisher streams, since this helper will now never return them in streamsToDisconnect.

Also applies to: 433-454, 500-510

bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/pin-area/component.tsx (1)

17-20: Presenter/pin overlay logic matches the new UX; only minor cleanups possible

  • Rendering PresenterButton whenever stream.user?.presenter is true and gating the PinButton on pinned keeps the overlay focused: presenter tag is always visible, and the in‑tile pin control only appears for already pinned streams (pin/unpin remains available via the dropdown/user list).
  • Stopping click propagation on PresenterButton plus the cursor: default styling makes it clearly non‑actionable.

Minor nits you could address later:

  • The icon ternary is now redundant inside the {pinned && …} block:
-          icon={!pinned ? 'pin-video_on' : 'pin-video_off'}
+          icon="pin-video_off"
  • If you want to make the non‑interactive nature of PresenterButton explicit to assistive tech, you might also pass disabled there (in addition to the no‑op click handler).

Also applies to: 33-39, 42-76

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between cbe5b50 and 19f1a52.

⛔ Files ignored due to path filters (4)
  • bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-home-background-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-home-background-Firefox-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-new-background-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-new-background-Firefox-linux.png is excluded by !**/*.png
📒 Files selected for processing (8)
  • bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (1 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/service.ts (1 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts (3 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/pin-area/component.tsx (2 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/pin-area/styles.ts (2 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-actions/component.tsx (5 hunks)
  • bigbluebutton-html5/private/config/settings.yml (1 hunks)
  • bigbluebutton-html5/public/locales/en.json (1 hunks)
🧰 Additional context used
🧠 Learnings (3)
📚 Learning: 2025-10-15T17:52:37.432Z
Learnt from: guiiBecker
Repo: bigbluebutton/bigbluebutton PR: 24084
File: bigbluebutton-html5/public/locales/pt.json:323-323
Timestamp: 2025-10-15T17:52:37.432Z
Learning: Translation issues in locale files (bigbluebutton-html5/public/locales/*.json) should be updated in Transifex, the translation management platform used by the BigBlueButton project, rather than being fixed directly in pull requests.

Applied to files:

  • bigbluebutton-html5/public/locales/en.json
📚 Learning: 2025-10-15T17:57:46.195Z
Learnt from: guiiBecker
Repo: bigbluebutton/bigbluebutton PR: 24084
File: bigbluebutton-html5/public/locales/ja.json:723-727
Timestamp: 2025-10-15T17:57:46.195Z
Learning: In the bigbluebutton repository, locale files (e.g., public/locales/*.json) are managed through Transifex and should not be edited directly in pull requests. Translation corrections and updates should be made in Transifex, which then syncs to the repository.

Applied to files:

  • bigbluebutton-html5/public/locales/en.json
📚 Learning: 2025-05-09T14:36:13.418Z
Learnt from: gustavotrott
Repo: bigbluebutton/bigbluebutton PR: 23137
File: bbb-graphql-server/bbb_schema.sql:2022-2027
Timestamp: 2025-05-09T14:36:13.418Z
Learning: User acknowledged that adding an ORDER BY clause to the DISTINCT ON query in v_breakoutRoom_commonProperties view makes sense but deferred implementation since "startedAt" values are mostly the same for all rooms.

Applied to files:

  • bigbluebutton-html5/private/config/settings.yml
🧬 Code graph analysis (3)
bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (2)
bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts (2)
  • getSortingMethod (158-160)
  • sortVideoStreams (162-166)
bigbluebutton-html5/imports/utils/array-utils.ts (1)
  • partition (8-11)
bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/user-actions/component.tsx (2)
bigbluebutton-html5/imports/ui/components/video-provider/service.ts (1)
  • isLocalStream (253-255)
bigbluebutton-html5/imports/ui/components/notifications-bar/container.jsx (2)
  • intl (44-44)
  • intlMessages (13-38)
bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/pin-area/component.tsx (1)
bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (1)
  • useIsVideoPinEnabledForCurrentUser (564-569)
🪛 GitHub Check: SonarCloud Code Analysis
bigbluebutton-html5/imports/ui/components/video-provider/service.ts

[warning] 443-443: 'Auth.userID' may use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=bigbluebutton_bigbluebutton&issues=AZqcHYEWUlHtjD9SJYRa&open=AZqcHYEWUlHtjD9SJYRa&pullRequest=24250

🔇 Additional comments (5)
bigbluebutton-html5/private/config/settings.yml (1)

491-495: Camera sorting modes comment updated consistently

Including PRESENTER_LOCAL_PINNED in the documented sorting modes matches the new configuration and avoids ambiguity for admins tweaking cameraSortingModes.

bigbluebutton-html5/public/locales/en.json (1)

1342-1342: Presenter label key aligns with new UI; ensure it’s managed via Transifex

The "app.videoDock.webcamPresenterLabel": "Presenter" entry fits the new presenter button in the webcam dock.

Given locale files are sourced from Transifex, please confirm this key has been added/updated in Transifex as well so it doesn’t get overwritten on the next sync. (Based on learnings, locale files are Transifex-managed.)

bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/pin-area/styles.ts (1)

25-27: Presenter button styling and wrapper layout look appropriate

Reusing PinButton for PresenterButton with a cursor: default and switching the wrapper to a flex container with a small gap cleanly supports the “Presenter + Pin” cluster without impacting existing consumers.

Also applies to: 35-36, 48-52

bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts (1)

9-13: All getSortingMethod consumers correctly updated; no issues found.

Verification confirms both call sites properly handle the new SortingMethodConfig return type:

  • stream-sorting.ts:163 correctly destructures sortingMethod from the config and uses it in .sort()
  • hooks/index.ts:406 correctly stores the full config and accesses customPagination property at line 409

No direct SORTING_METHODS access bypasses the config wrapper. The implementation is sound and all usages have been properly updated.

The optional stylistic suggestion to reuse sortByLocal and sortByPinned is not required and can be deferred if preferred.

bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (1)

392-439: All usages of getSortingMethod are compatible; no breaking changes detected.

Verification confirms the refactored code is sound:

  • getSortingMethod returns SortingMethodConfig with sortingMethod, localFirst, and optional customPagination properties
  • stream-sorting.ts:163 correctly destructures { sortingMethod } (available in all modes)
  • hooks/index.ts:406 correctly checks sortingConfig.customPagination (optional, defaults to falsy for legacy modes) and reads sortingConfig.localFirst
  • The if-else branch properly routes: custom pagination for PRESENTER_LOCAL_PINNED (where customPagination: true), original logic for other modes

No breaking changes or incompatibilities. The code change is safe to proceed.

@ramonlsouza ramonlsouza added this to the Release 3.0 milestone Nov 25, 2025
@antobinary antobinary mentioned this pull request Nov 27, 2025
3 tasks
@gabriellpr
gabriellpr self-requested a review December 2, 2025 18:56

@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: 0

🧹 Nitpick comments (2)
bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx (1)

229-232: Consider extracting the visibility predicate to reduce duplication.

This visibility condition is repeated in renderVideoList (lines 365-367, 375). Extracting it to a reusable helper or constant would improve maintainability:

+const isStreamVisible = (item: VideoItem): boolean =>
+  item.type === VIDEO_TYPES.GRID || !('render' in item) || item.render !== false;
+
 setOptimalGrid() {
   const {
     streams,
     cameraDock,
     layoutContextDispatch,
   } = this.props;
-  const visibleStreams = streams.filter(
-    (item) => item.type === VIDEO_TYPES.GRID || !('render' in item) || item.render !== false,
-  );
+  const visibleStreams = streams.filter(isStreamVisible);
bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (1)

414-414: Consider renaming or documenting totalNumberOfOtherStreams for clarity.

In the custom pagination branch, totalNumberOfOtherStreams is set to the length of all sorted streams, whereas in the original branch it represents only non-local/non-pinned streams. The variable name is now semantically inconsistent between branches.

This works correctly because each branch uses it appropriately for page calculations, but consider either:

  • Renaming to something like totalPaginatedStreams
  • Adding a comment explaining the different semantics
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8c74430 and 2ace5f0.

⛔ Files ignored due to path filters (7)
  • bigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-1-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-2-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-3-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-4-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-5-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-mirrored-view-Chromium-linux.png is excluded by !**/*.png
  • bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-view-Chromium-linux.png is excluded by !**/*.png
📒 Files selected for processing (3)
  • bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (1 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/types.ts (1 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx (3 hunks)
🧰 Additional context used
🧬 Code graph analysis (1)
bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (3)
bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts (2)
  • getSortingMethod (158-160)
  • sortVideoStreams (162-166)
bigbluebutton-html5/imports/utils/array-utils.ts (1)
  • partition (8-11)
bigbluebutton-html5/imports/ui/components/video-provider/types.ts (1)
  • StreamItem (75-75)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build-package (bbb-html5)
🔇 Additional comments (6)
bigbluebutton-html5/imports/ui/components/video-provider/types.ts (1)

72-72: LGTM!

The optional render property is a clean addition to control stream visibility during custom pagination. The optional nature correctly allows backward compatibility with existing code that doesn't set this flag.

bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx (2)

244-246: LGTM!

Correctly updated to check for focused items only among visible streams, ensuring grid calculations remain accurate when the focused stream might be on a different page.


365-377: LGTM!

The visibility filtering for numOfStreams and the early return null for non-renderable items correctly implements the render gating. React handles null returns in map gracefully.

bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (3)

429-450: LGTM!

The original pagination logic is preserved correctly in the else branch. The partition-based approach keeps local and pinned streams separate from pagination, and the localFirst config properly controls their placement relative to paginated streams.


417-428: LGTM!

The approach of filtering local streams not in the current page and marking them with render: false is a clean solution. Creating new objects with the spread operator correctly avoids mutation of the original stream objects.


406-428: Verify sortVideoStreams doesn't cause re-render instability with index-based filtering.

The duplicate stream logic is sound—local streams already in paginatedStreams won't be in localStreamsNotInPage due to the index-based filter. However, verify that sortVideoStreams returns a new array each time and doesn't mutate the input, as stable reference behavior is critical for the index-based filtering to remain valid across re-renders.

} = this.props;
const numOfStreams = streams.length;
const numOfStreams = streams.filter(
(item) => item.type === VIDEO_TYPES.GRID || !('render' in item) || item.render !== false,

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 check is the same as L375. Could be extracted to a reusable method to make its intention clear and avoid future mix-ups.

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

Looks good.
Left a cosmetic review comment.

In the future, we can review the "custom pagination" flag for sorting modes so it's not hardcoded. Ideally we could make pagination partitioning configurable alongside the sorting mode, e.g.:

cameraSortingModes:
  defaultSorting:
    mode: LOCAL_ALPHABETICAL
    # Always show priviliged streams (pinned users and local cameras)
    partitionPrivilegedStreams: true

But this can be done in a subsequent PR.

@github-actions

github-actions Bot commented Dec 9, 2025

Copy link
Copy Markdown

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

@sonarqubecloud

sonarqubecloud Bot commented Dec 9, 2025

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: 0

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/video-provider/hooks/index.ts (1)

415-472: Fix visible stream count when using customPagination to avoid under-filling the grid and misreporting totals

When sortingConfig.customPagination is true, streams is built as:

  • paginatedStreams (the page’s visible tiles), plus
  • localStreamsWithRenderFlag (local streams outside the current page, marked render: false).

However, at the end of the hook:

  • useGridUsers is called with streams.length (Line 464), and
  • totalNumberOfStreams is reported as streams.length (Line 470).

This overcounts “visible” streams on pages where you have local streams off-page, because those hidden locals are still included in streams. Consequences:

  • The grid query (limit: Math.max(gridSize - visibleStreamCount, 0)) will think more video tiles are visible than actually are, so it can request too few grid users.
  • totalNumberOfStreams will no longer match the number of rendered camera tiles on the current page, potentially breaking any UI that assumes it represents visible streams.

You already use the render flag to distinguish visible from non-renderable items; it’s safer to derive a visibleStreams list for counts while keeping streams (including hidden locals) for de-duplicating against grid users.

Suggested change:

-  const { gridUsers, overflowCount } = useGridUsers(streams.length);
+  const visibleStreams = streams.filter((s) => s.render !== false);
+  const { gridUsers, overflowCount } = useGridUsers(visibleStreams.length);
@@
   return {
     streams,
-    gridUsers: gridUsers.filter((u) => !streams.find((s) => s.userId === u.userId)),
+    // Still exclude any user that has a webcam stream (even if not rendered on this page)
+    gridUsers: gridUsers.filter((u) => !streams.find((s) => s.userId === u.userId)),
     overflowCount,
-    totalNumberOfStreams: streams.length,
+    totalNumberOfStreams: visibleStreams.length,
     totalNumberOfOtherStreams,
   };

This keeps:

  • Correct grid capacity based on actually rendered tiles.
  • Existing behavior where any user with a webcam stream, even if off-page, doesn’t show up as a grid-only user.
🧹 Nitpick comments (1)
bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx (1)

318-319: LGTM! Setting extraction is correctly scoped.

The extraction of syncCameraDockSizeAndPosition is appropriately placed within the non-presenter block, as this setting only affects viewer behavior.

As per SonarCloud, consider using globalThis instead of window for better cross-environment compatibility:

-      const { syncCameraDockSizeAndPosition } = window.meetingClientSettings.public.layout;
+      const { syncCameraDockSizeAndPosition } = globalThis.meetingClientSettings.public.layout;
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2ace5f0 and 7068683.

📒 Files selected for processing (5)
  • bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx (1 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (1 hunks)
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx (4 hunks)
  • bigbluebutton-html5/private/config/settings.yml (2 hunks)
  • bigbluebutton-html5/public/locales/en.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • bigbluebutton-html5/imports/ui/components/video-provider/video-list/component.tsx
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-10-15T17:52:37.432Z
Learnt from: guiiBecker
Repo: bigbluebutton/bigbluebutton PR: 24084
File: bigbluebutton-html5/public/locales/pt.json:323-323
Timestamp: 2025-10-15T17:52:37.432Z
Learning: Translation issues in locale files (bigbluebutton-html5/public/locales/*.json) should be updated in Transifex, the translation management platform used by the BigBlueButton project, rather than being fixed directly in pull requests.

Applied to files:

  • bigbluebutton-html5/public/locales/en.json
📚 Learning: 2025-05-09T14:36:13.418Z
Learnt from: gustavotrott
Repo: bigbluebutton/bigbluebutton PR: 23137
File: bbb-graphql-server/bbb_schema.sql:2022-2027
Timestamp: 2025-05-09T14:36:13.418Z
Learning: User acknowledged that adding an ORDER BY clause to the DISTINCT ON query in v_breakoutRoom_commonProperties view makes sense but deferred implementation since "startedAt" values are mostly the same for all rooms.

Applied to files:

  • bigbluebutton-html5/private/config/settings.yml
🧬 Code graph analysis (2)
bigbluebutton-html5/imports/ui/components/video-provider/hooks/index.ts (3)
bigbluebutton-html5/imports/ui/components/video-provider/stream-sorting.ts (2)
  • getSortingMethod (158-160)
  • sortVideoStreams (162-166)
bigbluebutton-html5/imports/utils/array-utils.ts (1)
  • partition (8-11)
bigbluebutton-html5/imports/ui/components/video-provider/types.ts (1)
  • StreamItem (75-75)
bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx (1)
bigbluebutton-html5/imports/ui/components/layout/enums.js (2)
  • LAYOUT_ELEMENTS (44-50)
  • LAYOUT_ELEMENTS (44-50)
🪛 GitHub Check: SonarCloud Code Analysis
bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx

[warning] 318-318: Prefer globalThis over window.

See more on https://sonarcloud.io/project/issues?id=bigbluebutton_bigbluebutton&issues=AZrfPxA-YqGoADY7w5S-&open=AZrfPxA-YqGoADY7w5S-&pullRequest=24250

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: build-package (bbb-html5)
🔇 Additional comments (4)
bigbluebutton-html5/public/locales/en.json (1)

1343-1343: Update translation keys via Transifex, not directly in PR.

Translation changes in locale files should be managed through Transifex (the BigBlueButton project's translation platform) rather than submitted directly in pull requests. Please remove this key from the JSON file and follow the project's translation workflow instead.

Based on learnings from similar PRs (e.g., PR 24084), translation management in BigBlueButton is centralized in Transifex. Direct edits to locale JSON files circumvent the translation review and localization process.

⛔ Skipped due to learnings
Learnt from: guiiBecker
Repo: bigbluebutton/bigbluebutton PR: 24084
File: bigbluebutton-html5/public/locales/pt.json:323-323
Timestamp: 2025-10-15T17:52:37.432Z
Learning: Translation issues in locale files (bigbluebutton-html5/public/locales/*.json) should be updated in Transifex, the translation management platform used by the BigBlueButton project, rather than being fixed directly in pull requests.
Learnt from: guiiBecker
Repo: bigbluebutton/bigbluebutton PR: 24084
File: bigbluebutton-html5/public/locales/ja.json:723-727
Timestamp: 2025-10-15T17:57:46.195Z
Learning: In the bigbluebutton repository, locale files (e.g., public/locales/*.json) are managed through Transifex and should not be edited directly in pull requests. Translation corrections and updates should be made in Transifex, which then syncs to the repository.
bigbluebutton-html5/private/config/settings.yml (2)

494-494: LGTM! Documentation for new sorting mode.

The addition of 'PRESENTER_LOCAL_PINNED' to the documented camera sorting modes aligns with the PR objectives. The default sorting values remain unchanged, addressing the previous concern about maintaining backward compatibility.


820-820: Verify the default value aligns with expected UX.

The new syncCameraDockSizeAndPosition setting defaults to false, which changes the existing behavior. Previously, camera dock size and position were always synchronized from presenter to viewers (when the layout mode supported it). With this change, synchronization becomes opt-in.

This gives viewers more autonomy but represents a breaking change in the default UX. Please confirm this default aligns with the intended user experience for 3.0.

bigbluebutton-html5/imports/ui/components/layout/push-layout/pushLayoutEngine.jsx (1)

327-334: LGTM! Conditional gating correctly implements the new behavior.

The logic correctly gates camera dock position and size replication based on the syncCameraDockSizeAndPosition setting while preserving unconditional replication of presentation state and focused camera. The nested checks for layoutReplicateElements are maintained, ensuring proper element-level control.

@antobinary antobinary mentioned this pull request Dec 9, 2025
@github-actions

github-actions Bot commented Dec 9, 2025

Copy link
Copy Markdown

Automated tests Summary

✅ All the CI tests have passed!

@antobinary antobinary changed the title Layout System Revamp (Camera sorting and pagination) feat: Layout System Revamp (Camera sorting and pagination) Dec 9, 2025
@antobinary
antobinary merged commit 7365112 into bigbluebutton:v3.0.x-release Dec 9, 2025
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