[Engine-devel] UI plugins - next steps
Vojtech Szocs
vszocs at redhat.com
Thu Dec 13 14:42:34 UTC 2012
Hi Oved,
> Pushing this now.
> http://gerrit.ovirt.org/#/c/9998/
Thanks!
> I think we should also consider adding an option to add a button in a more general scope, for things that aren't entity-specific, but system-specific.
> Maybe next to the "configure" button, in the upper right corner of the screen?
I agree, this could be useful as well. Shouldn't be too hard to implement, it's just about adding dynamic links to HeaderPresenterWidget/HeaderView in WebAdmin.
Vojtech
----- Original Message -----
From: "Oved Ourfalli" <ovedo at redhat.com>
To: "Vojtech Szocs" <vszocs at redhat.com>
Cc: "engine-devel" <engine-devel at ovirt.org>
Sent: Wednesday, December 12, 2012 2:34:25 PM
Subject: Re: [Engine-devel] UI plugins - next steps
Nice work!
See some comments inline.
----- Original Message -----
> From: "Vojtech Szocs" <vszocs at redhat.com>
> To: "engine-devel" <engine-devel at ovirt.org>
> Sent: Wednesday, December 12, 2012 2:57:11 PM
> Subject: [Engine-devel] UI plugins - next steps
>
> Hi guys,
>
> here's my list of tasks that didn't make it into UI plugins yet.
> These tasks should be revisited and implemented in future patches.
> The list isn't sorted in any way, so feel free to comment or
> highlight specific tasks to raise their priority, or add your own
> tasks/ideas.
>
> 1. Pass proper (restapi-definition) entities to UI plugins, instead
> of simple "{entityId:<guidAsString>}" objects
> - using restapi-types mappers to map backend business entities to
> restapi-definition entities (Java POJOs generated from api.xsd
> via JAXB)
> - exporting restapi-definition entities for use with JavaScript
> (UI plugins), e.g. using gwt-exporter [1] (alternatively, we
> could use GWT deferred binding and do this ourselves)
>
> 2. showDialog API function should integrate with WebAdmin dialog
> infrastructure
> - shouldn't be too hard, need to create custom dialog
> PresenterWidget/View and bind it as non-singleton (just like
> other popups in oVirt GUI)
>
> 3. Extend existing WebAdmin dialogs - prototype Doron's proposal to
> extend Edit Cluster Policy dialog with custom options that would be
> passed to backend
>
> 4. Introduce form-based tabs - custom tab that would display
> key/value pairs organized in columns, just like in standard
> "General" sub tabs
>
> 5. Introduce table-based tabs - custom tab that would display grid
> (table) just like in standard main tabs, with API to add columns,
> set data, etc.
>
> 6. Improve api.addMainTabActionButton to allow different button vs.
> context menu item representations (only button, only menu item,
> both)
>
> 7. Add api.currentUserName and api.currentUserId API functions (these
> would return same data as with UserLogin event parameters)
>
Pushing this now.
http://gerrit.ovirt.org/#/c/9998/
> 8. Minor things: consider renaming UiInit to PluginInit (one-time
> plugin initialization, called only once, can do non-UI init stuff
> there as well), consider renaming api.ready to api.initialize
> (plugin indicates that infrastructure can proceed with initializing
> itself)
>
I think we should also consider adding an option to add a button in a more general scope, for things that aren't entity-specific, but system-specific.
Maybe next to the "configure" button, in the upper right corner of the screen?
> Regards,
> Vojtech
>
> [1] http://code.google.com/p/gwt-exporter/wiki/GettingStarted
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
>
More information about the Engine-devel
mailing list