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

Misc small UI fixes (recently broken) #2101

Merged
merged 20 commits into from Sep 19, 2016
Merged

Misc small UI fixes (recently broken) #2101

merged 20 commits into from Sep 19, 2016

Conversation

jacogr
Copy link
Contributor

@jacogr jacogr commented Sep 15, 2016

A number of small (mostly) one-liners for where issues have recently cropped up -

  • images for tokens show up in the transaction list (again)
  • images for tokens show up in the signer (again)
  • if we have a token transfer, the total was calculated incorrectly (couldn't send)
  • send button now shows the IdentityIcons (as with signer & fund) [Cherry-picked IdentityIcon button support from https://github.com/ethcore/parity/pull/2099]
  • simplify transfer header now that we have a IdentityIcon send (trial)
  • transfer drop-down selection broke when image was not found (TestToken/EWQ), default in-place
  • don't show tokens when balance === 0 in transfer type
  • prepare for using GitHubHint images, use only one image size for tokens, browser scales
  • show powered-by ethercsan for transaction list (pulls in https://github.com/ethcore/parity/pull/2100)
  • after removing global contacts context, adding addresses was broken
  • fix modal title size where no steps are available
  • use standard modal title functionality in the addressbook add

@jacogr jacogr added A0-pleasereview 🤓 Pull request needs code review. M-UI labels Sep 15, 2016
@parity-cla-bot
Copy link

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

Many thanks,

Ethcore CLA Bot

.filter((token) => token.value.gt(0))
.map((balance, idx) => {
const token = balance.token;
const isEth = idx === 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

😕 Isn't there a more robust way?

Copy link
Contributor Author

@jacogr jacogr Sep 16, 2016

Choose a reason for hiding this comment

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

Well, yes, find(). However the way it is setup is that ETH is always in the first position. It needs to show up first where displayed. If we move away from having it in a fixed position, then display also becomes a sorting issue. So order is -

  • position 0: ETH (native network balance)
  • position 1..n: Tokens

@@ -86,12 +85,12 @@ class Transfer extends Component {
render () {
const { stage, extras } = this.state;

// title={ this.renderAccount() }
Copy link
Contributor

Choose a reason for hiding this comment

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

remove?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not yet. It may need to come back since it is the account in the header - not quite sure yet if the icon on the button only is sufficient.

@@ -501,7 +501,7 @@ class Transfer extends Component {
const { gas, gasPrice, tag, valueAll, isEth } = this.state;
const gasTotal = new BigNumber(gasPrice || 0).mul(new BigNumber(gas || 0));
const balance_ = balance.tokens.find((b) => tag === b.token.tag);
const availableEth = new BigNumber(balance_.value);
const availableEth = new BigNumber(balance.tokens[0].value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Like #r79015673: Is there a more robust way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As above.

# Conflicts:
#	js/src/ui/IdentityIcon/identityIcon.js
* js: (40 commits)
  Added docs
  check for existence of deprecated ethash file before attempting delete (#2103)
  check response.ok, throw Error
  array for classlist
  .map -> .forEach
  fix wording
  rename fundAccount to shapeshift
  use shapeshift ison & name
  fix typo
  Import summary
  removed etherscan logo, doesn't belong in this branch
  slightly more presentable UI...
  fix PropTypes as received
  pass correct result through to callback
  busy shifting flag
  treat coin changes properly
  update coin message slightly
  remove debug for no coins available
  3 decimal places, display is unwieldly
  remove testing price info as well
  ...
* jg-etherscan-logo:
  Added docs
  fix grumble
  Import summary
  transaction list powered by
@tomusdrw tomusdrw added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Sep 17, 2016
@derhuerst derhuerst merged commit ab7fde6 into js Sep 19, 2016
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
No open projects
User Interface
Done (1.4.0)
Development

Successfully merging this pull request may close these issues.

None yet

4 participants