Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Refactoring of the Dapp Registry #4589

Merged
merged 45 commits into from
Mar 10, 2017
Merged

Refactoring of the Dapp Registry #4589

merged 45 commits into from
Mar 10, 2017

Conversation

ngotchac
Copy link
Contributor

@ngotchac ngotchac commented Feb 17, 2017

Refactoring of the Dapp Registry built-in dapp.

No need to register the Manifest/Image/Content URL in GithubHint dapp anymore, the Dapp Registry is taking care of this now (thus, is becoming a secure dapp).

New UI as well.

Stil todo:

image

image

@ngotchac ngotchac added A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. M8-dapp 💎 Decentralized applications. labels Feb 17, 2017
@jacogr
Copy link
Contributor

jacogr commented Feb 17, 2017

Wishlist -

  1. Dapp registration via URL (opens in extension/built-in browser)
  2. Auto-populate of meta information from manifest.json (e.g. main URL entered, manifest.json & image auto detected & populated)
  3. ...

@@ -15,10 +15,12 @@
/* along with Parity. If not, see <http://www.gnu.org/licenses/>.
*/

@import '../_colors.css';

.body {
color: #333;
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably would have made sense to put this colour in colors.css as well. (Minor)

open: false
};

dappsStore = DappsStore.instance();
Copy link
Contributor

Choose a reason for hiding this comment

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

We generally use .get()

text-align: center;
z-index: 50;
align-items: center;
background-color: rgba(40, 40, 40, 0.75);
Copy link
Contributor

Choose a reason for hiding this comment

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

Also would have put this in colors.css (There are a couple, not commenting on all). Not a crisis where there are no re-use, bust consistency for all.

> * {
display: inline-block;
font-family: 'Roboto Mono', monospace;
font-size: 0.8rem;
Copy link
Contributor

Choose a reason for hiding this comment

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

Slightly different from the 0.75rem used elsewhere. (Although this is inside a header.)

@@ -15,5 +15,4 @@
/* along with Parity. If not, see <http://www.gnu.org/licenses/>.
*/

.app {
}
$blue: rgb(41, 128, 185);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would have made the name "title-background" or "title-color" (something specific, not tied to the color but actual usage thereof)

/>
<Button
className={ styles.button }
label='Fetch Registry'
Copy link
Contributor

Choose a reason for hiding this comment

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

I find this a bit confusing when I looked at the UI. "Reset" maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So this is in fact for #4342
It fetches the registered IMG and CONTENT hashes from the registry, based on the selected dapp owner : owner address ==(registry reverse)==> registry name ==(registry lookup)==> [ IMG_GHH_hash ; CONTENT_GHH_hash ] ==> fill the form.

So it's not a reset, it's fetching data from the registry, based on the selected owner address. Couldn't think of a better explicit name though :/

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahhh, that one. Ok, will ponder a bit on a better more explicit name, it escapes me at present as well...

@jacogr
Copy link
Contributor

jacogr commented Mar 10, 2017

Couple of minor comments. My only grumble is that we lost the ability for the contract owner to remove apps from the dapp. (e.g. the contract owner account should have the ability to delete any dapp - existing in current version, not in this one - it can never edit them, but can remove any app)

Huge step forward, I really like it as a base to build on now.

@jacogr jacogr added A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 10, 2017
@ngotchac ngotchac added A0-pleasereview 🤓 Pull request needs code review. and removed A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. labels Mar 10, 2017
@ngotchac
Copy link
Contributor Author

Ok, so I addressed the PR grumbles, and added the ability for the dapp reg contract owner to delete dapps.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 10, 2017
@jacogr jacogr merged commit eebb8b8 into master Mar 10, 2017
@jacogr jacogr deleted the ng-dappreg-enhancements branch March 10, 2017 12:32
jacogr added a commit that referenced this pull request Mar 10, 2017
jacogr added a commit that referenced this pull request Mar 10, 2017
@jacogr jacogr mentioned this pull request Mar 10, 2017
arkpar pushed a commit that referenced this pull request Mar 10, 2017
* Added React Hot Reload to dapps + TokenDeplpoy fix (#4846)

* Fix method decoding (#4845)

* Fix contract deployment method decoding in Signer

* Linting

* Fix TxViewer when no `to` (contract deployment) (#4847)

* Added React Hot Reload to dapps + TokenDeplpoy fix

* Fixes to the LocalTx dapp

* Don't send the nonce for mined transactions

* Don't encode empty to values for options

* Pull steps from actual available steps (#4848)

* Wait for the value to have changed in the input (#4844)

* Backport Regsirty changes from #4589

* Test fixes for #4589
jacogr added a commit that referenced this pull request Mar 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M8-dapp 💎 Decentralized applications.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants