kibana/packages/kbn-cell-actions
Jatin Kathuria 1af75fd500
[Security Solution][Bug] Alert Table raises error when switchting to event rendered view (#151994)
## Summary

This PR handles: 

1. #151992 [Security Solution] Alert Table raises error when switching
to event rendered view.
- Issue was related `cellActions` package where changes in columns was
not leading to re-calculation of cell actions on those new columns.
3. Minor table width issue - Sometime table is not expanded to the 100%
of the container width.

## Before


https://user-images.githubusercontent.com/7485038/220914906-dcce7ba1-0318-44fd-a097-df86344f7727.mov

## After ( Resolved Issue 1 & 2)


https://user-images.githubusercontent.com/7485038/220921916-fa4b36ad-b8e1-4a8d-ad0d-a778c911bb5b.mov
2023-02-24 09:11:06 -05:00
..
.storybook [Security Solution] [CellActions] Move to a package (#149057) 2023-01-19 11:52:10 +01:00
src [Security Solution][Bug] Alert Table raises error when switchting to event rendered view (#151994) 2023-02-24 09:11:06 -05: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] [CellActions] Move to a package (#149057) 2023-01-19 11:52:10 +01:00
tsconfig.json [Security Solution] Cell Actions and Security triggers refactor (#150213) 2023-02-15 12:27:33 +01: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} 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.