-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Country Selector #28
Comments
I'll work on this |
@Squallac excellent, thank you. |
@philsturgeon Do we have a specific list of countries that you want to show? Or I'll just list all of them |
All the ones we have content for. It can be done manually, but bonus points if it can be automated. |
I took a swing at fixing the country selector in v1 (b0314ab) because v2 stalled out, but I cannot seem to get the selection to persist between page loads because I do not understand React context. If anyone can get it working in main real quick then we can have this handy feature alive until v2 comes along. To try it out, uncomment the selector in the footer, and refresh after selecting. Currently the country you selected will vanish on refresh or clicking to another page. If you get persistence working, when you go to a category you should only see links for the country or global content. |
I'll start exploring this. Was considering persisting some state in session storage or a cookie, if no one has any objections. |
Sounds good!
…On Tue, Oct 20, 2020 at 16:32, Piper ***@***.***> wrote:
> I took a swing at fixing the country selector in v1 ([b0314ab](b0314ab)) because v2 stalled out, but I cannot seem to get the selection to persist between page loads because I do not understand React context. If anyone can get it working in main real quick then we can have this handy feature alive until v2 comes along.
>
> To try it out, uncomment the selector in the footer, and refresh after selecting. Currently the country you selected will vanish on refresh or clicking to another page.
>
> If you get persistence working, when you go to a category you should only see links for the country or global content.
I'll start exploring this. Was considering persisting some state in session storage or a cookie, if no one has any objections.
—
You are receiving this because you were mentioned.
Reply to this email directly, [view it on GitHub](#28 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AAAQONKCHQNZ43KYBKHZC5DSLWNOLANCNFSM4L4ADYRQ).
|
The goal of the selector is to help elevator relevant content to you, so somebody in Serbia should be able to see any content which is in Serbia, as well as globally available content.
Country selection for now will have nothing to do with translations or localization, we'll deal with that in #14 later.
A selector like this would be awesome:
All categories should be available to people, even if there are no suggestions in that category.
All tags should be available to people, even if there are no suggestions in that tag.
We could show a message like "There are currently no available actions in your country, but click here to see some more ideas." and it expands a global list, We don't want people to be unable to find things, we just want it to be relevant to them if possible.
The text was updated successfully, but these errors were encountered: