perf(accessibility): fix iOS accessibility in WhatsHappening and TopT…#29123
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 2 potential issues.
❌ 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 238ce24. Configure here.
238ce24 to
8e96a8b
Compare
8e96a8b to
aba8226
Compare
aba8226 to
8e96a8b
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #29123 +/- ##
==========================================
- Coverage 82.15% 81.84% -0.31%
==========================================
Files 5178 5244 +66
Lines 137450 138676 +1226
Branches 31079 31462 +383
==========================================
+ Hits 112924 113505 +581
- Misses 16875 17447 +572
- Partials 7651 7724 +73 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3cde92b to
3872e55
Compare
…raders sections - WhatsHappeningCard: collapse double Box wrapper to single node (–1 native node per card) - WhatsHappeningSection, TopTradersSection: View ref + Box gap → View ref style Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…HappeningSection The testID was only present on the error-state SectionHeader, not on the normal success/loading render path. Consistent with TopTradersSection and the error branch of this same component. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n won't render When traders are empty after loading the component returns null, leaving the ref unattached. Passing a non-null ref with a null .current silently blocks both the viewport-visibility and the immediate-fire paths of useHomeViewedEvent. Apply the same willRender pattern used by WhatsHappeningSection so the empty-state analytics event fires correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3872e55 to
e75d976
Compare
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These changes are purely UI refactoring within the Trending/Homepage sections. The
Performance Test Selection: |
|




…raders sections
Description
Changelog
CHANGELOG entry:
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 refactor focused on layout/styling and analytics/view tracking wiring; main risk is subtle spacing or event-firing behavior changes when sections are empty/loading.
Overview
Improves homepage section rendering and instrumentation for Top Traders and What’s Happening.
TopTradersSectionandWhatsHappeningSectionnow pass anullsectionReftouseHomeViewedEventwhen the section won’t render, avoiding measuring a non-mounted view while preserving the hook’s empty/immediate-fire behavior. Both section headers also gain stabletestIDs viaWalletViewSelectorsIDs.HOMEPAGE_SECTION_TITLE(...).WhatsHappeningSectionremoves the extraBoxwrapper (replacinggapwith aStyleSheetstyle on the rootView), andWhatsHappeningCardcollapses layout into theTouchableOpacityvia Tailwindstyleto reduce one native node per card.Reviewed by Cursor Bugbot for commit e75d976. Bugbot is set up for automated code reviews on this repo. Configure here.