Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app: show multiple poke notes #710

Merged
merged 2 commits into from
Oct 5, 2020
Merged

Conversation

buck54321
Copy link
Member

Before, only one poke-severity notification was shown at a time, and would be simply replaced if another notification came immediately after. This change makes all poke notes persist for ~4 seconds before fading away. If more than one is visible, they stack vertically.

Bonus: DEX connection and disconnection notes are now only poke-level. This resolves #428. We really don't need to persist those. If there's a problem, we'll see an error.

Copy link
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

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

Forgot to submit this review from yesterday. Purely opinionated comments.

span.style.opacity = 1 - progress
})
span.remove()
}, 4000)
Copy link
Member

Choose a reason for hiding this comment

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

I always felt the pokes should stick around a little longer if anything. TBH, I think that even more after testing.

display: flex;
flex-direction: column;
align-items: flex-end;
border-radius: 3px 3px 0 0;
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this might be a bit chunky:

image

Maybe a 4px border radius, and perhaps an extra pixel spacing between multiple poke notes?

And for future work, clicking on it could take you to the relevant order details page if it's related to an order.

Copy link
Member

@chappjc chappjc left a comment

Choose a reason for hiding this comment

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

Looks nice.

image

@chappjc chappjc merged commit 2f365f5 into decred:master Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

app: DEX connection notifications are spammy during registration.
2 participants