Skip to content

refactor: move app/slashcommands modules - #41923

Open
tassoevan wants to merge 1 commit into
refactor/move-app-slackbridge-client-modulesfrom
refactor/move-app-slashcommands-client-modules
Open

refactor: move app/slashcommands modules#41923
tassoevan wants to merge 1 commit into
refactor/move-app-slackbridge-client-modulesfrom
refactor/move-app-slashcommands-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/slashcommands/ 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
    • Reorganized how built-in slash commands are loaded in the client.
    • Updated command integrations to align with the current application structure.
    • Consolidated startup registration for commands including archive, ban, create, invite, moderation, room management, and ASCII-art commands.
    • Existing slash-command functionality and behavior remain unchanged.

Task: ARCH-2394

@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: 51878e1

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: bb9ba7eb-1b6c-4e2a-a7ac-ede87fbff350

📥 Commits

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

📒 Files selected for processing (32)
  • apps/meteor/app/slashcommand-asciiarts/client/index.ts
  • apps/meteor/app/slashcommands-archiveroom/client/index.ts
  • apps/meteor/app/slashcommands-ban/client/index.ts
  • apps/meteor/app/slashcommands-create/client/index.ts
  • apps/meteor/app/slashcommands-hide/client/index.ts
  • apps/meteor/app/slashcommands-invite/client/index.ts
  • apps/meteor/app/slashcommands-inviteall/client/index.ts
  • apps/meteor/app/slashcommands-join/client/index.ts
  • apps/meteor/app/slashcommands-kick/client/index.ts
  • apps/meteor/app/slashcommands-open/client/index.ts
  • apps/meteor/app/slashcommands-status/client/index.ts
  • apps/meteor/app/slashcommands-topic/client/index.ts
  • apps/meteor/app/slashcommands-unarchiveroom/client/index.ts
  • apps/meteor/client/importPackages.ts
  • apps/meteor/client/startup/slashCommands/archive.ts
  • apps/meteor/client/startup/slashCommands/ban.ts
  • apps/meteor/client/startup/slashCommands/create.ts
  • apps/meteor/client/startup/slashCommands/gimme.ts
  • apps/meteor/client/startup/slashCommands/hide.ts
  • apps/meteor/client/startup/slashCommands/index.ts
  • apps/meteor/client/startup/slashCommands/invite.ts
  • apps/meteor/client/startup/slashCommands/inviteAllTo.ts
  • apps/meteor/client/startup/slashCommands/join.ts
  • apps/meteor/client/startup/slashCommands/kick.ts
  • apps/meteor/client/startup/slashCommands/lenny.ts
  • apps/meteor/client/startup/slashCommands/open.ts
  • apps/meteor/client/startup/slashCommands/shrug.ts
  • apps/meteor/client/startup/slashCommands/status.ts
  • apps/meteor/client/startup/slashCommands/tableflip.ts
  • apps/meteor/client/startup/slashCommands/topic.ts
  • apps/meteor/client/startup/slashCommands/unarchive.ts
  • apps/meteor/client/startup/slashCommands/unflip.ts
💤 Files with no reviewable changes (14)
  • apps/meteor/app/slashcommands-create/client/index.ts
  • apps/meteor/app/slashcommands-invite/client/index.ts
  • apps/meteor/app/slashcommands-archiveroom/client/index.ts
  • apps/meteor/app/slashcommands-status/client/index.ts
  • apps/meteor/app/slashcommands-unarchiveroom/client/index.ts
  • apps/meteor/app/slashcommand-asciiarts/client/index.ts
  • apps/meteor/app/slashcommands-hide/client/index.ts
  • apps/meteor/app/slashcommands-join/client/index.ts
  • apps/meteor/app/slashcommands-kick/client/index.ts
  • apps/meteor/app/slashcommands-ban/client/index.ts
  • apps/meteor/app/slashcommands-open/client/index.ts
  • apps/meteor/client/importPackages.ts
  • apps/meteor/app/slashcommands-topic/client/index.ts
  • apps/meteor/app/slashcommands-inviteall/client/index.ts

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

📜 Recent review details
⏰ Context from checks skipped due to timeout. (3)
  • GitHub Check: 📦 Build Packages
  • GitHub Check: cubic · AI code reviewer
  • GitHub Check: Hacktron Security Check
🧰 Additional context used
📓 Path-based instructions (2)
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/startup/slashCommands/unflip.ts
  • apps/meteor/client/startup/slashCommands/join.ts
  • apps/meteor/client/startup/slashCommands/archive.ts
  • apps/meteor/client/startup/slashCommands/inviteAllTo.ts
  • apps/meteor/client/startup/slashCommands/open.ts
  • apps/meteor/client/startup/slashCommands/hide.ts
  • apps/meteor/client/startup/slashCommands/gimme.ts
  • apps/meteor/client/startup/slashCommands/create.ts
  • apps/meteor/client/startup/slashCommands/kick.ts
  • apps/meteor/client/startup/slashCommands/ban.ts
  • apps/meteor/client/startup/slashCommands/lenny.ts
  • apps/meteor/client/startup/slashCommands/shrug.ts
  • apps/meteor/client/startup/slashCommands/unarchive.ts
  • apps/meteor/client/startup/slashCommands/status.ts
  • apps/meteor/client/startup/slashCommands/invite.ts
  • apps/meteor/client/startup/slashCommands/index.ts
  • apps/meteor/client/startup/slashCommands/tableflip.ts
  • apps/meteor/client/startup/slashCommands/topic.ts
Write concise, technical TypeScript/JavaScript with accurate typing in Playwright tests

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

