Skip to content

Commit e1faaba

Browse files
authored
fix: limit decision signals to AI page (#1737)
* fix: limit decision signals to AI page * fix: preserve report signal lookup * docs: sync decision signal guide * fix(review-feedback-1737): add a report-id filter or deep link on /decision-signals before
1 parent f61c536 commit e1faaba

12 files changed

Lines changed: 109 additions & 695 deletions

apps/dsa-web/src/components/report/ReportDecisionSignals.tsx

Lines changed: 0 additions & 282 deletions
This file was deleted.

apps/dsa-web/src/components/report/ReportSummary.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react';
22
import type { AnalysisResult, AnalysisReport } from '../../types/analysis';
33
import { ReportOverview } from './ReportOverview';
44
import { ReportStrategy } from './ReportStrategy';
5-
import { ReportDecisionSignals } from './ReportDecisionSignals';
65
import { ReportNews } from './ReportNews';
76
import { ReportDetails } from './ReportDetails';
87
import { ReportDiagnostics } from './ReportDiagnostics';
@@ -72,9 +71,6 @@ export const ReportSummary: React.FC<ReportSummaryProps> = ({
7271
{/* 策略点位区 */}
7372
<ReportStrategy strategy={strategy} language={reportLanguage} />
7473

75-
{/* 从当前历史报告提取的结构化信号 */}
76-
<ReportDecisionSignals recordId={recordId} reportType={meta.reportType} />
77-
7874
{/* 资讯区 */}
7975
<ReportNews recordId={recordId} limit={8} language={reportLanguage} />
8076

apps/dsa-web/src/components/report/__tests__/AnalysisContextSummary.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,5 +292,6 @@ describe('ReportSummary analysis context placement', () => {
292292
expect(news.compareDocumentPosition(contextSummary) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
293293
expect(contextSummary.compareDocumentPosition(diagnostics) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
294294
expect(diagnostics.compareDocumentPosition(traceability) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
295+
expect(screen.queryByText('AI 建议 / 决策信号')).not.toBeInTheDocument();
295296
});
296297
});

0 commit comments

Comments
 (0)