-
Notifications
You must be signed in to change notification settings - Fork 248
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
(fix) O3-2658: Show attachment descriptions when available #1626
Conversation
@denniskigen @dkayiwa May you can review this PR? |
packages/esm-patient-attachments-app/src/attachments/attachment-thumbnail.component.tsx
Outdated
Show resolved
Hide resolved
a1fdaf5
to
6dae420
Compare
@ibacher it appears that the attachments resource doesn't have a provision for recording a description of an attachment. In lieu of this, should we weigh whether to show the image description instead of the image title (which might be not be particularly informative in many cases, unless the user explicitly amends it to make it so). |
@denniskigen Problem is that the title is also treated as, effectively, the name of the file when it's downloaded, so I don't know that we'd want to do that. There is an |
Cool, can we do that then, @ibacher? |
I think as of now we are not having an |
Actually, things will work properly if we just wire the description field to the "comments" attribute and display that. What appears to be happening is I upload a file, give it an image name and that is set as both the file name ( Basically a file upload looks like this:
As you can see, we're setting the name We might need a ticket to be able to display the filename, but I don't know that that's critical. |
And here's a ticket I created almost a year ago to get this added: https://openmrs.atlassian.net/browse/ATT-52 |
Is it fair to say that this should be a prerequisite for merging this in? |
I think so. I think there's a little bit more revision of the attachments widgets required once that change gets made. |
So do we need to wait until once the prerequisite to complete?
|
Work on the ticket you shared would likely obviate openmrs/openmrs-esm-core#908 too, @ibacher |
So I fixed that ticket and updated the distribution. Should be available on dev3 shortly. |
@denniskigen |
6bc122c
to
7d6fed6
Compare
State of things following the most recent commit: state-of-things.mp4
|
@ibacher just noticed that the global property |
No. It's intentionally an opt-in option. |
03680e5
to
81e2427
Compare
Thanks for working on this, @Vijaykv5. I've tacked many other useful refactors on top of your work. |
Thank you @denniskigen :) |
Requirements
Summary
title
as we are placing theimage description
in title.Screenshots
Related Issue
03-2658
Reference issue in API : openmrs/openmrs-esm-core#908
Other
The Name of the file attached is removed as it doesn't make much sense for the clinician.