MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / SidecarPanel

Function SidecarPanel

graph-ui/src/llm/SidecarPanel.tsx:93–208  ·  view source on GitHub ↗
(props: SidecarPanelProps)

Source from the content-addressed store, hash-verified

91}
92
93export default function SidecarPanel(props: SidecarPanelProps): JSX.Element {
94 const facts = props.facts;
95 const blocked = props.state === 'disabled-by-policy';
96 const on = props.state !== 'off' && !blocked;
97 const message = messageFor(props);
98 const hint = hintFor(props);
99
100 return (
101 <section
102 className="atlas-llm"
103 data-testid="atlas-llm"
104 data-state={props.state}
105 aria-label={messages.llm.panelLabel}
106 >
107 <div className="atlas-llm-head">
108 <span className="atlas-llm-title">{LLM_TITLE}</span>
109 <span className="atlas-llm-state" data-testid="atlas-llm-state" data-state={props.state}>
110 {props.state}
111 </span>
112 <Hint
113 name="llm-toggle"
114 text={
115 blocked
116 ? messages.llm.toggleBlocked
117 : on
118 ? messages.llm.toggleOff
119 : messages.llm.toggleOn
120 }
121 >
122 <button
123 type="button"
124 className="atlas-llm-toggle"
125 data-testid="atlas-llm-toggle"
126 data-on={on}
127 aria-pressed={on}
128 disabled={blocked}
129 onClick={props.onToggle}
130 >
131 {on ? messages.llm.on : messages.llm.off}
132 </button>
133 </Hint>
134 </div>
135
136 <details className="atlas-evidence-details" open={props.explained || (props.state !== 'off' && props.state !== 'ready')}>
137 <summary>{workspaceStrings.model}</summary>
138 <p className="atlas-llm-message" data-testid="atlas-llm-message" data-state={props.state}>
139 {message}
140 {props.state === 'ready' && facts !== undefined && (
141 <> <b data-testid="atlas-llm-model">{facts.model}</b></>
142 )}
143 </p>
144
145 {props.state === 'not-running' && (
146 <p className="atlas-llm-command" data-testid="atlas-llm-command">
147 <code>{LLM_START_COMMAND}</code>
148 </p>
149 )}
150

Callers

nothing calls this directly

Calls 3

humanBytesFunction · 0.90
messageForFunction · 0.85
hintForFunction · 0.85

Tested by

no test coverage detected