Skip to content

Conversation

@gabriellsh
Copy link
Member

@gabriellsh gabriellsh commented Nov 26, 2025

Proposed changes (including videos or screenshots)

Issue(s)

VGA-90

Steps to test or reproduce

Further comments

Summary by CodeRabbit

Refactor

  • Consolidated internal room toolbox context and type definitions into a shared UI contexts module, improving code organization and reducing duplication across the codebase.
  • Unified context imports across multiple components to use a single centralized source, enhancing maintainability and consistency.

✏️ Tip: You can customize this high-level summary in your review settings.

@gabriellsh gabriellsh requested a review from a team as a code owner November 26, 2025 17:11
@dionisio-bot
Copy link
Contributor

dionisio-bot bot commented Nov 26, 2025

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is targeting the wrong base branch. It should target 7.14.0, but it targets 7.13.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link

changeset-bot bot commented Nov 26, 2025

⚠️ No Changeset found

Latest commit: 4ae083b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 26, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The PR consolidates RoomToolboxContext, useRoomToolbox, and related types from scattered local module paths into a centralized public package export at @rocket.chat/ui-contexts. This refactoring moves the implementation to the ui-contexts package and updates 70+ consuming files to import from the new public location.

Changes

Cohort / File(s) Summary
UI Contexts Package (Implementation)
packages/ui-contexts/src/RoomToolboxContext.ts, packages/ui-contexts/src/hooks/useRoomToolbox.ts, packages/ui-contexts/src/index.ts, packages/ui-contexts/package.json
Extracted useRoomToolbox hook to dedicated module file; re-exported RoomToolboxContext, RoomToolboxContextValue, RoomToolboxActionConfig, RenderToolboxItemParams, and new useRoomToolbox from public index; added dev dependencies for fuselage and icons.
Room Action Hooks
apps/meteor/client/hooks/roomActions/use*.ts (23 files)
Updated import source for RoomToolboxActionConfig type from local ../../views/room/contexts/RoomToolboxContext to @rocket.chat/ui-contexts.
Components Using useRoomToolbox
apps/meteor/client/apps/gameCenter/GameCenter.tsx, apps/meteor/client/components/Contextualbar/ContextualbarDialog.tsx, apps/meteor/client/views/room/Header/RoomTitle.tsx, apps/meteor/client/views/room/MemberListRouter.tsx, apps/meteor/client/views/room/Room.tsx, apps/meteor/client/views/room/body/RoomBody.tsx, apps/meteor/client/views/room/body/RoomBodyV2.tsx, and 20+ others
Replaced local RoomToolboxContext imports with public useRoomToolbox hook import from @rocket.chat/ui-contexts.
RoomToolbox Header Components
apps/meteor/client/views/room/Header/RoomToolbox/*.tsx, apps/meteor/client/views/room/HeaderV2/RoomToolbox/*.tsx
Updated imports for useRoomToolbox, RoomToolboxActionConfig, RenderToolboxItemParams, and RoomToolboxContextValue from local context module to @rocket.chat/ui-contexts.
Contextual Bar & Room Views
apps/meteor/client/views/room/contextualBar/**/*.tsx, apps/meteor/client/views/room/providers/*.tsx, apps/meteor/client/views/teams/contextualBar/**/*.tsx
Consolidated imports of useRoomToolbox from local RoomToolboxContext to public @rocket.chat/ui-contexts module.
Omnichannel Views
apps/meteor/client/views/omnichannel/**/*RoomAction.ts, apps/meteor/client/views/omnichannel/cannedResponses/**/*.tsx, apps/meteor/client/views/omnichannel/contactInfo/ContactInfoRouter.tsx, apps/meteor/client/views/omnichannel/directory/**/*.tsx
Updated RoomToolboxActionConfig or useRoomToolbox imports from local paths to @rocket.chat/ui-contexts.
UI Module Exports & Tests
apps/meteor/client/ui.ts, apps/meteor/client/views/room/Header/RoomToolbox/hooks/useRoomToolboxActions.spec.ts, apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts, apps/meteor/client/views/omnichannel/cannedResponses/contextualBar/CannedResponse/CannedResponseList.spec.tsx
Updated import paths and mock references for RoomToolboxContext and RoomToolboxActionConfig types; adjusted mock setup to use ui-contexts exports.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

  • Volume & Consistency: 70+ files with repetitive import-path changes across diverse modules (hooks, components, views, tests); verifying consistency across this breadth requires careful attention.
  • UI Contexts Package Changes: Hook extraction and re-export structure in packages/ui-contexts requires verification that all public exports are correct and no breaking changes occur.
  • Potential Areas for Extra Attention:
    • Verify all 23 room action hooks correctly import RoomToolboxActionConfig from the new location
    • Confirm mock updates in test files (*.spec.tsx, *.spec.ts) correctly reference the new ui-contexts module path
    • Check that circular dependency risks are eliminated by centralizing context in ui-contexts
    • Validate that the new useRoomToolbox.ts hook file in ui-contexts package is properly exported and accessible to all consumers

