mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): rename unconfigured to not configured
This commit is contained in:
parent
e792ba131e
commit
0f8740bb65
2 changed files with 4 additions and 4 deletions
|
|
@ -162,7 +162,7 @@ export class OAuthSelectorComponent extends Container implements Focusable {
|
|||
}
|
||||
|
||||
private formatStatusIndicator(provider: AuthSelectorProvider): string {
|
||||
if (!provider.status) return theme.fg("muted", " • unconfigured");
|
||||
if (!provider.status) return theme.fg("muted", " • not configured");
|
||||
if (provider.status.type !== provider.authType) {
|
||||
const label = provider.status.type === "oauth" ? "subscription configured" : "API key configured";
|
||||
return theme.fg("muted", " • ") + theme.fg("warning", label);
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ describe("OAuthSelectorComponent", () => {
|
|||
]);
|
||||
});
|
||||
|
||||
it("renders an option without compiled auth status as unconfigured", () => {
|
||||
it("renders an option without compiled auth status as not configured", () => {
|
||||
const selector = new OAuthSelectorComponent(
|
||||
"login",
|
||||
[{ id: "google", name: "Google", authType: "api_key", status: undefined }],
|
||||
|
|
@ -80,7 +80,7 @@ describe("OAuthSelectorComponent", () => {
|
|||
);
|
||||
|
||||
const output = stripAnsi(selector.render(120).join("\n"));
|
||||
expect(output).toContain("unconfigured");
|
||||
expect(output).toContain("not configured");
|
||||
expect(output).not.toContain("✓ configured");
|
||||
});
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ describe("OAuthSelectorComponent", () => {
|
|||
|
||||
const output = stripAnsi(selector.render(120).join("\n"));
|
||||
expect(output).toContain("✓ env: OPENAI_API_KEY");
|
||||
expect(output).not.toContain("unconfigured");
|
||||
expect(output).not.toContain("not configured");
|
||||
});
|
||||
|
||||
it("shows models.json API key auth as configured", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue