-
Notifications
You must be signed in to change notification settings - Fork 135
Blank page no vocabulary items are found #2273
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
Comments
If you are referring to the thin light green text on a block of darker green, I find that a lot more difficult to read than the current black font on a white background as shown in the screenshot in the first post in this discussion. I suspect this goes against accessibility guidelines that a lot of websites follow to help those with vision problems. |
Thanks for the insight @ckjpn ! It's good to consider accessibility. It seems the green header also exists in the case where there are words in need of sentences are displayed: @trang are we going to change the display header anytime soon for accessibility? Regarding the styling question, I was wondering about this section in particular, where the additional message is marked in green: Do we want to display "There are no requests for this language that do not already have at least 10 sentences." along with the existing header as shown in the screenshots, or as a separate entry with different styling? I am open to suggestions :) Also, is there a function that would allow us to query the current language being featured, so that we can display "There are no requests for that do not already have at least 10 sentences." |
In the controller we pass already
We have a helper function $language = $this->Languages->codeToNameAlone($langFilter) (you should handle the case where |
We currently don't have a distinct design/style that determines how to display an empty result page (see also #2074, third bullet point). I personally prefer having just a simple explanation without any header like we do for example with searches: https://tatoeba.org/eng/sentences/search?query=&from=abk&to=afh |
@speedysera There's indeed no default style yet for "no results" pages but I started to introduce something for the lists when they're empty. You can do something that looks similar here for the vocabulary and a create CSS class in the
As for the language information, you could add it in the title rather than the "no requests" text. This would follow the pattern on other pages. |
Thank you, the above looks much clearer, let me implement that. |
…nguage, there is no indication why the page is blank when there are no vocabulary items found.
@AndiPersti hi! I tried to reflect all the comments above, hope it's alright |
@speedysera It looks good. Please show us the code! 🙂 |
…nguage, there is no indication why the page is blank when there are no vocabulary items found.
hi! please take a look at the code if it's alright. I can create the new PR afterwards |
@speedysera Thanks! The code looks good. Note that it’s better if you create the PR first and then we look at the code. Don’t worry, you don’t have to get it perfect beforehand. We are all here to learn. 👍 |
hi @jiru and @AndiPersti ! thanks for the awesome comments, I will work on them. |
…nguage, there is no indication why the page is blank when there are no vocabulary items found.
Problem
When filtering by language, often the page is blank with no idication why it is blank.
https://tatoeba.org/eng/vocabulary/add_sentences/kor
Possible Solution
Put a message saying something like the following.
There are no requests for Korean.
There are no requests for this language.
There are no requests for Korean that do not already have at least 10 sentences.
There are no requests for this language that do not already have at least 10 sentences.
Originally posted by @ckjpn in #1148 (comment)
The text was updated successfully, but these errors were encountered: