Skip to content

[UX]: Add a clear button to the repository search input #258

Description

@zaibamachhaliya

Description

When a user searches for a repository in the Repository Explorer, the results are filtered based on the entered search text. However, there is currently no dedicated control to quickly clear the search.

Users have to manually remove the entered text before they can return to the full repository list.

Image

Proposed Solution

Add a clear (×) button inside the search input whenever it contains text.

When the user clicks the clear button:

  • The search input should be cleared.
  • The active search/filter should be reset.
  • The full repository list should be displayed again.

Expected Behavior

  1. User enters a repository name, such as DebateAI.
  2. The repository list is filtered to matching results.
  3. A clear (×) button appears in the search input.
  4. User clicks the clear button.
  5. The search input becomes empty and the full repository list is restored.

Benefits

  • Makes it easier to reset the search.
  • Reduces unnecessary manual backspacing.
  • Provides a more intuitive search experience.
  • Improves the overall usability of the Repository Explorer.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions