-
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
Fix Issue 24522: User should not access add debit card with no permissions #25652
Conversation
@thesahindia 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] |
@thesahindia Thank you for your comments! I will fix them right now. Would you ne able to advice me how to fix mapbox issues for the tests? Locally, I do generate a token, but for a pull request, I am unable to fix it. PS: I would be very grateful, if we can merge the pull request within three days, ideally tomorrow or today evening! Thank you so much |
Well, I found the linting, tests are failing for everyone not only this PR: https://expensify.slack.com/archives/C01GTK53T8Q/p1692671810391089 I will fix the comments and be back to you! |
Fix tests issues related to mapbox
Hey @thesahindia, I have fixed all tests, checks, and your comments. Also, I have received a lint issue, which was triggered that my return statements is written before hooks. I just reorganized the code, and all working fine. |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-24.at.12.32.08.AM.movMobile Web - ChromeScreen.Recording.2023-08-24.at.12.39.59.AM.movMobile Web - SafariScreen.Recording.2023-08-24.at.12.46.47.AM.movDesktopiOSAndroid |
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!
@@ -94,6 +100,10 @@ function DebitCardPage(props) { | |||
return errors; | |||
}; | |||
|
|||
if (!Permissions.canUseWallet(props.betas)) { |
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.
Not A Blocker, but it would have been nice to add a comment explaining why this block is here. Perhaps you can do that in a followup PR?
✋ 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/flodnv in version: 1.3.58-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
🚀 Deployed to staging by https://github.com/flodnv in version: 1.3.59-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
Details
Fixed Issues
$ #24522
PROPOSAL: #24522 (comment)
Tests
QA Steps
Same as tests.
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
Screencast.from.21.2023.+01.07.40.37.webm
Mobile Web - Chrome
WhatsApp.Video.2023-08-22.at.04.41.04.mp4
Mobile Web - Safari
WhatsApp.Video.2023-08-22.at.04.41.02.mp4
Desktop
Screencast.from.22.2023.+01.04.02.43.webm
iOS
Screencast.from.22.2023.+01.03.48.36.webm
Android