Files:

  • apps/meteor/client/startup/slashCommands/unflip.ts
  • apps/meteor/client/startup/slashCommands/join.ts
  • apps/meteor/client/startup/slashCommands/archive.ts
  • apps/meteor/client/startup/slashCommands/inviteAllTo.ts
  • apps/meteor/client/startup/slashCommands/open.ts
  • apps/meteor/client/startup/slashCommands/hide.ts
  • apps/meteor/client/startup/slashCommands/gimme.ts
  • apps/meteor/client/startup/slashCommands/create.ts
  • apps/meteor/client/startup/slashCommands/kick.ts
  • apps/meteor/client/startup/slashCommands/ban.ts
  • apps/meteor/client/startup/slashCommands/lenny.ts
  • apps/meteor/client/startup/slashCommands/shrug.ts
  • apps/meteor/client/startup/slashCommands/unarchive.ts
  • apps/meteor/client/startup/slashCommands/status.ts
  • apps/meteor/client/startup/slashCommands/invite.ts
  • apps/meteor/client/startup/slashCommands/index.ts
  • apps/meteor/client/startup/slashCommands/tableflip.ts
  • apps/meteor/client/startup/slashCommands/topic.ts
🔇 Additional comments (18)
apps/meteor/client/startup/slashCommands/index.ts (1)

1-3: LGTM!

Also applies to: 5-13, 15-18

apps/meteor/client/startup/slashCommands/unflip.ts (1)

3-4: LGTM!

apps/meteor/client/startup/slashCommands/ban.ts (1)

1-3: LGTM!

apps/meteor/client/startup/slashCommands/invite.ts (1)

1-3: LGTM!

apps/meteor/client/startup/slashCommands/inviteAllTo.ts (1)

1-3: LGTM!

apps/meteor/client/startup/slashCommands/kick.ts (1)

3-5: LGTM!

apps/meteor/client/startup/slashCommands/open.ts (1)

3-7: LGTM!

apps/meteor/client/startup/slashCommands/status.ts (1)

3-5: LGTM!

apps/meteor/client/startup/slashCommands/topic.ts (1)

4-8: LGTM!

apps/meteor/client/startup/slashCommands/archive.ts (1)

1-1: LGTM!

apps/meteor/client/startup/slashCommands/create.ts (1)

1-1: LGTM!

apps/meteor/client/startup/slashCommands/gimme.ts (1)

3-4: LGTM!

apps/meteor/client/startup/slashCommands/hide.ts (1)

1-1: LGTM!

apps/meteor/client/startup/slashCommands/join.ts (1)

1-1: LGTM!

apps/meteor/client/startup/slashCommands/lenny.ts (1)

3-4: LGTM!

apps/meteor/client/startup/slashCommands/shrug.ts (1)

3-4: LGTM!

apps/meteor/client/startup/slashCommands/tableflip.ts (1)

3-4: LGTM!

apps/meteor/client/startup/slashCommands/unarchive.ts (1)

1-1: LGTM!


Walkthrough

The client startup index now loads slash command handlers directly. Command modules use relocated client utility paths. Redundant slash-command client imports were removed from application entry points and the central client import list.

Changes

Slash command startup consolidation

Layer / File(s) Summary
Register and centralize command startup imports
apps/meteor/client/startup/slashCommands/index.ts, apps/meteor/client/importPackages.ts, apps/meteor/app/slashcommands-*/client/index.ts
The startup index imports the slash command handlers. Redundant client entry-point and package imports were removed.
Update slash command module paths
apps/meteor/client/startup/slashCommands/archive.ts, create.ts, gimme.ts, hide.ts, join.ts, lenny.ts, shrug.ts, tableflip.ts, unarchive.ts, unflip.ts
Imports for slashCommands, sdk, and SDKClient now use the relocated application utility modules.
Update command integration paths
apps/meteor/client/startup/slashCommands/ban.ts, invite.ts, inviteAllTo.ts, kick.ts, open.ts, status.ts, topic.ts
Imports for query clients, room keys, routing, subscriptions, permissions, toasts, and room stores now use current client-relative paths. Command logic remains unchanged.

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

Merge Risk: ⚪ Minimal · up to 0867c

This PR reorganizes client slash-command modules without supplied evidence of a behavior change or merge-blocking issue; no actionable merge-blocking risk remains after normal checks and review.

Suggested labels: type: chore

Suggested reviewers: cardoso, dnouv, dougfabris

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
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 18 files.
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.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: moving the app/slashcommands client modules.

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 32 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.29%. Comparing base (bcead24) to head (51878e1).

Additional details and impacted files

Impacted file tree graph

@@                               Coverage Diff                                @@
##           refactor/move-app-slackbridge-client-modules   #41923      +/-   ##
================================================================================
+ Coverage                                         69.28%   69.29%   +0.01%     
================================================================================
  Files                                              4262     4262              
  Lines                                            168850   168850              
  Branches                                          30115    30110       -5     
================================================================================
+ Hits                                             116986   117004      +18     
+ Misses                                            46675    46654      -21     
- Partials                                           5189     5192       +3     
Flag Coverage Δ
unit 71.27% <ø> (+0.01%) ⬆️

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-slashcommands-client-modules branch from 0867cf8 to ee7a6bb Compare August 24, 2026 21:45
@tassoevan
tassoevan force-pushed the refactor/move-app-slashcommands-client-modules branch from ee7a6bb to 8672e5c Compare August 25, 2026 03:26
@tassoevan
tassoevan force-pushed the refactor/move-app-slashcommands-client-modules branch 2 times, most recently from aa45ec6 to e72a023 Compare August 25, 2026 04:27
@tassoevan
tassoevan force-pushed the refactor/move-app-slashcommands-client-modules branch from e72a023 to 51878e1 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