-
Notifications
You must be signed in to change notification settings - Fork 712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node shapes #884
Node shapes #884
Conversation
Shapes not finallll.. |
I love it.
|
We are dispatching on the tail of the topo's URL ( Solutions:
I prefer 1. but if 2. makes more sense we could do that. [0] const nodeShapes = {
'hosts': NodeShapeCircle,
'containers': NodeShapeHex,
'containers-by-hostname': stackedShape(NodeShapeHex),
'containers-by-image': stackedShape(NodeShapeHex),
'applications': NodeShapeRoundedSquare,
'applications-by-name': stackedShape(NodeShapeRoundedSquare)
};
function isTheInternet(id) {
return id === 'theinternet';
}
function getNodeShape({id, pseudo, topologyId}) {
if (isTheInternet(id)) {
return NodeShapeCloud;
} else if (pseudo) {
return NodeShapeCircle;
}
return nodeShapes[topologyId];
} |
Don't forget pods and services. |
Do pods and services exist in the system at the moment? |
Yes, but only if connected to a k8s cluster. |
I'd prefer if the ui didn't hard code any topology names, as we want the On Monday, 1 February 2016, David [email protected] wrote:
|
I'll take a stab at adding this to the backend today. |
Just wondering if the stacks would look slightly better if the stacked diagonally (vs the current vertical)? |
We should also make the uncontained nodes on the containers view a stack of squares, as they are processes... |
Very nice!! |
6032d95
to
9472811
Compare
Have rebased. Pseudo nodes don't seem to be honouring backend shapes. |
Yes I think there is some code in there that forces pseudo = circle. Will fix. And review. |
@davkal LGTM |
Sooo! Rational behind the current shapes:
|
Re diagonal shapes: I'd keep them as top perspective. you could try having the vanishing point on the right (instead of the bottom), like in the detail cards Re cogs for processes, I think they are overloaded with "system" or "settings" semantics. |
nice thought re: perspective, will try. Cool. So initial node shape choices seem like a good starting point for everyone it seems. Maybe we can merge this in and see what complaints come in. |
09383a6
to
eb1da8b
Compare
@pidster check it out and have a play when you get a chance! Great to get your feedback on this one. |
Tom's suggestion for the stacks showing as 1x, 2x and all >2x as 3 layers is a good idea. |
The vertical perspective stack looks great. So, where does it stand now: Processes are squircles, Containers are hexagons (or cogs?) and Hosts are circles? (I tend to agree that cogs now have an association with 'settings'). Are the line weights the same in all of the shapes, or is that just a side-effect of the cog rendering? |
b2423d5
to
47aee90
Compare
- circle - rect (w/ radius) - fluffy cloud shape - hexagons - stacks
This reverts commit 9a25041.
- They get a little bit smaller as they go down. - Small tweak for shape stacks + high contrast mode.
E.g. greying out the bottom 2/3 visual nodes if the stack actually only has a single node. - Server returns "node_count" for agg nodes.
- May give the feeling something is not there when it should be, or incomplete. - They create visual noise
We're not using greyed out lower stacks for now.
Fixes #659.
Fixes #878.
Fixes #826.