Skip to content

refactor: move app/ui-utils client modules - #41924

Open
tassoevan wants to merge 2 commits into
refactor/move-app-slashcommands-client-modulesfrom
refactor/move-app-ui-utils-client-modules
Open

refactor: move app/ui-utils client modules#41924
tassoevan wants to merge 2 commits into
refactor/move-app-slashcommands-client-modulesfrom
refactor/move-app-ui-utils-client-modules

Conversation

@tassoevan

@tassoevan tassoevan commented Aug 24, 2026

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

It moves client modules from app/ui-utils/ to client/.

Issue(s)

Steps to test or reproduce

Further comments


Stack created with GitHub Stacks CLIGive Feedback 💬

Review in cubic

Summary by CodeRabbit

  • Refactor
    • Consolidated message actions, room management, history, and messaging utilities under the client library.
    • Updated internal references and test mocks to use the new utility locations.
    • Removed the legacy utility entry point and its obsolete exports.
    • Added shared definitions for message action configuration and contexts.
  • Bug Fixes
    • Maintained existing messaging, room navigation, history, and toolbar behavior during the utility reorganization.

Task: ARCH-2395

@tassoevan
tassoevan requested a review from a team as a code owner August 24, 2026 20:49
@changeset-bot

changeset-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b18436c

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

@dionisio-bot

dionisio-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

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

  • This PR is missing the 'stat: QA assured' label

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9364fe32-ad49-478f-98b0-851b5a5ed937

📥 Commits

Reviewing files that changed from the base of the PR and between 0867cf8 and 3214c2a.

📒 Files selected for processing (68)
  • apps/meteor/app/ui-utils/client/index.ts
  • apps/meteor/client/components/message/MessageToolbarHolder.tsx
  • apps/meteor/client/components/message/hooks/useMarkAsUnreadMutation.ts
  • apps/meteor/client/components/message/toolbar/MessageToolbar.tsx
  • apps/meteor/client/components/message/toolbar/MessageToolbarActionMenu.tsx
  • apps/meteor/client/components/message/toolbar/MessageToolbarStarsActionMenu.tsx
  • apps/meteor/client/components/message/toolbar/useCopyAction.ts
  • apps/meteor/client/components/message/toolbar/useDeleteMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useEditMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useFollowMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useMarkAsUnreadMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useMessageActionAppsActionButtons.ts
  • apps/meteor/client/components/message/toolbar/useNewDiscussionMessageAction.tsx
  • apps/meteor/client/components/message/toolbar/usePermalinkAction.spec.ts
  • apps/meteor/client/components/message/toolbar/usePermalinkAction.ts
  • apps/meteor/client/components/message/toolbar/usePinMessageAction.tsx
  • apps/meteor/client/components/message/toolbar/useReadReceiptsDetailsAction.tsx
  • apps/meteor/client/components/message/toolbar/useReplyInDMAction.ts
  • apps/meteor/client/components/message/toolbar/useReportMessageAction.tsx
  • apps/meteor/client/components/message/toolbar/useShowMessageReactionsAction.tsx
  • apps/meteor/client/components/message/toolbar/useStarMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useTranslateAction.ts
  • apps/meteor/client/components/message/toolbar/useUnFollowMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useUnpinMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useUnstarMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useViewOriginalTranslationAction.ts
  • apps/meteor/client/components/message/toolbar/useWebDAVMessageAction.tsx
  • apps/meteor/client/components/message/variants/RoomMessage.tsx
  • apps/meteor/client/components/message/variants/SystemMessage.spec.tsx
  • apps/meteor/client/components/message/variants/ThreadMessage.tsx
  • apps/meteor/client/hooks/menuActions/useLeaveRoom.tsx
  • apps/meteor/client/hooks/menuActions/useToggleReadAction.ts
  • apps/meteor/client/hooks/useMessageboxAppsActionButtons.ts
  • apps/meteor/client/importPackages.ts
  • apps/meteor/client/lib/AccountBox.ts
  • apps/meteor/client/lib/LegacyRoomManager.ts
  • apps/meteor/client/lib/MessageAction.ts
  • apps/meteor/client/lib/RoomHistoryManager.ts
  • apps/meteor/client/lib/RoomManager.ts
  • apps/meteor/client/lib/chats/readStateManager.ts
  • apps/meteor/client/lib/messageBox.ts
  • apps/meteor/client/providers/UserProvider/hooks/useClearRemovedRoomsHistory.ts
  • apps/meteor/client/providers/UserProvider/hooks/useReloadAfterLogin.ts
  • apps/meteor/client/sidebar/RoomMenu.spec.tsx
  • apps/meteor/client/views/navigation/sidepanel/hooks/useRoomMenuActions.spec.ts
  • apps/meteor/client/views/omnichannel/modals/ForwardChatModal.spec.tsx
  • apps/meteor/client/views/omnichannel/modals/ForwardChatModal.tsx
  • apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx
  • apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.spec.tsx
  • apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.ts
  • apps/meteor/client/views/room/body/hooks/useGetMore.spec.tsx
  • apps/meteor/client/views/room/body/hooks/useGetMore.ts
  • apps/meteor/client/views/room/body/hooks/useHasNewMessages.spec.ts
  • apps/meteor/client/views/room/body/hooks/useHasNewMessages.ts
  • apps/meteor/client/views/room/body/hooks/useUnreadMessages.ts
  • apps/meteor/client/views/room/composer/ComposerMessage.tsx
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/MessageBoxActionsToolbar.tsx
  • apps/meteor/client/views/room/contextualBar/Info/hooks/actions/useRoomLeave.spec.ts
  • apps/meteor/client/views/room/contextualBar/Info/hooks/actions/useRoomLeave.tsx
  • apps/meteor/client/views/room/contextualBar/MessageListTab.tsx
  • apps/meteor/client/views/room/hooks/useOpenRoom.spec.ts
  • apps/meteor/client/views/room/hooks/useOpenRoom.ts
  • apps/meteor/client/views/room/providers/RoomProvider.tsx
  • apps/meteor/client/views/room/providers/hooks/useRedirectOnSettingsChanged.ts
  • apps/meteor/client/views/root/hooks/closeAllRooms.ts
  • apps/meteor/client/views/root/hooks/useIframeCommands.ts
  • apps/meteor/client/views/root/hooks/useLoadMissedMessages.spec.ts
  • apps/meteor/client/views/root/hooks/useLoadMissedMessages.ts
