Skip to content

[HOLD for payment June 29] Update compose box to send photos and text in one message #2258

Closed

Description

@kadiealexander

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Expected Result:

  1. When uploading image attachments in Expensify.cash, the existing attachment preview modal should appear. Instead of saying "Upload", it should now say "Send".

This should work the same for all three modes of interaction:
- Manually picking an image using the AttachmentPicker,
- Drag-and-dropping a photo into the ReportActionCompose,
- Pasting a photo into the ReportActionCompose from the platform's native clipboard.

  1. After hitting "Send", any draft text in the composition box should be sent, followed by the attached image below the text.

@mallenexpensify @shawnborton if you have nothing else to add here then feel free to apply the External label so we can get this on Upwork.

Actual Result:

  • Image uploads and text in compose box persists.

Action Performed:

Web/Desktop

  • Type text in compose box
  • Drag/drop image to compose box to upload
  • Click 'Upload`

Mobile web/app

  • Type text in compose box
  • Tap attachment/paperclip icon
  • Tap Photo Library or Choose from Gallery
  • Select photo and tap Choose or Upload to upload

Platform:

Where is this issue occurring?

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

Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/156214
Platform - version: All

Notes/Photos/Videos:
Big ol' thread in Slack - link
iOS/Messenger is what we're wanting to mimic
IMG_5636

IMG_5637

Slack does a good job of handling this but they put they post the text above the image.
image

Activity

  1. kadiealexander commented on Apr 7, 2021

    @kadiealexander
    ContributorAuthor
  2. johndev0711 commented on Apr 10, 2021

    @johndev0711
    Contributor

    Hello, @kadiealexander. How are you?
    I have a good solution about this issue which can solve simply and perfectly. I've ever implemented it on past projects before.
    Likewise, I'd love to build a customized component for this feature.
    The solution is as follows:

    1. Create a composed box which contain drop box and text box.(text box is exist currently).
    2. The drop box is displayed when there is any attachment the user want. And the user select the file, it places on the drop box. If there isn't any attachment, the drop box would be hidden.
    3. When the user clicks the send button, the data of the composed box will be sent together to the target.

    What do you think?
    Looking forward to hearing from you soon.

  3. JmillsExpensify commented on Apr 13, 2021

    @JmillsExpensify
    Contributor

    Hi @johndev0711 apologies for the delay on this one! We're going to take this issue back into an internal planning stage so that we can get more crisp on details. We'll be sure to update this issue in the near future with crisp details on next steps. Thank you!

  4. johndev0711 commented on Apr 13, 2021

    @johndev0711
    Contributor

    Thanks for your info.

  5. changed the title [-]Update compose box to send photos and text in one message[/-] [+][HOLD] Update compose box to send photos and text in one message[/+] on Apr 14, 2021
  6. added
    Planning
    on May 26, 2021
  7. removed
    Planning
    on May 26, 2021
  8. changed the title [-][HOLD] Update compose box to send photos and text in one message[/-] [+]Update compose box to send photos and text in one message[/+] on May 26, 2021
  9. changed the title [-]Update compose box to send photos and text in one message[/-] [+][HOLD] Update compose box to send photos and text in one message[/+] on May 26, 2021
  10. roryabraham commented on May 26, 2021

    @roryabraham
    Contributor

    @kadiealexander I see that the old Upwork listing for this issue has been closed. Can you create a new one please so we can push this issue along? As soon as you have the new Upwork posting, please:

    1. Update the E/E tracking issue
    2. Update the OP of this issue with the new Upwork posting
    3. Take this issue off hold

    Then we can start taking contributor proposals for this!

  11. added
    Daily
    NewFeature
    on May 26, 2021
  12. mallenexpensify commented on May 26, 2021

    @mallenexpensify
    Contributor

    I'm going to assign the External label because a) it hasn't been yet and b) because Rory updated the OP so all the details are there for the post.

  13. 29 remaining items

  14. parasharrajat commented on Jun 21, 2021

    @parasharrajat
    Member

    @kadiealexander Sorry, it got slipped out of my mind. I will submit the proposal today and start work asap.

  15. parasharrajat commented on Jun 21, 2021

    @parasharrajat
    Member

    Proposal

    1. If we simply want to change the Title of Attachment Modal then we need to change the title here https://github.com/Expensify/Expensify.cash/blob/91a2f1ae9bf72077b41867d64a611eecdaed1b3f/src/components/AttachmentModal.js#L121
      To localized send string.
    2. Change the button text as well https://github.com/Expensify/Expensify.cash/blob/91a2f1ae9bf72077b41867d64a611eecdaed1b3f/src/components/AttachmentModal.js#L140.
    3. Then we need to modify the onConfrim callback of AttachmentModal so that it submits the text in composer first if any and then images.
      it can be simply done by calling the submitForm method here https://github.com/Expensify/Expensify.cash/blob/91a2f1ae9bf72077b41867d64a611eecdaed1b3f/src/pages/home/report/ReportActionCompose.js#L405-L408;
     onConfirm={(file) => {
                                this.submitForm();
                                addAction(this.props.reportID, '', file);
                                this.setTextInputShouldClear(false);
       }}
    

    SubmitForm automatically checks the comment before sending so it will just work fine.

    Let me know if any other design change is needed. Thanks. If this looks good. I can submit the PR in no time.

  16. roryabraham commented on Jun 21, 2021

    @roryabraham
    Contributor

    Nice, proposal looks good to me @parasharrajat 👍

  17. parasharrajat commented on Jun 21, 2021

    @parasharrajat
    Member

    Lol, I was just going to ping. Thanks for confirming PR is ready.

  18. changed the title [-]Update compose box to send photos and text in one message[/-] [+][HOLD for payment June 29] Update compose box to send photos and text in one message[/+] on Jun 22, 2021
  19. Jag96 commented on Jun 22, 2021

    @Jag96
    Contributor

    Updated title to HOLD for payment

  20. reopened this on Jun 22, 2021
  21. added
    Weekly
    and removed
    Daily
    on Jun 22, 2021
  22. parasharrajat commented on Jun 29, 2021

    @parasharrajat
    Member

    @kadiealexander any update here for me. thanks.

  23. kadiealexander commented on Jun 30, 2021

    @kadiealexander
    ContributorAuthor

    @parasharrajat sorry about this, the job was moved to our Enterprise login and a bit of weirdness occurred. I've just sent an offer in Upwork, if you could please accept this and I'll issue payment.

  24. parasharrajat commented on Jun 30, 2021

    @parasharrajat
    Member

    Done

  25. kadiealexander commented on Jun 30, 2021

    @kadiealexander
    ContributorAuthor

    Paid via Upwork.

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

Metadata

Metadata

Labels

ExternalNewFeatureWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions