grafana/public/app
Levente Balogh a1c565dec9
Data Connections: Add data sources (#52436)
* feat: show data-sources under the data-connections page

* refactor: add a constant for data-sources routes

* refactor: add a context that holds the currently active data-sources routes

* refactor: use the data-sources routes constant wherever possible

* refactor: use the data-sources routes context wherever possible

* feat(data-connections): add edit and new pages

* feat(data-connections): set the the custom routes via the context provider

* fix(data-connections): set the active tab properly

We needed to update the routes to match with the ones on the backend ("data-sources" vs "datasources"),
and we also needed to check if it is the default tab, in which case we would like to highlight the Datasources tab.

* tests: fix tests for Data Connections page

* fix: address rebase issues

* tests: find button based on role and text

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

* fix: add missing closing ) paren in tests

* refactor: use implicit return types for components

* tests: change role from "button" to "link"

* refactor: stop using unnecessary wrapper components

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-07-25 14:29:21 +02:00
..
angular TopNav: Make dashboard toolbar actions work in new top nav (#51950) 2022-07-14 20:34:00 +02:00
core Timezone: Consistency in how we write time zone (#52679) 2022-07-23 17:49:58 +02:00
features Data Connections: Add data sources (#52436) 2022-07-25 14:29:21 +02:00
partials Chore: Migrates remaining Angular modals to React (#33476) 2021-04-28 15:22:28 +02:00
plugins Loki: Add unwrap with conversion function to builder (#52639) 2022-07-25 12:51:28 +02:00
polyfills WIP Chore: reduce strict errors (#40462) 2021-10-15 08:57:55 +02:00
routes Data Connections: Add data sources (#52436) 2022-07-25 14:29:21 +02:00
store Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
types Preferences: Use dashboardUID to set the home dashboard (#51919) 2022-07-22 10:44:22 +02:00
app.ts GrafanaContext: Exploring a way to get rid of global scope singletons (#52128) 2022-07-23 17:09:03 +02:00
AppWrapper.tsx GrafanaContext: Exploring a way to get rid of global scope singletons (#52128) 2022-07-23 17:09:03 +02:00
dev.ts React: Add why-did-you-render dev extension to better see what components re-render and why (in console) (#23455) 2020-04-09 19:44:05 +02:00
index.ts Type window.nonce (#51200) 2022-06-22 09:28:05 +01:00