Give I am visiting a collection with no members
When I click edit
Then I do not see a message suggesting that I have done a search
And I see a link to "Start a search"
Description
Details
Project | Branch | Lines +/- | Subject | |
---|---|---|---|---|
mediawiki/extensions/Gather | master | +13 -3 | Empty search suggests searching instead of /no results/ |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Jdlrobson | T95778 Tweak the search in EditorOverlay behaviour | |||
Resolved | • jhobs | T95966 When search returns no results no behaviour defined. | |||
Resolved | Jhernandez | T98642 Message under search for search in collections with no members is confusing |
Event Timeline
Hmmm.... I didn't know collections with no members could exist but that message should not have shown up anyways...
I'll claim this and operate under the assumption that "Try another search" should disappear, "Sorry, we couldn't..." should be replaced with "Start a search," and tapping/clicking "Start a search" should clear and focus the search bar.
@jhobs Can you grab this please, it is pretty ugly and it is seen by all users when they create a collection.
If you're busy let us know on the task and somebody else will catch it (it is at the top of the column so it is high priority for the PO I think)
@Jhernandez feel free to work on it. Jeff released it due to some zero Wikipedia commitments.
Change 210737 had a related patch set uploaded (by Jhernandez):
Empty search suggests searching instead of /no results/
Screenshots of how it looks now:
New collection without anything:
Click on the search box or the "Start a new search..." and you get:
Search for something that doesn't bring results:
Sending this to code review, but pinging @Jdlrobson and @KHammerstein because maybe there is some feedback just with the screenshots.
@KHammerstein visit the list of your collections: http://en.m.wikipedia.beta.wmflabs.org/wiki/Special:Gather/by/Jhernandez/ but with your username at the end, or go through the menu item Collections, and then at the bottom of the list you will see a "Create new collection" button.
The messages/flow also applies if you create a collection from a page but remove that page and leave an empty collection (which you can edit later).
Basically, if the search input has nothing, this shows the "Start a new search..." instead of the "OHGODNORESULTSTRYAGAIN" (which doesn't make sense if you didn't search for anything).
BTW, this is one the fastest times somebody has ever answered to a ping I've made. Huge props and thank you very much.
Change 210737 merged by jenkins-bot:
Empty search suggests searching instead of /no results/
@KHammerstein, @Jhernandez Sorry for getting to this late, but the current implementation is also confusing. Will file another ticket, as I think no message at all should be shown....
current:
Proposed