Closed ekeren closed 1 month ago
As @ainvoner proposed, I would add support for heroicons (the ones we already use in the console).
To use them, you would define the icon as follows:
import cloud;
let bucket = new cloud.Bucket();
// icon id from https://heroicons.com/
nodeof(bucket).icon = "inbox-stack";
@polamoros
Great suggestion ❤️
here is a working example
bring cloud;
let bucket = new cloud.Bucket();
nodeof(bucket).icon = "academic-cap";
nodeof(bucket).color = "red";
bring cloud;
let bucket = new cloud.Bucket();
nodeof(bucket).icon = "invalid icon";
nodeof(bucket).color = "invalid color";
also working for custom resources
@polamoros / @ainvoner , what would you use for python lambda?
I couldn't find anything in hercoicons that looks like this
(Maybe giving it the option to create an SVG in base64 is a good low hanging fruit failover)?
I would use the lightning of cloud.Function in a different color than our default in the Python lambda custom resource
lightning of cloud.Function in a fuchsia color
Good idea, @eladcon fyi
Congrats! :rocket: This was released in Wing 0.74.23.
Use Case
You can now decide which icon is going to be seen on wing console
Notice that in the following image:
We are missing information to what is a dynamoDb and what is python lambda.
Proposed Solution
Have some standards for icons of resources, using the
node.display
mechanismImplementation Notes
Notice that we need this to work on
winglibgs
as well, so we need to make sure files are packed.We can also decide to go extra lean and implemented this with a base64 version of an SVG
But I think that an external
svg
file is preferred (we just need to make sure it is packed)Component
No response
Community Notes