From f2fab5b99de75743340cfba0d5258ab87774fe6a Mon Sep 17 00:00:00 2001 From: simosmik Date: Thu, 30 Apr 2026 11:43:33 +0000 Subject: [PATCH] fix: coderabbit comments --- .../ProviderSelectionEmptyState.tsx | 17 ++++++++++------- .../command-palette/sources/useApiSource.ts | 4 ++-- src/i18n/locales/de/chat.json | 3 ++- src/i18n/locales/en/chat.json | 3 ++- src/i18n/locales/it/chat.json | 3 ++- src/i18n/locales/ja/chat.json | 3 ++- src/i18n/locales/ko/chat.json | 3 ++- src/i18n/locales/ru/chat.json | 3 ++- src/i18n/locales/tr/chat.json | 3 ++- src/i18n/locales/zh-CN/chat.json | 3 ++- 10 files changed, 28 insertions(+), 17 deletions(-) diff --git a/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx b/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx index 5ef491a2..659e9492 100644 --- a/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx +++ b/src/components/chat/view/subcomponents/ProviderSelectionEmptyState.tsx @@ -1,6 +1,6 @@ import React, { useCallback, useEffect, useMemo, useState } from "react"; import { Check, ChevronDown } from "lucide-react"; -import { useTranslation } from "react-i18next"; +import { Trans, useTranslation } from "react-i18next"; import { useServerPlatform } from "../../../../hooks/useServerPlatform"; import SessionProviderLogo from "../../../llm-logo-provider/SessionProviderLogo"; @@ -292,12 +292,15 @@ export default function ProviderSelectionEmptyState({

- Press - - {MOD_KEY} - K - - to search sessions, files, and commits + + ), + }} + />

