Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

No description provided.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-14183

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 fixes the duplicated inbox app issue by conditionally rendering inbox apps based on whether the communication feature is enabled. When communication is disabled, it shows the legacy notification-based inbox (notificationId), and when enabled, it shows the modern communication-based inbox (inboxId). The inbox model is marked as hidden: true to prevent automatic rendering through the Applications component, while Workbench manually renders it conditionally.

Key Changes

  • Added conditional rendering logic in Workbench.svelte to show the appropriate inbox app based on isCommunicationEnabled flag
  • Set inbox model's hidden field to true to prevent duplication in the app list
  • Added createNotificationsQuery() for modern inbox notification counting when communication is enabled

Reviewed Changes

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

File Description
plugins/workbench-resources/src/components/Workbench.svelte Implements conditional inbox rendering logic based on communication feature flag, adds notification query for unread count tracking, and updates props/navigation to use dynamic inbox ID
models/inbox/src/index.ts Sets inbox app as hidden in model to prevent automatic rendering through Applications component

ArtyomSavchenko and others added 2 commits November 21, 2025 13:43
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Artyom Savchenko <armisav@gmail.com>
Signed-off-by: Artem Savchenko <armisav@gmail.com>
@ArtyomSavchenko ArtyomSavchenko marked this pull request as ready for review November 21, 2025 07:33
@ArtyomSavchenko ArtyomSavchenko merged commit 4807194 into develop Nov 21, 2025
24 of 26 checks passed
@BykhovDenis BykhovDenis deleted the fix-new-inbox branch November 23, 2025 16:29
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