-
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
fix style copy button #21698
fix style copy button #21698
Conversation
src/styles/styles.js
Outdated
minWidth: 140, | ||
}, | ||
|
||
verifyCodesButton: { |
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.
Can you rename the style here to something more close to what the buttons are for? e.g. twoFactorAuthCopyCodeButton
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.
Sure, I will update
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.
updated @s77rt .
Reviewer Checklist
Screenshots/VideosWebweb.mp4Mobile Web - Chromemweb-chrome.mp4Mobile Web - Safarimweb-safari.mp4Desktopdesktop.mp4iOSios.mp4Androidandroid.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.
LGTM! 🚀
🎀 👀 🎀 C+ reviewed
Sorry, I'm not very convinced of the new alignment and I just noticed it was shown in the proposal.
The larger space on the sides is what feels not so good to me: @shawnborton can you confirm if this is fine or if it needs adjustments? 🙏 |
I think we can adjustments like this, it looks better. what do you think @aldo-expensify cc @shawnborton |
@aldo-expensify Great catch. I missed that. Here is a proposed fix (with some extra adjustments):
|
@namhihi237 Thoughts on the above? |
@s77rt Yeah, Agree with you for the update. |
What if we shortened the copy to just say "Copy" instead of "Copy codes"? I think it's self explanatory, so we can make the copy shorter and thus the button length shorter too. Thoughts? |
Agree, I think we can update "Copy" instead, It is also easy to understand for users. It will be like this:
Screen.Recording.2023-06-29.at.02.03.59.mov |
I just noticed that the button being in Spanish made the issue more noticeable. I think it looks better now: #21698 (comment) Thanks! |
Cool looks good, let's make sure we test in responsive mode going from 250px wide to wide enough |
@s77rt What the expect for 250px b/c with the min size button 112px |
@namhihi237 The buttons do not respect the padding
|
@namhihi237 Can you please include screenshots for different sizes from 250px to (a wide enough)px using 50px or so increments |
@namhihi237 Thanks! @shawnborton Would you please check the above screenshots if the design is okay to go with |
Works for me! |
@namhihi237 On native the height is too much. Can you please fix this but keep using |
src/styles/styles.js
Outdated
@@ -2198,12 +2198,12 @@ const styles = { | |||
flexDirection: 'row', | |||
flexWrap: 'wrap', | |||
gap: 12, | |||
height: 148, | |||
minHeight: 148, |
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.
Question, why do we need a minHeight or height? Is it possible to let the container have the height defined by the content?
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.
Yeah, think again agree @aldo-expensify , We can don't need set height or minHeight.
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.
Work well from web, native (android and ios)
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.
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.
Hmm yeah, I thought this is made to make it look nice when no code is loaded, i.e. loading the spinner but the spinner uses it own View with a fixed height already.
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.
No we should only show the spinner if we are actually loading something. But in what cases no code is loaded (and the spinner is not loading either)
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.
So we only need to remove minHeight and height. @aldo-expensify What do you think about this, if we come to the conclusion I will update the PR right away for this.
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.
But in what cases no code is loaded (and the spinner is not loading either)
No cases? 🤷
So we only need to remove minHeight and height. @aldo-expensify What do you think about this, if we come to the conclusion I will update the PR right away for this.
I guess that sounds fine. Sounds good to you @s77rt ?
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.
Yes sounds good to 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.
Yeah thanks, The PR has been updated. cc @s77rt @aldo-expensify
2940422
to
c0924e6
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.
Thanks! Looks good to me
✋ 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/aldo-expensify in version: 1.3.36-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.36-5 🚀
|
Details
Fixed Issues
$ #21566
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
Offline tests
The same with test step
QA Steps
The same with test step
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
web-android.mov
Mobile Web - Safari
safari-mobile.MP4
Desktop
desktop.mov
iOS
native-ios.mov
Android
native-android.mov