Skip to content

[Regression test steps needed][$1000] BUG: Add attachment send button is too large #13193

Closed

Description

@neil-marcellini

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:

  1. Log in with any account
  2. Open a chat and click the plus button to add an attachment, select a file to upload

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.

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

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:
image

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

Activity

  1. added
    AutoAssignerTriage
    Daily
    on Nov 30, 2022
  2. melvin-bot commented on Nov 30, 2022

    @melvin-bot

    Triggered auto assignment to @kevinksullivan (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

  3. removed
    AutoAssignerTriage
    on Nov 30, 2022
  4. self-assigned this
    on Nov 30, 2022
  5. allroundexperts commented on Nov 30, 2022

    @allroundexperts
    Contributor

    What is the required width @neil-marcellini?

  6. neil-marcellini commented on Nov 30, 2022

    @neil-marcellini
    ContributorAuthor

    cc @Expensify/design

  7. Pujan92 commented on Nov 30, 2022

    @Pujan92
    Contributor

    Proposal

    To make it normal at center postion we can update the style for the button.

    App/src/styles/styles.js

    Lines 472 to 474 in 2881f18

    buttonConfirm: {
    margin: 20,
    },

    alignItems: 'center',

    Screenshot 2022-12-01 at 12 12 01 AM

  8. shawnborton commented on Nov 30, 2022

    @shawnborton
    Contributor

    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.

  9. Puneet-here commented on Nov 30, 2022

    @Puneet-here
    Contributor

    Proposal

    Add attachmentButtonBigScreen to styles.js

    attachmentButtonBigScreen:{
            minWidth: 300,
            alignSelf: 'center'
        }

    Pass {[styles.buttonConfirm, this.props.isSmallScreenWidth ? {} : styles.attachmentButtonBigScreen]} at style

    style={[styles.buttonConfirm]}

    small screen
    Screenshot 2022-12-01 at 12 45 57 AM

    big screen
    Screenshot 2022-12-01 at 12 41 24 AM

    We need to passkey={this.props.isSmallScreenWidth}. If we want the button size to change when decreasing screen size. Because of it the button will re render when screen size changes and the needed styles will be applied

  10. akshayasalvi commented on Nov 30, 2022

    @akshayasalvi
    Contributor

    Proposal

    In the styles.js update the buttonConfirm with the following styles:

      buttonConfirm: {
        alignSelf: `center`,
        minWidth: 300
      }
    
    
    
    

    Web Version
    image

    iOS version
    image

  11. shawnborton commented on Nov 30, 2022

    @shawnborton
    Contributor

    For mobile/small devices, we should have the button extend to full width. Only desktop/wide devices should get the min-width.

  12. Puneet-here commented on Nov 30, 2022

    @Puneet-here
    Contributor

    @shawnborton, can you please check my proposal

  13. shawnborton commented on Nov 30, 2022

    @shawnborton
    Contributor

    Yup that works for me, but let's have our contributor team file and review first.

  14. 45 remaining items

  15. thesahindia commented on Dec 21, 2022

    @thesahindia
    Member

    Accepted, thanks!

  16. thesahindia commented on Dec 21, 2022

    @thesahindia
    Member

    And can someone fill out the checklist items as well before we close this one out?

    It wasn't a regression ( just an improvement) so we are good here.

  17. mallenexpensify commented on Dec 24, 2022

    @mallenexpensify
    Contributor

    Paid @thesahindia and @Puneet-here $1500, inc. the 50% bonus for expediency.
    Thanks!
    I think we still need to add regression steps to TestRail, assigned myself to hopefully help with those next week.

  18. melvin-bot commented on Jan 2, 2023

    @melvin-bot

    @kevinksullivan, @mallenexpensify, @grgia, @thesahindia, @Puneet-here Huh... This is 4 days overdue. Who can take care of this?

  19. thesahindia commented on Jan 2, 2023

    @thesahindia
    Member

    No actions are needed from me, so unassigning.

  20. removed their assignment
    on Jan 2, 2023
  21. changed the title [-][HOLD for payment 2022-12-15] [$1000] BUG: Add attachment send button is too large[/-] [+][Regression test steps needed][$1000] BUG: Add attachment send button is too large[/+] on Jan 3, 2023
  22. mallenexpensify commented on Jan 3, 2023

    @mallenexpensify
    Contributor

    Confirming regression test steps here

  23. mallenexpensify commented on Jan 3, 2023

    @mallenexpensify
    Contributor

    Didn't get feedback in Slack, thinking of adding the below, will do tomorrow after leaving here for a day
    Recommendation: Update to add a regression step to
    Compose box - Attachments (images) 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.

    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.

  24. melvin-bot commented on Jan 11, 2023

    @melvin-bot

    @kevinksullivan, @mallenexpensify, @grgia, @Puneet-here Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  25. mallenexpensify commented on Jan 11, 2023

    @mallenexpensify
    Contributor

    Regression test steps added https://github.com/Expensify/Expensify/issues/254500
    @thesahindia @grgia , can you check off the other three boxes here then close this?
    #13193 (comment)

  26. thesahindia commented on Jan 11, 2023

    @thesahindia
    Member

    It was an improvement and not a bug so I think we can skip them.

  27. mallenexpensify commented on Jan 12, 2023

    @mallenexpensify
    Contributor

    K, closing then. @grgia plz reopen if you disagree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternalReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions