chore: emit chain name on follow-trading token events#33349
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
PR template — items to address before "Ready for review"Warnings — informational, address before merging:
See docs/readme/ready-for-review.md for the full Definition of Ready for Review. |
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These changes are purely additive analytics property enrichment — no UI components, navigation flows, controllers, shared infrastructure, or user-facing behavior is modified. No E2E smoke tests cover SocialLeaderboard analytics event properties. The changes carry no risk to any existing E2E test flows. No performance-sensitive code paths are affected. Performance Test Selection: |



Description
Emits a
chain_nameproperty on follow-trading token analytics events so dashboards can break down views by chain without parsingcaip19or relying onchain_id_destination(which social events never send).Values are lowercase chain slugs from
position.chain(e.g.base,solana,hyperliquid).Changelog
CHANGELOG entry: null
Related issues
Fixes: NA
Manual testing steps
Screenshots/Recordings
Before
NA
After
NA
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
Analytics-only property addition on existing event builders; no user-facing behavior or auth/data-path changes.
Overview
Adds
chain_nameto Social Leaderboard follow-trading token analytics so reporting can segment by chain without parsingcaip19.buildFollowTradingTokenContextnow always includes a lowercase slug fromposition.chain(e.g.base,hyperliquid) on the shared context used for screen viewed, CTA clicked, and profile position clicked events.pickFollowTradingDismissedPropertiesalso forwardschain_nameon dismiss payloads alongsidetrader_addressandcaip19/perps_market. ACHAIN_NAMEkey is registered inSocialLeaderboardEventProperties; unit and view tests assert the new field for spot and perp flows.Reviewed by Cursor Bugbot for commit cc4b606. Bugbot is set up for automated code reviews on this repo. Configure here.