Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search Functionality Does Not Return Results for URLs Hidden by Ellipsis #569

Open
shjohnson opened this issue Jan 8, 2025 · 0 comments

Comments

@shjohnson
Copy link

Issue: Search Functionality Does Not Return Results for URLs Hidden by Ellipsis

Description:

When using the search functionality on the coverage page, I noticed an issue where typing the full URL for longer paths does not return the expected results if the URL is hidden behind an ellipsis (...) in the view.

For example:

Searching for components/agency_portal/app/uploaders/agency_p correctly returns:

'components/agency_portal/app/uploaders/agency_p...'
(the URL truncated by an ellipsis).

However, adding the next character (o) to the search string, e.g., components/agency_portal/app/uploaders/agency_po, returns no results—even though the full path should still match.

Screenshots:

Search Working as Expected:

Searching for the truncated URL brings back results.
Screenshot 2025-01-08 at 14 26 52

Search Fails with Full Input:
Adding one more character causes the search to fail.

Screenshot 2025-01-08 at 14 26 09

Expected Behaviour:

The search should be able to match URLs even when the full string is not displayed due to truncation. Searching for components/agency_portal/app/uploaders/agency_po should still return the correct result, assuming the path exists in the data.

Steps to Reproduce:

Navigate to the coverage URL where the search functionality is available.
Locate a long URL that is truncated with ellipsis (...) in the view.
Search for a portion of the URL that includes characters beyond the visible, truncated part.
Observe the behavior: no results are returned despite the URL existing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant