grafana/public
Piotr Jamróz 5cb5141c72
Query History: Move local storage specific settings to persistence layer (#47500)
* Load Rich History when the container is opened

* Store rich history for each pane separately

* Do not update currently opened query history when an item is added

It's impossible to figure out if the item should be added or not, because filters are applied in the backend. We don't want to replicate that filtering logic in frontend. One way to make it work could be by refreshing both panes.

* Test starring and deleting query history items when both panes are open

* Remove e2e dependency on ExploreId

* Fix unit test

* Assert exact queries

* Simplify test

* Fix e2e tests

* Fix toolbar a11y

* Reload the history after an item is added

* Fix unit test

* Remove references to Explore from generic PageToolbar component

* Update test name

* Fix test assertion

* Add issue item to TODO

* Improve test assertion

* Simplify test setup

* Move query history settings to persistence layer

* Fix test import

* Fix unit test

* Fix unit test

* Test local storage settings API

* Code formatting

* Fix linting errors

* Add an integration test

* Add missing aria role

* Fix a11y issues

* Fix a11y issues

* Use divs instead of ul/li

Otherwis,e pa11y-ci reports the error below claiming there are no children with role=tab:

Certain ARIA roles must contain particular children
   (https://dequeuniversity.com/rules/axe/4.3/aria-required-children?application=axeAPI)

   (#reactRoot > div > main > div:nth-child(3) > div > div:nth-child(1) > div >
   div:nth-child(1) > div > div > nav > div:nth-child(2) > ul)

   <ul class="css-af3vye" role="tablist"><li class="css-1ciwanz"><a href...</ul>

* Clean up settings tab

* Remove redundant aria label

* Remove redundant container

* Clean up test assertions
2022-04-12 18:55:39 +02:00
..
app Query History: Move local storage specific settings to persistence layer (#47500) 2022-04-12 18:55:39 +02:00
dashboards Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
emails Email: change the year in templates (#45116) 2022-02-09 15:53:36 +01:00
fonts Security: Update default CSP template and fix firefox CSP issues (#34836) 2021-05-28 17:01:10 +02:00
gazetteer Geomap: Add GeoJSON gazetteer (#40589) 2021-10-19 21:05:55 -07:00
img Alerting: use mimir logo (#47063) 2022-03-30 17:57:18 +02:00
lib AzureMonitor: Kusto language support (#33528) 2021-05-11 16:48:59 +02:00
locales I18n: Translate navigation items (#44131) 2022-01-31 03:41:58 +01:00
maps Geomap: include sample geojson files (#39057) 2021-09-10 09:05:03 -07:00
sass Popovers: Improve contrast by darkening shadow and changing border to medium (#45136) 2022-02-10 13:52:23 +01:00
test Update dependency @reduxjs/toolkit to v1.8.0 (#45950) 2022-04-07 11:27:58 +02:00
testdata MarketTrend: add new alpha panel (#40909) 2021-11-05 18:01:26 -07:00
vendor Decimals: Big Improvements to auto decimals and fixes to auto decimals bug found in 7.4-beta1 (#30519) 2021-01-22 16:37:56 +01:00
views API: Extract OpenAPI specification from source code using go-swagger (#40528) 2022-02-08 13:38:43 +01:00
api-merged.json update docs, simplify actions and scopes (#47067) 2022-04-04 13:53:58 +01:00
api-spec.json update docs, simplify actions and scopes (#47067) 2022-04-04 13:53:58 +01:00
robots.txt