💤 Files with no reviewable changes (3)
  • apps/meteor/client/importPackages.ts
  • apps/meteor/app/ui-utils/client/index.ts
  • apps/meteor/client/components/message/variants/SystemMessage.spec.tsx

Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (7)
  • GitHub Check: 🔎 Code Check / Code Lint
  • GitHub Check: 🔨 Test Storybook / Test Storybook
  • GitHub Check: 🔨 Test Unit / Unit Tests
  • GitHub Check: 🔎 Code Check / TypeScript
  • GitHub Check: 📦 Meteor Build (coverage)
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: Hacktron Security Check
🧰 Additional context used
📓 Path-based instructions (3)
The main Rocket.Chat Meteor application resides in `apps/meteor/`; place its application code there rather than in other monorepo areas.

📄 CodeRabbit inference engine (CLAUDE.md)

Files:

  • apps/meteor/client/components/message/toolbar/MessageToolbar.tsx
  • apps/meteor/client/providers/UserProvider/hooks/useReloadAfterLogin.ts
  • apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.ts
  • apps/meteor/client/components/message/toolbar/useTranslateAction.ts
  • apps/meteor/client/components/message/toolbar/useReplyInDMAction.ts
  • apps/meteor/client/lib/chats/readStateManager.ts
  • apps/meteor/client/components/message/toolbar/useUnpinMessageAction.ts
  • apps/meteor/client/hooks/menuActions/useToggleReadAction.ts
  • apps/meteor/client/components/message/toolbar/useMarkAsUnreadMessageAction.ts
  • apps/meteor/client/sidebar/RoomMenu.spec.tsx
  • apps/meteor/client/lib/RoomHistoryManager.ts
  • apps/meteor/client/views/room/body/hooks/useHasNewMessages.spec.ts
  • apps/meteor/client/components/message/hooks/useMarkAsUnreadMutation.ts
  • apps/meteor/client/components/message/toolbar/useReadReceiptsDetailsAction.tsx
  • apps/meteor/client/views/room/body/hooks/useHasNewMessages.ts
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/MessageBoxActionsToolbar.tsx
  • apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx
  • apps/meteor/client/views/room/body/hooks/useGetMore.spec.tsx
  • apps/meteor/client/hooks/useMessageboxAppsActionButtons.ts
  • apps/meteor/client/views/root/hooks/closeAllRooms.ts
  • apps/meteor/client/components/message/MessageToolbarHolder.tsx
  • apps/meteor/client/components/message/toolbar/usePermalinkAction.spec.ts
  • apps/meteor/client/views/root/hooks/useIframeCommands.ts
  • apps/meteor/client/components/message/toolbar/useWebDAVMessageAction.tsx
  • apps/meteor/client/views/room/hooks/useOpenRoom.spec.ts
  • apps/meteor/client/lib/messageBox.ts
  • apps/meteor/client/views/room/composer/ComposerMessage.tsx
  • apps/meteor/client/views/omnichannel/modals/ForwardChatModal.tsx
  • apps/meteor/client/components/message/toolbar/useNewDiscussionMessageAction.tsx
  • apps/meteor/client/components/message/toolbar/MessageToolbarActionMenu.tsx
  • apps/meteor/client/components/message/toolbar/useDeleteMessageAction.ts
  • apps/meteor/client/lib/AccountBox.ts
  • apps/meteor/client/providers/UserProvider/hooks/useClearRemovedRoomsHistory.ts
  • apps/meteor/client/views/room/contextualBar/Info/hooks/actions/useRoomLeave.spec.ts
  • apps/meteor/client/views/room/providers/RoomProvider.tsx
  • apps/meteor/client/hooks/menuActions/useLeaveRoom.tsx
  • apps/meteor/client/lib/RoomManager.ts
  • apps/meteor/client/views/navigation/sidepanel/hooks/useRoomMenuActions.spec.ts
  • apps/meteor/client/components/message/toolbar/useMessageActionAppsActionButtons.ts
  • apps/meteor/client/views/room/contextualBar/MessageListTab.tsx
  • apps/meteor/client/components/message/toolbar/useUnstarMessageAction.ts
  • apps/meteor/client/components/message/toolbar/MessageToolbarStarsActionMenu.tsx
  • apps/meteor/client/views/room/providers/hooks/useRedirectOnSettingsChanged.ts
  • apps/meteor/client/components/message/toolbar/useViewOriginalTranslationAction.ts
  • apps/meteor/client/components/message/toolbar/useFollowMessageAction.ts
  • apps/meteor/client/views/room/hooks/useOpenRoom.ts
  • apps/meteor/client/lib/MessageAction.ts
  • apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.spec.tsx
  • apps/meteor/client/components/message/toolbar/useReportMessageAction.tsx
  • apps/meteor/client/views/omnichannel/modals/ForwardChatModal.spec.tsx
  • apps/meteor/client/components/message/toolbar/useCopyAction.ts
  • apps/meteor/client/components/message/toolbar/useStarMessageAction.ts
  • apps/meteor/client/views/room/contextualBar/Info/hooks/actions/useRoomLeave.tsx
  • apps/meteor/client/views/room/body/hooks/useGetMore.ts
  • apps/meteor/client/lib/LegacyRoomManager.ts
  • apps/meteor/client/components/message/toolbar/useShowMessageReactionsAction.tsx
  • apps/meteor/client/components/message/toolbar/usePinMessageAction.tsx
  • apps/meteor/client/components/message/toolbar/useUnFollowMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useEditMessageAction.ts
  • apps/meteor/client/components/message/variants/ThreadMessage.tsx
  • apps/meteor/client/components/message/variants/RoomMessage.tsx
  • apps/meteor/client/views/root/hooks/useLoadMissedMessages.spec.ts
  • apps/meteor/client/components/message/toolbar/usePermalinkAction.ts
  • apps/meteor/client/views/room/body/hooks/useUnreadMessages.ts
  • apps/meteor/client/views/root/hooks/useLoadMissedMessages.ts
Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests

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

