feat: add AI disclaimer to whats happening cp-7.78.0#30352
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These are UI-only changes within the Trending/WhatsHappening feature. The WhatsHappeningDetailView is part of the Trending tab, which is covered by SmokeWalletPlatform. The trending-feed.spec.ts test navigates to detail views (perps, tokens, predictions) which render WhatsHappeningExpandedCard — so these tests are the most relevant for validating the changes don't break existing card rendering. No controller changes, no navigation infrastructure changes, no shared components (TabBar, modals used across the app) are affected. The MarketInsightsDisclaimerBottomSheet is a new addition but is only rendered conditionally when the AI pill is tapped. No other tags (SmokeConfirmations, SmokePerps, etc.) are needed as the change doesn't affect transaction flows, perps trading logic, or other cross-cutting concerns. Performance Test Selection: |
|



Description
Adds a disclaimer to the Market Insights page when the AI button is clicked.
Changelog
CHANGELOG entry: no-changelog
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
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
Low risk UI-only change that adds a new bottom-sheet visibility state and callback wiring; primary risk is minor regressions in the Whats Happening detail view interaction flow.
Overview
Adds an AI disclaimer flow to the
What's happeningdetail carousel: tapping the AI pill onWhatsHappeningExpandedCardnow triggers anonAIDisclaimerPresscallback, whichWhatsHappeningDetailViewuses to show/hideMarketInsightsDisclaimerBottomSheet.Updates unit tests to cover the new AI-pill press behavior and bottom sheet open/close rendering logic.
Reviewed by Cursor Bugbot for commit 026dd93. Bugbot is set up for automated code reviews on this repo. Configure here.