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: requires selected account for interaction to be available #552

Conversation

peetzweg
Copy link
Collaborator

@peetzweg peetzweg commented Apr 9, 2024

Closes #458 .

As our AccountSelect allows for creating new select options on the fly, the user can create new options which are not available to sign a deployment or a contract call extrinsic. I added a second layer validation of this value in the deploy and interaction of contracts.

Disabling the creation of options on the fly is not what we want, as this component is used as a general account input. In this case we want to offer the user to select known accounts but also put it any valid account id.

The demo shows the error first on the latest deployed version of contracts-ui and later the behavior with the changes in this branch.

demo24.mov

@peetzweg peetzweg linked an issue Apr 9, 2024 that may be closed by this pull request
Copy link

netlify bot commented Apr 9, 2024

Deploy Preview for contracts-ui ready!

Name Link
🔨 Latest commit 29a52a1
🔍 Latest deploy log https://app.netlify.com/sites/contracts-ui/deploys/6617e4e912bb960008ff4216
😎 Deploy Preview https://deploy-preview-552--contracts-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

cypress bot commented Apr 9, 2024

Passing run #399 ↗︎

0 61 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Merge 29a52a1 into f1d8c8e...
Project: Contracts UI Commit: b7e7d1c307 ℹ️
Status: Passed Duration: 01:11 💡
Started: Apr 11, 2024 1:28 PM Ended: Apr 11, 2024 1:29 PM

Review all test suite changes for PR #552 ↗︎

@peetzweg peetzweg requested a review from ascjones April 11, 2024 13:27
@peetzweg peetzweg merged commit a3a81e9 into master Apr 12, 2024
15 checks passed
@peetzweg peetzweg deleted the 458-ui-remains-in-processing-state-when-there-is-a-keyring-error branch April 12, 2024 07:10
Copy link

cypress bot commented Apr 12, 2024

Passing run #401 ↗︎

0 61 0 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

fix: requires selected account for interaction to be available (#552)
Project: Contracts UI Commit: a3a81e9ddf
Status: Passed Duration: 01:24 💡
Started: Apr 12, 2024 7:13 AM Ended: Apr 12, 2024 7:14 AM

Review all test suite changes for PR #552 ↗︎

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.

UI remains in processing state when there is a keyring error
3 participants