Files:

  • apps/meteor/client/components/message/toolbar/MessageToolbar.tsx
  • apps/meteor/client/providers/UserProvider/hooks/useReloadAfterLogin.ts
  • apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.ts
  • apps/meteor/client/components/message/toolbar/useTranslateAction.ts
  • apps/meteor/client/components/message/toolbar/useReplyInDMAction.ts
  • apps/meteor/client/lib/chats/readStateManager.ts
  • apps/meteor/client/components/message/toolbar/useUnpinMessageAction.ts
  • apps/meteor/client/hooks/menuActions/useToggleReadAction.ts
  • apps/meteor/client/components/message/toolbar/useMarkAsUnreadMessageAction.ts
  • apps/meteor/client/sidebar/RoomMenu.spec.tsx
  • apps/meteor/client/lib/RoomHistoryManager.ts
  • apps/meteor/client/views/room/body/hooks/useHasNewMessages.spec.ts
  • apps/meteor/client/components/message/hooks/useMarkAsUnreadMutation.ts
  • apps/meteor/client/components/message/toolbar/useReadReceiptsDetailsAction.tsx
  • apps/meteor/client/views/room/body/hooks/useHasNewMessages.ts
  • apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/MessageBoxActionsToolbar.tsx
  • apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx
  • apps/meteor/client/views/room/body/hooks/useGetMore.spec.tsx
  • apps/meteor/client/hooks/useMessageboxAppsActionButtons.ts
  • apps/meteor/client/views/root/hooks/closeAllRooms.ts
  • apps/meteor/client/components/message/MessageToolbarHolder.tsx
  • apps/meteor/client/components/message/toolbar/usePermalinkAction.spec.ts
  • apps/meteor/client/views/root/hooks/useIframeCommands.ts
  • apps/meteor/client/components/message/toolbar/useWebDAVMessageAction.tsx
  • apps/meteor/client/views/room/hooks/useOpenRoom.spec.ts
  • apps/meteor/client/lib/messageBox.ts
  • apps/meteor/client/views/room/composer/ComposerMessage.tsx
  • apps/meteor/client/views/omnichannel/modals/ForwardChatModal.tsx
  • apps/meteor/client/components/message/toolbar/useNewDiscussionMessageAction.tsx
  • apps/meteor/client/components/message/toolbar/MessageToolbarActionMenu.tsx
  • apps/meteor/client/components/message/toolbar/useDeleteMessageAction.ts
  • apps/meteor/client/lib/AccountBox.ts
  • apps/meteor/client/providers/UserProvider/hooks/useClearRemovedRoomsHistory.ts
  • apps/meteor/client/views/room/contextualBar/Info/hooks/actions/useRoomLeave.spec.ts
  • apps/meteor/client/views/room/providers/RoomProvider.tsx
  • apps/meteor/client/hooks/menuActions/useLeaveRoom.tsx
  • apps/meteor/client/lib/RoomManager.ts
  • apps/meteor/client/views/navigation/sidepanel/hooks/useRoomMenuActions.spec.ts
  • apps/meteor/client/components/message/toolbar/useMessageActionAppsActionButtons.ts
  • apps/meteor/client/views/room/contextualBar/MessageListTab.tsx
  • apps/meteor/client/components/message/toolbar/useUnstarMessageAction.ts
  • apps/meteor/client/components/message/toolbar/MessageToolbarStarsActionMenu.tsx
  • apps/meteor/client/views/room/providers/hooks/useRedirectOnSettingsChanged.ts
  • apps/meteor/client/components/message/toolbar/useViewOriginalTranslationAction.ts
  • apps/meteor/client/components/message/toolbar/useFollowMessageAction.ts
  • apps/meteor/client/views/room/hooks/useOpenRoom.ts
  • apps/meteor/client/lib/MessageAction.ts
  • apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.spec.tsx
  • apps/meteor/client/components/message/toolbar/useReportMessageAction.tsx
  • apps/meteor/client/views/omnichannel/modals/ForwardChatModal.spec.tsx
  • apps/meteor/client/components/message/toolbar/useCopyAction.ts
  • apps/meteor/client/components/message/toolbar/useStarMessageAction.ts
  • apps/meteor/client/views/room/contextualBar/Info/hooks/actions/useRoomLeave.tsx
  • apps/meteor/client/views/room/body/hooks/useGetMore.ts
  • apps/meteor/client/lib/LegacyRoomManager.ts
  • apps/meteor/client/components/message/toolbar/useShowMessageReactionsAction.tsx
  • apps/meteor/client/components/message/toolbar/usePinMessageAction.tsx
  • apps/meteor/client/components/message/toolbar/useUnFollowMessageAction.ts
  • apps/meteor/client/components/message/toolbar/useEditMessageAction.ts
  • apps/meteor/client/components/message/variants/ThreadMessage.tsx
  • apps/meteor/client/components/message/variants/RoomMessage.tsx
  • apps/meteor/client/views/root/hooks/useLoadMissedMessages.spec.ts
  • apps/meteor/client/components/message/toolbar/usePermalinkAction.ts
  • apps/meteor/client/views/room/body/hooks/useUnreadMessages.ts
  • apps/meteor/client/views/root/hooks/useLoadMissedMessages.ts
