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

fix: Identity error on billing change modal #2659

Merged
merged 3 commits into from
Nov 19, 2021

Conversation

victorgcramos
Copy link
Member

@victorgcramos victorgcramos commented Nov 17, 2021

Closes #2656.

Fixes Identity error message on Set Billing Status modal.

UI Changes

Before:
before

After:
2656-billing-status-identity-error

@victorgcramos victorgcramos changed the title fix: Identity error on billing status change modal fix: Identity error on billing change modal Nov 17, 2021
@lukebp
Copy link
Member

lukebp commented Nov 17, 2021

This is suppose to use the global identity error that was added in #2623.

@victorgcramos
Copy link
Member Author

Hmm okay, I thought the issue was with the message, not the error handling. Got it! Fixing it.

Copy link
Member

@lukebp lukebp left a comment

Choose a reason for hiding this comment

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

This is working correctly if the user does not have an identity loaded in the browser at all, but is not working for when the user has the wrong identity loaded in the browser.

image

You can reproduce this by logging in using pictl and updating the user's identity with the pictl userupdatekey command. The identity saved to the browser will then be incorrect.

Copy link
Member

@tiagoalvesdulce tiagoalvesdulce left a comment

Choose a reason for hiding this comment

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

This code works. But the error is outside the modal and the only way I can leave the Error page is returning to the Home page.

Screen Shot 2021-11-18 at 08 34 50

I think this is not the greatest UX. Can we keep the error inside the Modal? I'm not sure if ErrorBoundaries work with React Portal so the ideal solution might not be using them.

Copy link
Member

@tiagoalvesdulce tiagoalvesdulce left a comment

Choose a reason for hiding this comment

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

Approved before by mistake.

@victorgcramos
Copy link
Member Author

@tiagoalvesdulce this was defined on #2623. Maybe it's outside the pr scope... Let's open an issue and discuss better solutions for it, what do you think?

@tiagoalvesdulce
Copy link
Member

oh, forgot about #2623. I'm fine with it but I think we should improve that in the next release. What do you think @lukebp ?

@lukebp
Copy link
Member

lukebp commented Nov 19, 2021

Let's use the global error for now so that we can get the release pushed then open an issue for further improving this UX.

Copy link
Member

@lukebp lukebp left a comment

Choose a reason for hiding this comment

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

tACK

Copy link
Member

@tiagoalvesdulce tiagoalvesdulce left a comment

Choose a reason for hiding this comment

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

LGTM. @victorgcramos please create the issue so we don't forget to improve it.

@tiagoalvesdulce tiagoalvesdulce merged commit f1bdf6b into decred:master Nov 19, 2021
@lukebp lukebp added the pre-release-bug A bug that was discovered prior to being released into a production environment. label Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pre-release-bug A bug that was discovered prior to being released into a production environment.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect identity error on modal.
3 participants