{provider && tasksEnabled && isTaskMasterInstalled && ( diff --git a/src/components/command-palette/sources/useApiSource.ts b/src/components/command-palette/sources/useApiSource.ts index af4ae414..979a8914 100644 --- a/src/components/command-palette/sources/useApiSource.ts +++ b/src/components/command-palette/sources/useApiSource.ts @@ -1,8 +1,8 @@ -import { useEffect, useState } from 'react'; +import { useEffect, useState, type DependencyList } from 'react'; export function useApiSource(opts: { enabled: boolean; - deps: React.DependencyList; + deps: DependencyList; fetcher: (signal: AbortSignal) => Promise; parse: (raw: R) => T[]; }): T[] { diff --git a/src/i18n/locales/de/chat.json b/src/i18n/locales/de/chat.json index 4d978bcf..b8a2d586 100644 --- a/src/i18n/locales/de/chat.json +++ b/src/i18n/locales/de/chat.json @@ -188,7 +188,8 @@ "codex": "Bereit, Codex mit {{model}} zu verwenden. Gib unten deine Nachricht ein.", "gemini": "Bereit, Gemini mit {{model}} zu verwenden. Gib unten deine Nachricht ein.", "default": "Wähl oben einen Anbieter, um zu beginnen" - } + }, + "pressToSearch": "Drücke {{shortcut}}, um Sitzungen, Dateien und Commits zu durchsuchen" }, "session": { "continue": { diff --git a/src/i18n/locales/en/chat.json b/src/i18n/locales/en/chat.json index dadaea89..32e756a2 100644 --- a/src/i18n/locales/en/chat.json +++ b/src/i18n/locales/en/chat.json @@ -188,7 +188,8 @@ "codex": "Ready to use Codex with {{model}}. Start typing your message below.", "gemini": "Ready to use Gemini with {{model}}. Start typing your message below.", "default": "Select a provider above to begin" - } + }, + "pressToSearch": "Press {{shortcut}} to search sessions, files, and commits" }, "session": { "continue": { diff --git a/src/i18n/locales/it/chat.json b/src/i18n/locales/it/chat.json index 78a7555a..06f18b08 100644 --- a/src/i18n/locales/it/chat.json +++ b/src/i18n/locales/it/chat.json @@ -188,7 +188,8 @@ "codex": "Pronto a usare Codex con {{model}}. Inizia a digitare il tuo messaggio qui sotto.", "gemini": "Pronto a usare Gemini con {{model}}. Inizia a digitare il tuo messaggio qui sotto.", "default": "Seleziona un provider sopra per iniziare" - } + }, + "pressToSearch": "Premi {{shortcut}} per cercare sessioni, file e commit" }, "session": { "continue": { diff --git a/src/i18n/locales/ja/chat.json b/src/i18n/locales/ja/chat.json index 10e03192..eb878aa6 100644 --- a/src/i18n/locales/ja/chat.json +++ b/src/i18n/locales/ja/chat.json @@ -165,7 +165,8 @@ "cursor": "{{model}}でCursorを使用する準備ができました。下にメッセージを入力してください。", "codex": "{{model}}でCodexを使用する準備ができました。下にメッセージを入力してください。", "default": "上からプロバイダーを選択して開始してください" - } + }, + "pressToSearch": "{{shortcut}} を押してセッション、ファイル、コミットを検索" }, "session": { "continue": { diff --git a/src/i18n/locales/ko/chat.json b/src/i18n/locales/ko/chat.json index aaf5b45c..bc4775b8 100644 --- a/src/i18n/locales/ko/chat.json +++ b/src/i18n/locales/ko/chat.json @@ -170,7 +170,8 @@ "codex": "{{model}} 모델로 Codex를 사용할 준비가 되었습니다. 아래에 메시지를 입력하세요.", "gemini": "{{model}} 모델로 Gemini를 사용할 준비가 되었습니다. 아래에 메시지를 입력하세요.", "default": "시작하려면 위에서 제공자를 선택하세요" - } + }, + "pressToSearch": "{{shortcut}}를 눌러 세션, 파일 및 커밋을 검색하세요" }, "session": { "continue": { diff --git a/src/i18n/locales/ru/chat.json b/src/i18n/locales/ru/chat.json index a1c5e277..4fd1a0b4 100644 --- a/src/i18n/locales/ru/chat.json +++ b/src/i18n/locales/ru/chat.json @@ -188,7 +188,8 @@ "codex": "Готов использовать Codex с {{model}}. Начните вводить сообщение ниже.", "gemini": "Готов использовать Gemini с {{model}}. Начните вводить сообщение ниже.", "default": "Выберите провайдера выше для начала" - } + }, + "pressToSearch": "Нажмите {{shortcut}}, чтобы искать сессии, файлы и коммиты" }, "session": { "continue": { diff --git a/src/i18n/locales/tr/chat.json b/src/i18n/locales/tr/chat.json index a866fcce..2f60b91c 100644 --- a/src/i18n/locales/tr/chat.json +++ b/src/i18n/locales/tr/chat.json @@ -188,7 +188,8 @@ "codex": "Codex'i {{model}} ile kullanmaya hazır. Mesajını aşağıya yazmaya başla.", "gemini": "Gemini'yi {{model}} ile kullanmaya hazır. Mesajını aşağıya yazmaya başla.", "default": "Başlamak için yukarıdan bir sağlayıcı seç" - } + }, + "pressToSearch": "Oturumlarda, dosyalarda ve commit'lerde arama yapmak için {{shortcut}} tuşlarına bas" }, "session": { "continue": { diff --git a/src/i18n/locales/zh-CN/chat.json b/src/i18n/locales/zh-CN/chat.json index 1d224cc7..a478f18a 100644 --- a/src/i18n/locales/zh-CN/chat.json +++ b/src/i18n/locales/zh-CN/chat.json @@ -170,7 +170,8 @@ "codex": "准备好使用带有 {{model}} 的 Codex。请在下方开始输入您的消息。", "gemini": "准备好使用带有 {{model}} 的 Gemini。请在下方开始输入您的消息。", "default": "请在上方选择一个提供者以开始" - } + }, + "pressToSearch": "按 {{shortcut}} 搜索会话、文件和提交" }, "session": { "continue": {