Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
🪟🔧 Remove top level state for unfinished flows in connector form #20135
🪟🔧 Remove top level state for unfinished flows in connector form #20135
Changes from 30 commits
807c436
6c76e0f
05c3107
eee4303
7d6f977
0fe11f0
34d4814
67d62c5
afea882
c7e7475
9be8337
37cee8f
5686241
7b73364
7058d26
dd7e82a
6d4c7d3
d624792
36cf941
b7a6322
72b602a
5e47a4a
6c71028
809625f
10446eb
4a7a885
93fe558
cbc023a
9aa3f80
5cd77ec
5dfbc22
a6aa741
95717d2
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
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.
I noticed a couple small styling differences with the text area component which I put up a small PR here to fix: #20397
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.
Something I noticed while testing: the secret input border is not set to red when it has an error

I think this is because the
error
prop is not being passed to this component fromControl.tsx
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.
Good catch, seems like it's like that on master too. Should be fixed:

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.
Just to confirm my understanding: this code is basically ensuring that if the formik form is reset back to the initial state, then the
previousValue
state will be cleared out? An in practice, this would happen if a user clicks theCancel
button at the bottom of the ConnectorFormThere 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.
Exactly, if the form-level "Cancel" button is hit, all open secret controls are "closed" as well.