-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Align list displays with SectionList (UI consistency) #4621
Conversation
jacogr
commented
Feb 21, 2017
•
edited
Loading
edited
Not sure I agree with the UX. But that aside, it lags significantly on my laptop. MacBook Pro (Retina, 13-inch, Early 2015) |
Transitions. Great feedback, will remove those. |
Also, consider that there won't necessarily be mouse support (hover) on all clients. It's uncommon among devs, but I can imagine people that want to use the UI on their Surface with touch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments. One thing that must be fixed (the tags not working properly).
On last comment : when hovering a line of Accounts (for example) where the number of item is less than the max (eg. 2), even if the mouse is not over an Account, there will be some transformation/animation going on. This is a bit misleading.
@@ -48,7 +51,8 @@ $transitionAll: all 0.75s cubic-bezier(0.23, 1, 0.32, 1); | |||
|
|||
.hoverOverlay { | |||
background: $backgroundHover; | |||
transform: scale(1, 1); | |||
/*transform: scale(1, 1);*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't they be removed ? (The commented out properties)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left it in on purpose - want to revisit the actual animations, so need guidance as to what it was. (There are a couple)
|
||
return app.url === 'web' | ||
? '/web' | ||
: `/app/${app.id}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we have this piece of logic somewhere else where it could be accessible from every component? I can imagine that it could be useful to have an easy access to this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, logged as https://github.com/ethcore/parity/issues/4660
opacity: 0.85; | ||
padding: 0.25em; | ||
transition: all 0.75s cubic-bezier(0.23, 1, 0.32, 1); | ||
/* https://www.binarymoon.co.uk/2014/02/fixing-css-transitions-in-google-chrome/ */ | ||
transform: translateZ(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
<Tags | ||
className={ styles.tags } | ||
tags={ tags } | ||
handleAddSearchToken={ handleAddSearchToken } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to work (cannot click on Tags anymore to add them to the Search)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ummm.... Not intended :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
<div | ||
data-tip | ||
data-for={ `owner_${owner.address}` } | ||
data-effect='solid' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are these for again ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You added them :) It is actually quite nice, shows the name info on hover. (Have it on my todos to replication for Vaults)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, right (well it's part of react-tooltip
)
@@ -33,7 +33,10 @@ export default class Container extends Component { | |||
const { children, onCloseFirstRun, showFirstRun, upgradeStore } = this.props; | |||
|
|||
return ( | |||
<ParityBackground className={ styles.container }> | |||
<ParityBackground | |||
attachDocument |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure we want this (at least not for every single dapp). Some dapp devs might built their app thinking that the background would be white. There is actually one example of this on Ropsten, which is just some text, black. If the Parity Background is black/dark, the dapp won't render correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Will make the iframe bg white.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. (iframe bg white)
Looks good, only last point remaining:
|
Not going to fix that, it actually is part of the SectionList component - feel free to give it a stab, but it is maybe annoying, but really not anywhere near the critical path, so I'm not considering it. I have discussed this - Best work-around I could muster a couple of PRs ago - need to move the unselected sizes down to 29% when hovering the row, keeping it at 33.33% and makes at least Chrome not resize all equally - and then we end up with an issue since overflows start to occur. Logged, but not addressing here - https://github.com/ethcore/parity/issues/4665 |
* Added SelectionList component for selections * Use SelectionList in DappPermisions * AddDapps uses SelectionList * Fix AccountCard to consistent height * Convert Signer defaults to SelectionList * Subtle selection border * Convert VaultAccounts to SelectionList * Add tests for SectionList component * Apply scroll fixes from lates commit in #4621 * Remove unneeded logs * Remove extra div, fixing ParityBar overflow
* Add VaultMeta edit dialog * Updated (WIP) * Meta & password edit completed * Added SelectionList component for selections * Use SelectionList in DappPermisions * AddDapps uses SelectionList * Fix AccountCard to consistent height * Convert Signer defaults to SelectionList * Subtle selection border * Display account vault information * Allow invalid addresses to display icons (e.g. vaults) * Display vault on edit meta * Convert VaultAccounts to SelectionList * Allow editing of Vault in meta * Add tests for SectionList component * Add tests for VaultSelector component * Auto-focus description field (aligns with #4657) * Apply scroll fixes from lates commit in #4621 * Remove unneeded logs * Remove extra div, fixing ParityBar overflow * Disable save if password don't match * s/disabled/readOnly/ * string -> bool
* Added SelectionList component for selections * Use SelectionList in DappPermisions * AddDapps uses SelectionList * Fix AccountCard to consistent height * Display type icons in creation dialog * Complimentary colours * Convert Signer defaults to SelectionList * Fix Geth import - actually pass addresses through * Work from addresses returned via RPC * Display actual addresses imported (not selected) * Update tests to cover bug fixed * Prettyfy Geth import * Description on selection actions * SelectionList as entry point * Update failing tests * Subtle selection border * Styling updates for account details * Add ModalBox summary * AddAddress updated * Convert VaultAccounts to SelectionList * Add tests for SectionList component * Add tests for ModalBox component * Re-apply stretch fix * Apply scroll fixes from lates commit in #4621 * Clear name on switch (test in #4652, not pulling in) * Remove refs (cleanup)
* Render Dapps via SectionList * Initial rendering of accounts via SectionList * Width vars * Allow classNames in certifications & tags * Overlay of info on hover * Adjust hover balances * Large owner icons (align with vaults) * Consistent block mined at message * Attach ParityBackground to html * Adjust page padding to align * Lint fixes * Link to different types of addresses * Make content parts clickable only (a within a) * Force Chrome hardware acceleration * Trust the vendors... don't go crazy with transform :) * Use faster & default transitions * Add VaultMeta edit dialog * Updated (WIP) * Meta & password edit completed * Added SelectionList component for selections * Use SelectionList in DappPermisions * AddDapps uses SelectionList * Fix AccountCard to consistent height * Display type icons in creation dialog * Complimentary colours * Convert Signer defaults to SelectionList * Fix Geth import - actually pass addresses through * Work from addresses returned via RPC * Display actual addresses imported (not selected) * Update tests to cover bug fixed * Prettyfy Geth import * Description on selection actions * SelectionList as entry point * Update failing tests * Subtle selection border * Styling updates for account details * Add ModalBox summary * AddAddress updated * Display account vault information * Allow invalid addresses to display icons (e.g. vaults) * Display vault on edit meta * Convert VaultAccounts to SelectionList * Allow editing of Vault in meta * Add tests for SectionList component * Add tests for ModalBox component * Add tests for VaultSelector component * Add vaultsOpened in store * Add ~/ui/Form/VaultSelect * WIP * Fix failing tests * Move account to vault when selected * Fix circular build deps * EditMeta uses Form/VaultSelect * Vault move into meta store (alignment) * Re-apply stretch fix * Display vault in account summary * Add busy indicators to relevant modals * Auto-focus description field (aligns with #4657) * Remove extra container (double scrolling) * Remove unused container style * Apply scroll fixes from lates commit in #4621 * Remove unneeded logs * Remove extra div, fixing ParityBar overflow * Make dapp iframe background white * Stop event propgation on tag click * ChangeVault component (re-usable) * Use ChangeVault component * Pass vaultStores in * Icon highlight colour * Tag-ify vault name display * ChangeVault location * Bothced merge, selector rendering twice * Value can be undefined (no vault) * Close selector on Select bug * Fix toggle botched merge * Update tests * Add Vault Tags to Account Header