-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: MMPD-1528 - View recents and favorites in browser URL modal #12938
base: main
Are you sure you want to change the base?
Conversation
- when nothing is typed, show recents (max 5) and favorites - when user starts typing, show results from the dapp list
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. |
Bitrise✅✅✅ Commit hash: 4af548d Note
|
Bitrise🔄🔄🔄 Commit hash: bb0fae8 Note
|
Bitrise✅✅✅ Commit hash: 01270c6 Note
|
Bitrise✅✅✅ Commit hash: f0b234e Note
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments
category: { | ||
fontSize: 16, | ||
color: colors.text.default, | ||
...fontStyles.bold, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use typography from theme based on what font style Figma is showing. For example, reference Input.styles.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Cal-L need more details on this one please
borderRadius: 8, | ||
borderWidth: 1, | ||
borderColor: colors.border.default, | ||
height: Device.isAndroid() ? 50 : 40, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to have different heights for the platforms or can we just use one value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heads up that the many use of array methods in the UrlAutocomplete
may potentially cause performance issues. It seems that there could be a more optimal way to store the values to reduce the amount of transformations. Happy to pair on this
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment
@@ -268,24 +159,18 @@ export class UrlAutocomplete extends PureComponent { | |||
); | |||
} | |||
|
|||
const categoriesWithResults = ORDERED_CATEGORIES.filter(category => resultsByCategory[category]?.length > 0); | |||
|
|||
return ( | |||
<ScrollView style={styles.wrapper} contentContainerStyle={styles.contentContainer}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be updated to be a Flatlist instead of a Scrollview since it abstracts the need to map over the results.
Description
https://consensyssoftware.atlassian.net/browse/MMPD-1528
Change the behaviour of the browser url autocomplete:
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MMPD-1528
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist