- Fix `simple_test_analysis` template in E2E test setup to align with Orchestrator's data fetch logic.
- Implement and verify additional E2E scenarios:
- Scenario C: Partial Provider Failure (verified error propagation fix in Orchestrator).
- Scenario D: Invalid Symbol input.
- Scenario E: Analysis Module failure.
- Update `WorkflowStateMachine::handle_report_failed` to correctly scope error broadcasting to the specific task instead of failing effectively silently or broadly.
- Update testing strategy documentation to reflect completed Phase 4 testing.
- Skip Scenario B (Orchestrator Restart) as persistence is not yet implemented (decision made to defer persistence).
21 lines
676 B
TypeScript
21 lines
676 B
TypeScript
import React from 'react';
|
|
import { TradingViewWidget } from '@/components/TradingViewWidget';
|
|
|
|
interface StockChartProps {
|
|
symbol: string;
|
|
}
|
|
|
|
export function StockChart({ symbol }: StockChartProps) {
|
|
// Simple heuristic to detect market.
|
|
// If 6 digits at start or ends with .SH/.SZ, it's likely China.
|
|
// Otherwise default to US (or let TradingView handle it).
|
|
const isChina = /^\d{6}/.test(symbol) || symbol.endsWith('.SH') || symbol.endsWith('.SZ');
|
|
const market = isChina ? 'china' : 'us';
|
|
|
|
return (
|
|
<div className="h-[500px] w-full mt-4">
|
|
<TradingViewWidget symbol={symbol} market={market} height={500} />
|
|
</div>
|
|
);
|
|
}
|