Use descriptive test names that clearly communicate expected behavior in Playwright tests

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

Files:

  • apps/meteor/client/views/room/body/hooks/useHasNewMessages.spec.ts
  • apps/meteor/client/components/message/toolbar/usePermalinkAction.spec.ts
  • apps/meteor/client/views/room/hooks/useOpenRoom.spec.ts
  • apps/meteor/client/views/room/contextualBar/Info/hooks/actions/useRoomLeave.spec.ts
  • apps/meteor/client/views/navigation/sidepanel/hooks/useRoomMenuActions.spec.ts
  • apps/meteor/client/views/root/hooks/useLoadMissedMessages.spec.ts
🧠 Learnings (2)
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In this repository (RocketChat/Rocket.Chat), Biome lint rules are not used even if a biome.json exists. When reviewing TypeScript files (e.g., packages/ui-voip/src/providers/useMediaSession.ts), ensure lint suggestions do not reference Biome-specific rules. Rely on general ESLint/TypeScript lint rules and project conventions instead.

Applied to files:

  • apps/meteor/client/components/message/toolbar/useTranslateAction.ts
  • apps/meteor/client/views/root/hooks/useIframeCommands.ts
  • apps/meteor/client/components/message/toolbar/useViewOriginalTranslationAction.ts
  • apps/meteor/client/views/root/hooks/useLoadMissedMessages.ts
