-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix #15735 Remove the Refresh modal class #16378
Conversation
Hi, @Priyansh61, this pull request does not have a "CHANGELOG: ..." label as mentioned in the PR pointers. Assigning @Priyansh61 to add the required label. PRs without this label will not be merged. If you are unsure of which label to add, please ask the reviewers for guidance. Thanks! |
@nithinrdy PTAL! |
Hey, could you please explain the ideal expected behaviour (the behaviour that this PR is trying to achieve) just for my understanding? |
Thank you @nithinrdy for reviewing the PR. Since a refresh is not required to change the language that appears to the user after selecting the language translation option, the PR eliminates the refresh functionality. This does help to prevent unnecessary language switches to English when the user chooses another language. In order to change the language without requiring a refresh, I removed the refresh modal class along with the tests and added some functionality. I hope this helps 😄 |
Hi @Priyansh61, there is a new change in develop which needs to be in your PR. Please update your branch with the latest changes in develop. For instructions, refer to this link. Thanks! |
@Priyansh61 the issue description says that the issue arises when the user makes some progress (completes a state, for example), and then changes the language.
The video in the PR description doesn't display that user journey. The language is changed before even the first card is completed. Could you please upload a new video where you first complete a state and then change the language, and show that the issue no longer occurs? |
@nithinrdy I just had a doubt, we cant change the language of a card when we move to the next one since there is no language selection option available on the new card. language-2022-10-28_14.39.12.mp4So is this what you were asking me to show ?? 😅 |
Hi @Priyansh61, the build of this PR is stale and this could result in tests failing in develop. Please update this pull request with the latest changes from develop. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Left a comment.
...lates/pages/exploration-player-page/layout-directives/content-language-selector.component.ts
Outdated
Show resolved
Hide resolved
Hi @Priyansh61, the build of this PR is stale and this could result in tests failing in develop. Please update this pull request with the latest changes from develop. Thanks! |
Hi @Priyansh61, the build of this PR is stale and this could result in tests failing in develop. Please update this pull request with the latest changes from develop. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Priyansh61 great job on the tests. Only some lint issues left. PTAL
]); | ||
}); | ||
|
||
it('should correcly initialize newLanguageCode', () => { | ||
windowRef = TestBed.inject(WindowRef); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this line to the beforeEach
block?
.../pages/exploration-player-page/layout-directives/content-language-selector.component.spec.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a review above PTAL
…/content-language-selector.component.spec.ts Co-authored-by: Praneeth <praneethg2001@gmail.com>
@gp201 PTAL! I have addressed all the requested changes :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @nithusha21, this PR is ready to be merged. Author of this PR does not have permissions to merge this PR. Before you merge it, please make sure that there are no pending comments that require action from the author's end. Thanks! |
Overview
Essential Checklist
Proof that changes are correct
language-2022-10-21_22.53.16.mp4
Proof of changes on desktop with slow/throttled network
Proof of changes on mobile phone
Proof of changes in Arabic language
PR Pointers