fix(panels): yield curve title, macro EU tab polish, trade anomaly badge (#2381)

* fix(panels): yield curve title, macro EU tab polish, trade anomaly badge

YieldCurvePanel: rename title to "Yield Curve & Rates", rename tab to "US Curve" to disambiguate from ECB Rates tab

MacroTilesPanel EU tab: shorten verbose labels (HICP (YoY), Unemployment, GDP Growth (QoQ)), add fmtEuDate to show "Jan 2026" instead of raw YYYY-MM, wire priorValue from euAvg so "vs prior" delta renders on all 4 EU tiles

TradePolicyPanel: fix anomaly badge rendering as "RussiaAnomaly" — trade-anomaly-badge CSS class had no styles so text rendered inline; replaced with inline-styled red pill badge with proper spacing

seed-eurostat-country-data: bump lastTimePeriod 1→2 for CPI/GDP; update parseEurostatResponse to capture second observation as priorValue; pass priorValue through return value

* fix(panels): add prior_value to EurostatMetric proto, remove unsafe type casts, use CSS var for anomaly badge

- Add prior_value + has_prior fields to EurostatMetric proto (was missing, causing unsafe type cast)
- Run make generate to regenerate stubs (priorValue/hasPrior now properly typed)
- MacroTilesPanel: replace (m as {priorValue?:number}) cast with m?.hasPrior guard
- seed-eurostat-country-data: emit hasPrior: true when priorValue is available
- TradePolicyPanel: replace hardcoded #e74c3c with var(--red) CSS variable

Addresses Greptile review comments on PR #2381.
This commit is contained in:
Elie Habib
2026-03-27 23:29:55 +04:00
committed by GitHub
parent e7ba05553d
commit e3bc79a19c
9 changed files with 64 additions and 19 deletions

View File

@@ -1731,6 +1731,13 @@ components:
unit:
type: string
description: Unit of measurement (e.g. "%").
priorValue:
type: number
format: double
description: Prior period value for delta calculation (e.g. previous month/quarter).
hasPrior:
type: boolean
description: True when prior_value is present (proto3 can't distinguish 0 from absent).
description: EurostatMetric holds a single economic metric value for a country.
GetEuGasStorageRequest:
type: object