📚 Learning: 2026-02-26T19:25:44.063Z
Learnt from: gabriellsh
Repo: RocketChat/Rocket.Chat PR: 38778
File: packages/ui-voip/src/providers/useMediaSession.ts:192-192
Timestamp: 2026-02-26T19:25:44.063Z
Learning: In the Rocket.Chat repository, do not reference Biome lint rules in code review feedback. Biome is not used even if biome.json exists; only reference Biome rules if there is explicit, project-wide usage documented. For TypeScript files, review lint implications without Biome guidance unless the project enables Biome rules.

Applied to files:

  • apps/meteor/client/components/message/toolbar/useTranslateAction.ts
  • apps/meteor/client/views/root/hooks/useIframeCommands.ts
  • apps/meteor/client/components/message/toolbar/useViewOriginalTranslationAction.ts
  • apps/meteor/client/views/root/hooks/useLoadMissedMessages.ts
🔇 Additional comments (65)
apps/meteor/client/hooks/useMessageboxAppsActionButtons.ts (1)

9-9: LGTM!

apps/meteor/client/lib/AccountBox.ts (1)

6-6: LGTM!

apps/meteor/client/lib/messageBox.ts (1)

5-5: LGTM!

apps/meteor/client/views/room/composer/messageBox/MessageBoxActionsToolbar/MessageBoxActionsToolbar.tsx (1)

18-18: LGTM!

apps/meteor/client/views/root/hooks/useIframeCommands.ts (1)

7-7: LGTM!

apps/meteor/client/lib/MessageAction.ts (1)

1-4: LGTM!

Also applies to: 6-19, 21-33

apps/meteor/client/components/message/MessageToolbarHolder.tsx (1)

6-6: LGTM!

apps/meteor/client/components/message/toolbar/MessageToolbar.tsx (1)

22-22: LGTM!

apps/meteor/client/components/message/toolbar/MessageToolbarStarsActionMenu.tsx (1)

7-7: LGTM!

apps/meteor/client/components/message/toolbar/usePermalinkAction.spec.ts (1)

7-8: LGTM!

apps/meteor/client/components/message/toolbar/usePermalinkAction.ts (1)

7-7: LGTM!

apps/meteor/client/components/message/toolbar/usePinMessageAction.tsx (1)

5-5: LGTM!

apps/meteor/client/components/message/toolbar/useStarMessageAction.ts (1)

5-5: LGTM!

apps/meteor/client/components/message/toolbar/useTranslateAction.ts (1)

5-5: LGTM!

apps/meteor/client/components/message/toolbar/useUnFollowMessageAction.ts (1)

5-6: LGTM!

apps/meteor/client/components/message/toolbar/MessageToolbarActionMenu.tsx (1)

28-28: LGTM!

apps/meteor/client/components/message/toolbar/useCopyAction.ts (1)

