Просмотр исходного кода

Add unsaved settings warning to codebase indexing settings view (#3944)

Daniel 7 месяцев назад
Родитель
Сommit
68b60a2749

+ 6 - 0
webview-ui/src/components/settings/CodeIndexSettings.tsx

@@ -324,6 +324,12 @@ export const CodeIndexSettings: React.FC<CodeIndexSettingsProps> = ({
 						</div>
 					</div>
 
+					{(!areSettingsCommitted || !validateIndexingConfig(codebaseIndexConfig, apiConfiguration)) && (
+						<p className="text-sm text-vscode-descriptionForeground mb-2">
+							{t("settings:codeIndex.unsavedSettingsMessage")}
+						</p>
+					)}
+
 					<div className="flex gap-2">
 						{(indexingStatus.systemStatus === "Error" || indexingStatus.systemStatus === "Standby") && (
 							<VSCodeButton

+ 1 - 0
webview-ui/src/i18n/locales/ca/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Clau de Qdrant:",
 		"startIndexingButton": "Iniciar indexació",
 		"clearIndexDataButton": "Esborrar dades d'índex",
+		"unsavedSettingsMessage": "Si us plau, deseu la configuració abans d'iniciar el procés d'indexació.",
 		"clearDataDialog": {
 			"title": "Esteu segur?",
 			"description": "Aquesta acció no es pot desfer. Eliminarà permanentment les dades d'índex de la vostra base de codi.",

+ 1 - 0
webview-ui/src/i18n/locales/de/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Qdrant-Schlüssel:",
 		"startIndexingButton": "Indexierung starten",
 		"clearIndexDataButton": "Indexdaten löschen",
+		"unsavedSettingsMessage": "Bitte speichere deine Einstellungen, bevor du den Indexierungsprozess startest.",
 		"clearDataDialog": {
 			"title": "Sind Sie sicher?",
 			"description": "Diese Aktion kann nicht rückgängig gemacht werden. Dies wird Ihre Codebase-Indexdaten dauerhaft löschen.",

+ 1 - 0
webview-ui/src/i18n/locales/en/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Qdrant Key:",
 		"startIndexingButton": "Start Indexing",
 		"clearIndexDataButton": "Clear Index Data",
+		"unsavedSettingsMessage": "Please save your settings before starting the indexing process.",
 		"clearDataDialog": {
 			"title": "Are you sure?",
 			"description": "This action cannot be undone. This will permanently delete your codebase index data.",

+ 1 - 0
webview-ui/src/i18n/locales/es/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Clave de Qdrant:",
 		"startIndexingButton": "Iniciar indexación",
 		"clearIndexDataButton": "Borrar datos de índice",
+		"unsavedSettingsMessage": "Por favor guarda tus ajustes antes de iniciar el proceso de indexación.",
 		"clearDataDialog": {
 			"title": "¿Estás seguro?",
 			"description": "Esta acción no se puede deshacer. Esto eliminará permanentemente los datos de índice de tu base de código.",

+ 1 - 0
webview-ui/src/i18n/locales/fr/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Clé Qdrant :",
 		"startIndexingButton": "Démarrer l'indexation",
 		"clearIndexDataButton": "Effacer les données d'index",
+		"unsavedSettingsMessage": "Merci d'enregistrer tes paramètres avant de démarrer le processus d'indexation.",
 		"clearDataDialog": {
 			"title": "Êtes-vous sûr ?",
 			"description": "Cette action ne peut pas être annulée. Cela supprimera définitivement les données d'index de votre base de code.",

+ 1 - 0
webview-ui/src/i18n/locales/hi/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Qdrant कुंजी:",
 		"startIndexingButton": "इंडेक्सिंग शुरू करें",
 		"clearIndexDataButton": "इंडेक्स डेटा साफ़ करें",
+		"unsavedSettingsMessage": "इंडेक्सिंग प्रक्रिया शुरू करने से पहले कृपया अपनी सेटिंग्स सहेजें।",
 		"clearDataDialog": {
 			"title": "क्या आप सुनिश्चित हैं?",
 			"description": "यह क्रिया पूर्ववत नहीं की जा सकती। यह आपके कोडबेस इंडेक्स डेटा को स्थायी रूप से हटा देगी।",

+ 1 - 0
webview-ui/src/i18n/locales/it/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Chiave Qdrant:",
 		"startIndexingButton": "Avvia indicizzazione",
 		"clearIndexDataButton": "Cancella dati indice",
+		"unsavedSettingsMessage": "Per favore salva le tue impostazioni prima di avviare il processo di indicizzazione.",
 		"clearDataDialog": {
 			"title": "Sei sicuro?",
 			"description": "Questa azione non può essere annullata. Eliminerà permanentemente i dati di indice del tuo codice.",

+ 1 - 0
webview-ui/src/i18n/locales/ja/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Qdrantキー:",
 		"startIndexingButton": "インデックス作成を開始",
 		"clearIndexDataButton": "インデックスデータをクリア",
+		"unsavedSettingsMessage": "インデックス作成プロセスを開始する前に設定を保存してください。",
 		"clearDataDialog": {
 			"title": "本当によろしいですか?",
 			"description": "この操作は元に戻せません。コードベースのインデックスデータが完全に削除されます。",

+ 1 - 0
webview-ui/src/i18n/locales/ko/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Qdrant 키:",
 		"startIndexingButton": "인덱싱 시작",
 		"clearIndexDataButton": "인덱스 데이터 지우기",
+		"unsavedSettingsMessage": "인덱싱 프로세스를 시작하기 전에 설정을 저장해 주세요.",
 		"clearDataDialog": {
 			"title": "확실합니까?",
 			"description": "이 작업은 취소할 수 없습니다. 코드베이스 인덱스 데이터가 영구적으로 삭제됩니다.",

+ 1 - 0
webview-ui/src/i18n/locales/nl/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Qdrant-sleutel:",
 		"startIndexingButton": "Indexering starten",
 		"clearIndexDataButton": "Indexgegevens wissen",
+		"unsavedSettingsMessage": "Sla je instellingen op voordat je het indexeringsproces start.",
 		"clearDataDialog": {
 			"title": "Weet je het zeker?",
 			"description": "Deze actie kan niet ongedaan worden gemaakt. Dit zal je codebase-indexgegevens permanent verwijderen.",

+ 1 - 0
webview-ui/src/i18n/locales/pl/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Klucz Qdrant:",
 		"startIndexingButton": "Rozpocznij indeksowanie",
 		"clearIndexDataButton": "Wyczyść dane indeksu",
+		"unsavedSettingsMessage": "Zapisz swoje ustawienia przed rozpoczęciem procesu indeksowania.",
 		"clearDataDialog": {
 			"title": "Czy jesteś pewien?",
 			"description": "Tej akcji nie można cofnąć. Spowoduje to trwałe usunięcie danych indeksu Twojego kodu.",

+ 1 - 0
webview-ui/src/i18n/locales/pt-BR/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Chave Qdrant:",
 		"startIndexingButton": "Iniciar Indexação",
 		"clearIndexDataButton": "Limpar Dados de Índice",
+		"unsavedSettingsMessage": "Por favor, salve suas configurações antes de iniciar o processo de indexação.",
 		"clearDataDialog": {
 			"title": "Tem certeza?",
 			"description": "Esta ação não pode ser desfeita. Isso excluirá permanentemente os dados de índice da sua base de código.",

+ 1 - 0
webview-ui/src/i18n/locales/ru/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Ключ Qdrant:",
 		"startIndexingButton": "Начать индексацию",
 		"clearIndexDataButton": "Очистить данные индекса",
+		"unsavedSettingsMessage": "Пожалуйста, сохрани настройки перед запуском процесса индексации.",
 		"clearDataDialog": {
 			"title": "Вы уверены?",
 			"description": "Это действие нельзя отменить. Оно навсегда удалит данные индекса вашей кодовой базы.",

+ 1 - 0
webview-ui/src/i18n/locales/tr/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Qdrant Anahtarı:",
 		"startIndexingButton": "İndekslemeyi Başlat",
 		"clearIndexDataButton": "İndeks Verilerini Temizle",
+		"unsavedSettingsMessage": "İndeksleme işlemini başlatmadan önce lütfen ayarlarını kaydet.",
 		"clearDataDialog": {
 			"title": "Emin misiniz?",
 			"description": "Bu işlem geri alınamaz. Bu, kod tabanı indeks verilerinizi kalıcı olarak silecektir.",

+ 1 - 0
webview-ui/src/i18n/locales/vi/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Khóa Qdrant:",
 		"startIndexingButton": "Bắt đầu lập chỉ mục",
 		"clearIndexDataButton": "Xóa dữ liệu chỉ mục",
+		"unsavedSettingsMessage": "Vui lòng lưu cài đặt của bạn trước khi bắt đầu quá trình lập chỉ mục.",
 		"clearDataDialog": {
 			"title": "Bạn có chắc không?",
 			"description": "Hành động này không thể hoàn tác. Điều này sẽ xóa vĩnh viễn dữ liệu chỉ mục mã nguồn của bạn.",

+ 1 - 0
webview-ui/src/i18n/locales/zh-CN/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Qdrant 密钥:",
 		"startIndexingButton": "开始索引",
 		"clearIndexDataButton": "清除索引数据",
+		"unsavedSettingsMessage": "请先保存设置再开始索引过程。",
 		"clearDataDialog": {
 			"title": "确定要继续吗?",
 			"description": "此操作无法撤消。这将永久删除您的代码库索引数据。",

+ 1 - 0
webview-ui/src/i18n/locales/zh-TW/settings.json

@@ -48,6 +48,7 @@
 		"qdrantKeyLabel": "Qdrant 金鑰:",
 		"startIndexingButton": "開始索引",
 		"clearIndexDataButton": "清除索引資料",
+		"unsavedSettingsMessage": "請先儲存設定再開始索引程序。",
 		"clearDataDialog": {
 			"title": "確定要繼續嗎?",
 			"description": "此操作無法復原。這將永久刪除您的程式碼庫索引資料。",