-
Notifications
You must be signed in to change notification settings - Fork 12
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: update interpretations component so it can be used in dashboard items #1510
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.
As discussed on Slack, it would be good to add some comments and/or rename some variable in src/components/Interpretations/common/Interpretation/Interpretation.js
for clarification. But the underlying logic is sound and the implementation is clean. So I'm approving.
…/analytics into feat/interpretations-for-dashboard
…s to not be visible
…/analytics into feat/interpretations-for-dashboard
# [26.4.0](v26.3.1...v26.4.0) (2024-03-04) ### Features * update interpretations component so it can be used in dashboard items ([#1510](#1510)) ([163abf6](163abf6))
🎉 This PR is included in version 26.4.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Implements DHIS2-15441
Required for dhis2/dashboard-app#2430
Changes to the interpretation component so that it can be used in the dashboard app. The main difference between interpretations in dashboard vs DV/LL is that replies are viewed "inline" rather than through opening a modal. In order to add this functionality, the
appUrl
property is sent from the dashboard app, so that a "Launch Url" button can be added to the interpretation button strip. The button opens the relevant app in interpretation view mode.The component will continue to work as before for DV and LL so this is safe as a "feat" release.
The
appUrl
property is kind of doing double dutySee interpretation
button (screenshot from DV)See interpretation
big button)TODO