-
Notifications
You must be signed in to change notification settings - Fork 23
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
feat(bulk-import): update preview form to use separate formik context #22
feat(bulk-import): update preview form to use separate formik context #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really clean and good to me!
You decided now to have one form per tab but save the errors in the page formik state?
When I click on preview, change the PR information, press save, and reopen the drawer, it always shows the default data. Maybe I'm testing it wrong. We can check that together.
edit: That's also the case on the main branch, so I guess I misunderstood something here.
workspaces/bulk-import/plugins/bulk-import/src/utils/repository-utils.tsx
Outdated
Show resolved
Hide resolved
...s/bulk-import/plugins/bulk-import/src/components/PreviewFile/PreviewPullRequestForm.test.tsx
Outdated
Show resolved
Hide resolved
Yes, in this way I can track all the field errors in single form/multiple sub forms |
4299242
to
aaa2d80
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm!
Hey, I just made a Pull Request!
Resolves:
https://issues.redhat.com/browse/RHIDP-3890
✔️ Checklist