MCPcopy Create free account
hub / github.com/Roy3838/Observer / getStateColor

Method getStateColor

app/src/utils/streamManager.ts:798–809  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

796
797 // Get color based on state
798 const getStateColor = (): string => {
799 switch (state) {
800 case 'STARTING': return '#facc15'; // yellow-400
801 case 'CAPTURING': return '#22d3ee'; // cyan-400
802 case 'THINKING': return '#a855f7'; // purple-500
803 case 'RESPONDING': return '#3b82f6'; // blue-500
804 case 'WAITING': return '#6b7280'; // gray-500
805 case 'SLEEPING': return '#3b82f6'; // blue-500
806 case 'SKIPPED': return '#f97316'; // orange-500
807 default: return '#6b7280'; // gray-500
808 }
809 };
810
811 const color = getStateColor();
812 ctx.strokeStyle = color;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected