-
Notifications
You must be signed in to change notification settings - Fork 24
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
feat: [DHIS2-15391] preview images in working lists and on enrollment dashboard #3546
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! 👏
🚀 Deployed on https://deploy-preview-3546--dhis2-capture.netlify.app |
value: convertServerToClient(value, type), | ||
urlPath: `/trackedEntityInstances/${tei.trackedEntity}/${id}/image`, | ||
urlPath: featureAvailable(FEATURES.trackerImageEndpoint) ? | ||
`/tracker/trackedEntities/${tei.trackedEntity}/attributes/${id}/image?program=${programId}&dimension=small` : | ||
`/trackedEntityInstances/${tei.trackedEntity}/${id}/image`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we only add the urlPath if it is an image? Would improve readability quite a bit.
Also, in
Line 55 in c4b29c4
url: `${absoluteApiPath}${urlPath}` |
previewUrl
and fullSizedUrl
instead of the single url
and remove the replace statement in PreviewImage.component
. Would be more robust that way and the "UI-library" will not be responsible for computing URLs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested successfully on 2.41 version
Tested successfully on 2.41 version |
# [100.61.0](v100.60.0...v100.61.0) (2024-03-05) ### Features * [DHIS2-15391] preview images in working lists and on enrollment dashboard ([#3546](#3546)) ([191c22f](191c22f))
🎉 This PR is included in version 100.61.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Feature summary: