Skip to content

Commit 2c96bcf

Browse files
authored
feat: add ZhuLinsen#1391 Phase 3 web diagnostic summaries (ZhuLinsen#1445)
* fix(issue-1412): [bug]-stock_list格式问题 * fix(review-feedback-1413): preserve exchange hint for dotted A-share inputs * fix(review-feedback-1413): Keep normalized A-share codes usable by market routing and preserve * fix(review-feedback-1413): Limit raw dotted codes to fetchers that can parse them * fix(review-feedback-1413): Keep Tushare daily input normalized for ETF detection * fix(review-feedback-1413): 澄清结构化检测中的外部模型/API 与运行时配置迁移风险 * fix(review-feedback-1413): 处理或明确确认该失败与本 PR 无关且已有维护者豁免依据 * fix: keep stock list input as bare codes * docs: add phase-0 run diagnostics contract * fix(review-feedback-1435): 修正描述并澄清/补齐运行时代码变更的验证证据 * fix(review-feedback-1435): 补齐前缀提示识别,并增加对应回归测试 * fix(review-feedback-1435): 修正 * fix(review-feedback-1435): 解决冲突并更新描述/验证记录后再合入 * fix(review-feedback-1435): 解决冲突,并在最终 head 上重新确认 python -m pytest tests/test a share fetcher code * fix(review-feedback-1435): 修复并补齐回归覆盖后再复核最终 head * fix(review-feedback-1435): data provider/baostock fetcher.py 的 convert stock code 只从 .SH/.SS/.SZ * fix: preserve A-share exchange hints * fix(review-feedback-1435): 修正 docs/run-diagnostics-p0.md 对 Tushare 本轮范围的矛盾描述 * feat: add phase 1 run diagnostics trace plumbing * feat: add phase 2 run diagnostic summaries * feat: add phase 3 web diagnostic summaries * fix(review-feedback-1445): Retry diagnostics fetch instead of permanently short-circuiting * fix(review-feedback-1445): 解决冲突并确认 CI 仍为 success * fix(review-feedback-1445): Persist diagnostics after notification dispatch * docs(run-diagnostics): Clarify LLM config compatibility boundary for Phase 2 * fix: resolve undefined variable and test timing issues in diagnostics * fix(review-feedback-1445): 澄清并补齐验证 * fix(review-feedback-1445): 解决的 merge conflict * fix(review-feedback-1445): 解决冲突,并补齐后端/API 变更说明与验证证据 * fix(review-feedback-1445): 解决冲突,并在冲突解决后重新确认受影响检查仍通过 * fix(review-feedback-1445): 澄清并补齐模型/provider/Base URL/运行时配置迁移相关证据,避免与 PR 风险说明不一致 * fix(review-feedback-1445): 解决冲突,并在冲突解决后确认关键 Web 与后端诊断路径仍通过验证 * fix(review-feedback-1445): Scope channel diagnostics to stocks actually notified * fix(review-feedback-1445): Count source-context delivery as notification success and update * fix(review-feedback-1445): 解决冲突后再合入
1 parent f7fbdda commit 2c96bcf

21 files changed

Lines changed: 1215 additions & 46 deletions

apps/dsa-web/src/api/history.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import type {
77
AnalysisReport,
88
NewsIntelResponse,
99
NewsIntelItem,
10+
RunDiagnosticSummary,
1011
} from '../types/analysis';
1112

1213
// ============ API 接口 ============
@@ -78,6 +79,15 @@ export const historyApi = {
7879
return response.data.content;
7980
},
8081

82+
/**
83+
* 获取历史报告运行诊断摘要
84+
* @param recordId 分析历史记录主键 ID
85+
*/
86+
getDiagnostics: async (recordId: number): Promise<RunDiagnosticSummary> => {
87+
const response = await apiClient.get<Record<string, unknown>>(`/api/v1/history/${recordId}/diagnostics`);
88+
return toCamelCase<RunDiagnosticSummary>(response.data);
89+
},
90+
8191
/**
8292
* 批量删除历史记录
8393
* @param recordIds 分析历史记录主键 ID 列表

0 commit comments

Comments
 (0)