-
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
[PAID] UX issues with Attachment View in Chat #4601
Comments
Triggered auto assignment to @flaviadefaria ( |
Proposed Solution We can create a custom view for Attachment view in the chatlist. It'll have the filename as well as the download button. A sample UI would look similar to this. We'll have to update
Modify the
Add a param in
|
Triggered auto assignment to @robertjchen ( |
Triggered auto assignment to @mallenexpensify ( |
Thank's for bringing up the issue @akshayasalvi , I do agree that the text that looks like a hyperlink looks like a link. @Expensify/design can y'all take a look and provide feedback on the proposed update from |
Yeah, I think that looks great! |
Triggered auto assignment to @thienlnam ( |
Job created in Upwork - https://www.upwork.com/jobs/~012a60478f2a5dfa9a |
@akshayasalvi Thanks for the clear proposal! After taking a look here are a couple things I've noticed
We should be handling this in BaseRenderHTML, the 'attachment' in this case is just an anchor tag. Can you outline a solution that would exist here? App/src/components/RenderHTML/BaseRenderHTML.js Lines 67 to 90 in 88593d4
Instead of adding a prop for
These changes look fine for web but how will you handle this for native devices? |
@thienlnam Then the same changes in terms of the UI can be pulled into:
I was relying on the existing functionality of download attachments. But it seems the current App download doesn't work (atleast in the iPhone). I tried downloading an image as well as a pdf. We can use |
@thienlnam Is there a way to get the filename in the
If there isn't a direct way to get the filename then I'll figure out a way to pass it to props or something. This is how it looks right now with the UX changes. |
You'd probably have to pass it down via props here, likely by extracting it from |
Honestly, passing a name would be better. Not only for the documents but also for image. I can then just pick that and display it with |
Can you clarify this? Do you need a name to be passed to the html element which would show up in |
@thienlnam I've managed to find the filename from the TextNode. Please check the draft PR. If that doesn't work well then I would required the name to be passed in the HTML such as |
Sweet, @akshayasalvi Could you please apply for the upwork job here so we can get you hired before continuing work on the PR? |
I've applied on Upwork |
Hired @akshayasalvi in Upwork. The bonus for reporting the issue will be added at the end upon payment for the job. |
Thank you. @thienlnam Can you review the PR now? |
Just merged the PR this morning, will be going on the next staging deploy |
🚀 Deployed to staging by @sketchydroide in version: 1.0.88-3 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.0.88-2 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀
|
Paid @akshayasalvi in Upwork, included the $250 bonus for reporting this issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Actual Result:
UX looks similar to a link than an attachment

Downloading the file opens a new tab and downloads the file with a long random string

Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platform:
Where is this issue occurring?
Version Number:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on Upwork
The text was updated successfully, but these errors were encountered: