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

Address input component should not generate identityicon unless the address is valid #3093

Closed
chevdor opened this issue Nov 2, 2016 · 3 comments
Labels
F8-enhancement 🎊 An additional feature request. P7-nicetohave 🐕 Issue is worth doing eventually.

Comments

@chevdor
Copy link

chevdor commented Nov 2, 2016

Discussed (partlyx) with @derhuerst

If the user types in 0xHelloWorld or 0x1234 or even 0xabc456789012345678901234567890123456789Z, this should not generate an identityicon but show clearly that this is not a valid address.

I propose the following:

  • valid address w/ checksum => identityicon
  • valid address w/o checksum => identityicon
  • invalid address => big red X

I am not sure yet what would be the best option to provide user feedback about checksums but I think it would be nice to have a way to display it without much clutter.

We have the following cases:

  • no checksum 0xabbb6bebfa05aa13e908eaa492bd7a8343760477
  • check OK 0xaBbb6bEbFA05aA13e908EaA492Bd7a8343760477
  • checksum NOK 0xaBBB6bEbFA05aA13e908EaA492Bd7a8343760477

For those 3 cases, I would display the identityicon in any case but add a little symbol in a corner or a coloured border around it.

Feedback wanted (but not about my drawing skills 😄 obviously some CSS will do a better job )! Note that I did not regenerate the identityicon to match the following, in a real case, the icons below would differ.
screen_shot_2016-11-02_at_13_14_27_redcross screen_shot_2016-11-02_at_13_14_27_tick screen_shot_2016-11-02_at_13_14_27_question

screen_shot_2016-11-02_at_13_14_27_red screen_shot_2016-11-02_at_13_14_27_green screen_shot_2016-11-02_at_13_14_27_yellow

I kinda prefer the outline option best, it can also be disabled very quickly from the CSS by setting the border width to 0...

The drawback I can think of regarding the 'color only' solution is for color blind people who may not distinguish some of the state. For the 'no checksum' case, we could use a dashed line. To differentiate between OK and NOT OK, we may need an extra visual clue.

@derhuerst derhuerst added F8-enhancement 🎊 An additional feature request. M6-ui labels Nov 2, 2016
@derhuerst
Copy link
Contributor

I kinda prefer the outline option best, it can also be disabled very quickly from the CSS by setting the border width to 0...

The drawback I can think of regarding the 'color only' solution is for color blind people who may not distinguish some of the state. For the 'no checksum' case, we could use a dashed line. To differentiate between OK and NOT OK, we may need an extra visual clue.

Prefer the icon option, as the outline option seems to colourful. 😄

@chevdor
Copy link
Author

chevdor commented Nov 2, 2016

@derhuerst If you go the icon option, you solve also the color blind issue. Keeping accessibility in mind is always nice...

@jacogr jacogr added the P7-nicetohave 🐕 Issue is worth doing eventually. label Nov 2, 2016
@jacogr
Copy link
Contributor

jacogr commented Nov 2, 2016

  1. This took care of the invalid IdentityIcon - https://github.com/ethcore/parity/pull/3065
  2. We currently don't have the fine-grained capabilities to determine for the 3 cases of failures - it is all-or-nothing. (There is an issue logged to address this at the API level, which includes the actual errors as displayed on the UI, https://github.com/ethcore/parity/issues/2152).

@jacogr jacogr changed the title UI: Address input component should not generate identityicon unless the address is valid Address input component should not generate identityicon unless the address is valid Nov 2, 2016
@jacogr jacogr closed this as completed Nov 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F8-enhancement 🎊 An additional feature request. P7-nicetohave 🐕 Issue is worth doing eventually.
Projects
None yet
Development

No branches or pull requests

3 participants