feat(query-editor): 收敛 SQL 分析工作台与结果区日志体验

- 新增 SQL 分析工作台,统一承载慢 SQL 和 SQL 诊断视图
- 将 SQL 执行日志收进结果区首个日志标签并在失败时展示错误摘要
- 调整侧边栏入口、标签展示、多语言文案与定向前端测试覆盖
This commit is contained in:
Syngnat
2026-06-20 14:09:58 +08:00
parent 04019135a0
commit c8c8497a2f
26 changed files with 1539 additions and 539 deletions

View File

@@ -436,6 +436,7 @@ export interface TabData {
| "query"
| "table"
| "design"
| "sql-analysis"
| "redis-keys"
| "redis-command"
| "redis-monitor"
@@ -479,6 +480,8 @@ export interface TabData {
tableExportInitialScope?: TableExportScope;
tableExportQueryByScope?: Partial<Record<TableExportScope, string>>;
tableExportRowCountByScope?: Partial<Record<TableExportScope, number>>;
sqlAnalysisView?: "diagnose" | "slow-query";
sqlAnalysisRequestKey?: string;
formatRestoreSnapshot?: {
query: string;
createdAt: number;