Possibly related PRs

Suggested labels

stat: ready to merge, stat: QA assured

Suggested reviewers

  • ggazzo
  • tassoevan
  • dougfabris

Poem

🐰 A toolbox context, once scattered about,
Now lives in one home, no doubt about doubt!
Seventy files now import with one name,
The centralized UI—refactored with aim. ✨

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and accurately describes the main objective of the PR - moving RoomToolboxContext to the ui-contexts package, which is the primary change across all modified files.
Linked Issues check ✅ Passed The PR successfully implements the objective of moving RoomToolboxContext to the ui-contexts package as indicated by VGA-90. All related types and hooks are exported from the public package, and all files have been updated to import from the new location.
Out of Scope Changes check ✅ Passed All changes are directly related to moving RoomToolboxContext to ui-contexts. Added dev dependencies (@rocket.chat/fuselage and @rocket.chat/icons) in packages/ui-contexts/package.json appear necessary for supporting the moved context exports. No unrelated modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

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 (1)
apps/meteor/client/views/room/MemberListRouter.tsx (1)

2-2: MemberListRouter: toolbox/user context import migration is consistent

Importing both useUserId and useRoomToolbox from @rocket.chat/ui-contexts matches the centralized contexts approach and keeps the existing behavior of routing between RoomMembers and UserInfo unchanged.

One minor optional clean‑up you might consider (not required for this PR): call useRoomToolbox() once and destructure { tab, context: username, closeTab } from a single hook invocation to avoid redundant hook calls.

