Skip to content

Conversation

@utkaka
Copy link
Contributor

@utkaka utkaka commented Aug 11, 2025

Removed Office's own logic for device management. Now the Recorder and the Office use common logic and UI components from the Media plugin

Removed Office's own logic for device management. Now the Recorder and the Office use common logic and UI components from the Media plugin

Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13041

@utkaka utkaka requested a review from Copilot August 11, 2025 04:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors device management in the office by extracting common functionality from the Love plugin to the Media plugin. The change consolidates device management logic and UI components to avoid duplication between the Recorder and Office features.

  • Extracted device management components to Media plugin for reuse
  • Refactored Love plugin to use common Media components instead of duplicated code
  • Updated device state management to use shared utilities from Media plugin

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
plugins/media/src/plugin.ts Added component exports for device selector popups
plugins/media-resources/src/utils.ts Added toggle functions for camera and microphone state
plugins/media-resources/src/index.ts Exported new device selector components
plugins/media-resources/src/components/MicStateButton.svelte Refactored to use shared toggle function
plugins/media-resources/src/components/CamStateButton.svelte Refactored to use shared toggle function
plugins/love-resources/src/utils.ts Updated to use Media plugin's device management functions
plugins/love-resources/src/components/meeting/MicSettingPopup.svelte New component using Media plugin components
plugins/love-resources/src/components/meeting/CamSettingPopup.svelte New component using Media plugin components
plugins/love-resources/src/components/RoomPopup.svelte Updated to use shared toggle functions and new popup components
plugins/love-resources/src/components/MicSettingPopup.svelte Removed duplicate component
plugins/love-resources/src/components/ControlBar.svelte Updated to use shared toggle functions and new popup components
plugins/love-resources/src/components/CamSettingPopup.svelte Removed duplicate component

Signed-off-by: Anton Alexeyev <alexeyev.anton@gmail.com>
@aonnikov aonnikov merged commit ea81ec0 into develop Aug 12, 2025
32 of 34 checks passed
@aonnikov aonnikov deleted the office-refactor-device-management branch August 12, 2025 04:21
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.

3 participants