Skip to content

fix: show notification when /qs is submitted without selecting a preview item#80

Open
sezallagwal wants to merge 1 commit intoRocketChat:mainfrom
sezallagwal:fix/qs-executor-silent-failure
Open

fix: show notification when /qs is submitted without selecting a preview item#80
sezallagwal wants to merge 1 commit intoRocketChat:mainfrom
sezallagwal:fix/qs-executor-silent-failure

Conversation

@sezallagwal
Copy link
Copy Markdown
Contributor

Problem

When you type /qs sometext and press Enter without selecting a reply from the preview dropdown, absolutely nothing happens no message, no error, no feedback. The user is left wondering if the command is broken.

This is because the executor() method in QsCommand.ts is completely empty (just a placeholder comment). The executor runs when the user submits the slash command directly, while executePreviewItem only runs when they click on a preview item. Since most users type and hit Enter by habit, they get a silent failure on their first try.

Steps to reproduce

  1. Create at least one quick reply (e.g. /quick create)
  2. Type /qs hello in any channel
  3. Don't click any item from the preview dropdown — just press Enter
  4. Before fix: Nothing happens. No message, no notification, complete silence.
  5. After fix: A notification appears telling the user to select a reply from the preview list.

Fix

  • Implemented the empty executor() method to send a helpful notification guiding the user to select from the preview list instead of pressing Enter
  • Added the Qs_Select_Preview_Hint translation key to all 5 locales (en, de, pl, pt, ru)

Demo

image

@iam-vipin
Copy link
Copy Markdown
Collaborator

@sezallagwal resolve conflicts please

…iew item

The executor() method was empty, so typing /qs <text> and pressing
Enter without selecting from the preview dropdown silently did nothing.

Now it sends a notification guiding the user to select a reply from
the preview list. Added the Qs_Select_Preview_Hint translation key
to all five locales (en, de, pl, pt, ru).
@sezallagwal sezallagwal force-pushed the fix/qs-executor-silent-failure branch from c2f879e to 2a88e92 Compare March 30, 2026 09:27
@sezallagwal
Copy link
Copy Markdown
Contributor Author

@iam-vipin done

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.

2 participants