MCPcopy Index your code
hub / github.com/coder/coder / getAgentBorderClass

Function getAgentBorderClass

site/src/modules/resources/AgentRow.tsx:114–128  ·  view source on GitHub ↗
(
	agent: WorkspaceAgent,
	hasErrorState: boolean,
)

Source from the content-addressed store, hash-verified

112};
113
114const getAgentBorderClass = (
115 agent: WorkspaceAgent,
116 hasErrorState: boolean,
117): string => {
118 if (hasErrorState) {
119 return "border-border";
120 }
121
122 // Lifecycle state is more specific than connection status, so it wins.
123 return (
124 statusBorderClassByLifecycle[agent.lifecycle_state] ??
125 statusBorderClassByStatus[agent.status] ??
126 "border-border"
127 );
128};
129
130const STARTUP_SCRIPT_DISPLAY_NAME = "Startup Script";
131

Callers 1

AgentRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected