Skip to content

Conversation

@annavik
Copy link
Member

@annavik annavik commented Oct 4, 2023

We already have some form helpers from before (see FormController and FormField), but in this PR we will also setup some help components to handle form layout. Also we setup a hook useFormError to streamline error handling further.

As part of this PR we are also updating current forms to use these new helpers. In the next one, we will create som new forms for projects. Curious to see if we can do that without adding a lot of code, thanks to this.

@annavik annavik requested a review from mihow October 4, 2023 09:46
@netlify
Copy link

netlify bot commented Oct 4, 2023

Deploy Preview for ami-web ready!

Name Link
🔨 Latest commit 5667f8f
🔍 Latest deploy log https://app.netlify.com/sites/ami-web/deploys/651ea8f8ff366b000988ff9c
😎 Deploy Preview https://deploy-preview-269--ami-web.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 49
Accessibility: 100
Best Practices: 92
SEO: 92
PWA: 70
View the detailed breakdown and full score reports

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

@netlify
Copy link

netlify bot commented Oct 4, 2023

Deploy Preview for ami-storybook ready!

Name Link
🔨 Latest commit 5667f8f
🔍 Latest deploy log https://app.netlify.com/sites/ami-storybook/deploys/651ea8f868d4960009df7298
😎 Deploy Preview https://deploy-preview-269--ami-storybook.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
Collaborator

@mihow mihow left a comment

Choose a reason for hiding this comment

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

Awesome! It looks seamless, except for I am unable to open the dialog for "register new deployment"

Uncaught TypeError: Cannot read properties of undefined (reading 'defaultPrevented')

image

@annavik
Copy link
Member Author

annavik commented Oct 5, 2023

Awesome! It looks seamless, except for I am unable to open the dialog for "register new deployment"

Uncaught TypeError: Cannot read properties of undefined (reading 'defaultPrevented')

image

Oops! I had forgot to sync with main where I fixed this

Also added some new form stuff for delete, in that case we probably want to have a complete form to reuse

@annavik annavik requested a review from mihow October 5, 2023 13:52
@mihow mihow merged commit 5777222 into main Oct 5, 2023
@annavik annavik deleted the web-ui-form-layout branch October 11, 2023 06:20
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.

3 participants