refactor(analytics): PR E2 rename addTraitsToUser to identify in NFT detection modals#30499
Conversation
…ts files Renames `.addTraitsToUser()` → `.identify()` in NFTAutoDetectionModal and CollectibleDetectionModal. Updates NFTAutoDetectionModal.test.tsx assertions accordingly. Part of analytics cleanup workstream (#26686). Co-authored-by: Cursor <cursoragent@cursor.com>
|
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: Key observations:
This is a low-risk internal refactoring with no user-facing impact. No E2E test tags are needed as no user flows are affected. Performance Test Selection: |
|



Description
Part of the analytics cleanup workstream (#26686).
Renames
.addTraitsToUser()→.identify()in the NFT auto-detection modal components (NFTAutoDetectionModalandCollectibleDetectionModal). Updates the corresponding test file to use theidentifyoverride increateMockUseAnalyticsHook.Files touched:
NFTAutoDetectionModal/NFTAutoDetectionModal.tsx— rename.addTraitsToUser→.identifyCollectibleDetectionModal/index.tsx— rename.addTraitsToUser→.identifyNFTAutoDetectionModal/NFTAutoDetectionModal.test.tsx— update mock and assertions to useidentifyChangelog
CHANGELOG entry: null
Related issues
Closes: #26822
Refs: #26686
Manual testing steps
N/A
Screenshots/Recordings
Before
N/A — no UI changes.
After
N/A — no UI changes.
Pre-merge author checklist
Pre-merge reviewer checklist