Please verify the member list/user info contextual bar still opens and closes correctly (especially the back/close flows) after this import/source change.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Jira integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between a20c1cc and 98a1eb7.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (90)
  • apps/meteor/client/apps/gameCenter/GameCenter.tsx (1 hunks)
  • apps/meteor/client/components/Contextualbar/ContextualbarDialog.tsx (1 hunks)
  • apps/meteor/client/hooks/roomActions/useAppsRoomStarActions.tsx (1 hunks)
  • apps/meteor/client/hooks/roomActions/useAutotranslateRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useCallsRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useChannelSettingsRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useCleanHistoryRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useDiscussionsRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useE2EERoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useExportMessagesRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useGameCenterRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useKeyboardShortcutListRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useMediaCallRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useMembersListRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useMentionsRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useOTRRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useOutlookCalenderRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/usePinnedMessagesRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/usePushNotificationsRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useRocketSearchRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useStarredMessagesRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useTeamChannelsRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useTeamInfoRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useThreadRoomAction.tsx (1 hunks)
  • apps/meteor/client/hooks/roomActions/useUploadedFilesListRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useUserInfoGroupRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useUserInfoRoomAction.ts (1 hunks)
  • apps/meteor/client/hooks/roomActions/useVideoCallRoomAction.tsx (1 hunks)
  • apps/meteor/client/hooks/roomActions/useWebRTCVideoRoomAction.ts (1 hunks)
  • apps/meteor/client/ui.ts (1 hunks)
  • apps/meteor/client/views/omnichannel/cannedResponses/contextualBar/CannedResponse/CannedResponseList.spec.tsx (1 hunks)
  • apps/meteor/client/views/omnichannel/cannedResponses/contextualBar/CannedResponse/CannedResponseList.tsx (1 hunks)
  • apps/meteor/client/views/omnichannel/cannedResponses/contextualBar/CannedResponse/WrapCannedResponseList.tsx (1 hunks)
  • apps/meteor/client/views/omnichannel/contactInfo/ContactInfoRouter.tsx (1 hunks)
  • apps/meteor/client/views/omnichannel/directory/calls/contextualBar/CallsContextualBarRoom.tsx (1 hunks)
  • apps/meteor/client/views/omnichannel/directory/chats/ChatInfo/ChatsContextualBar.tsx (1 hunks)
  • apps/meteor/client/views/omnichannel/hooks/useCannedResponsesRoomAction.ts (1 hunks)
  • apps/meteor/client/views/omnichannel/hooks/useContactProfileRoomAction.ts (1 hunks)
  • apps/meteor/client/views/omnichannel/hooks/useOmnichannelExternalFrameRoomAction.ts (1 hunks)
  • apps/meteor/client/views/omnichannel/hooks/useRoomInfoRoomAction.ts (1 hunks)
  • apps/meteor/client/views/omnichannel/hooks/useVoIPRoomInfoRoomAction.ts (1 hunks)
  • apps/meteor/client/views/outlookCalendar/OutlookEventsRoute.tsx (1 hunks)
  • apps/meteor/client/views/room/Header/RoomTitle.tsx (1 hunks)
  • apps/meteor/client/views/room/Header/RoomToolbox/RoomToolbox.tsx (1 hunks)
  • apps/meteor/client/views/room/Header/RoomToolbox/RoomToolboxE2EESetup.tsx (1 hunks)
  • apps/meteor/client/views/room/Header/RoomToolbox/hooks/useRoomToolboxActions.spec.ts (1 hunks)
  • apps/meteor/client/views/room/Header/RoomToolbox/hooks/useRoomToolboxActions.ts (1 hunks)
  • apps/meteor/client/views/room/HeaderV2/RoomTitle.tsx (1 hunks)
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/RoomToolbox.tsx (1 hunks)
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/RoomToolboxE2EESetup.tsx (1 hunks)
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/hooks/useRoomToolboxActions.spec.ts (1 hunks)
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/hooks/useRoomToolboxActions.ts (1 hunks)
  • apps/meteor/client/views/room/MemberListRouter.tsx (1 hunks)
  • apps/meteor/client/views/room/Room.tsx (1 hunks)
  • apps/meteor/client/views/room/body/RoomBody.tsx (1 hunks)
  • apps/meteor/client/views/room/body/RoomBodyV2.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/AutoTranslate/AutoTranslateWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/Discussions/DiscussionsListContextBar.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/ExportMessages/ExportMessages.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/Info/EditRoomInfo/EditRoomInfoWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/Info/RoomInfoRouter.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/KeyboardShortcuts/KeyboardShortcutsWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/MessageListTab.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/MessageSearchTab/MessageSearchTab.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/NotificationPreferences/NotificationPreferencesWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/OTR/OTRWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/PruneMessages/PruneMessagesWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/RoomFiles/RoomFilesWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/RoomMembers/AddUsers/AddUsers.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/RoomMembers/InviteUsers/InviteUsersWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/Threads/Thread.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/Threads/ThreadList.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/Threads/Threads.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/Threads/components/ThreadChat.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/VideoConference/VideoConfList/VideoConfListWithData.tsx (1 hunks)
  • apps/meteor/client/views/room/contextualBar/uikit/UiKitContextualBar.tsx (1 hunks)
  • apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts (1 hunks)
  • apps/meteor/client/views/room/hooks/useAppsContextualBar.ts (1 hunks)
  • apps/meteor/client/views/room/lib/getRoomGroup.ts (1 hunks)
  • apps/meteor/client/views/room/providers/RoomToolboxProvider.tsx (1 hunks)
  • apps/meteor/client/views/room/providers/UserCardProvider.tsx (1 hunks)
  • apps/meteor/client/views/room/providers/hooks/useAppsRoomActions.ts (1 hunks)
  • apps/meteor/client/views/room/providers/hooks/useCoreRoomActions.ts (1 hunks)
  • apps/meteor/client/views/teams/contextualBar/channels/TeamsChannelsWithData.tsx (1 hunks)
  • apps/meteor/client/views/teams/contextualBar/info/TeamsInfoWithData.tsx (1 hunks)
  • packages/ui-contexts/package.json (1 hunks)
  • packages/ui-contexts/src/RoomToolboxContext.ts (1 hunks)
  • packages/ui-contexts/src/hooks/useRoomToolbox.ts (1 hunks)
  • packages/ui-contexts/src/index.ts (2 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.{ts,tsx,js}: Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests
Avoid code comments in the implementation

Files:

  • apps/meteor/client/views/room/contextualBar/RoomFiles/RoomFilesWithData.tsx
  • apps/meteor/client/hooks/roomActions/useRocketSearchRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useCallsRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useCleanHistoryRoomAction.ts
  • apps/meteor/client/apps/gameCenter/GameCenter.tsx
  • apps/meteor/client/views/room/Header/RoomToolbox/hooks/useRoomToolboxActions.spec.ts
  • apps/meteor/client/views/outlookCalendar/OutlookEventsRoute.tsx
  • apps/meteor/client/views/room/providers/hooks/useCoreRoomActions.ts
  • apps/meteor/client/hooks/roomActions/useAppsRoomStarActions.tsx
  • packages/ui-contexts/src/hooks/useRoomToolbox.ts
  • apps/meteor/client/views/room/contextualBar/Discussions/DiscussionsListContextBar.tsx
  • apps/meteor/client/views/omnichannel/hooks/useCannedResponsesRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useE2EERoomAction.ts
  • apps/meteor/client/hooks/roomActions/useUserInfoRoomAction.ts
  • apps/meteor/client/views/room/Header/RoomToolbox/RoomToolbox.tsx
  • apps/meteor/client/hooks/roomActions/useTeamChannelsRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/Info/RoomInfoRouter.tsx
  • apps/meteor/client/views/omnichannel/cannedResponses/contextualBar/CannedResponse/CannedResponseList.tsx
  • apps/meteor/client/views/room/contextualBar/AutoTranslate/AutoTranslateWithData.tsx
  • apps/meteor/client/views/room/contextualBar/PruneMessages/PruneMessagesWithData.tsx
  • packages/ui-contexts/src/index.ts
  • apps/meteor/client/views/room/Header/RoomToolbox/RoomToolboxE2EESetup.tsx
  • apps/meteor/client/views/omnichannel/hooks/useOmnichannelExternalFrameRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useStarredMessagesRoomAction.ts
  • apps/meteor/client/hooks/roomActions/usePinnedMessagesRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/OTR/OTRWithData.tsx
  • apps/meteor/client/views/teams/contextualBar/channels/TeamsChannelsWithData.tsx
  • apps/meteor/client/views/room/Header/RoomToolbox/hooks/useRoomToolboxActions.ts
  • apps/meteor/client/views/room/body/RoomBodyV2.tsx
  • apps/meteor/client/views/room/lib/getRoomGroup.ts
  • apps/meteor/client/views/omnichannel/cannedResponses/contextualBar/CannedResponse/CannedResponseList.spec.tsx
  • apps/meteor/client/views/room/body/RoomBody.tsx
  • apps/meteor/client/hooks/roomActions/useMentionsRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersWithData.tsx
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/RoomToolboxE2EESetup.tsx
  • apps/meteor/client/views/omnichannel/hooks/useContactProfileRoomAction.ts
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/hooks/useRoomToolboxActions.ts
  • apps/meteor/client/views/omnichannel/directory/chats/ChatInfo/ChatsContextualBar.tsx
  • apps/meteor/client/hooks/roomActions/useMembersListRoomAction.ts
  • apps/meteor/client/views/room/Header/RoomTitle.tsx
  • apps/meteor/client/views/omnichannel/contactInfo/ContactInfoRouter.tsx
  • apps/meteor/client/views/room/contextualBar/Threads/Thread.tsx
  • apps/meteor/client/views/room/MemberListRouter.tsx
  • apps/meteor/client/views/room/Room.tsx
  • packages/ui-contexts/src/RoomToolboxContext.ts
  • apps/meteor/client/views/room/contextualBar/NotificationPreferences/NotificationPreferencesWithData.tsx
  • apps/meteor/client/views/room/contextualBar/MessageListTab.tsx
  • apps/meteor/client/views/room/contextualBar/uikit/UiKitContextualBar.tsx
  • apps/meteor/client/views/room/providers/UserCardProvider.tsx
  • apps/meteor/client/views/room/contextualBar/KeyboardShortcuts/KeyboardShortcutsWithData.tsx
  • apps/meteor/client/hooks/roomActions/usePushNotificationsRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/MessageSearchTab/MessageSearchTab.tsx
  • apps/meteor/client/hooks/roomActions/useUserInfoGroupRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/RoomMembers/InviteUsers/InviteUsersWithData.tsx
  • apps/meteor/client/hooks/roomActions/useTeamInfoRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useThreadRoomAction.tsx
  • apps/meteor/client/components/Contextualbar/ContextualbarDialog.tsx
  • apps/meteor/client/views/room/contextualBar/Threads/components/ThreadChat.tsx
  • apps/meteor/client/views/room/contextualBar/VideoConference/VideoConfList/VideoConfListWithData.tsx
  • apps/meteor/client/hooks/roomActions/useOutlookCalenderRoomAction.ts
  • apps/meteor/client/views/room/hooks/useAppsContextualBar.ts
  • apps/meteor/client/views/room/contextualBar/Threads/Threads.tsx
  • apps/meteor/client/hooks/roomActions/useMediaCallRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/ExportMessages/ExportMessages.tsx
  • apps/meteor/client/hooks/roomActions/useAutotranslateRoomAction.ts
  • apps/meteor/client/views/room/providers/hooks/useAppsRoomActions.ts
  • apps/meteor/client/hooks/roomActions/useDiscussionsRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useOTRRoomAction.ts
  • apps/meteor/client/views/omnichannel/cannedResponses/contextualBar/CannedResponse/WrapCannedResponseList.tsx
  • apps/meteor/client/views/teams/contextualBar/info/TeamsInfoWithData.tsx
  • apps/meteor/client/views/room/providers/RoomToolboxProvider.tsx
  • apps/meteor/client/hooks/roomActions/useWebRTCVideoRoomAction.ts
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/RoomToolbox.tsx
  • apps/meteor/client/views/omnichannel/directory/calls/contextualBar/CallsContextualBarRoom.tsx
  • apps/meteor/client/views/room/HeaderV2/RoomTitle.tsx
  • apps/meteor/client/hooks/roomActions/useVideoCallRoomAction.tsx
  • apps/meteor/client/views/room/contextualBar/RoomMembers/AddUsers/AddUsers.tsx
  • apps/meteor/client/ui.ts
  • apps/meteor/client/views/omnichannel/hooks/useRoomInfoRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useChannelSettingsRoomAction.ts
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/hooks/useRoomToolboxActions.spec.ts
  • apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts
  • apps/meteor/client/views/omnichannel/hooks/useVoIPRoomInfoRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useGameCenterRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/Info/EditRoomInfo/EditRoomInfoWithData.tsx
  • apps/meteor/client/hooks/roomActions/useUploadedFilesListRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useExportMessagesRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/Threads/ThreadList.tsx
  • apps/meteor/client/hooks/roomActions/useKeyboardShortcutListRoomAction.ts
**/*.spec.ts

📄 CodeRabbit inference engine (.cursor/rules/playwright.mdc)

**/*.spec.ts: Use descriptive test names that clearly communicate expected behavior in Playwright tests
Use .spec.ts extension for test files (e.g., login.spec.ts)

Files:

  • apps/meteor/client/views/room/Header/RoomToolbox/hooks/useRoomToolboxActions.spec.ts
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/hooks/useRoomToolboxActions.spec.ts
  • apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts
🧠 Learnings (15)
📓 Common learnings
Learnt from: d-gubert
Repo: RocketChat/Rocket.Chat PR: 37547
File: packages/i18n/src/locales/en.i18n.json:634-634
Timestamp: 2025-11-19T12:32:29.696Z
Learning: Repo: RocketChat/Rocket.Chat
Context: i18n workflow
Learning: In this repository, new translation keys should be added to packages/i18n/src/locales/en.i18n.json only; other locale files are populated via the external translation pipeline and/or fall back to English. Do not request adding the same key to all locale files in future reviews.
📚 Learning: 2025-10-28T16:53:42.761Z
Learnt from: ricardogarim
Repo: RocketChat/Rocket.Chat PR: 37205
File: ee/packages/federation-matrix/src/FederationMatrix.ts:296-301
Timestamp: 2025-10-28T16:53:42.761Z
Learning: In the Rocket.Chat federation-matrix integration (ee/packages/federation-matrix/), the createRoom method from rocket.chat/federation-sdk will support a 4-argument signature (userId, roomName, visibility, displayName) in newer versions. Code using this 4-argument call is forward-compatible with planned library updates and should not be flagged as an error.

Applied to files:

  • apps/meteor/client/hooks/roomActions/useRocketSearchRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useCallsRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useCleanHistoryRoomAction.ts
  • apps/meteor/client/apps/gameCenter/GameCenter.tsx
  • apps/meteor/client/views/room/providers/hooks/useCoreRoomActions.ts
  • apps/meteor/client/hooks/roomActions/useAppsRoomStarActions.tsx
  • apps/meteor/client/views/omnichannel/hooks/useCannedResponsesRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useE2EERoomAction.ts
  • apps/meteor/client/hooks/roomActions/useUserInfoRoomAction.ts
  • apps/meteor/client/views/room/Header/RoomToolbox/RoomToolbox.tsx
  • apps/meteor/client/hooks/roomActions/useTeamChannelsRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/Info/RoomInfoRouter.tsx
  • apps/meteor/client/hooks/roomActions/useStarredMessagesRoomAction.ts
  • apps/meteor/client/hooks/roomActions/usePinnedMessagesRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/OTR/OTRWithData.tsx
  • apps/meteor/client/views/room/body/RoomBodyV2.tsx
  • apps/meteor/client/views/room/lib/getRoomGroup.ts
  • apps/meteor/client/views/room/body/RoomBody.tsx
  • apps/meteor/client/hooks/roomActions/useMentionsRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersWithData.tsx
  • apps/meteor/client/views/omnichannel/hooks/useContactProfileRoomAction.ts
  • apps/meteor/client/views/omnichannel/directory/chats/ChatInfo/ChatsContextualBar.tsx
  • apps/meteor/client/hooks/roomActions/useMembersListRoomAction.ts
  • apps/meteor/client/views/room/MemberListRouter.tsx
  • apps/meteor/client/views/room/Room.tsx
  • apps/meteor/client/views/room/contextualBar/NotificationPreferences/NotificationPreferencesWithData.tsx
  • apps/meteor/client/views/room/contextualBar/uikit/UiKitContextualBar.tsx
  • apps/meteor/client/hooks/roomActions/usePushNotificationsRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useUserInfoGroupRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/RoomMembers/InviteUsers/InviteUsersWithData.tsx
  • apps/meteor/client/hooks/roomActions/useTeamInfoRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useThreadRoomAction.tsx
  • apps/meteor/client/hooks/roomActions/useOutlookCalenderRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/Threads/Threads.tsx
  • apps/meteor/client/views/room/contextualBar/ExportMessages/ExportMessages.tsx
  • apps/meteor/client/hooks/roomActions/useAutotranslateRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useDiscussionsRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useOTRRoomAction.ts
  • apps/meteor/client/views/room/providers/RoomToolboxProvider.tsx
  • apps/meteor/client/hooks/roomActions/useWebRTCVideoRoomAction.ts
  • apps/meteor/client/views/omnichannel/directory/calls/contextualBar/CallsContextualBarRoom.tsx
  • apps/meteor/client/views/room/HeaderV2/RoomTitle.tsx
  • apps/meteor/client/hooks/roomActions/useVideoCallRoomAction.tsx
  • apps/meteor/client/views/room/contextualBar/RoomMembers/AddUsers/AddUsers.tsx
  • apps/meteor/client/ui.ts
  • apps/meteor/client/views/omnichannel/hooks/useRoomInfoRoomAction.ts
  • apps/meteor/client/views/omnichannel/hooks/useVoIPRoomInfoRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useGameCenterRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/Info/EditRoomInfo/EditRoomInfoWithData.tsx
  • apps/meteor/client/hooks/roomActions/useExportMessagesRoomAction.ts
📚 Learning: 2025-11-04T16:49:19.107Z
Learnt from: ricardogarim
Repo: RocketChat/Rocket.Chat PR: 37377
File: apps/meteor/ee/server/hooks/federation/index.ts:86-88
Timestamp: 2025-11-04T16:49:19.107Z
Learning: In Rocket.Chat's federation system (apps/meteor/ee/server/hooks/federation/), permission checks follow two distinct patterns: (1) User-initiated federation actions (creating rooms, adding users to federated rooms, joining from invites) should throw MeteorError to inform users they lack 'access-federation' permission. (2) Remote server-initiated federation events should silently skip/ignore when users lack permission. The beforeAddUserToRoom hook only executes for local user-initiated actions, so throwing an error there is correct. Remote federation events are handled separately by the federation Matrix package with silent skipping logic.

Applied to files:

  • apps/meteor/client/hooks/roomActions/useCleanHistoryRoomAction.ts
  • apps/meteor/client/views/room/contextualBar/RoomMembers/RoomMembersWithData.tsx
  • apps/meteor/client/hooks/roomActions/useMembersListRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useVideoCallRoomAction.tsx
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Utilize Playwright fixtures (`test`, `page`, `expect`) for consistency in test files

Applied to files:

  • apps/meteor/client/views/room/Header/RoomToolbox/hooks/useRoomToolboxActions.spec.ts
  • apps/meteor/client/views/omnichannel/cannedResponses/contextualBar/CannedResponse/CannedResponseList.spec.tsx
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/hooks/useRoomToolboxActions.spec.ts
  • apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Ensure tests run reliably in parallel without shared state conflicts

Applied to files:

  • apps/meteor/client/views/room/Header/RoomToolbox/hooks/useRoomToolboxActions.spec.ts
  • apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/page-objects/**/*.ts : Utilize existing page objects pattern from `apps/meteor/tests/e2e/page-objects/`

Applied to files:

  • apps/meteor/client/hooks/roomActions/useE2EERoomAction.ts
  • apps/meteor/client/views/room/Header/RoomToolbox/RoomToolboxE2EESetup.tsx
  • apps/meteor/client/views/room/HeaderV2/RoomToolbox/RoomToolboxE2EESetup.tsx
  • apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts
📚 Learning: 2025-11-19T12:32:29.696Z
Learnt from: d-gubert
Repo: RocketChat/Rocket.Chat PR: 37547
File: packages/i18n/src/locales/en.i18n.json:634-634
Timestamp: 2025-11-19T12:32:29.696Z
Learning: Repo: RocketChat/Rocket.Chat
Context: i18n workflow
Learning: In this repository, new translation keys should be added to packages/i18n/src/locales/en.i18n.json only; other locale files are populated via the external translation pipeline and/or fall back to English. Do not request adding the same key to all locale files in future reviews.

Applied to files:

  • apps/meteor/client/views/room/contextualBar/AutoTranslate/AutoTranslateWithData.tsx
  • packages/ui-contexts/package.json
  • apps/meteor/client/hooks/roomActions/useMediaCallRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useAutotranslateRoomAction.ts
📚 Learning: 2025-11-19T18:20:07.720Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 37419
File: packages/i18n/src/locales/en.i18n.json:918-921
Timestamp: 2025-11-19T18:20:07.720Z
Learning: Repo: RocketChat/Rocket.Chat — i18n/formatting
Learning: This repository uses a custom message formatting parser in UI blocks/messages; do not assume standard Markdown rules. For keys like Call_ended_bold, Call_not_answered_bold, Call_failed_bold, and Call_transferred_bold in packages/i18n/src/locales/en.i18n.json, retain the existing single-asterisk emphasis unless maintainers request otherwise.

Applied to files:

  • apps/meteor/client/hooks/roomActions/useStarredMessagesRoomAction.ts
  • apps/meteor/client/hooks/roomActions/useMediaCallRoomAction.ts
📚 Learning: 2025-09-25T09:59:26.461Z
Learnt from: Dnouv
Repo: RocketChat/Rocket.Chat PR: 37057
File: packages/apps-engine/src/definition/accessors/IUserRead.ts:23-27
Timestamp: 2025-09-25T09:59:26.461Z
Learning: AppUserBridge.getUserRoomIds in apps/meteor/app/apps/server/bridges/users.ts always returns an array of strings (mapping subscription documents to room IDs), never undefined, even when user has no room subscriptions.

Applied to files:

  • apps/meteor/client/views/room/lib/getRoomGroup.ts
📚 Learning: 2025-09-25T09:59:26.461Z
Learnt from: Dnouv
Repo: RocketChat/Rocket.Chat PR: 37057
File: packages/apps-engine/src/definition/accessors/IUserRead.ts:23-27
Timestamp: 2025-09-25T09:59:26.461Z
Learning: AppUserBridge.getUserRoomIds in apps/meteor/app/apps/server/bridges/users.ts always returns an array of strings by mapping subscription documents to room IDs, never undefined, even when user has no room subscriptions.

Applied to files:

  • apps/meteor/client/views/room/lib/getRoomGroup.ts
📚 Learning: 2025-11-17T22:38:48.631Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 37505
File: packages/i18n/src/locales/en.i18n.json:3765-3765
Timestamp: 2025-11-17T22:38:48.631Z
Learning: Rocket.Chat i18n copy: Keep sentence case for the value of "Notification_Desktop_show_voice_calls" in packages/i18n/src/locales/en.i18n.json (“Show desktop notifications for voice calls”) per design directive; do not change to Title Case even if nearby labels differ.

Applied to files:

  • apps/meteor/client/views/room/contextualBar/NotificationPreferences/NotificationPreferencesWithData.tsx
📚 Learning: 2025-11-17T14:30:36.271Z
Learnt from: tassoevan
Repo: RocketChat/Rocket.Chat PR: 37491
File: packages/desktop-api/src/index.ts:17-27
Timestamp: 2025-11-17T14:30:36.271Z
Learning: In the Rocket.Chat desktop API (`packages/desktop-api/src/index.ts`), the `CustomNotificationOptions` type has an optional `id` field by design. Custom notifications dispatched without an ID cannot be closed programmatically using `closeCustomNotification`, and this is intentional.

Applied to files:

  • apps/meteor/client/views/room/contextualBar/NotificationPreferences/NotificationPreferencesWithData.tsx
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Maintain test isolation between test cases in Playwright tests

Applied to files:

  • apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Use `expect` matchers for assertions (`toEqual`, `toContain`, `toBeTruthy`, `toHaveLength`, etc.) instead of `assert` statements in Playwright tests

Applied to files:

  • apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts
📚 Learning: 2025-11-24T17:08:17.065Z
Learnt from: CR
Repo: RocketChat/Rocket.Chat PR: 0
File: .cursor/rules/playwright.mdc:0-0
Timestamp: 2025-11-24T17:08:17.065Z
Learning: Applies to apps/meteor/tests/e2e/**/*.spec.ts : Ensure clean state for each test execution in Playwright tests

Applied to files:

  • apps/meteor/client/views/room/hooks/useAppsContextualBar.spec.ts
🧬 Code graph analysis (1)
packages/ui-contexts/src/hooks/useRoomToolbox.ts (2)
packages/ui-contexts/src/index.ts (3)
  • useRoomToolbox (61-61)
  • RoomToolboxContextValue (9-9)
  • RoomToolboxContext (9-9)
packages/ui-contexts/src/RoomToolboxContext.ts (2)
  • RoomToolboxContextValue (34-40)
  • RoomToolboxContext (42-46)
⏰ 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). (3)
  • GitHub Check: 📦 Build Packages
  • GitHub Check: CodeQL-Build
  • GitHub Check: CodeQL-Build

