grafana/pkg/services/featuremgmt
Piotr Jamróz f6e472f879
Explore: Show a drawer with tabs for the library and query history (#86279)
* Create basic feature toggle

* Rename context to reflect it contains query history and query library

* Update icons and variants

* Rename hooks

* Update tests

* Fix mock

* Add tracking

* Turn button into a toggle

* Make dropdown active as well

This is required to have better UI and an indication of selected state in split view

* Update Query Library icon

This is to make it consistent with the toolbar button

* Hide query history button when query library is available

This is to avoid confusing UX with 2 button triggering the drawer but with slightly different behavior

* Make the drawer bigger for query library

To avoid confusion for current users and test it internally a bit more it's behind a feature toggle. Bigger drawer may obstruct the view and add more friction in the UX.

* Fix tests

The test was failing because queryLibraryAvailable was set to true for tests. This change makes it more explicit what use case is being tested

* Remove active state underline from the dropdown

* Allow closing Query Library drawer from the toolbar

* Simplify dropdown design
2024-04-24 10:32:11 +02:00
..
strcase Chore: Upgrade Go to 1.19.1 (#54902) 2022-09-12 12:03:49 +02:00
codeowners.go Chore: Replace backend platform codeownership (#86010) 2024-04-19 19:12:59 +02:00
manager_test.go Feature Toggles: Remove DocsURL from FeatureFlag struct (#79774) 2024-01-31 08:25:16 +02:00
manager.go Feature Toggle Management: allow editing PublicPreview toggles (#81562) 2024-02-09 18:48:56 +02:00
models.go FeatureFlags: manage creation/modification times automatically (#82131) 2024-02-09 15:34:12 -08:00
registry.go Explore: Show a drawer with tabs for the library and query history (#86279) 2024-04-24 10:32:11 +02:00
service_test.go FeatureFlags: Avoid using cfg.IsFeatureToggleEnabled (#81407) 2024-01-28 15:22:45 -08:00
service.go FeatureFlags: Avoid using cfg.IsFeatureToggleEnabled (#81407) 2024-01-28 15:22:45 -08:00
toggles_gen_test.go Page: Use browser native scrollbars for the main page content (#82919) 2024-03-06 15:06:47 +00:00
toggles_gen.csv Explore: Show a drawer with tabs for the library and query history (#86279) 2024-04-24 10:32:11 +02:00
toggles_gen.go Explore: Show a drawer with tabs for the library and query history (#86279) 2024-04-24 10:32:11 +02:00
toggles_gen.json Explore: Show a drawer with tabs for the library and query history (#86279) 2024-04-24 10:32:11 +02:00
usage_stats_test.go FeatureFlags: Use interface rather than manager (#80000) 2024-01-09 10:38:06 -08:00
usage_stats.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00