Skip to content

Search functionality is case-sensitive聽#1246

Description

@bevarapoojitha169-gif

馃悰 Bug: Search functionality is case-sensitive

Description

The current search functionality appears to be case-sensitive. Users searching with different letter cases (e.g., lowercase instead of uppercase) do not receive the expected matching results, which affects the overall user experience.

Steps to Reproduce

  1. Open the application.
  2. Navigate to the page containing the search functionality.
  3. Search for an existing item using lowercase letters (e.g., math).
  4. Compare the results with searching using the original case (e.g., Math).

Expected Behavior

The search should be case-insensitive, returning the same matching results regardless of whether the user enters uppercase, lowercase, or mixed-case text.

Actual Behavior

The search returns different or no results when the input case does not exactly match the stored data.

Impact

  • Reduces usability and discoverability of study plans/tasks.
  • Users may incorrectly assume the searched item does not exist.
  • Creates an inconsistent search experience.

Suggested Fix

Normalize both the search query and the searchable data before comparison by converting them to a common case (e.g., using toLowerCase() or toUpperCase()). This ensures consistent matching regardless of user input.

Additional Information

  • Browser: Chrome (latest)
  • Device: Desktop
  • Priority: Medium

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions