MCPcopy Create free account
hub / github.com/VGabriel45/SolidityVisualizer / getStatusDisplay

Function getStatusDisplay

src/components/loading.tsx:141–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 };
140
141 const getStatusDisplay = () => {
142 const reasoningType = shouldShowReasoning(status);
143 switch (status) {
144 case "explanation_sent":
145 case "explanation":
146 case "explanation_chunk":
147 return {
148 text: reasoningType
149 ? "Model is reasoning about repository structure"
150 : "Explaining repository structure...",
151 isReasoning: !!reasoningType,
152 };
153 case "mapping_sent":
154 case "mapping":
155 case "mapping_chunk":
156 return {
157 text: reasoningType
158 ? "Model is reasoning about component relationships"
159 : "Creating component mapping...",
160 isReasoning: !!reasoningType,
161 };
162 case "diagram_sent":
163 case "diagram":
164 case "diagram_chunk":
165 return {
166 text: reasoningType
167 ? "Model is reasoning about diagram structure"
168 : "Generating diagram...",
169 isReasoning: !!reasoningType,
170 };
171 default:
172 return {
173 text: messages[currentMessageIndex],
174 isReasoning: false,
175 };
176 }
177 };
178
179 const statusDisplay = getStatusDisplay();
180 const reasoningMessage = renderReasoningMessage();

Callers 1

LoadingFunction · 0.85

Calls 1

shouldShowReasoningFunction · 0.85

Tested by

no test coverage detected