Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Improve message error states #5897

Merged
merged 8 commits into from
Apr 26, 2021
Merged

Improve message error states #5897

merged 8 commits into from
Apr 26, 2021

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Apr 21, 2021

Fixes element-hq/element-web#16423


Code reviewer: I would love to add tests for this, but there's a ton of logic which makes that difficult. It mostly comes from the js-sdk's built-in retry mechanisms (so messages don't fail for ages), and the fact that echo is just not something we can test for. Sorry.

Design reviewer: Testing this manually is a bit painful, so hopefully the screenshots below help. They should cover every state.


image
image
image
image
image
image
image

Dark theme visuals (only changed areas):
image

@turt2live turt2live force-pushed the travis/error-states branch from 6b1cbdc to cc095c8 Compare April 21, 2021 22:24
@turt2live turt2live force-pushed the travis/error-states branch from df914b2 to a53696f Compare April 21, 2021 22:53
@turt2live turt2live marked this pull request as ready for review April 21, 2021 22:56
@turt2live turt2live requested review from a team April 21, 2021 22:57
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Thanks, looks great code wise! 😄

@jryans
Copy link
Collaborator

jryans commented Apr 22, 2021

Thanks also for thinking about tests, I agree it's currently hard to cover in this case.

Copy link

@gaelledel gaelledel left a comment

Choose a reason for hiding this comment

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

  • Just as we have the button " Retry all " leading to the "sending" state with a spinner, Could we do the same for "deleting all"? So it'd be "deleting" + spinner. Once the command is accomplished, we can remove the toast entirely.
  • On dark mode on the bottom toast, can the separator colour be darker?

Screenshot 2021-04-23 at 12 23 19

Apart from that all good!

@turt2live
Copy link
Member Author

@gaelledel do we need a state for deleting? It should happen almost instantaneously every time...

For the divider, how's this?
image

@turt2live turt2live requested a review from gaelledel April 23, 2021 22:05
@gaelledel
Copy link

@gaelledel do we need a state for deleting? It should happen almost instantaneously every time...

For the divider, how's this?
image

If it happens straight away then no we don't

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retrying & deleting failed messages
3 participants