deephaven / web-client-ui

Deephaven Web Client UI
Apache License 2.0
29 stars 31 forks source link

Allow dashboard plugins to advertise what type of objects they support #1167

Closed mofojed closed 1 year ago

mofojed commented 1 year ago

As a user, I want plugins to be able to advertise what objects they support opening so that the UI can be smart about display those object types. Should be able to include a friendly name of the object and icon as well (for descriptions).

Currently, if there's an unknown object type exported (such as PartitionedTable), it appears as a button like other objects but just doesn't do anything: https://github.com/deephaven/web-client-ui/issues/1143

mofojed commented 1 year ago

We could also do some sort of ObjectPlugin that just maps a panel to an object, instead of making a whole DashboardPlugin.

mofojed commented 1 year ago

As we get into programmatic layouts, the plugins we build here should be compatible. To that end, I'm thinking there should actually just be a WidgetPlugin that can advertise it's type, and instead of rendering a whole panel, it just renders the component itself. Panels can then be created/managed programmatically.