-
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
[Regression test steps needed][$1000] BUG: Add attachment send button is too large #13193
Comments
Triggered auto assignment to @kevinksullivan ( |
What is the required width @neil-marcellini? |
cc @Expensify/design |
Proposal To make it normal at center postion we can update the style for the button. Lines 472 to 474 in 2881f18
|
As for the button, we want it to be full width on mobile but for desktop, maybe we just give it a larger min-width (like 300?) and center it like it's shown above? Looks like we need to update the background color behind the PDF as well. |
ProposalAdd attachmentButtonBigScreen:{
minWidth: 300,
alignSelf: 'center'
} Pass App/src/components/AttachmentModal.js Line 281 in 1f71832
We need to pass |
For mobile/small devices, we should have the button extend to full width. Only desktop/wide devices should get the min-width. |
@shawnborton, can you please check my proposal |
Yup that works for me, but let's have our contributor team file and review first. |
With the below solution, we can handle the small and large devices with a single class.
b8fa075e-11e9-4b2b-897d-6c645ff678d0.webm |
Adding the external label now |
Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new. |
Job added to Upwork: https://www.upwork.com/jobs/~016b240866a2f9a693 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Current assignee @grgia is eligible for the External assigner, not assigning anyone new. |
Current assignee @kevinksullivan is eligible for the Bug assigner, not assigning anyone new. |
@Puneet-here's proposal looks good to me. It handles small screen devices too. 🎀👀🎀 C+ reviewed cc: @grgia |
@thesahindia do you think this is more suitable for this change where a same class is handling both devices? |
Proposal@thesahindia @shawnborton I agree with @Puneet-here proposal. He however missed the incorrect background colour in the pdf preview screen. This can be fixed by: diff --git a/src/components/AttachmentModal.js b/src/components/AttachmentModal.js
index 7895b119b..f1831bc09 100755
--- a/src/components/AttachmentModal.js
+++ b/src/components/AttachmentModal.js
@@ -275,10 +275,10 @@ class AttachmentModal extends PureComponent {
{/* If we have an onConfirm method show a confirmation button */}
{this.props.onConfirm && (
- <Animated.View style={StyleUtils.fade(this.state.confirmButtonFadeAnimation)}>
+ <Animated.View style={[StyleUtils.fade(this.state.confirmButtonFadeAnimation), styles.buttonConfirmContainer]}>
<Button
success
- style={[styles.buttonConfirm]}
+ style={[styles.buttonConfirm, this.props.isSmallScreenWidth ? undefined : styles.attachmentButtonBigScreen]}
textStyles={[styles.buttonConfirmText]}
text={this.props.translate('common.send')}
onPress={this.submitAndClose}
diff --git a/src/styles/styles.js b/src/styles/styles.js
index adedd13af..87282326e 100644
--- a/src/styles/styles.js
+++ b/src/styles/styles.js
@@ -469,6 +469,11 @@ const styles = {
marginRight: 22,
},
+ attachmentButtonBigScreen: {
+ alignSelf: 'center',
+ minWidth: 300,
+ },
+
buttonConfirm: {
margin: 20,
},
@@ -1822,7 +1827,7 @@ const styles = {
imageModalPDF: {
flex: 1,
- backgroundColor: themeColors.modalBackground,
+ backgroundColor: themeColors.componentBG,
},
PDFView: {
@@ -1830,7 +1835,7 @@ const styles = {
// It's being used on Web/Desktop only to vertically center short PDFs,
// while preventing the overflow of the top of long PDF files.
display: 'grid',
- backgroundColor: themeColors.modalBackground,
+ backgroundColor: themeColors.componentBG,
width: '100%',
height: '100%',
justifyContent: 'center',
Result |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.36-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-12-15. 🎊 After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@kevinksullivan, @grgia, @thesahindia, @Puneet-here Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Sorry for the delay here. @Puneet-here @thesahindia I just hired both of you for the job. Can you let me know once you've accepted to I can pay this out? |
And can someone fill out the checklist items as well before we close this one out? |
Accepted, thanks! |
It wasn't a regression ( just an improvement) so we are good here. |
Paid @thesahindia and @Puneet-here $1500, inc. the 50% bonus for expediency. |
@kevinksullivan, @mallenexpensify, @grgia, @thesahindia, @Puneet-here Huh... This is 4 days overdue. Who can take care of this? |
No actions are needed from me, so unassigning. |
Confirming regression test steps here |
Didn't get feedback in Slack, thinking of adding the below, will do tomorrow after leaving here for a day Compose box - Attachments (PDF) as new step #4 `Verify the width of the send button doesn't extend to the far edges of the screen on desktop, web and wide devices. |
@kevinksullivan, @mallenexpensify, @grgia, @Puneet-here Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Regression test steps added https://github.com/Expensify/Expensify/issues/254500 |
It was an improvement and not a bug so I think we can skip them. |
K, closing then. @grgia plz reopen if you disagree |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The send button is centered and has a normal width
Actual Result:
The send button stretches across the whole modal
Workaround:
Ignore the visual oddity
Platform:
All? Needs testing.
Version Number: v1.2.34-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
Issue reported by: @neil-marcellini
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1669828932546429
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: