kibana/packages/kbn-field-utils
Julia Rechkunova db6886fb03
[Discover] Don't truncate long field descriptions if user expanded them previously (#188841)
- Closes https://github.com/elastic/kibana/issues/188508

## Summary

This is a follow up PR for
https://github.com/elastic/kibana/pull/187160#pullrequestreview-2181768414.
It stores the toggle state in local storage under
`fieldDescription:truncateByDefault`.

To test, open field popover from a sidebar to see ECS field description
or a custom field description. By default it should be truncated. But
after expanding (by clicking on the short description), it will expand
automatically when opening another field popover next time. Please note
that it does not affect field descriptions in DocViewer popover as they
are always shown in full length there.

### 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
2024-07-24 08:52:13 +02:00
..
src [Discover] Don't truncate long field descriptions if user expanded them previously (#188841) 2024-07-24 08:52:13 +02:00
index.ts [Discover][DocViewer] Convert EuiTable to EuiDataGrid. Enable up to 500 fields per page. (#175787) 2024-06-19 15:31:44 +02:00
jest.config.js [Discover] Show field tokens in the grid header (#167179) 2023-10-05 14:02:13 +02:00
kibana.jsonc [Discover] Show field tokens in the grid header (#167179) 2023-10-05 14:02:13 +02:00
package.json [Discover] Show field tokens in the grid header (#167179) 2023-10-05 14:02:13 +02:00
README.md [Discover] Show field tokens in the grid header (#167179) 2023-10-05 14:02:13 +02:00
tsconfig.json [OnWeek] Show ECS field descriptions in Discover. Add markdown support for field descriptions. (#187160) 2024-07-17 15:19:16 +01:00
types.ts [Discover] Show field tokens in the grid header (#167179) 2023-10-05 14:02:13 +02:00

@kbn/field-utils

Utils for rendering fields