-
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
Add missing alternateText
option in option
#11023
Conversation
|
5676fc7
to
6328e5e
Compare
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.
Works well for me!
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 am confused how this broke in the first place though. I checked tim's code and I didn't see where it was incorrect. |
@@ -343,6 +343,7 @@ function createOption(logins, personalDetails, report, reportActions = {}, { | |||
result.login = personalDetail.login; | |||
result.phoneNumber = personalDetail.phoneNumber; | |||
result.payPalMeAddress = personalDetail.payPalMeAddress; | |||
result.alternateText = Str.removeSMSDomain(personalDetail.login); |
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.
This is based on what we do above with the personalDetail.login
, for example here.
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.
Ah, nice catch! Thank you for adding this!
I'm not 100% sure either, but I think in the past it used to be set on that line that got removed in the PR. |
But in that PR it did not get removed, it was moved here. the logic of the if else is still the same 🤔 Anyway this works, I was just mostly curious. |
Yah but the line you linked to is inside an |
…sAlternateText Add missing `alternateText` option in option (cherry picked from commit b5d2825)
…-11023 🍒 Cherry pick PR #11023 to staging 🍒
🚀 Cherry-picked to staging by @francoisl in version: 1.2.0-7 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Cherry-picked to staging by https://github.com/AndrewGable in version: 1.3.28-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
cc @tgolen if you think of a better way to fix this. This seems to have been introduced in #10784.
Details
alternateText
based on apersonalDetail
'slogin
.Fixed Issues
$ #11021
Tests/QA
Same steps as #11029
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
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)QA Steps
Screenshots
Web
Mobile Web
Desktop
iOS
Android