Preferences follow up#14851
Conversation
|
@neil-marcellini Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
neil-marcellini
left a comment
There was a problem hiding this comment.
This is looking pretty good, thanks. There's a couple small changes that would clean this up more.
Also, I discovered a bug related to this which is present on main. If you follow you testing steps and then sign back in, the language chose while signed out is not used after you sign in. I would expect the language choice to be persisted. If you agree it's a bug I can report it and create an issue.
language-change.mov
|
Hmm why wasn't a C+ reviewer automatically requested? |
|
Yeah I wonder why no C+ was added - maybe because the "Fixed issue" is just a PR comment? |
Beamanator
left a comment
There was a problem hiding this comment.
I agree with @neil-marcellini 's comments
Also, are you thinking about refactoring the options list menu items (in pronouns, timezone select, language, and priority mode) in a different PR?
yeah, because there is no fixed issue. Do you guys think it makes sense to add the same C+ that reviewed the original PR? Is it worth adding a C+ for these tiny changes? |
This is the issue for refactoring the option list. I thought that the changes in the current PR would be out of scope if I added in the PR with the option list refactor. |
This is because there is no authToken to persist the change on the server and when the user signs in, the language is overridden with whatever the server returns. Here are the statements which skip the persistence on the server. I don't know if we should fix this or not. Maybe ask the team? |
|
Thanks for the review! 🙏 |
Co-authored-by: Alex Beaman <alexbeaman@expensify.com>
Yeah I guess the changes are pretty small so it's probably not worthing paying $1000 for. One of us will have to run through the checklist however. @Beamanator would you be willing to do that? I'm working on fixing my iOS dev environment at the moment.
Ah I see. I doubt many people will follow this exact flow so it's probably not worth fixing. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-02-08.at.11.24.26.AM.movMobile Web - ChromeScreen.Recording.2023-02-08.at.11.33.25.AM.movMobile Web - SafariScreen.Recording.2023-02-08.at.11.36.40.AM.movDesktopScreen.Recording.2023-02-08.at.11.26.58.AM.moviOSScreen.Recording.2023-02-08.at.11.35.54.AM.movAndroidScreen.Recording.2023-02-08.at.11.32.02.AM.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 1.2.68-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.2.68-0 🚀
|
cc @Beamanator
Details
This is a follow-up PR with 2 tiny little changes asked for this PR
Fixed Issues
#14591 (comment)
Tests and QA Steps
Offline tests
N/A
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
android.chrome.mov
Mobile Web - Safari
ios.safari.mov
Desktop
desktop.mov
iOS
ios.native.mov
Android
android.native.mov