This is an automated email from the ASF dual-hosted git repository.

aicam pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/main by this push:
     new 5c2bd88107 fix: make sub-string name search feature in admin dashboard 
case-insensitive (#3926)
5c2bd88107 is described below

commit 5c2bd88107dbf8a1d1ccf0931b0214d81c683d76
Author: Jaeyun Kim <[email protected]>
AuthorDate: Mon Oct 20 12:32:36 2025 -0700

    fix: make sub-string name search feature in admin dashboard 
case-insensitive (#3926)
    
    ### 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.
    
    ---------
    
    Co-authored-by: ali risheh <[email protected]>
---
 .../src/app/dashboard/component/admin/user/admin-user.component.ts     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/frontend/src/app/dashboard/component/admin/user/admin-user.component.ts 
b/frontend/src/app/dashboard/component/admin/user/admin-user.component.ts
index e9e4ebbab8..ecadc3b32c 100644
--- a/frontend/src/app/dashboard/component/admin/user/admin-user.component.ts
+++ b/frontend/src/app/dashboard/component/admin/user/admin-user.component.ts
@@ -162,7 +162,8 @@ export class AdminUserComponent implements OnInit {
 
   searchByName(): void {
     this.nameSearchVisible = false;
-    this.listOfDisplayUser = this.userList.filter(user => (user.name || 
"").indexOf(this.nameSearchValue) !== -1);
+    const q = (this.nameSearchValue ?? "").trim().toLowerCase();
+    this.listOfDisplayUser = this.userList.filter(u => (u.name ?? 
"").toLowerCase().includes(q));
   }
 
   searchByEmail(): void {

Reply via email to