5-5: LGTM!

apps/meteor/client/components/message/toolbar/useDeleteMessageAction.ts (1)

6-6: LGTM!

apps/meteor/client/components/message/toolbar/useUnpinMessageAction.ts (1)

5-5: LGTM!

apps/meteor/client/components/message/toolbar/useUnstarMessageAction.ts (1)

5-5: LGTM!

apps/meteor/client/components/message/toolbar/useViewOriginalTranslationAction.ts (1)

5-5: LGTM!

apps/meteor/client/components/message/toolbar/useWebDAVMessageAction.tsx (1)

6-6: LGTM!

apps/meteor/client/components/message/variants/RoomMessage.tsx (1)

10-10: LGTM!

apps/meteor/client/components/message/variants/ThreadMessage.tsx (1)

8-8: LGTM!

apps/meteor/client/components/message/toolbar/useEditMessageAction.ts (1)

6-6: LGTM!

apps/meteor/client/components/message/toolbar/useFollowMessageAction.ts (1)

5-6: LGTM!

apps/meteor/client/components/message/toolbar/useMarkAsUnreadMessageAction.ts (1)

5-5: LGTM!

apps/meteor/client/components/message/toolbar/useMessageActionAppsActionButtons.ts (1)

8-11: LGTM!

apps/meteor/client/components/message/toolbar/useNewDiscussionMessageAction.tsx (1)

4-4: LGTM!

apps/meteor/client/components/message/toolbar/useReadReceiptsDetailsAction.tsx (1)

4-4: LGTM!

apps/meteor/client/components/message/toolbar/useReplyInDMAction.ts (1)

8-8: LGTM!

apps/meteor/client/components/message/toolbar/useReportMessageAction.tsx (1)

4-4: LGTM!

apps/meteor/client/components/message/toolbar/useShowMessageReactionsAction.tsx (1)

4-4: LGTM!

apps/meteor/client/views/room/contextualBar/MessageListTab.tsx (1)

21-24: LGTM!

apps/meteor/client/components/message/hooks/useMarkAsUnreadMutation.ts (1)

5-5: LGTM!

apps/meteor/client/hooks/menuActions/useLeaveRoom.tsx (1)

7-9: LGTM!

apps/meteor/client/hooks/menuActions/useToggleReadAction.ts (1)

6-7: LGTM!

apps/meteor/client/lib/LegacyRoomManager.ts (1)

7-14: LGTM!

apps/meteor/client/lib/RoomManager.ts (1)

5-7: LGTM!

apps/meteor/client/providers/UserProvider/hooks/useReloadAfterLogin.ts (1)

5-5: LGTM!

apps/meteor/client/views/room/composer/ComposerMessage.tsx (1)

7-7: LGTM!

apps/meteor/client/views/room/contextualBar/Info/hooks/actions/useRoomLeave.tsx (1)

7-9: LGTM!

apps/meteor/client/views/room/hooks/useOpenRoom.ts (1)

8-9: LGTM!

apps/meteor/client/views/room/providers/RoomProvider.tsx (1)

11-14: LGTM!

apps/meteor/client/views/room/providers/hooks/useRedirectOnSettingsChanged.ts (1)

5-5: LGTM!

apps/meteor/client/lib/RoomHistoryManager.ts (1)

6-11: LGTM!

apps/meteor/client/lib/chats/readStateManager.ts (1)

7-8: LGTM!

apps/meteor/client/providers/UserProvider/hooks/useClearRemovedRoomsHistory.ts (1)

5-5: LGTM!

apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.spec.tsx (1)

7-11: LGTM!

apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.ts (1)

8-8: LGTM!

apps/meteor/client/views/room/body/hooks/useGetMore.spec.tsx (1)

7-9: LGTM!

apps/meteor/client/views/room/body/hooks/useGetMore.ts (1)

8-8: LGTM!

apps/meteor/client/views/room/body/hooks/useHasNewMessages.ts (1)

8-8: LGTM!

apps/meteor/client/views/room/body/hooks/useUnreadMessages.ts (1)

7-7: LGTM!

apps/meteor/client/views/root/hooks/useLoadMissedMessages.spec.ts (1)

7-19: LGTM!

apps/meteor/client/sidebar/RoomMenu.spec.tsx (1)

17-17: LGTM!

apps/meteor/client/views/navigation/sidepanel/hooks/useRoomMenuActions.spec.ts (1)

