[serverless] Advanced Settings - Form component#166460
[serverless] Advanced Settings - Form component#166460ElenaStoeva merged 32 commits intoelastic:mainfrom
Conversation
clintandrewhall
left a comment
There was a problem hiding this comment.
This is great work...! Quick turnaround, too. Just a few nits/improvements. While we wait for the prerequisite to ship, I would take some time to document and add a few tests.
fafa3b3 to
0787f7a
Compare
0787f7a to
012e68b
Compare
b9ea610 to
bdce1a5
Compare
…-ref HEAD~1..HEAD --fix'
0865caa to
cb9e357
Compare
|
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
yuliacech
left a comment
There was a problem hiding this comment.
Amazing work, @ElenaStoeva! Code changes LGTM, also verified the form locally with storybook.
clintandrewhall
left a comment
There was a problem hiding this comment.
Awesome work...! I'm approving as well, but please address my comments before committing. Thanks for your work here!
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
|
@elasticmachine merge upstream |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Public APIs missing exports
Unknown metric groupsAPI count
History
To update your PR or re-run it, just comment with: cc @ElenaStoeva |
…less (#167447) ## Summary This PR follows #166460 by adding Category panels to the Form. <img width="1807" alt="Screenshot 2023-09-27 at 3 36 16 PM" src="https://github.com/elastic/kibana/assets/297604/2abe8cf5-5822-473f-affd-148fb7949316"> ## Notes This PR is divided into several commits, the first few being prerequisite codemods. I recommend reviewing each commit separately, as the codemods might obscure the actual component work. - [e78586f - Make SettingType pre-defined to clean up references](e78586f) - This makes the `SettingType` optional, to clean up areas where the generic need not be specific. - [80a9988 - [codemod] Make onFieldChange and onInputChange more distinct](80a9988) - The `onChange` handlers weren't very clear as you work your way up the component tree. This makes the implementation and usage easier to understand, (and easier to [replace with state management](#166579)). - [5d0beff - [fix] Fix logged errors in form tests](5d0beff) - This fixes some logged errors in the Form from `Monaco` and from some missing `act` and `waitFor` calls.
Addresses #160411
Summary
This PR adds a package that contains a form component for the Advanced Settings UI in serverless.
This implementation was extracted from the the
Formcomponent in theadvancedSettingsplugin, excluding some functionalities:Testing
The form can be tested in the Storybook Preview from the CI build. Some things to be tested:
saveChangesaction with the correct changes.isSavingEnabledcontrol tofalsedisables all fields.requirePageReloadcontrol totruecauses saving of changes to any of the fields to trigger ashowReloadPagePromptaction.Checklist