Skip to content

Conversation

jaeyun0503
Copy link
Contributor

@jaeyun0503 jaeyun0503 commented Oct 17, 2025

What changes were proposed in this PR?

This PR makes the sub-string search feature on user's name in admin dashboard case-insensitive.

Any related issues, documentation, discussions?

Fixes PR #1813

How was this PR tested?

Test case not introduced.

Was this PR authored or co-authored using generative AI tooling?

No.

@Copilot Copilot AI review requested due to automatic review settings October 17, 2025 23:11
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the admin dashboard's user search functionality to perform case-insensitive name matching. Previously, the search required exact case matches; now it converts both the search query and user names to lowercase before comparison.

Key Changes:

  • Modified the searchByName() method to normalize search input and user names to lowercase
  • Replaced indexOf() with includes() for cleaner string matching
  • Added trimming of search input to handle leading/trailing whitespace

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot added the frontend Changes related to the frontend GUI label Oct 17, 2025
@jaeyun0503 jaeyun0503 changed the title fix: make name search feature in admin dashboard case-insensitive fix: make sub-string name search feature in admin dashboard case-insensitive Oct 19, 2025
@aicam aicam enabled auto-merge (squash) October 19, 2025 23:17
auto-merge was automatically disabled October 20, 2025 18:18

Head branch was pushed to by a user without write access

Copy link
Contributor

@aicam aicam left a comment

Choose a reason for hiding this comment

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

LGTM!

@aicam aicam enabled auto-merge (squash) October 20, 2025 19:02
@aicam aicam merged commit 5c2bd88 into apache:main Oct 20, 2025
33 of 35 checks passed
@jaeyun0503 jaeyun0503 deleted the jaeyun-improve-search branch October 20, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants