-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
UX issue: translator popup opens on every page load #11305
Comments
design sync discussion: add button "dont show this again" which hides the banner for "x" time e.g. 2 weeks |
@konopkja I would like to work on this. Please assign me. |
Thanks @rohan9024! Some things to keep in mind here... Non-English paths (ie:
For (a), we display the English page instead, with a notice asking if they'd like to contribute to translations Sounds like we want the option to dismiss the solicitation for contributing specifically. Just keep in mind that we'll still want to show the banner for users who land on a page with more up-to-date content available on the English version (option Also @rohan9024, note that we have a |
Thank you @wackerow I'll proceed with implementing option b |
A quick question @wackerow Can you please help me navigating the translation pages in the codebase? So that I can just figure out why this bug is occurring |
ping @corwintines @wackerow |
This issue is stale because it has been open 45 days with no activity. |
Hey @rohan9024, apologies that we let this run stale.. Q4 was busy for our team and still catching up. First, curious if you're still interested in tackling this? If so,
Sorry for the confusion, but a, b and c above were not choices, but they are the three possible scenarios we encounter for a given page. We need to account for all three.
In this scenario, we need to add a second button to not show again.
@konopkja Curious how you want to handle this case. In this case, the content is more up-to-date in English, but some translate content does exist. We have two buttons here already—one to go to the more-updated English content, and one soliciting help translating.
For reference, the logic for when this banner shows up or not can be traced from the // src/layouts/RootLayout.tsx
export const RootLayout = ({
children,
contentIsOutdated,
contentNotTranslated,
lastDeployDate,
}: Root) => {
//...
const isPageLanguageEnglish = locale === DEFAULT_LOCALE
const shouldShowTranslationBanner =
(contentIsOutdated || (contentNotTranslated && !isPageLanguageEnglish)) &&
!isLegal
// ...
<TranslationBanner
shouldShow={shouldShowTranslationBanner}
isPageContentEnglish={contentNotTranslated}
originalPagePath={originalPagePath}
/> The component itself would be |
i dont remember why we decided this way, but i think any action to close the popup should be remembered for XYZ amount of time. With that in mind in the scenario where there is translated but outdated content we should prioritize 2 most important actions:
In regular scenario
|
Since #13005 was merged in, this UX issue doesnt exist anymore since these banners no longer appear. Going to close this out with that merged. Note: the core team is looking at adding the logic back in for showing these translation banners as part of the performance epic being worked on. |
Describe the bug
When I visit non-translated page on other than english page, I see a popup highliting translator program.
When I close this popup to keep reading the content and then go to another page on our domain, the popup appears again. If i close it again, it will show on another page visit again.
This is annoying - if user shows a desire to hide this popup, the popup should remain closed on every new page load.
To reproduce
Expected behavior
Pop up remains closed if user closed it.
Screenshots
No response
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional context
Would you like to work on this issue?
The text was updated successfully, but these errors were encountered: