Page MenuHomePhabricator

Adjust empty states for search
Open, MediumPublic

Description

When searching to start a new translation in Section translation there are some situations where the search results is shown empty. This ticket proposes to show a message for these empty states:

  • Initial empty state. Other tickets will add contents to the search view initial state such as previously edited articles (T282430). However, it may be possible that content is not available for some users. In such case, this message will be shown: "Think of any topic of your interest. You don’t need to be an expert to create a great translation." This is already used in Content Translation on desktop to encourage users to translate.
  • No results found when searching. Users may provide a query for which there is no result. In such cases, we want to communicate that explicitly. Showing the search query and the language would help users identify whether they made a typo or were searching in the wrong language. The proposed message is "No pages found for "<query>" in <language>".

In both cases the message will be rendered in the same form, using a 16px font with Base30 color (#72777d):

New_translation_-_Search_Dimensions.png (494×510 px, 35 KB)

Current status:

Initial stateNo results found state
test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 5_SE).png (568×320 px, 16 KB)
test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 5_SE) copy.png (568×320 px, 13 KB)

Event Timeline

Change 700961 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX Article Search: Fix empty states for suggestions and results

https://gerrit.wikimedia.org/r/700961

Change 700961 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX Article Search: Fix empty states for suggestions and results

https://gerrit.wikimedia.org/r/700961