MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / NodeStatus

Function NodeStatus

console/src/components/WorkflowGraph/GraphNode.tsx:69–85  ·  view source on GitHub ↗
({
  nodeLagInfo,
}: {
  nodeLagInfo: LagInfo | undefined;
})

Source from the content-addressed store, hash-verified

67};
68
69export const NodeStatus = ({
70 nodeLagInfo,
71}: {
72 nodeLagInfo: LagInfo | undefined;
73}) => {
74 if (!nodeLagInfo) return <NodeStatusContainer height="8" />;
75 const nodeStatusInfo = getLagInfoColorScheme(nodeLagInfo);
76
77 const lag = formatLagInfoSimple(nodeLagInfo);
78
79 return (
80 <NodeStatusContainer background={nodeStatusInfo.nodeColor}>
81 <NodeStatusText>Freshness</NodeStatusText>
82 <NodeStatusText title={lag}>{lag}</NodeStatusText>
83 </NodeStatusContainer>
84 );
85};
86
87export const GraphNode = ({
88 graph,

Callers

nothing calls this directly

Calls 2

getLagInfoColorSchemeFunction · 0.90
formatLagInfoSimpleFunction · 0.90

Tested by

no test coverage detected