dashboard-app
dashboard-app copied to clipboard
refactor: iframe plugin support
Extend the dashboard item search to include the event visualizations.
Implement the new secure iframe plugin solution needed for LL and DV plugins and the other ones that will follow.
These dashboard items are rendered as iframe tags pointing to the location of the plugin.
Normally the URL used is the one specified in pluginLaunchUrl returned by the apps API.
There is a backdoor which is enabled only in dev mode where it's possible to override those locations via localStorage for development/testing purposes (ie. pointing a plugin to a port on localhost where the plugin runs).
Here's an example of override for both DV and LL plugins:

🚀 Deployed on https://pr-2110--dhis2-dashboard.netlify.app
Test summary
Run details
| Project | dashboards-app |
| Status | Failed |
| Commit | 3d818636e0 |
| Started | Dec 16, 2022 2:56 PM |
| Ended | Dec 16, 2022 3:07 PM |
| Duration | 10:56 💡 |
| OS | Linux Ubuntu - 22.04 |
| Browser | Electron 87 |
View run in Cypress Dashboard ➡️
Failures
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard
:tada: This PR is included in version 99.10.11 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: