Skip to content

Make search case-insensitive in Send Command view - #426

Merged
ravjotbrar merged 1 commit into
valkey-io:mainfrom
antonin-suzor:feat/send-command-case-insensitive-search
Jul 29, 2026
Merged

ravjotbrar merged 1 commit into
valkey-io:mainfrom
antonin-suzor:feat/send-command-case-insensitive-search

Conversation

@antonin-suzor

Copy link
Copy Markdown
Contributor

Description

Closes #424

This PR makes search case-insensitive in the Send Command view.
Affected search bars are:

  • History search bar
  • Response search bar
  • Diff search bar

This works by lowercasing the filter (once per change/render) and lowercasing the entries (once per entry).

Known limitation

Text highlighting in diff view is still case-sensitive in CommandElements.tsx/KeyFilterable.

I did not find a straight-forward way to implement it, and did not know if it was included in the scope of the issue.

A possible implementation (not explored) would be to manually split the "normal-case" keyPathString based on split results of the lowercase filter against a lowercased keyPathString. If it should be included in the PR, I can look to add it.

Tests ran

  • Manual testing of the feature
  • npm run build:frontend
  • npm run lint

Change Visualization

Before the changes:
https://github.com/user-attachments/assets/855c386f-39e1-4ecc-91c9-7d56e7698cac

After the changes:
https://github.com/user-attachments/assets/8873c25f-8f08-4230-be43-168140f2f907

Signed-off-by: antonin-suzor <antonin@suzor.net>

@ravjotbrar ravjotbrar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the PR @antonin-suzor. LGTM!

@antonin-suzor

Copy link
Copy Markdown
Contributor Author

Thank you for the review !

I don't have merge permission, so you will have to merge it yourself @ravjotbrar

@ravjotbrar
ravjotbrar merged commit 143d92c into valkey-io:main Jul 29, 2026
8 checks passed
ravjotbrar pushed a commit that referenced this pull request Jul 29, 2026
Signed-off-by: antonin-suzor <antonin@suzor.net>
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.

History and response search in Send Command should be case-insensitive

2 participants