This is a simple PoC to show oVirt dashboard rendered inside ManageIQ Ops UI through a custom menu item.
The first step was to take oVirt dashboard project and adapting it for use outside oVirt UI plugin infra:
cd /path/to/ovirt-engine-dashboard
git apply adapt-ovirt-dashboard.patch
yarn run build
As a result, dist/dashboard-resources/main-tab.html can be opened as a static resource, with baked-in test data (to avoid oVirt Engine request) and relevant oVirt UI plugin API calls mocked.
The next step was to modify MIQ plugin example project by associating the /plug menu item with ovirt_dashboard_test layout that emulates oVirt dashboard's main-tab.html page.
All oVirt dashboard related assets are placed under app/assets/ovirt_dashboard and added to Rails asset path in lib/miq_plugin_example/engine.rb.
This is a simple PoC to show oVirt dashboard rendered inside ManageIQ Ops UI through a custom menu item.
The first step was to take oVirt dashboard project and adapting it for use outside oVirt UI plugin infra:
cd /path/to/ovirt-engine-dashboard
git apply adapt-ovirt-dashboard.patch
yarn run build
As a result,
dist/dashboard-resources/main-tab.html
can be opened as a static resource, with baked-in test data (to avoid oVirt Engine request) and relevant oVirt UI plugin API calls mocked.The next step was to modify MIQ plugin example project by associating the
/plug
menu item withovirt_dashboard_test
layout that emulates oVirt dashboard'smain-tab.html
page.All oVirt dashboard related assets are placed under
app/assets/ovirt_dashboard
and added to Rails asset path inlib/miq_plugin_example/engine.rb
.