chore: adds "whats happening" to the Explore view#29778
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. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 185dbce. Configure here.
…MetaMask/metamask-mobile into TSA-add-whats-happening-to-explore-view
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Performance Test Selection: |
|
| useEffect(() => { | ||
| if (refresh.trigger === 0) return; | ||
| whatsHappeningRef.current?.refresh(); | ||
| }, [refresh.trigger]); |
There was a problem hiding this comment.
Does it have any effect whenever the feature is disabled?
There was a problem hiding this comment.
No, it has no effect, because if the Whats Happening entry is never rendered (FF off) the whatsHappeningRef.current will be null.




Description
Renders the existing
WhatsHappeningSectionat the top of the Explore page's Now tab (V2 layout), gated behind the FF.Changelog
CHANGELOG entry: null
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: adds a feature-flagged UI section to the top of Explore’s Now tab plus a small ref-based refresh hook; no auth, persistence, or critical transaction logic changes.
Overview
Renders
WhatsHappeningSectionat the top ofTrendingView/tabs/NowTab, gated byselectWhatsHappeningEnabled, and forwards aSectionRefreshHandleref so the section can be refreshed when the tab’srefresh.triggerchanges.Adds a focused unit test (
NowTab.test.tsx) that verifies flag-on renders, flag-off does not mount, and that a ref is passed to support pull-to-refresh without pulling in the section’s heavy dependencies.Reviewed by Cursor Bugbot for commit d3b9432. Bugbot is set up for automated code reviews on this repo. Configure here.