-
Notifications
You must be signed in to change notification settings - Fork 2.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
[CP Staging] fix(selection-list): scroll to top, cmd enter, tab key #25955
[CP Staging] fix(selection-list): scroll to top, cmd enter, tab key #25955
Conversation
@jasperhuangg 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] |
Reviewer Checklist
Screenshots/VideosWeb & DesktopScreen.Recording.2023-08-25.at.11.10.24.PM.movMobile Web - Chrome & Mobile Web - SafariScreen.Recording.2023-08-25.at.11.30.25.PM.moviOS & AndroidScreen.Recording.2023-08-25.at.11.25.58.PM.mov |
I noticed a weird issue while testing this one on iOS. The Screen.Recording.2023-08-25.at.11.20.35.PM.mov |
It's not caused by any changes in the PR. It's happening on the main too, and can see the same issue on the PR reviewed earlier too. |
Thanks @Santhosh-Sellavel . I think we could fix this in Phase 3 of the refactor, since this wasn't reported as a deploy blocker |
|
||
export default function useActiveElement() { |
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.
NAB Can we have a comment for the file?
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.
@thiagobrez Please include in the follow-up issues if the PRs gets merged
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.
Tests Pass. LGTM!
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.
Code LGTM 👍
…egressions-2 [CP Staging] fix(selection-list): scroll to top, cmd enter, tab key (cherry picked from commit 09a07ae)
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.3.57-5 🚀
|
✋ 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 production by https://github.com/luacmartins in version: 1.3.57-6 🚀
|
🚀 Deployed to staging by https://github.com/cristipaval in version: 1.3.59-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
Details
Fixes part of the regressions found in SelectionList, enumerated here: https://expensify.slack.com/archives/C01GTK53T8Q/p1692920321478729
More context:
https://expensify.slack.com/archives/C01GTK53T8Q/p1692952886670059
Fixed Issues
$ #25877
$ #25878
$ #25883
PROPOSAL:
Tests
In Workspace Invite page:
Offline tests
QA Steps
In Workspace Invite page:
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
web.mov
Mobile Web - Chrome
android.web.mov
Mobile Web - Safari
ios.web.mov
Desktop
desktop.mov
iOS
ios.native.mov
Android
android.native.mov