@github-actions
Copy link
Contributor

github-actions bot commented Nov 26, 2025

📦 Docker Image Size Report

📈 Changes

Service Current Baseline Change Percent
sum of all images 1.2GiB 1.2GiB +12MiB
rocketchat 358MiB 346MiB +12MiB
omnichannel-transcript-service 132MiB 132MiB +1.1KiB
queue-worker-service 132MiB 132MiB -521B
ddp-streamer-service 127MiB 127MiB +546B
account-service 114MiB 114MiB +1.6KiB
stream-hub-service 111MiB 111MiB -276B
authorization-service 111MiB 111MiB -231B
presence-service 111MiB 111MiB +181B

📊 Historical Trend

---
config:
  theme: "dark"
  xyChart:
    width: 900
    height: 400
---
xychart
  title "Image Size Evolution by Service (Last 30 Days + This PR)"
  x-axis ["11/15 22:28", "11/16 01:28", "11/17 23:50", "11/18 22:53", "11/19 23:02", "11/21 16:49", "11/24 17:34", "11/27 13:35 (PR)"]
  y-axis "Size (GB)" 0 --> 0.5
  line "account-service" [0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11]
  line "authorization-service" [0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11]
  line "ddp-streamer-service" [0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12, 0.12]
  line "omnichannel-transcript-service" [0.14, 0.14, 0.14, 0.14, 0.14, 0.13, 0.13, 0.13]
  line "presence-service" [0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11]
  line "queue-worker-service" [0.14, 0.14, 0.14, 0.14, 0.14, 0.13, 0.13, 0.13]
  line "rocketchat" [0.36, 0.36, 0.35, 0.35, 0.35, 0.34, 0.34, 0.35]
  line "stream-hub-service" [0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11, 0.11]
