grafana/public
Tom Ratcliffe 08200bc533
Nav: Fix alerting links/special cases not selecting the right MegaMenu item (#85336)
* Render current MegaMenu link as `aria-current=page`

* Add overrides capability for mega menu links

* Pass pageNav into getActiveItem so we can use override capability

* Test MegaMenu special cases for starred & dashboards

* Test that overrides for megamenu util works correctly

* Alpha-sort megamenu overrides

* Refactor util for getting active item for megamenu

Update parameters to getActiveItem

Update tests for getActiveItem

* Fix test for starred dashboard and remove query param test

Query param case happens differently in real app and is fiddly to test here

* handle edge cases

* restore handling home page test

* fix dashboard settings

* handle starring properly

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-23 11:04:53 +01:00
..
app Nav: Fix alerting links/special cases not selecting the right MegaMenu item (#85336) 2024-04-23 11:04:53 +01:00
dashboards Elasticsearch: Add error source for DataQuery (#77386) 2023-11-06 11:36:39 +01:00
emails EmailVerification: Generate emails after rename (#85175) 2024-03-26 15:50:11 +01:00
fonts Chore: Update Inter font files (#82446) 2024-02-14 16:57:02 +00:00
gazetteer Geomap: Add more countries ISO 3166 Alpha-3-code to the gazetteer/countries.json (#75311) 2023-11-06 10:08:33 -08:00
img EmptyState: use not-found empty state variant everywhere in core (#85007) 2024-03-27 12:15:12 +00:00
lib Monaco Editor: Load via ESM (#78261) 2024-02-22 12:31:40 +01:00
locales I18n: Download translations from Crowdin (#86708) 2024-04-23 07:34:17 +03:00
maps Geomap: Support geojson styling properties (#80272) 2024-01-20 02:55:17 +02:00
sass Page: Use browser native scrollbars for the main page content (#82919) 2024-03-06 15:06:47 +00:00
test Add whatwg-fetch polyfill to jest test setup so all tests run it 2024-04-18 12:23:38 +01:00
vendor Plugins: Allow loading panel plugins from a CDN (#59096) 2023-01-27 15:08:17 +01:00
views K8s: Improve OpenAPI behaviour (#81606) 2024-01-31 01:17:14 +02:00
api-enterprise-spec.json Chore: Update swagger (#86523) 2024-04-18 15:35:38 +00:00
api-merged.json IAM - Fix error messages for resource permissions endpoints (#85773) 2024-04-17 08:53:28 -05:00
openapi3.json IAM - Fix error messages for resource permissions endpoints (#85773) 2024-04-17 08:53:28 -05:00
robots.txt