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

very basic dapp add/remove interface #2721

Merged
merged 7 commits into from
Oct 20, 2016
Merged

very basic dapp add/remove interface #2721

merged 7 commits into from
Oct 20, 2016

Conversation

derhuerst
Copy link
Contributor

This PR addresses #2674 in parts. I just implemented checkboxes instead of sets of dapps, as I wasn't sure it's actually needed if the plan is to get to a full-blown store.

dapps

@parity-cla-bot
Copy link

It looks like this contributor signed our Contributor License Agreement. 👍

Many thanks,

Ethcore CLA Bot

@derhuerst derhuerst added A0-pleasereview 🤓 Pull request needs code review. M5-ui labels Oct 19, 2016
@jacogr
Copy link
Contributor

jacogr commented Oct 19, 2016

Need to fit in with the rest of the L&F. Functionality seems spot-on though. Would have loved to have at least the 2 categories as well, the name itself it just not enough.

@jacogr jacogr added A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 19, 2016
@derhuerst
Copy link
Contributor Author

Just wondered because you said it may not be worth it as the ui is going to change soon anyways.

@jacogr
Copy link
Contributor

jacogr commented Oct 19, 2016

Well, we have a ui/Modal - just by using that things would have

(a) appeared on a consistent location with the rest
(b) would have been styled to fit in

So I'm actually guessing it would have been less work (have not reviewed the code as of yet)

@derhuerst derhuerst added A0-pleasereview 🤓 Pull request needs code review. and removed A4-gotissues 💥 Pull request is reviewed and has significant issues which must be addressed. labels Oct 19, 2016
@@ -38,7 +38,7 @@ export default class Summary extends Component {
return null;
}

const url = `/app/${app.local ? 'local' : 'global'}/${app.url}`;
const url = `/app/${app.local ? 'local' : 'global'}/${app.id}`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this actually work now? For built-ins the id is the sha3, so in the dapp we may try to load sha3.html?

We need the hash id, otherwise we cannot reliably register images.


const hardcoded = [
{
id: 'basiccoin',
Copy link
Contributor

Choose a reason for hiding this comment

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

We need the sha3.


return globalApps.map(this.renderApp);
return Promise.all(available.map((app) => dappReg.getImage(sha3(app.id))))
Copy link
Contributor

Choose a reason for hiding this comment

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

The issue is now that we do the expensive sha3 every cycle and as authors have no way of seeing what it is to manage :(

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry wrong about each cycle, but we still need the sha3 to display somewhere - so either pre-calculate and add it to the structure or revert. The sha3 is the actual id that it is registered with on dappreg, cannot do without.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but we still need the sha3 to display somewhere - so either […] add it to the structure or revert.

We didn't show it before afaict. Will think of some reasonable place to show it.

@derhuerst
Copy link
Contributor Author

derhuerst commented Oct 19, 2016

I think the hash is irrelevant to most users, but still needs to be accessible for those technically interested. To keep the visual noise low, I added them to the "customise dapp list" modal.

dapps

@jacogr
Copy link
Contributor

jacogr commented Oct 19, 2016

Cool, will go through as soon as my Morden is sync-ing again. Agreed with you on the visual noise.

@jacogr jacogr added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Oct 20, 2016
@jacogr jacogr merged commit 9b24624 into master Oct 20, 2016
@jacogr jacogr deleted the customize-dapp-list branch October 20, 2016 12:27
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants