Skip to content

Conversation

@Adamj1232
Copy link
Contributor

@Adamj1232 Adamj1232 commented Feb 15, 2023

Description

To test:

  • Pull down this branch
  • yarn && yarn dev
  • In a separate console cd docs/ from the root of the project
  • yarn link @web3-onboard/transaction-preview && yarn && yarn dev
  • Navigate to http://localhost:3000/docs/modules/transaction-preview#usage-with-web3-onboard-core-package
  • Click Preview Transaction

This PR includes a couple bug fixes to the core package for backwards compatibility including:

  • returning the sidebar.heading to the connect view
  • An update to side background-color -> background

Updating the Transaction Preview gas calculation, view and functionality to get standalone working properly(required for docs usage outside of W3O integration)

Screen Shot 2023-02-15 at 10 15 53 AM

Adding a RP example button to the docs:

Screen Shot 2023-02-15 at 10 34 57 AM

Checklist

  • The version field in package.json of the package you have made changes in is incremented following semantic versioning and using alpha release tagging
  • The box that allows repo maintainers to update this PR is checked
  • I tested locally to make sure this feature/fix works
  • I have run yarn file-check, yarn type-check & yarn build to confirm there are not any associated errors
  • This PR passes the Circle CI checks

If this PR includes changes to add an injected wallet or SDK wallet module:

Please complete the following using the internal demo package.
To run this demo use the command yarn && yarn dev to get the project running at http://localhost:8080/

@vercel
Copy link

vercel bot commented Feb 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
web3-onboard-docs ❌ Failed (Inspect) Feb 15, 2023 at 11:02PM (UTC)

Copy link
Contributor

@leightkt leightkt left a comment

Choose a reason for hiding this comment

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

I wasn't sure how to test the sidebar backward compatibility- but everything else is looking good.

@Adamj1232
Copy link
Contributor Author

I wasn't sure how to test the sidebar backward compatibility- but everything else is looking good.

Thanks @leightkt !
The sidebar.heading was removed in a previous PR so I added back for backwards compatibility. Sorry should have been more clear there. The little chuck of code controlling that area defaults to an empty string as does the map in the i18n

Copy link
Contributor

@gesquinca gesquinca left a comment

Choose a reason for hiding this comment

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

Some small suggestions. @Adamj1232 let me know what you think!

@Adamj1232 Adamj1232 merged commit 8b84fc5 into develop Feb 15, 2023
@Adamj1232 Adamj1232 deleted the docs_TP_example branch February 15, 2023 23:11
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.

4 participants