Skip to content
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

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

debsmita1
Copy link
Member

@debsmita1 debsmita1 commented Nov 5, 2024

Hey, I just made a Pull Request!

Resolves:
https://issues.redhat.com/browse/RHIDP-3890

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

Copy link
Member

@christoph-jerolimov christoph-jerolimov left a 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.

@debsmita1
Copy link
Member Author

You decided now to have one form per tab but save the errors in the page formik state?

Yes, in this way I can track all the field errors in single form/multiple sub forms

@debsmita1 debsmita1 force-pushed the preview-pr branch 3 times, most recently from 4299242 to aaa2d80 Compare November 7, 2024 12:45
Copy link
Member

@christoph-jerolimov christoph-jerolimov left a comment

Choose a reason for hiding this comment

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

Thanks. Lgtm!

Copy link
Member

@christoph-jerolimov christoph-jerolimov left a comment

Choose a reason for hiding this comment

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

Lgtm!

@christoph-jerolimov christoph-jerolimov merged commit 06f1869 into redhat-developer:main Nov 7, 2024
6 checks passed
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.

2 participants