Loading

Statistics (last 7 days):

  • 📊 Average: 1.5GiB
  • ⬇️ Minimum: 1.2GiB
  • ⬆️ Maximum: 1.6GiB
  • 🎯 Current PR: 1.2GiB
ℹ️ About this report

This report compares Docker image sizes from this build against the develop baseline.

  • Tag: pr-37617
  • Baseline: develop
  • Timestamp: 2025-11-27 13:35:51 UTC
  • Historical data points: 7

Updated: Thu, 27 Nov 2025 13:35:52 GMT

@gabriellsh gabriellsh added this to the 7.14.0 milestone Nov 26, 2025
@tassoevan tassoevan added the stat: QA assured Means it has been tested and approved by a company insider label Nov 27, 2025
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Nov 27, 2025
@kodiakhq kodiakhq bot merged commit 2b304fb into develop Nov 27, 2025
83 of 88 checks passed
@kodiakhq kodiakhq bot deleted the chore/moveRoomToolboxContext branch November 27, 2025 14:40
@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.82%. Comparing base (f5eedbe) to head (4ae083b).
⚠️ Report is 9 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #37617      +/-   ##
===========================================
- Coverage    68.83%   68.82%   -0.01%     
===========================================
  Files         3361     3361              
  Lines       114340   114277      -63     
  Branches     20619    20618       -1     
===========================================
- Hits         78706    78654      -52     
+ Misses       33536    33525      -11     
  Partials      2098     2098              
Flag Coverage Δ
e2e 57.34% <ø> (+<0.01%) ⬆️
e2e-api 42.28% <ø> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants