kibana/x-pack/examples
Umberto Pepato a74066d6f8
[ResponseOps][Alerts] Move the alerts table to a dedicated package (#207878)
## Summary

This PR turns the AlertsTable into a standalone component, making it
independent from the `TriggersActionsUI` plugin.

#### Removes the alerts table registry

All configuration is now managed through the AlertsTable component
props. Shared configurations are handled by giving consumers the ability
to directly provide alerts table wrapper components (see for example the
`renderAlertsTable` prop of `getCases`).

#### Moves the alerts table to dedicated package(s)

Following the feature-driven structure we're introducing for ResponseOps
(alerting) client-side packages:
- `@kbn/response-ops-alerts-table`
- `@kbn/response-ops-alerts-apis`
- `@kbn/response-ops-alerts-fields-browser`

#### Initial work on improving composition and organization

- Reorganizes the table code into a by-entity-type folder structure
(`components/`, `hooks/`, ...)
- Simplifies some components and breaks into smaller units when possible

## To verify

For consumers of the alerts table:
- Check that all your tables have the same behavior as before (columns,
sort, row actions, bulk actions, etc.)
- Check that your "shared" tables (i.e. cases alerts view in O11y and
Security) have the expected configuration and behavior

> [!WARNING]
> This PR moves a lot of files. Git might not always recognize the
correct delete/add file pairs. If you see weird diffs feel free to reach
out for help!

### Checklist

- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [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
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

### Identify risks

| Risk | Description | Severity | Mitigation |
|---|---|---|---|
| Table misconfigurations | Some table configurations might slightly
differ from the previous AlertsTableRegistry-backed version | Low |
Quick fix |

## References

Closes #195180

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Christos Nasikas <xristosnasikas@gmail.com>
2025-02-12 11:07:55 +01:00
..
alerting_example [ResponseOps][Alerting] Decouple feature IDs from consumers (#183756) 2024-12-03 12:21:53 +02:00
embedded_lens_example Preparation for High Contrast Mode, Analytics Experience domains (#202608) 2024-12-12 13:16:07 -06:00
exploratory_view_example Address some of the no_group_crossing dependencies (#198261) 2024-11-06 08:44:35 -06:00
gen_ai_streaming_response_example [ResponseOps][UI] - EUI Visual Refresh integration and QA (#204352) 2025-01-15 09:07:25 +02: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 [Lens] Embeddable react refactor (#186642) 2024-11-26 09:34:13 +01:00
screenshotting_example More strict plugin type definitions (#205232) 2025-01-07 16:41:15 +01:00
testing_embedded_lens [Lens] Embeddable react refactor (#186642) 2024-11-26 09:34:13 +01: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 Move @elastic/kibana-gis ownership to @elastic/kibana-presentation (#192521) 2024-09-16 09:50:50 -05:00
third_party_vis_lens_example [Lens] Chart switch redesign (#187475) 2024-09-05 12:32:45 +02:00
triggers_actions_ui_example [ResponseOps][Alerts] Move the alerts table to a dedicated package (#207878) 2025-02-12 11:07:55 +01:00
ui_actions_enhanced_examples [embeddable] make presentation interface names consistent (#205279) 2025-01-22 10:46:01 -06: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