martinpovolny / miq_plugin_example

ManageIQ Plugin Example
MIT License
1 stars 8 forks source link

Initial commit for ovirt_dashboard_test_miq_plugin #3

Open vojtechszocs opened 6 years ago

vojtechszocs commented 6 years ago

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:

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.