mirror of
https://github.com/caty21/forex-dashboard.git
synced 2026-08-25 18:38:07 +00:00
feat: OISEnhancedBlock — rate curve, implied pts, scénarios charts per CB
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
a3d847ce59
commit
9da463a424
+9
-1
@@ -845,7 +845,15 @@ export async function fetchAllNews(): Promise<NewsItem[]> {
|
||||
return true;
|
||||
});
|
||||
|
||||
deduped.sort((a, b) => b.publishedAt.localeCompare(a.publishedAt));
|
||||
const PRIORITY_SET = new Set(["Discours BC", "Décision Taux", "Crise", "Guerre", "Chef d'État", "Probabilités Taux"]);
|
||||
const isPrio = (item: NewsItem) => item.categories.some(c => PRIORITY_SET.has(c));
|
||||
|
||||
deduped.sort((a, b) => {
|
||||
const pa = isPrio(a) ? 1 : 0;
|
||||
const pb = isPrio(b) ? 1 : 0;
|
||||
if (pb !== pa) return pb - pa;
|
||||
return b.publishedAt.localeCompare(a.publishedAt);
|
||||
});
|
||||
|
||||
return deduped;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user