Skip to content
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

Download E.cash attachments immediately #3066

Merged
merged 2 commits into from
Jun 1, 2021
Merged

Conversation

roryabraham
Copy link
Contributor

@roryabraham roryabraham commented May 21, 2021

Details

Passes an auth token in the chat attachment URL, if necessary.

Fixed Issues

Fixes https://github.com/Expensify/Expensify/issues/154254

Tests / QA Steps

  1. Send a regular link such as https://www.google.com/ in Expensify.cash
  2. Click on the link, ensure that it is opened in the default browser.
  3. Click on Upload Attachment and upload a .zip file.
  4. After a few moments, a link to that attachment should appear.
  5. Click on that link, and ensure that the file is downloaded immediately. You should not have to log in to the expensify.com website.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

DownloadAttachmentMWeb.mov

Mobile Web

DownloadAttachmentMWeb.mov

Desktop

DownloadAttachmentsDesktop.mov

iOS

DownloadAttachmentiOS.mov

Android

@roryabraham roryabraham self-assigned this May 21, 2021
@roryabraham roryabraham marked this pull request as ready for review May 21, 2021 18:39
@roryabraham roryabraham requested a review from a team as a code owner May 21, 2021 18:39
@roryabraham roryabraham changed the title Download E.cash attachments immediately [HOLD] Download E.cash attachments immediately May 21, 2021
@MelvinBot MelvinBot requested review from joelbettner and removed request for a team May 21, 2021 18:40
@roryabraham
Copy link
Contributor Author

This needs to be on HOLD until https://github.com/Expensify/Web-Expensify/pull/31009 is merged and deployed to production.

@roryabraham roryabraham changed the title [HOLD] Download E.cash attachments immediately Download E.cash attachments immediately May 27, 2021
@roryabraham
Copy link
Contributor Author

https://github.com/Expensify/Web-Expensify/pull/31009 was deployed to prod yesterday, so this is ready for review 👍

rel,
target,
children,
style,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this include the shouldDownloadFile prop since it is being passed from AnchorWithAuthToken.js . If it is not necessary to have shouldDownloadFile here because it is passed in ...props, then is it redundant when we have shouldDownloadFile in the props for BaseAnchorForCommentsOnly/index.native.js ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good question.

Should this include the shouldDownloadFile prop since it is being passed from AnchorWithAuthToken.js

It's not necessary because it's not being used in this file. It is passed to the nested Text in ...props, but because the Text doesn't take a shouldDownloadFile prop it just has no effect.

is it redundant when we have shouldDownloadFile in the props for BaseAnchorForCommentsOnly/index.native.js

It's not redundant, because the shouldDownloadFile prop is used to determine onPress prop of the Text component in BaseAnchorForCommentsOnly/index.native.js. Then it's also passed to the Text component as part of ...props, but like the web implementation just has no effect.

Copy link
Contributor

@joelbettner joelbettner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joelbettner joelbettner merged commit ded24ef into main Jun 1, 2021
@joelbettner joelbettner deleted the Rory-FileDownload branch June 1, 2021 19:56
@OSBotify
Copy link
Contributor

OSBotify commented Jun 1, 2021

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants