feat: origin tracing on all market_events
- DB: colonne origin (migration + UPDATE heuristique sur données legacy)
- save/update_market_event: persist origin
- Tous les points de création taguent leur origine:
bootstrap_macro/eco/ma/legacy | detector_news/eco/technical/report | manual
- UI MarketEvents: badge d'origine avec icône + description dans le panneau détail,
icône tooltip dans la liste gauche, message explicite si pas de source_refs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -491,6 +491,7 @@ def _to_event_dict(ev: Dict[str, Any]) -> Dict[str, Any]:
|
||||
"impact_score": ev.get("impact_score", 0.4),
|
||||
"absorption_pct": None,
|
||||
"relevant_indicators": [],
|
||||
"origin": "bootstrap_ma",
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user