Skip to content

Conversation

@finnar-bin
Copy link
Contributor

Description

  • Enable searching for users by their emails.
  • Updated the Input component to use internal state and useDeferredValue for better searching performance.

Resolves #

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Screenshots / Screen recording

zesty-pw.webm

Copy link

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 enables searching for users by their email addresses in addition to existing name-based search functionality. The changes also refactor the AccountsInput component to use internal state with React's useDeferredValue hook for improved search performance by reducing unnecessary re-renders during typing.

  • Added email search capability to the user filtering logic
  • Refactored AccountsInput component to manage its own internal state and use useDeferredValue for performance optimization
  • Removed redundant search prop passing throughout the component tree

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/pages/instances/[zuid]/users.js Enhanced user filtering logic to include email search alongside name search
src/components/accounts/ui/input/AccountsInput.js Refactored to use internal state and useDeferredValue for better performance
src/views/accounts/instances/Users.js Removed redundant search prop from component interface
src/views/accounts/instances/Settings.js Removed redundant search prop from AccountsInput usage
src/views/accounts/instances/Apis.js Removed redundant search prop from AccountsInput usage
src/pages/instances/[zuid]/support/index.js Removed redundant search prop from AccountsInput usage
src/components/globals/constants.js Fixed missing comma in object literal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants