kibana/packages/kbn-cell-actions
Pablo Machado 71da754085
[SecuritySolutions] Remove filter actions from Cases alerts table and fix show_top_n action (#161150)
issue https://github.com/elastic/kibana/issues/134442

## Summary

* Remove filter actions from the cases alerts page because it has no
search bar (as suggested by Sergi).
* Fix the `show_top_n` action not executing from inside a table cell
* Fix the `show_top_n` action not preselecting alerts on the cases
alerts table

Warning: `show_top_n` uses the global `timerange` but the cases page
doesn't have the time range picker.
2023-07-05 09:03:18 +02:00
..
.storybook [Security Solution] [CellActions] Move to a package (#149057) 2023-01-19 11:52:10 +01:00
src [SecuritySolutions] Remove filter actions from Cases alerts table and fix show_top_n action (#161150) 2023-07-05 09:03:18 +02:00
index.ts [Security Solution] [CellActions] Move to a package (#149057) 2023-01-19 11:52:10 +01:00
jest.config.js [Security Solution] [CellActions] Move to a package (#149057) 2023-01-19 11:52:10 +01:00
kibana.jsonc [Security Solution] [CellActions] Move to a package (#149057) 2023-01-19 11:52:10 +01:00
package.json [Security Solution] [CellActions] Move to a package (#149057) 2023-01-19 11:52:10 +01:00
README.md [Security Solution] Add Timeline Hover Action to Security Dashboard Calculated Metrics (#154299) 2023-04-21 13:43:08 -06:00
tsconfig.json [SecuritySolutions] Update CellActions to support all types used by Discover (#160524) 2023-06-30 15:50:39 +02:00

This package provides a uniform interface for displaying UI actions for a cell. For the CellActions component to work, it must be wrapped by CellActionsProvider. Ideally, the wrapper should stay on the top of the rendering tree.

Example:

<CellActionsProvider getTriggerCompatibleActions={uiActions.getTriggerCompatibleActions}>
    [...]
    <CellActions mode={CellActionsMode.HOVER_DOWN} triggerId={MY_TRIGGER_ID} config={{ field: 'fieldName', value: 'fieldValue', fieldType: 'text' }}>
        Hover me
    </CellActions>
</CellActionsProvider>

CellActions component will display all compatible actions registered for the trigger id.