Make live signal reads non-mutating
This commit is contained in:
@@ -5,7 +5,7 @@ import type { DimensionScoreDetail, CompositeBreakdown } from '../../lib/types';
|
||||
interface ScoreCardProps {
|
||||
compositeScore: number | null;
|
||||
dimensions: DimensionScoreDetail[];
|
||||
compositeBreakdown?: CompositeBreakdown;
|
||||
compositeBreakdown?: CompositeBreakdown | null;
|
||||
/** Hide the composite ring/header when the composite is shown elsewhere
|
||||
* (e.g. the Standing matrix) and this card only carries the dimension detail. */
|
||||
showComposite?: boolean;
|
||||
|
||||
@@ -96,7 +96,7 @@ export interface ScoreResponse {
|
||||
dimensions: DimensionScoreDetail[];
|
||||
missing_dimensions: string[];
|
||||
computed_at: string | null;
|
||||
composite_breakdown?: CompositeBreakdown;
|
||||
composite_breakdown?: CompositeBreakdown | null;
|
||||
}
|
||||
|
||||
export interface DimensionScoreDetail {
|
||||
@@ -104,12 +104,13 @@ export interface DimensionScoreDetail {
|
||||
score: number;
|
||||
is_stale: boolean;
|
||||
computed_at: string | null;
|
||||
breakdown?: ScoreBreakdown;
|
||||
breakdown?: ScoreBreakdown | null;
|
||||
}
|
||||
|
||||
export interface RankingEntry {
|
||||
symbol: string;
|
||||
composite_score: number;
|
||||
composite_stale: boolean;
|
||||
dimensions: DimensionScoreDetail[];
|
||||
}
|
||||
|
||||
@@ -140,9 +141,18 @@ export interface TradeSetup {
|
||||
evaluated_at: string | null;
|
||||
current_price: number | null;
|
||||
momentum_percentile?: number | null;
|
||||
context_as_of?: TradeSetupContextAsOf | null;
|
||||
recommendation_summary?: RecommendationSummary;
|
||||
}
|
||||
|
||||
export interface TradeSetupContextAsOf {
|
||||
setup_detected_at: string;
|
||||
score_computed_at: string | null;
|
||||
sentiment_at: string | null;
|
||||
price_date: string | null;
|
||||
price_updated_at: string | null;
|
||||
}
|
||||
|
||||
// Performance / outcome statistics
|
||||
export interface OutcomeBucketStats {
|
||||
total: number;
|
||||
|
||||
Reference in New Issue
Block a user