story-207: rename LLM provider labels - Claude Code (PTY) to Claude Code, Anthropic to Anthropic API
Squash merge of feature/story-207 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -141,6 +141,18 @@ describe("ChatHeader", () => {
|
|||||||
expect(screen.getByText("StorkIt")).toBeInTheDocument();
|
expect(screen.getByText("StorkIt")).toBeInTheDocument();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it("labels the claude-pty optgroup as 'Claude Code'", () => {
|
||||||
|
render(<ChatHeader {...makeProps()} />);
|
||||||
|
const optgroup = document.querySelector('optgroup[label="Claude Code"]');
|
||||||
|
expect(optgroup).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
|
it("labels the Anthropic API optgroup as 'Anthropic API'", () => {
|
||||||
|
render(<ChatHeader {...makeProps()} />);
|
||||||
|
const optgroup = document.querySelector('optgroup[label="Anthropic API"]');
|
||||||
|
expect(optgroup).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
|
||||||
it("shows disabled placeholder when claudeModels is empty and no API key", () => {
|
it("shows disabled placeholder when claudeModels is empty and no API key", () => {
|
||||||
render(
|
render(
|
||||||
<ChatHeader
|
<ChatHeader
|
||||||
|
|||||||
@@ -208,11 +208,11 @@ export function ChatHeader({
|
|||||||
backgroundSize: "10px",
|
backgroundSize: "10px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<optgroup label="Claude Code (PTY)">
|
<optgroup label="Claude Code">
|
||||||
<option value="claude-code-pty">claude-code-pty</option>
|
<option value="claude-code-pty">claude-code-pty</option>
|
||||||
</optgroup>
|
</optgroup>
|
||||||
{(claudeModels.length > 0 || !hasAnthropicKey) && (
|
{(claudeModels.length > 0 || !hasAnthropicKey) && (
|
||||||
<optgroup label="Anthropic">
|
<optgroup label="Anthropic API">
|
||||||
{claudeModels.length > 0 ? (
|
{claudeModels.length > 0 ? (
|
||||||
claudeModels.map((m: string) => (
|
claudeModels.map((m: string) => (
|
||||||
<option key={m} value={m}>
|
<option key={m} value={m}>
|
||||||
|
|||||||
Reference in New Issue
Block a user