Skip to content

Conversation

@aonnikov
Copy link
Member

No description provided.

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13743

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 presence and typing functionality to use Svelte actions instead of manual subscription management. This provides a more declarative approach and cleaner component code by handling subscription lifecycle automatically through the action pattern.

  • Introduces new Svelte action functions (presence and typing) with parameter interfaces
  • Converts components to use the new actions instead of manual subscription handling
  • Removes manual lifecycle management code from components

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
plugins/presence-resources/src/typing.ts Adds TypingActionParams interface and typing Svelte action function
plugins/presence-resources/src/presence.ts Adds PresenceActionParams interface and presence Svelte action function
plugins/presence-resources/src/components/PresenceAvatars.svelte Refactored to use the new presence action instead of manual subscription
plugins/communication-resources/src/components/TypingPresenter.svelte Refactored to use the new typing action instead of manual subscription
plugins/chunter-resources/src/components/ChannelTypingInfo.svelte Refactored to use the new typing action instead of manual subscription

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
@aonnikov aonnikov merged commit 9ae9453 into develop Sep 22, 2025
15 checks passed
@BykhovDenis BykhovDenis deleted the fix-use-presence branch September 26, 2025 17:14
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