Open gashcrumb opened 5 years ago
I feel also like we could move all this icon-related stuff out of the api
package and into utils
or even the syndesis
package.
They do work when the app is served from the root, so I guess somewhere we are not making use of the PUBLIC_URL
thing. We should really clean up the whole thing tho, I agree.
Updated the title so it doesn't sound so bad :-)
This is a...
Description
Noticed this after importing an extension that includes it's own icon file. On staging there's an 'openshift' extension now installed that includes a new connector. However the icon file doesn't show up properly:
Since it's a connector extension, it also shows up in the create connection wizard:
And then as a connection:
I think we should consolidate
getConnectionIcon
,getStepIcon
into perhaps aWithIconHelpers
component. The trouble is some icons are served out from the UI because they're from built-in steps, and some icons are served out by the backend, using different mechanisms, either by embedding a file, a data URL with an embedded SVG, adb:
orextension:
URI scheme that requires constructing a URL to the backend in a particular way.I think basically if we could throw everything at
getConnectionIcon
anytime we have an object and we need the icon file from it we'd be in good shape. Or maybe to solve this we need to get better at mapping between backend objects and some canonical UI object.