kibana/x-pack/plugins/translations
Georgii Gorbachev 06907b845e
[Security Solution][Detections] Update read-only callouts from warning to info so they persist when dismissed (#84904)
**Addresses:** https://github.com/elastic/kibana/issues/76587

## Summary

In this PR I'm doing basically 2 things:

1. Making readonly callouts we have in Detections `primary` instead of `warning` and thus persistable in local storage (if a callout is dismissed, we remember it there)
2. Creating a reusable implementation for that.

TODO:

- [x] Adjust all callouts used in Detections to be of type `primary`
- [x] Implement the local storage logic (dumb)
- [x] Implement the local storage logic (reusable)
- [x] Add a new user role: "Reader" (read-only user)
- [x] Add Cypress tests

Out of scope:

- Add unit tests. I'll probably address this in a follow-up PR. Do you think it's worth it or better to wait until the rework (see the next point)?
- Rework callouts to standardise them across Detections, Cases and other parts of the Security app? See my comment below in this PR.

## Screen recordings

Quick demo of how this implementation works:

- [primary callouts](https://drive.google.com/file/d/1SYQd_ihKPvzlVUxELI8qNEqLBOkL18Gd/view?usp=sharing)
- [warning, danger](https://drive.google.com/file/d/1lrAFPyXNjOYSiEsUXxY_fjXsvmyDcdWY/view?usp=sharing) (callout types here were manually adjusted)

## Additional notes

Cypress tests are based on the work done in https://github.com/elastic/kibana/pull/81866.

![](https://puu.sh/GXwOd/1c855cb03f.png)
2020-12-15 23:28:00 +01:00
..
server
translations [Security Solution][Detections] Update read-only callouts from warning to info so they persist when dismissed (#84904) 2020-12-15 23:28:00 +01:00
kibana.json
README.asciidoc [i18n] Adds translations README (#82096) 2020-11-02 11:00:08 -07:00

[[translations-plugin]]
== Translations plugin

Contains Elastic-supported translations. Owned by the Localizations team.
For adding localizations and instrument a ui to support translated content, see https://github.com/elastic/kibana/tree/master/packages/kbn-i18n[kbn-i18n]