Improve scan terminal freshness and AMSC overlay consistency

This commit is contained in:
2569718930@qq.com
2026-06-15 01:39:19 +08:00
parent 717786b1d8
commit c79e0f36cc
30 changed files with 924 additions and 48 deletions
+10 -1
View File
@@ -507,6 +507,14 @@ export interface ScanTerminalFilters {
limit: number;
}
export interface ScanTerminalDiff {
mode: "full" | "not_modified" | "row_delta" | string;
base_snapshot_id?: string | null;
snapshot_id?: string | null;
rows_changed?: ScanOpportunityRow[];
removed_row_ids?: string[];
}
export interface ScanOpportunityRow {
id: string;
rank?: number | null;
@@ -673,7 +681,7 @@ export interface PrimarySignal extends ScanOpportunityRow {}
export interface ScanTerminalResponse {
generated_at: string;
snapshot_id?: string | null;
status?: "ready" | "stale" | "failed" | string;
status?: "ready" | "stale" | "failed" | "not_modified" | string;
stale?: boolean;
stale_reason?: string | null;
last_success_at?: string | null;
@@ -694,6 +702,7 @@ export interface ScanTerminalResponse {
};
top_signal?: PrimarySignal | null;
rows: ScanOpportunityRow[];
diff?: ScanTerminalDiff;
}
export interface IntradayMeteorologySignal {
+1 -1
View File
@@ -1,7 +1,7 @@
export const DASHBOARD_REFRESH_POLICY_SEC = {
observation: 60,
metar: 5 * 60,
scanRows: 5 * 60,
scanRows: 2 * 60,
marketOverview: 10 * 60,
model: 30 * 60,
} as const;