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(website): offer to switch to right safe chain #1021

Merged
merged 3 commits into from
May 17, 2024
Merged

Conversation

Ignusmart
Copy link
Contributor

@Ignusmart Ignusmart commented May 14, 2024

The main purpose of this PR is to offer the user to switch to the right chain before executing/staging any transaction

Screen.Recording.2024-05-17.at.8.35.42.AM.mov

Copy link

changeset-bot bot commented May 14, 2024

⚠️ No Changeset found

Latest commit: e0e85f8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

nx-cloud bot commented May 14, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit e0e85f8. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Copy link
Contributor

@dbeal-eth dbeal-eth left a comment

Choose a reason for hiding this comment

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

in the video you shared, the button appears to un-disable after the switch chain is completed? Shouldnt it continue to be disabled/loading until its done?

also, can we turn this more or less repeated section of code into a helper function? I have a feeling we are going to be using similar pattern a lot.

@Ignusmart Ignusmart force-pushed the fix/offer-to-switch branch 2 times, most recently from 26eb08f to a68de3e Compare May 16, 2024 21:20
Copy link
Contributor

@dbeal-eth dbeal-eth left a comment

Choose a reason for hiding this comment

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

i still have an umber of things that I think could be improved about this, but we have to set this PRs stopping point somewhere.

@@ -380,12 +380,15 @@ export const QueuedTxns = ({
colorScheme="teal"
w="100%"
isDisabled={
stager.signing ||
Copy link
Contributor

Choose a reason for hiding this comment

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

in accordance with showing a reason any time a button is disabled, can we put some indication somewhere... somehow on the page that says "currently signing txn" to indicate the button is disabled (maybe the user doenst realize their signing window was opened when they click on the button)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice catch, sure, I'll add it ASAP, thank you

@Ignusmart Ignusmart force-pushed the fix/offer-to-switch branch from 37105e6 to e0e85f8 Compare May 17, 2024 13:38
@Ignusmart Ignusmart merged commit 963ee73 into main May 17, 2024
9 checks passed
@Ignusmart Ignusmart deleted the fix/offer-to-switch branch May 17, 2024 13:49
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.

2 participants