Git Product home page Git Product logo

Comments (7)

thesunshade avatar thesunshade commented on June 12, 2024 1

@buddhist-uni , @sabbamitta , @firepick1 per the discussion on gitter.

Did I capture all the situations we discussed? Does it seem useful and/or necessary?

from suttacentral.

sabbamitta avatar sabbamitta commented on June 12, 2024 1

Why so complicated? I would suggest the following much simpler solution:

  • user should have at least one document language for search ticked
  • the default, if they don't actively go to language settings, should be to have the site language selected (this is more useful than having all languages selected)
  • it is impossible to untick the only selected language without ticking another one
  • if a search returns no result, independent of languages selected, along with the message "no result" the user sees a hint "try searching in another language", maybe with a one click option to go to the language selection; this way they are shown that language selection for search is possible, something not everybody would think of naturally, especially users with little internet experience

from suttacentral.

sabbamitta avatar sabbamitta commented on June 12, 2024

BTW, what does SERP stand for?

from suttacentral.

thesunshade avatar thesunshade commented on June 12, 2024

BTW, what does SERP stand for?

Search Engine Result Page.

user should have at least one document language for search ticked
it is impossible to untick the only selected language without ticking another one

This is very hard to enforce. Currently there are two interfaces for selecting document languages. One is an overlay which you access from being on the SERP. The other is this page: https://suttacentral.net/search-options. For the overlay, you could make it so that you couldn't close it until you selected at least one option. However I don't know how it would be to prevent the closing of the page unless you have at least one ticked.

I don't like the experience of having to have two languages ticked just to be able to untick one. It would require an error message when you tried unchecking the last remaining option. And now the list of languages is so large that just having an error message at the top of the interface wouldn't work.

the default, if they don't actively go to language settings, should be to have the site language selected (this is more useful than having all languages selected)

I agree completely, however this just deals with default behaviour. Currently the default (meaning the user has never been to the settings) is to select English and all the source languages. I believe we are trying to change that, but there are bugs. In any case, this issue is about time after a "fresh" start up of the site.

I also agree that it's good to keep things simple, however I also like to make things as useful as possible, so it's a balance.

Of course I am very open to all ideas.

from suttacentral.

sabbamitta avatar sabbamitta commented on June 12, 2024

user should have at least one document language for search ticked
it is impossible to untick the only selected language without ticking another one

This is very hard to enforce.

Is it? We have it in Voice (the user has to select at least one language in which the text is shown, and if they try to untick the last option, this simply doesn't work). Karl didn't seem to find this hard to implement.

I don't like the experience of having to have two languages ticked just to be able to untick one.

Why would you want to have no language selected? If you want to untick one, this is usually because you want something else, not because you want nothing. 🤔

I agree completely, however this just deals with default behaviour.

I am proposing it because this would make sure that at least one language is in fact selected, and if the user searches in another one, they would be prompted that they should have a look at the language selection. However, I can't say anything as to the technical challenges. It seems to be already hard to get the site to open in the user's browser language by default—which to my mind would be by magnitudes more important.

from suttacentral.

thesunshade avatar thesunshade commented on June 12, 2024

Why would you want to have no language selected? If you want to untick one, this is usually because you want something else, not because you want nothing.

True, but if I try to uncheck a language and it won't let me and it doesn't tell me why it won't let me, then that's confusing. If I want to change from German to English, I shouldn't have to select German before I select English. Just my opinion.

Any way, you are really talking about #3110 aren't you? I realize they overlap a bit, but the "having no languages selected" falls under that issue.

from suttacentral.

sabbamitta avatar sabbamitta commented on June 12, 2024

Yes, they do overlap, to me they can't really be separated. Just keep the link to the other issue here, so the connection is visible.

from suttacentral.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.