Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

fix(settings): call the Simple-mode keys row "API keys" (#4039)

Lovin Maxwell68490ddead02
diff --git a/src/components/SettingsModal.simple.test.ts b/src/components/SettingsModal.simple.test.ts
index 60a4e5f46f..7db88ff61e 100644
--- a/src/components/SettingsModal.simple.test.ts
+++ b/src/components/SettingsModal.simple.test.ts
@@ -233,13 +233,14 @@ describe("Settings in Simple mode", () => {
expect(SIMPLE_FOLDED).toEqual({ connections: "ai-keys", remote: "computer-elsewhere", desktopWorkspaces: "computer-elsewhere" });
});
- it("shows the AI page as Your AI, then API keys and connections", () => {
+ it("shows the AI page as Your AI, then API keys", () => {
fixture.section = "engines";
const html = render();
expect(currentPage(html)).toBe("ai");
expect(blocks(html)).toEqual(["engines", "connections"]);
expect(markers(html).filter((name) => name === "engines" || name === "decisionModel")).toEqual(["engines"]);
- expect(html).toMatch(/aria-expanded="false"[^>]*>[\s\S]*?API keys and connections/);
+ expect(html).toMatch(/aria-expanded="false"[^>]*>[\s\S]*?>API keys</);
+ expect(html).not.toContain("API keys and connections");
});
it("orders Computer as your bots' computers, your devices, the browser, logins, then Connect from elsewhere", () => {
diff --git a/src/components/SettingsSimplePages.tsx b/src/components/SettingsSimplePages.tsx
index 92d4fbebff..5c220eb233 100644
--- a/src/components/SettingsSimplePages.tsx
+++ b/src/components/SettingsSimplePages.tsx
@@ -114,7 +114,7 @@ export function SimpleAiPage({ has, disclose, connections }: { has: Has; disclos
{has("engines") && <div data-settings-block="engines" className="flex scroll-mt-4 flex-col gap-7"><AdminOnly><EnginesSettings simple more={disclose("ai-more")} /></AdminOnly></div>}
{has("connections") && (
<AdminOnly>
- <SettingsDisclosureRow title={t("settings.simple.ai.keys")} block="connections" {...disclose("ai-keys")}>
+ <SettingsDisclosureRow title={t("settings.section.connections")} block="connections" {...disclose("ai-keys")}>
{connections}
</SettingsDisclosureRow>
</AdminOnly>
diff --git a/src/locales/en.json b/src/locales/en.json
index 2855bc7e71..f7b06a4fac 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -6172,7 +6172,6 @@
"settings.simple.diagnostics": "A file for support, with secrets removed. Check it before you send it.",
"settings.simple.ai.yours": "Your AI",
"settings.simple.ai.more": "More AI providers ({count})",
- "settings.simple.ai.keys": "API keys and connections",
"settings.simple.ai.manage": "Manage",
"settings.simple.ai.setUp": "Set up",
"settings.simple.billing.summary": "{percent}% of this month's included use",
diff --git a/src/locales/ko.json b/src/locales/ko.json
index c1fb85371b..4cd25145d1 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -6021,7 +6021,6 @@
"settings.simple.diagnostics": "지원팀에 보낼 파일로, 비밀 정보는 지워져요. 보내기 전에 확인하세요.",
"settings.simple.ai.yours": "내 AI",
"settings.simple.ai.more": "AI 제공자 더 보기({count})",
- "settings.simple.ai.keys": "API 키 및 연결",
"settings.simple.ai.manage": "관리",
"settings.simple.ai.setUp": "설정",
"settings.simple.billing.summary": "이번 달 포함 사용량의 {percent}%",