Skip to content
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

Browser Dapp Showcase #423

Merged
merged 22 commits into from
Feb 21, 2019
Merged

Browser Dapp Showcase #423

merged 22 commits into from
Feb 21, 2019

Conversation

estebanmino
Copy link
Contributor

Description

This PR implements Browser Dapp Showcase following https://www.figma.com/file/BDcfanN7wCZqbB446t8szhQy/MetaMask-Mobile?node-id=126%3A0, also adding url autocomplete to that view.

giff

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

Issue

Resolves #262

Copy link
Contributor

@brunobar79 brunobar79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@estebanmino this is 🔥🔥🔥🔥
Added a few minor comments and for the record, I'm still impressed by the fact that you started this morning...

<ActionSheet
ref={this.createActionSheetRef}
title={strings('home_page.remove_bookmark_title')}
options={['Remove', 'Cancel']}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to locales

flexDirection: 'row'
},
icon: {
height: 35,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this icons are bigger, I'd refactor the websiteIcon component to receive a prop size, and use it to build the url of faviconkit so they don't get scaled on high res screens

Should look something like this:
<WebsiteIcon url={'https://metamask.io'} size={PixelRatio.getPixelSizeForLayoutSize(35)} />

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! didn't know this

onInitialUrlSubmit={this.onInitialUrlSubmit}
navigation={this.props.navigation}
/>
<HomePage goTo={this.go} onInitialUrlSubmit={this.onInitialUrlSubmit} navigation={this.props.navigation} />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer the way it looked before but if this was prettier's fault ignore this comment.

@@ -0,0 +1,23 @@
export default [
{
url: 'https://dai.makerdao.com/',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cdp.makerdao.com

description: 'Maker is comprised of a stablecoin, collateral loans, and decentralized governance.'
},
{
url: 'https://peepeth.com/welcome',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd send it to here instead https://peepeth.com/_

url: 'https://gitcoin.co/',
name: 'Gitcoin',
description: 'Gitcoin is the easiest way to leverage the open source community to incentivize or monetize work.'
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd put as #2 or even #1 uniswap.exchange
Also somewhere in the list: https://mainnet.aragon.org/

locales/en.json Outdated
@@ -327,22 +327,29 @@
"backup_alert_message": "Tap to save your seed phrase",
"bookmarks": "Bookmarks",
"no_bookmarks": "Your bookmarks will show up here",
"remove_bookmark_title": "Do you want to remove this bookmark?"
"remove_bookmark_title": "Do you want to remove this favorite site?"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Do you want to remove this site from your favorites?"

@estebanmino
Copy link
Contributor Author

@brunobar79 built this in android there were some bugs. Comments addressed.

image

@estebanmino estebanmino merged commit b6398f2 into develop Feb 21, 2019
@estebanmino estebanmino deleted the dapp-showcase branch February 21, 2019 18:23
rickycodes pushed a commit that referenced this pull request Jan 31, 2022
* browser top done

* tab bar and favorites working

* remove bookmarks

* featured dapps with basic styles

* go to featured

* favorites working fine

* favorite item style

* final styles

* url autocomplete

* locales

* move components to UI

* snapshots

* rename compoennt

* missin locale

* clean after search

* small comments

* pixel ratio

* fix android and empty favorites

* more android fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants