feat(sidebar): 支持删除与清空近期查询

- 为每条近期查询增加删除入口,并在标题区提供清空操作
- 通过持久化可见性标记隐藏近期记录,保留完整 SQL 执行日志
- 补齐六语言文案及交互、订阅和状态持久化测试
This commit is contained in:
AutumnNazi
2026-07-24 12:35:56 +08:00
parent e43fc6e1a1
commit 0d27d2deaa
17 changed files with 321 additions and 22 deletions

View File

@@ -7126,6 +7126,7 @@
"sidebar.batch_databases": "Datenbanken stapelweise bearbeiten",
"sidebar.batch_tables": "Tabellen stapelweise bearbeiten",
"sidebar.command_search.action.ask_ai.title": "AI fragen",
"sidebar.command_search.action.clear_recent": "Leeren",
"sidebar.command_search.action.new_connection.meta": "Eine Datenbank-, Runtime- oder andere Datenquellenverbindung erstellen",
"sidebar.command_search.action.new_connection.title": "Neue Datenquelle",
"sidebar.command_search.action.new_query.meta": "Einen neuen SQL-Editor-Tab öffnen",
@@ -7133,6 +7134,7 @@
"sidebar.command_search.action.open_ai.title": "AI-Datenanalyse öffnen",
"sidebar.command_search.action.open_sql_log.meta": "Das Panel mit den letzten Ausführungen öffnen",
"sidebar.command_search.action.open_sql_log.title": "SQL-Ausführungslog anzeigen",
"sidebar.command_search.action.remove_recent": "Letzte Abfrage entfernen",
"sidebar.command_search.empty.ai": "Gib nach \"?\" eine Frage ein und drücke Enter, um sie an das AI-Panel zu senden.",
"sidebar.command_search.empty.default": "Keine Treffer. Gib @Tabelle ein, um nur Tabellenobjekte zu suchen, oder ?Frage, um AI zu fragen.",
"sidebar.command_search.empty.object": "Keine passenden Tabellen, Sichten oder materialisierten Sichten.",

View File

@@ -7126,6 +7126,7 @@
"sidebar.batch_databases": "Batch database operations",
"sidebar.batch_tables": "Batch table operations",
"sidebar.command_search.action.ask_ai.title": "Ask AI",
"sidebar.command_search.action.clear_recent": "Clear",
"sidebar.command_search.action.new_connection.meta": "Create a database, runtime, or other data source connection",
"sidebar.command_search.action.new_connection.title": "New data source",
"sidebar.command_search.action.new_query.meta": "Open a new SQL editor tab",
@@ -7133,6 +7134,7 @@
"sidebar.command_search.action.open_ai.title": "Open AI data insights",
"sidebar.command_search.action.open_sql_log.meta": "Open the recent execution history panel",
"sidebar.command_search.action.open_sql_log.title": "View SQL execution log",
"sidebar.command_search.action.remove_recent": "Remove recent query",
"sidebar.command_search.empty.ai": "Type a question after \"?\" and press Enter to send it to the AI panel.",
"sidebar.command_search.empty.default": "No matches. Type @table to search table objects only, or type ?question to ask AI.",
"sidebar.command_search.empty.object": "No matching tables, views, or materialized views.",

View File

@@ -7126,6 +7126,7 @@
"sidebar.batch_databases": "一括データベース",
"sidebar.batch_tables": "一括テーブル",
"sidebar.command_search.action.ask_ai.title": "AI に質問",
"sidebar.command_search.action.clear_recent": "クリア",
"sidebar.command_search.action.new_connection.meta": "データベース、ランタイム、またはその他のデータソース接続を作成",
"sidebar.command_search.action.new_connection.title": "新規データソース",
"sidebar.command_search.action.new_query.meta": "新しい SQL エディタータブを開く",
@@ -7133,6 +7134,7 @@
"sidebar.command_search.action.open_ai.title": "AI データインサイトを開く",
"sidebar.command_search.action.open_sql_log.meta": "最近の実行履歴パネルを開く",
"sidebar.command_search.action.open_sql_log.title": "SQL 実行ログを表示",
"sidebar.command_search.action.remove_recent": "この最近のクエリを削除",
"sidebar.command_search.empty.ai": "「?」の後に質問を入力し、Enter で AI パネルへ送信します。",
"sidebar.command_search.empty.default": "一致する項目はありません。@テーブル名でテーブルオブジェクトのみ検索、?質問で AI に質問できます。",
"sidebar.command_search.empty.object": "一致するテーブル、ビュー、マテリアライズドビューはありません。",

View File

@@ -7126,6 +7126,7 @@
"sidebar.batch_databases": "Пакетные базы данных",
"sidebar.batch_tables": "Пакетные таблицы",
"sidebar.command_search.action.ask_ai.title": "Спросить AI",
"sidebar.command_search.action.clear_recent": "Очистить",
"sidebar.command_search.action.new_connection.meta": "Создать подключение к базе данных, среде выполнения или другому источнику данных",
"sidebar.command_search.action.new_connection.title": "Новый источник данных",
"sidebar.command_search.action.new_query.meta": "Открыть новую вкладку SQL-редактора",
@@ -7133,6 +7134,7 @@
"sidebar.command_search.action.open_ai.title": "Открыть AI-анализ данных",
"sidebar.command_search.action.open_sql_log.meta": "Открыть панель недавней истории выполнения",
"sidebar.command_search.action.open_sql_log.title": "Показать журнал выполнения SQL",
"sidebar.command_search.action.remove_recent": "Удалить недавний запрос",
"sidebar.command_search.empty.ai": "Введите вопрос после \"?\" и нажмите Enter, чтобы отправить его на панель AI.",
"sidebar.command_search.empty.default": "Совпадений нет. Введите @таблица, чтобы искать только объекты таблиц, или ?вопрос, чтобы спросить AI.",
"sidebar.command_search.empty.object": "Подходящие таблицы, представления или материализованные представления не найдены.",

View File

@@ -7126,6 +7126,7 @@
"sidebar.batch_databases": "数据库",
"sidebar.batch_tables": "表",
"sidebar.command_search.action.ask_ai.title": "让 AI 回答",
"sidebar.command_search.action.clear_recent": "清空",
"sidebar.command_search.action.new_connection.meta": "创建数据库、运行时或其他数据源连接",
"sidebar.command_search.action.new_connection.title": "新建数据源",
"sidebar.command_search.action.new_query.meta": "打开一个新的 SQL 编辑页",
@@ -7133,6 +7134,7 @@
"sidebar.command_search.action.open_ai.title": "打开 AI 数据洞察",
"sidebar.command_search.action.open_sql_log.meta": "打开最近执行记录面板",
"sidebar.command_search.action.open_sql_log.title": "查看 SQL 执行日志",
"sidebar.command_search.action.remove_recent": "删除该条近期查询",
"sidebar.command_search.empty.ai": "输入「?」后加问题,按 Enter 发送到 AI 面板。",
"sidebar.command_search.empty.default": "未找到匹配项。可输入 @表名 只搜表对象,或输入 ?问题 让 AI 回答。",
"sidebar.command_search.empty.object": "未找到匹配的表、视图或物化视图。",

View File

@@ -7126,6 +7126,7 @@
"sidebar.batch_databases": "資料庫",
"sidebar.batch_tables": "資料表",
"sidebar.command_search.action.ask_ai.title": "讓 AI 回答",
"sidebar.command_search.action.clear_recent": "清空",
"sidebar.command_search.action.new_connection.meta": "建立資料庫、執行階段或其他資料來源連線",
"sidebar.command_search.action.new_connection.title": "新增資料來源",
"sidebar.command_search.action.new_query.meta": "開啟新的 SQL 編輯頁",
@@ -7133,6 +7134,7 @@
"sidebar.command_search.action.open_ai.title": "開啟 AI 資料洞察",
"sidebar.command_search.action.open_sql_log.meta": "開啟最近執行記錄面板",
"sidebar.command_search.action.open_sql_log.title": "查看 SQL 執行日誌",
"sidebar.command_search.action.remove_recent": "刪除這筆近期查詢",
"sidebar.command_search.empty.ai": "輸入「?」後加問題,按 Enter 傳送到 AI 面板。",
"sidebar.command_search.empty.default": "未找到符合項目。可輸入 @表名 只搜尋表物件,或輸入 ?問題 讓 AI 回答。",
"sidebar.command_search.empty.object": "未找到符合的表格、檢視或物化檢視。",