-
Notifications
You must be signed in to change notification settings - Fork 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
Disable timezone list if automatic timezone is turned on #24577
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 |
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!
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 |
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 guys!
✋ 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/select
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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