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:
caty21
2026-06-27 14:12:05 +02:00
co-authored by Claude Sonnet 4.6
parent a3d847ce59
commit 9da463a424
12 changed files with 1777 additions and 754 deletions
+9 -1
View File
@@ -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;
}