Files
trumpsignal-frontend/components
k fe88acb5a0 fix(ui): don't show misleading 0% AI bar on off-topic Trump posts
Most Trump posts aren't crypto-related, so the entry filter / AI marks them
relevant=false with ai_confidence=0 and no reasoning (never AI-scored). The
post card still rendered 'AI confidence 0%' with an empty progress bar, which
reads as 'AI looked and was 0% confident' rather than the truth: 'skipped as
not crypto-relevant'.

Added an aiScored guard (ai_confidence > 0 || ai_reasoning present):
- collapsed row: shows AI '—' instead of '0%' for unscored posts
- expanded detail: shows 'Not crypto-relevant — skipped AI scoring' instead
  of an empty 0% confidence bar

Scored posts (the ~80 with confidence>0 in test data, and all real signals
once live) are unchanged — full bar + reasoning shown.

tsc + build clean.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 03:16:35 +08:00
..