Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix(settings): use "Default" label for Agent Profile badge (#16206)

Arush Choudhary49b5fd479f1c
diff --git a/__tests__/components/settings/agent-profiles/agent-profiles-manager.test.tsx b/__tests__/components/settings/agent-profiles/agent-profiles-manager.test.tsx
index dff99126c6..9be86e4a37 100644
--- a/__tests__/components/settings/agent-profiles/agent-profiles-manager.test.tsx
+++ b/__tests__/components/settings/agent-profiles/agent-profiles-manager.test.tsx
@@ -16,6 +16,7 @@ vi.mock("react-i18next", () => ({
SETTINGS$PROFILES_LOAD_ERROR: "Failed to load profiles",
SETTINGS$PROFILES_EMPTY: "No profiles saved yet",
SETTINGS$PROFILE_ACTIVE: "Active",
+ SETTINGS$PROFILE_DEFAULT: "Default",
SETTINGS$PROFILE_MENU: "Profile menu",
SETTINGS$PROFILE_EDIT: "Edit",
SETTINGS$PROFILE_SET_ACTIVE: "Set as active",
@@ -126,7 +127,7 @@ describe("AgentProfilesManager", () => {
renderManager();
const badge = await screen.findByTestId("agent-profile-active-badge");
- expect(badge).toHaveTextContent("Active");
+ expect(badge).toHaveTextContent("Default");
});
it("shows the Add button and fires onAddProfile", async () => {
diff --git a/__tests__/components/settings/llm-profiles/profiles-body.test.tsx b/__tests__/components/settings/llm-profiles/profiles-body.test.tsx
index e05edbdad5..04d2f2a5c7 100644
--- a/__tests__/components/settings/llm-profiles/profiles-body.test.tsx
+++ b/__tests__/components/settings/llm-profiles/profiles-body.test.tsx
@@ -10,6 +10,7 @@ vi.mock("react-i18next", () => ({
SETTINGS$PROFILES_LOAD_ERROR: "Failed to load profiles",
SETTINGS$PROFILES_EMPTY: "No profiles saved yet",
SETTINGS$PROFILE_ACTIVE: "Active",
+ SETTINGS$PROFILE_DEFAULT: "Default",
SETTINGS$PROFILE_MENU: "Profile menu",
SETTINGS$PROFILE_EDIT: "Edit",
BUTTON$RENAME: "Rename",
diff --git a/src/components/features/settings/agent-profiles/agent-profile-row.tsx b/src/components/features/settings/agent-profiles/agent-profile-row.tsx
index f0fc15388a..1e39125894 100644
--- a/src/components/features/settings/agent-profiles/agent-profile-row.tsx
+++ b/src/components/features/settings/agent-profiles/agent-profile-row.tsx
@@ -66,7 +66,7 @@ export function AgentProfileRow({
className="shrink-0 whitespace-nowrap px-2.5 py-1 text-xs"
data-testid="agent-profile-active-badge"
>
- {t(I18nKey.SETTINGS$PROFILE_ACTIVE)}
+ {t(I18nKey.SETTINGS$PROFILE_DEFAULT)}
</BrandBadge>
)}
</div>