Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add fuzzy matching for name lookup (#25264)
## **Description** 1. What is the reason for the change? Snaps can't indicate whether they've exact matched or fuzzy matched without responding with a `domainName` property that the UI can display. 2. What is the improvement/solution? Changes in the namelookup API are being integrated and the UI logic was changed to display the `domainName` returned in the snap response instead of `userInput`. Demo: https://github.com/MetaMask/metamask-extension/assets/41640681/709ad071-7cbf-40d9-9d5f-9bca5a901ef8 ## **Pre-merge author checklist** - [x] I've followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Extension Coding Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [x] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [x] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
- Loading branch information