17-17: LGTM!

apps/meteor/client/views/omnichannel/modals/ForwardChatModal.spec.tsx (1)

10-10: LGTM!

apps/meteor/client/views/omnichannel/modals/ForwardChatModal.tsx (1)

9-9: LGTM!

apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx (1)

17-19: LGTM!

apps/meteor/client/views/room/body/hooks/useHasNewMessages.spec.ts (1)

14-14: LGTM!

apps/meteor/client/views/room/contextualBar/Info/hooks/actions/useRoomLeave.spec.ts (1)

10-10: LGTM!

apps/meteor/client/views/room/hooks/useOpenRoom.spec.ts (1)

9-9: LGTM!

apps/meteor/client/views/root/hooks/closeAllRooms.ts (1)

1-1: LGTM!

apps/meteor/client/views/root/hooks/useLoadMissedMessages.ts (1)

5-7: LGTM!


Walkthrough

The change consolidates client imports under apps/meteor/client/lib, adds shared message action types, updates production and test consumers, and removes reliance on the legacy UI utilities barrel.

Changes

Client module consolidation

Layer / File(s) Summary
Message action contract and imports
apps/meteor/client/lib/MessageAction.ts, apps/meteor/client/components/message/..., apps/meteor/client/views/room/contextualBar/MessageListTab.tsx, apps/meteor/client/components/message/variants/*
Adds shared message action types and updates message components, hooks, and tests to import them from client/lib/MessageAction.
Room manager module imports
apps/meteor/client/lib/{LegacyRoomManager,RoomHistoryManager,RoomManager}.ts, apps/meteor/client/views/room/..., apps/meteor/client/hooks/..., apps/meteor/client/providers/..., related specs
Updates LegacyRoomManager, RoomHistoryManager, and upsertMessageBulk consumers and mocks to use client library paths.
Client library import cleanup
apps/meteor/client/lib/{AccountBox,messageBox}.ts, apps/meteor/client/views/root/hooks/useIframeCommands.ts, apps/meteor/client/views/room/composer/..., apps/meteor/client/hooks/useMessageboxAppsActionButtons.ts
Relocates AccountBox, messageBox, MessageBoxAction, and ChatAPI imports to client-relative modules.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to 3214c

This PR relocates client modules and updates their references without introducing an actionable merge-blocking risk; it is merge-ready after normal checks and review.

Suggested labels: type: chore

🚥 Pre-merge checks | ✅ 5
✅ 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 summarizes the primary change: moving client modules from app/ui-utils to client.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 50 files. (15 skipped: 15 over the file limit.)
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

@tassoevan tassoevan added this to the 8.9.0 milestone Aug 24, 2026
@tassoevan

Copy link
Copy Markdown
Member Author

/jira ARCH

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 68 files

Re-trigger cubic

@codecov

codecov Bot commented Aug 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.21%. Comparing base (51878e1) to head (b18436c).

Additional details and impacted files

Impacted file tree graph

@@                                Coverage Diff                                 @@
##           refactor/move-app-slashcommands-client-modules   #41924      +/-   ##
==================================================================================
- Coverage                                           69.27%   69.21%   -0.06%     
==================================================================================
  Files                                                4262     4263       +1     
  Lines                                              168850   169050     +200     
  Branches                                            30073    30106      +33     
==================================================================================
+ Hits                                               116963   117016      +53     
- Misses                                              46697    46837     +140     
- Partials                                             5190     5197       +7     
Flag Coverage Δ
unit 71.27% <100.00%> (+0.03%) ⬆️

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.

@tassoevan
tassoevan force-pushed the refactor/move-app-ui-utils-client-modules branch from 3214c2a to 384045e Compare August 24, 2026 21:45
@tassoevan
tassoevan force-pushed the refactor/move-app-ui-utils-client-modules branch from 384045e to 79cae39 Compare August 25, 2026 03:26
@tassoevan
tassoevan force-pushed the refactor/move-app-ui-utils-client-modules branch from 79cae39 to a9ecff7 Compare August 25, 2026 03:57
@tassoevan
tassoevan force-pushed the refactor/move-app-ui-utils-client-modules branch from a9ecff7 to 737e156 Compare August 25, 2026 04:27
@tassoevan
tassoevan force-pushed the refactor/move-app-ui-utils-client-modules branch from 737e156 to b18436c Compare August 25, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant