use-ink / contracts-ui

Web application for deploying wasm smart contracts on Substrate chains that include the FRAME contracts pallet
https://contracts-ui.substrate.io/
GNU General Public License v3.0
61 stars 44 forks source link

chore: refactor patron from `<InputFile/>` into `<Step1/>` #529

Closed peetzweg closed 3 months ago

peetzweg commented 7 months ago

Hoists patron integration (https://github.com/paritytech/contracts-ui/pull/518) a component higher. This makes the integration only work on the /instatiate route. Before it was working anywhere a <InputFile /> component was used.

Here is a valid link to the current deployment using the patron url search parameter:

https://deploy-preview-529--contracts-ui.netlify.app/instantiate?patron=0efaf17fd9145a2c7d59821aea6036549f4b6f2d0c86440a16d4c1ac9d57a295

Furthermore, making File=>FileState logic reusable by putting them into a dedicated file, fileToFileState.ts.

https://github.com/peetzweg/contracts-ui/blob/3cf8d2beda078f77a5ce4e056f929bff074268df/src/lib/fileToFileState.ts#L6-L8

cc @o-tsaruk

netlify[bot] commented 7 months ago

Deploy Preview for contracts-ui ready!

Name Link
Latest commit 3cf8d2beda078f77a5ce4e056f929bff074268df
Latest deploy log https://app.netlify.com/sites/contracts-ui/deploys/655dd5ee874fea00080f1b65
Deploy Preview https://deploy-preview-529--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.

cypress[bot] commented 3 months ago

Passing run #385 ↗︎

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

Details:

chore: refactor patron from `` into `` (#529)
Project: Contracts UI Commit: 8b786444a5
Status: Passed Duration: 01:15 💡
Started: Mar 28, 2024 10:20 AM Ended: Mar 28, 2024 10:21 AM

Review all test suite changes for PR #529 ↗︎