Repository navigation
feat: Layout System Revamp (Camera sorting and pagination) - #24250
antobinary merged 16 commits into
Conversation
WalkthroughAdds a new sorting method Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
Areas needing extra attention:
Pre-merge checks and finishing touches✅ Passed checks (3 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 |
test: Update two webcam tests
There was a problem hiding this comment.
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-labelsUsing
stream.userId === Auth.userIDplusintlMessages.youto builddisplayNameand 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
displayNamein 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 typingThe 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:
getStreamsToConnectAndDisconnectnow hand-buildslocalPrefix, whilegetPrefix()+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 staticgetLocalPrefix()or usingvideoService.getPrefix()inside this method).Address the Sonar warning on
Auth.userID: HereAuth.userIDis interpolated into a string forlocalPrefix. 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 instreamsToDisconnect.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
PresenterButtonwheneverstream.user?.presenteris true and gating thePinButtononpinnedkeeps 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
PresenterButtonplus thecursor: defaultstyling 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
PresenterButtonexplicit to assistive tech, you might also passdisabledthere (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
⛔ Files ignored due to path filters (4)
bigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-home-background-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-home-background-Firefox-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-new-background-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-with-new-background-Firefox-linux.pngis 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.
🔇 Additional comments (5)
bigbluebutton-html5/private/config/settings.yml (1)
491-495: Camera sorting modes comment updated consistentlyIncluding
PRESENTER_LOCAL_PINNEDin the documented sorting modes matches the new configuration and avoids ambiguity for admins tweakingcameraSortingModes.bigbluebutton-html5/public/locales/en.json (1)
1342-1342: Presenter label key aligns with new UI; ensure it’s managed via TransifexThe
"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 appropriateReusing
PinButtonforPresenterButtonwith acursor: defaultand 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
SortingMethodConfigreturn type:
- stream-sorting.ts:163 correctly destructures
sortingMethodfrom the config and uses it in.sort()- hooks/index.ts:406 correctly stores the full config and accesses
customPaginationproperty at line 409No direct
SORTING_METHODSaccess bypasses the config wrapper. The implementation is sound and all usages have been properly updated.The optional stylistic suggestion to reuse
sortByLocalandsortByPinnedis 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:
getSortingMethodreturnsSortingMethodConfigwithsortingMethod,localFirst, and optionalcustomPaginationproperties- 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 readssortingConfig.localFirst- The if-else branch properly routes: custom pagination for
PRESENTER_LOCAL_PINNED(wherecustomPagination: true), original logic for other modesNo breaking changes or incompatibilities. The code change is safe to proceed.
…uebutton into layout-changes-cameras
test: Update screenshots for the layout test
test: Updates screenshots for the webcam mirrored test
…uebutton into layout-changes-cameras
There was a problem hiding this comment.
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 documentingtotalNumberOfOtherStreamsfor clarity.In the custom pagination branch,
totalNumberOfOtherStreamsis 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
⛔ Files ignored due to path filters (7)
bigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-1-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-2-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-3-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-4-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/layouts/layouts.spec.ts-snapshots/user-update-everyone-5-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-mirrored-view-Chromium-linux.pngis excluded by!**/*.pngbigbluebutton-tests/playwright/webcam/webcam.spec.ts-snapshots/webcam-view-Chromium-linux.pngis 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
renderproperty 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
numOfStreamsand the earlyreturn nullfor non-renderable items correctly implements the render gating. React handlesnullreturns 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
localFirstconfig 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: falseis a clean solution. Creating new objects with the spread operator correctly avoids mutation of the original stream objects.
406-428: VerifysortVideoStreamsdoesn't cause re-render instability with index-based filtering.The duplicate stream logic is sound—local streams already in
paginatedStreamswon't be inlocalStreamsNotInPagedue to the index-based filter. However, verify thatsortVideoStreamsreturns 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, |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
This pull request has conflicts ☹ |
|
There was a problem hiding this comment.
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 usingcustomPaginationto avoid under-filling the grid and misreporting totalsWhen
sortingConfig.customPaginationis true,streamsis built as:
paginatedStreams(the page’s visible tiles), pluslocalStreamsWithRenderFlag(local streams outside the current page, markedrender: false).However, at the end of the hook:
useGridUsersis called withstreams.length(Line 464), andtotalNumberOfStreamsis reported asstreams.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.totalNumberOfStreamswill 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
renderflag to distinguish visible from non-renderable items; it’s safer to derive avisibleStreamslist for counts while keepingstreams(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
syncCameraDockSizeAndPositionis appropriately placed within the non-presenter block, as this setting only affects viewer behavior.As per SonarCloud, consider using
globalThisinstead ofwindowfor 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
📒 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.
⏰ 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
syncCameraDockSizeAndPositionsetting defaults tofalse, 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
syncCameraDockSizeAndPositionsetting while preserving unconditional replication of presentation state and focused camera. The nested checks forlayoutReplicateElementsare maintained, ensuring proper element-level control.
Automated tests Summary✅ All the CI tests have passed! |



What does this PR do?
Part of #24186 changes. Implements the following changes to the camera area:
PRESENTER_LOCAL_PINNED(default), which sorts cameras by: presenter -> local camera -> pinned users -> otherssyncCameraDockSizeAndPosition(default:false) to control if camera position and size should be propagated to the presenter to viewerspresenter icon and "you" label
Closes Issue(s)
Closes (partially) #24186
How to test
desktopPageSizesormobilePageSizessettings