MCPcopy
hub / github.com/FlowiseAI/Flowise / getPassRateColor

Function getPassRateColor

packages/ui/src/views/evaluations/index.jsx:613–621  ·  view source on GitHub ↗
(passPcnt)

Source from the content-addressed store, hash-verified

611 }
612
613 const getPassRateColor = (passPcnt) => {
614 if (passPcnt > 90) {
615 return '#52b69a'
616 } else if (passPcnt >= 50) {
617 return '#f48c06'
618 } else {
619 return '#f44336'
620 }
621 }
622
623 return (
624 <React.Fragment>

Callers 1

EvaluationRunRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected