Page MenuHomePhabricator

Empty space search result
Closed, ResolvedPublic

Description

Problem

When entering space ( ) in search input, the app shows empty search result

Wanted

in other cases (language/feedback), trim the input to prevent empty result, the search screen should do the same

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
SBisson triaged this task as Medium priority.
SBisson moved this task from Ready for Dev to Dev on the Inuka-Team (Kanban) board.
Jpita moved this task from Product sign off to Ready for Dev on the Inuka-Team (Kanban) board.
Jpita subscribed.

this task just fixed the "stop searching with just a space in the text box" issue.
right now it's still possible to search by adding spaces after the first word, even if no other character besides a space is added

Screenshot 2021-02-24 at 21.03.46.png (634×1 px, 197 KB)

Steps:
1-add "a" on the search box
2-add a space in front of "a"

  • EXPECTED RESULT

no search API call is made and no loading animation appears

  • ACTUAL RESULT

every time I add another space, another api call is made and another loading animation appears

NOTE: This same issue is visible on wikipedia on the web but not on android nor ios