-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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 20152: In split bill upon selection of 8 participants first user gets highlighted. #20649
Fix 20152: In split bill upon selection of 8 participants first user gets highlighted. #20649
Conversation
…er to determine whenever arrow down action is triggered or not when the maximum participant number is exceeded
@Julesssss @eVoloshchak One of you needs to 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] |
@@ -21,11 +21,15 @@ const propTypes = { | |||
|
|||
/** If this value is true, then we exclude TextArea Node. */ | |||
shouldExcludeTextAreaNodes: PropTypes.bool, | |||
|
|||
/** If this value is true, then the arrow down callback would be triggered when the max index is exceeded */ | |||
shouldTriggerArrowDownWhenMaxIndexExceeded: PropTypes.bool, |
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'm trying to think of a simpler name for this.
Maybe something like isArrowDownAllowedBeyondMax
or shouldArrowDownExtendBeyondComponent
? They kinda suck though.
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.
since the main purpose of the arrowDown operation in this case is to reset the index of the highlighted item to 0 (introduced in #18955), can we name it shouldResetFocusedIndexWhenMaxIndexExceeded
?
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.
Since the max index exceeded means we've reached the end of the list, we can call it shouldResetIndexOnEndReached
I'm also ok with shouldResetFocusedIndexWhenMaxIndexExceeded
, it's long but self-explanatory
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 like shouldResetIndexOnEndReached
, can we use that please
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-06-14.at.16.44.22.movMobile Web - Chromescreen-20230614-164809.mp4Mobile Web - SafariScreen.Recording.2023-06-14.at.16.41.23.movDesktopScreen.Recording.2023-06-14.at.16.43.36.moviOSScreen.Recording.2023-06-14.at.16.42.11.movAndroidscreen-20230614-164736.mp4 |
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.
Looking good, will approve once we have updated the var name
@Julesssss @eVoloshchak I just updated the props name |
✋ 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/Julesssss in version: 1.3.29-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.29-11 🚀
|
Details
This PR adds a
shouldTriggerArrowDownWhenMaxIndexExceeded
prop intoArrowKeyFocusManager
component with default valuetrue
. The prop is set tofalse
inBaseOptionSelector
, which prevents the highlighted options from resetting to 1 when the maximum number of selection is reached. This PR fix the issue in theMoneyRequestParticipantsSelector
component (split bill page) and theNewChatPage
(new group chat page).Fixed Issues
$ #20152
PROPOSAL: #20152 (comment)
Tests
Offline tests
N/A
QA Steps
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
20152-web.mov
Mobile Web - Chrome
20152-mweb-chrome.mov
Mobile Web - Safari
20152-mweb-safari.mov
Desktop
20152-desktop.mov
iOS
20152-ios.mov
Android
https://drive.google.com/file/d/1_zitMb0UvCpXVZ5DSl4xQq47Elzxm9uQ/view?usp=sharing