tablelandnetwork / studio

Discover, design, deploy, and manage data driven web3 apps on Tableland.
https://studio.tableland.xyz
4 stars 1 forks source link

(web) don't allow resubmitting new project form #222

Closed joewagner closed 6 months ago

joewagner commented 7 months ago

fixes: https://linear.app/tableland/issue/ENG-815/when-i-create-a-project-i-can-easily-submit-the-same-project-twice

note: looks like main is ahead of staging after the pagination bug fix. This PR came off the tip of main, so those changes are in here.

linear[bot] commented 7 months ago
ENG-815 When I create a project, I can easily submit the same project twice.

When I create a project, the submit button becomes disabled while the project is being created. After that the submit button becomes active again and all of the form values from the created project remain in place. I am free to click create again for \~1-3 seconds. After a few seconds, assuming I haven't taken any additional actions, I get redirected to the project's page. This feels like a performance issue, but also an issue we can mitigate by keeping the form disabled until after the redirect happens. We could also clear the form after the project is created, and before re-enabling the submit button.

railway-app[bot] commented 7 months ago

This PR was not deployed automatically as @joewagner does not have access to the Railway project.

In order to get automatic PR deploys, please add @joewagner to your team on Railway.