Skip to content

🙌 OpenHands: AI-Driven Development

Unhide Git Settings feature and add explanatory text (#10256)

jpelletier1e1559651b861
diff --git a/frontend/src/i18n/declaration.ts b/frontend/src/i18n/declaration.ts
index e1742222f2..a6df1caf48 100644
--- a/frontend/src/i18n/declaration.ts
+++ b/frontend/src/i18n/declaration.ts
@@ -147,6 +147,7 @@ export enum I18nKey {
SUGGESTIONS$CLEAN_DEPENDENCIES = "SUGGESTIONS$CLEAN_DEPENDENCIES",
SETTINGS$LLM_SETTINGS = "SETTINGS$LLM_SETTINGS",
SETTINGS$GIT_SETTINGS = "SETTINGS$GIT_SETTINGS",
+ SETTINGS$GIT_SETTINGS_DESCRIPTION = "SETTINGS$GIT_SETTINGS_DESCRIPTION",
SETTINGS$SOUND_NOTIFICATIONS = "SETTINGS$SOUND_NOTIFICATIONS",
SETTINGS$MAX_BUDGET_PER_TASK = "SETTINGS$MAX_BUDGET_PER_TASK",
SETTINGS$MAX_BUDGET_PER_CONVERSATION = "SETTINGS$MAX_BUDGET_PER_CONVERSATION",
diff --git a/frontend/src/i18n/translation.json b/frontend/src/i18n/translation.json
index c65f5162a2..4fc021f177 100644
--- a/frontend/src/i18n/translation.json
+++ b/frontend/src/i18n/translation.json
@@ -2351,6 +2351,22 @@
"tr": "Git Ayarları",
"uk": "Git налаштування"
},
+ "SETTINGS$GIT_SETTINGS_DESCRIPTION": {
+ "en": "Configure the username and email that OpenHands uses to commit changes.",
+ "ja": "OpenHandsがコミットに使用するユーザー名とメールを設定します。",
+ "zh-CN": "配置OpenHands用于提交更改的用户名和电子邮件。",
+ "zh-TW": "配置OpenHands用於提交更改的用戶名和電子郵件。",
+ "ko-KR": "OpenHands가 변경 사항을 커밋할 때 사용하는 사용자 이름과 이메일을 구성합니다.",
+ "de": "Konfigurieren Sie den Benutzernamen und die E-Mail, die OpenHands zum Committen von Änderungen verwendet.",
+ "no": "Konfigurer brukernavnet og e-posten som OpenHands bruker for å committe endringer.",
+ "it": "Configura il nome utente e l'email che OpenHands utilizza per committare le modifiche.",
+ "pt": "Configure o nome de usuário e o email que o OpenHands usa para fazer commits de alterações.",
+ "es": "Configure el nombre de usuario y el correo electrónico que OpenHands utiliza para confirmar cambios.",
+ "ar": "قم بتكوين اسم المستخدم والبريد الإلكتروني الذي يستخدمه OpenHands لارتكاب التغييرات.",
+ "fr": "Configurez le nom d'utilisateur et l'email qu'OpenHands utilise pour valider les modifications.",
+ "tr": "OpenHands'ın değişiklikleri commit etmek için kullandığı kullanıcı adını ve e-postayı yapılandırın.",
+ "uk": "Налаштуйте ім'я користувача та електронну пошту, які OpenHands використовує для фіксації змін."
+ },
"SETTINGS$SOUND_NOTIFICATIONS": {
"en": "Sound Notifications",
"ja": "サウンド通知",
diff --git a/frontend/src/routes/app-settings.tsx b/frontend/src/routes/app-settings.tsx
index 71dfc01e23..f88ee06931 100644
--- a/frontend/src/routes/app-settings.tsx
+++ b/frontend/src/routes/app-settings.tsx
@@ -249,10 +249,13 @@ function AppSettingsScreen() {
className="w-full max-w-[680px]" // Match the width of the language field
/>
- <div className="border-t border-t-tertiary pt-6 mt-2 hidden">
- <h3 className="text-lg font-medium mb-4">
+ <div className="border-t border-t-tertiary pt-6 mt-2">
+ <h3 className="text-lg font-medium mb-2">
{t(I18nKey.SETTINGS$GIT_SETTINGS)}
</h3>
+ <p className="text-sm text-secondary mb-4">
+ {t(I18nKey.SETTINGS$GIT_SETTINGS_DESCRIPTION)}
+ </p>
<div className="flex flex-col gap-6">
<SettingsInput
testId="git-user-name-input"