classroom icon indicating copy to clipboard operation
classroom copied to clipboard

Feature(admin): Implement user search functionality in admin dashboard

Open adgator101 opened this issue 1 year ago • 2 comments

Checklist:

Closes #550

adgator101 avatar Oct 28 '25 11:10 adgator101

Thanks for taking on issue #550 and adding search functionality to the admin page! I appreciate the work you've put into this.

After reviewing the implementation, I think we need to adjust the approach to better match the intent of the original issue.

The PR adds a single search bar that filters users across name, email, and role simultaneously using OR logic (matches if any field contains the search term).

The goal is to allow admins to filter by any combination of name, email, and/or role independently, using AND logic. For example:

Filter by name only Filter by email only Filter by role only Filter by name AND role together Any other combination of the three fields This provides more precise control, which will be important when the database grows large in production.

Below is an image of what I have in mind but has not been implemented yet.

image

Let me know if you have questions about this approach or if you'd like help implementing these changes. Happy to discuss further or provide code examples!

CarlyAThomas avatar Nov 08 '25 04:11 CarlyAThomas

Hi, @CarlyAThomas I'm really sorry I didn't fully understand the intent at first. I will now make changes according to the requirements you have asked in this PR.

adgator101 avatar Nov 08 '25 08:11 adgator101