kibana/x-pack/examples
Jiawei Wu 762f4cd14f
[Response Ops][Rule Form V2] Rule Form V2: Rule Form Page and State Management (#184892)
## Summary
Issue: https://github.com/elastic/kibana/issues/179105
Related PR: https://github.com/elastic/kibana/pull/180539

Part 3/3 PRs of the new rule form. This PR adds the create and edit rule
page as well as the state management using react reducers.

I have also created a example plugin to demonstrate this PR. To access:

1. Run the branch with yarn start --run-examples
2. Navigate to
`http://localhost:5601/app/triggersActionsUiExample/rule/create/<ruleTypeId>`
(I use `.es-query`)
3. Create a rule
4. Navigate to
`http://localhost:5601/app/triggersActionsUiExample/rule/edit/<ruleId>`
with the rule you just created to edit the rule

<img width="1196" alt="Screenshot 2024-05-14 at 8 27 00 PM"
src="576fecdd-bd7b-4cad-a3db-aab3163abc46">


### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2024-07-03 20:34:31 -07:00
..
alerting_example [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
embedded_lens_example [EuiProvider] Fix Gis-Presentation-Visualization code (#183875) 2024-05-22 13:28:36 -07:00
exploratory_view_example [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
gen_ai_streaming_response_example [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
lens_config_builder_example Make the formula api optional for the lens builder (#179255) 2024-03-25 07:09:37 -07:00
lens_embeddable_inline_editing_example Make the formula api optional for the lens builder (#179255) 2024-03-25 07:09:37 -07:00
screenshotting_example [EuiProvider] Fix AppEx-SharedUX code (#183872) 2024-05-22 09:57:05 -07:00
testing_embedded_lens [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
third_party_lens_navigation_prompt [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
third_party_maps_source_example [maps] remove ISource.getIndexPatternIds and ISource.getQueryableIndexPatternIds methods (#176095) 2024-02-05 07:40:51 -07:00
third_party_vis_lens_example [Core] Deprecate nav link status (#176383) 2024-02-16 11:06:33 -07:00
triggers_actions_ui_example [Response Ops][Rule Form V2] Rule Form V2: Rule Form Page and State Management (#184892) 2024-07-03 20:34:31 -07:00
ui_actions_enhanced_examples Add explicit children types (#181257) 2024-04-29 16:56:41 +01:00
README.md

Example plugins

This folder contains X-Pack example plugins. To run the plugins in this folder, use the --run-examples flag, via

yarn start --run-examples