Skip to content

Add Convergence section (Phase 1c) - #9

Merged
wjleece merged 1 commit into
mainfrom
feat/convergence-ux
Sep 20, 2026
Merged

wjleece merged 1 commit into
mainfrom
feat/convergence-ux

Conversation

@wjleece

@wjleece wjleece commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

Summary

The headline section: a ticker where a corporate insider and a member of Congress both bought, reading get_convergence_alerts_web() and grouped into one card per ticker via groupConvergenceAlerts. Hidden by default, shown only when there's a real convergence — no permanently-empty section noise on an ordinary day.

Test plan

  • pnpm test green (22/22, 4 new for groupConvergenceAlerts)
  • pnpm astro check — no new type errors
  • Verified empty state (today's actual state): section stays hidden, no console errors
  • Verified populated state against production with a temporary real-shaped test row (TSM), then deleted it and confirmed the feed returns to empty
  • Checked at mobile width (375px)
  • CI green on this PR (gating the merge)

🤖 Generated with Claude Code

Headline section above both single-source lists: a ticker where a
corporate insider and a member of Congress both bought, reading
get_convergence_alerts_web() and grouping the flat (ticker, Congressional
transaction) rows into one card per ticker via the new
groupConvergenceAlerts (4 new tests). Hidden by default -- shown only when
a real convergence exists, so an ordinary day (the common case today)
doesn't carry a permanently-empty section as noise.

memberDisplayName/partyStateLabel/officersLabel loosened to Pick<> inputs
so the same formatters work on a convergence card's per-member entries,
not just the single-source row types.

Verified end-to-end against production with a temporary real-shaped test
row (TSM, already a live corporate alert) -- confirmed the card renders
correctly, then deleted the test row and confirmed the feed is empty
again.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@wjleece
wjleece merged commit 3f24102 into main Sep 20, 2026
1 check passed
@wjleece
wjleece deleted the feat/convergence-ux branch September 20, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant