kibana/examples
Julia Rechkunova 145cc8f13b
[Discover] Show "unsaved changes" label when in unsaved state of saved search (#169548)
- Resolves https://github.com/elastic/kibana/issues/135887

## Summary

This PR adds "Unsaved changes" badge to Discover for modified saved
searches. It also removes "Reset search" button from the histogram area.
Code for the badge is added to a new package
`@kbn/unsaved-changes-badge`.

<img width="600" alt="Screenshot 2023-10-23 at 18 05 34"
src="ad200a28-79e1-4cc5-8e28-6352d4b85322">

![Oct-23-2023
18-06-39](cacf4ff2-525c-4759-aba9-34ce75089ddd)


### Checklist

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [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
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-11-13 13:36:25 +01:00
..
bfetch_explorer [Core plugin system] Add dynamic contract resolving (#167113) 2023-10-24 02:32:09 -07:00
content_management_examples Make SavedObjectFinder backward compatible (#162904) 2023-08-08 13:10:29 +02:00
controls_example [Tech Debt] Remove deprecated EuiLoadingContent (#156316) 2023-05-03 08:01:37 -06:00
data_view_field_editor_example Assign functional tests and example plugins code ownership to Data Discovery (#162740) 2023-08-04 17:21:13 -03:00
developer_examples Update EUI layout components in dev examples (#163494) 2023-08-10 11:19:06 +02:00
discover_customization_examples [Discover] Show "unsaved changes" label when in unsaved state of saved search (#169548) 2023-11-13 13:36:25 +01:00
embeddable_examples [Embeddable] Clientside migration system (#162986) 2023-08-22 15:08:27 -04:00
embeddable_explorer Clean up saved object based embeddable examples (#162987) 2023-08-03 03:14:36 -07:00
error_boundary Functional tests for KibanaErrorBoundary (#170569) 2023-11-08 11:23:19 -07:00
expressions_explorer Set correct ownership of older app-services code (#168209) 2023-10-09 18:57:26 +02:00
feature_control_examples Change signature of Plugin.stop to maybe async (#170225) 2023-11-06 01:38:19 -07:00
field_formats_example [Discover] Replace deprecated page components (#162836) 2023-08-02 20:08:17 +02:00
files_example Upgraded EUI to v76.0.0 (#152506) 2023-03-14 14:27:40 -05:00
guided_onboarding_example Disable guided onboarding on serverless (#168303) 2023-11-03 13:11:05 -04:00
hello_world [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
locator_examples Set correct ownership of older app-services code (#168209) 2023-10-09 18:57:26 +02:00
locator_explorer Set correct ownership of older app-services code (#168209) 2023-10-09 18:57:26 +02:00
partial_results_example [Discover] Replace deprecated page components (#162836) 2023-08-02 20:08:17 +02:00
portable_dashboards_example [shared-ux-router] Add Router and Routes components (#159834) 2023-06-23 10:02:06 -05:00
preboot_example Migrate from deprecated EUI components (#161548) 2023-07-13 03:22:02 -07:00
resizable_layout_examples [Discover] Add resize support to the Discover field list sidebar (#167066) 2023-09-27 21:52:25 -03:00
response_stream [ML] AIOps: Improve flushFix for Log Rate Analysis (#165069) 2023-10-25 18:09:08 +02:00
routing_example Migrate from deprecated EUI components (#161548) 2023-07-13 03:22:02 -07:00
screenshot_mode_example Set correct ownership of older app-services code (#168209) 2023-10-09 18:57:26 +02:00
search_examples Removes duplicated RedirectAppLinks component (#170304) 2023-11-13 10:17:13 +01:00
share_examples Set correct ownership of older app-services code (#168209) 2023-10-09 18:57:26 +02:00
state_containers_examples [Kibana] New "Saved Query Management" privilege to allow saving queries across Kibana (#166937) 2023-09-29 11:52:39 +02:00
ui_action_examples [packages] migrate all plugins to packages (#148130) 2023-02-08 21:06:50 -06:00
ui_actions_explorer Update usage of deprecated EUI components in SharedUx plugins (#163560) 2023-08-14 06:36:38 -07:00
unified_doc_viewer [UnifiedDocViewer] Move Discover doc viewer into plugin/package (#162847) 2023-08-31 11:46:59 -07:00
unified_field_list_examples [Discover] Redesign for the grid, panels and sidebar v1 (#165866) 2023-09-12 08:51:34 +02:00
user_profile_examples Change signature of Plugin.stop to maybe async (#170225) 2023-11-06 01:38:19 -07:00
v8_profiler_examples [examples] add routes to access v8 profiling (#155956) 2023-06-30 08:42:38 -04:00
README.asciidoc Add a few asciidoc readmes (#72082) 2020-07-17 11:08:57 -04:00

[[example-plugins]]
== Example plugins

This folder contains example plugins.  To run the plugins in this folder, use the `--run-examples` flag, via

[source,bash]
----
yarn start --run-examples
----