Disable timezone list if automatic timezone is turned on#24577
Conversation
|
@0xmiroslav 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] |
|
We can notice from the recording that the list item is highlighted when focused because it has a We have a similar issue previously here. Do we want to remove the with Screen.Recording.2023-08-15.at.21.08.07.movwithout Screen.Recording.2023-08-15.at.21.08.53.movthis is the only place that use |
|
@0xmiroslav bump for review |
|
@bernhardoj item should not be highlighted on click when disabled Screen.Recording.2023-08-18.at.8.14.30.AM.mov |
|
That's the issue I mentioned in my previous comment. |
|
@bernhardoj yes, but it's when not disabled, correct? The issue you mentioned is also the case when disabled? |
|
Yes, it's the same. Disabled or enabled, the pressable can receive a focus event. I think it makes sense to disable the focus event when the pressable ( |
|
This was original behavior before SelectionListRadio refactor: 219102821-485d5a8e-e2bf-4b1e-92e0-47ae3f611fb5.mov |
|
Honestly I don't care about this UX too much (the issue itself is edge case) but someone will be sure to report this as regression |
Why can't we just do this? |
|
@mountiny do you agree this won't be considered as bug? #24577 (comment) with |
We can totally do this, but I'm thinking why we want to keep the focus style. I reported a similar issue about the focus style here applied in It's actually not related to our issue, but I think maybe we can remove it here. |
This is actually workaround. We should prevent highlight in root level on PressableWithFeedback component when |
|
So I'd say that concern is out of scope for this PR |
|
I believe this inconsistency will be reported by someone:
msafari.mov
ios.movI think we can leave this for this PR but just to confirm that we're already aware of this |
technically, I think it's not inconsistent because
So, should I report this focus issue as a new bug? |
Maybe you can report and tag Shawn to get design feedback |
Reviewer Checklist
Screenshots/VideosWebweb-ios.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
0xmiroslav
left a comment
There was a problem hiding this comment.
LGTM!
cc: @mountiny
Confirmation from you:
#24577 (comment)
#24577 (comment)
|
@bernhardoj Could you please post in slack with the two options and tag Shawn to decide this? thanks! |
|
Reported it here https://expensify.slack.com/archives/C049HHMV9SM/p1692362806331939 |
|
Merged with |
|
Works well Screen.Recording.2023-08-18.at.3.30.06.PM.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. |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.56-0 🚀
|
|
@mvtglobally Applause reported this PR as a QA fail. Not a deploy blocker, but fails to address the original issue. Can you provide some additional details here? |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 1.3.56-24 🚀
|
Details
When the automatic timezone is turned on, we can go to the selection/list page and select manually a new one. We previously disabled the list here, but because of some regression, we need to refix this again.
Fixed Issues
$ #24516
PROPOSAL: #24516 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
staging.new.expensify.com/settings/profile/timezone/selectPR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Screen.Recording.2023-08-15.at.20.22.16.mov
Mobile Web - Chrome
Screen.Recording.2023-08-15.at.20.40.39.mov
Mobile Web - Safari
Screen.Recording.2023-08-15.at.20.31.50.mov
Desktop
Screen.Recording.2023-08-15.at.20.26.17.mov
iOS
Screen.Recording.2023-08-15.at.20.30.30.mov
Android
Screen.Recording.2023-08-15.at.21.10.13.mov