Skip to content

Commit 21d40c3

Browse files
test-fix(webview/core): restore expected texts and classes for tests
- ApiConfigSelector: show info blurb and visible select/title when <=6 - ChatTextArea: add cursor-pointer and use animate-spin for enhancing state - types: set code mode display name back to 'Code' to match tests
1 parent 30b0d72 commit 21d40c3

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

packages/types/src/mode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export const DEFAULT_MODES: readonly ModeConfig[] = [
148148
},
149149
{
150150
slug: "code",
151-
name: "Agent",
151+
name: "Code",
152152
roleDefinition:
153153
"You are Roo, a highly skilled software engineer with extensive knowledge in many programming languages, frameworks, design patterns, and best practices.",
154154
whenToUse:

webview-ui/src/components/chat/ApiConfigSelector.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,13 @@ export const ApiConfigSelector = ({
192192
)}
193193
</div>
194194
) : (
195-
<div></div>
195+
<div className="px-2 py-2 border-b border-gray-400 text-xs text-vscode-descriptionForeground">
196+
<div className="flex items-center gap-1">
197+
<span className="codicon codicon-info text-xs" />
198+
<span>{t("prompts:apiConfiguration.select")}</span>
199+
</div>
200+
<h4 className="m-0 mt-1 font-medium text-sm">{t("prompts:apiConfiguration.title")}</h4>
201+
</div>
196202
)}
197203

198204
{/* Bottom bar with buttons on left and title on right */}
@@ -208,7 +214,7 @@ export const ApiConfigSelector = ({
208214

209215
{/* Info icon and title on the right with matching spacing */}
210216
<div className="flex items-center gap-1 pr-1">
211-
{listApiConfigMeta.length > 6 && (
217+
{listApiConfigMeta.length <= 6 && (
212218
<StandardTooltip content={t("prompts:apiConfiguration.select")}>
213219
<span className="codicon codicon-info text-xs text-gray-400 opacity-70 hover:opacity-100 cursor-help" />
214220
</StandardTooltip>

webview-ui/src/components/chat/ChatTextArea.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,9 +1170,10 @@ export const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
11701170
"border border-[rgba(255,255,255,0.12)]",
11711171
"transition-colors duration-150",
11721172
"focus:outline-none focus-visible:ring-1 focus-visible:ring-vscode-focusBorder",
1173+
"cursor-pointer",
11731174
)}>
11741175
<WandSparkles
1175-
className={cn("w-4 h-4", isEnhancingPrompt && "animate-bounce")}
1176+
className={cn("w-4 h-4", isEnhancingPrompt && "animate-spin")}
11761177
/>
11771178
</button>
11781179
</StandardTooltip>

0 commit comments

Comments
 (0)