grafana/public/app/core
Ashley Harrison 1261345b81
Chore: Upgrade to react 18 (#64428)
* update react 18 related deps

* fix some types

* make sure we're on react-router-dom >= 5.3.3

* Use new root API

* Remove StrictMode for now - react 18 double rendering causes issues

* fix + ignore some @grafana/ui types

* fix some more types

* use renderHook from @testing-library/react in almost all cases

* fix storybook types

* rewrite useDashboardSave to not use useEffect

* make props optional

* only render if props are provided

* add correct type for useCallback

* make resourcepicker tests more robust

* fix ModalManager rendering

* fix some more unit tests

* store the click coordinates in a ref as setState is NOT synchronous

* fix remaining e2e tests

* rewrite dashboardpage tests to avoid act warnings

* undo lint ignores

* fix ExpanderCell types

* set SymbolCell type correctly

* fix QueryAndExpressionsStep

* looks like the types were actually wrong instead :D

* undo this for now...

* remove spinner waits

* more robust tests

* rewrite errorboundary test to not explicitly count the number of renders

* make urlParam expect async

* increase timeout in waitFor

* revert ExplorePage test changes

* Update public/app/features/dashboard/containers/DashboardPage.test.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Update public/app/features/dashboard/containers/PublicDashboardPage.test.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Update public/app/features/dashboard/containers/PublicDashboardPage.test.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Update public/app/features/dashboard/containers/PublicDashboardPage.test.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* skip fakeTimer test, ignore table types for now + other review comments

* update package peerDeps

* small tweak to resourcepicker test

* update lockfile...

* increase timeout in sharepublicdashboard tests

* ensure ExplorePaneContainer passes correct queries to initializeExplore

* fix LokiContextUI test

* fix unit tests

* make importDashboard flow more consistent

* wait for dashboard name before continuing

* more test fixes

* readd dashboard name to variable e2e tests

* wait for switches to be enabled before clicking

* fix modal rendering

* don't use @testing-library/dom directly

* quick fix for rendering of panels in firefox

* make PromQueryField test more robust

* don't wait for chartData - in react 18 this can happen before the wait code even gets executed

---------

Co-authored-by: kay delaney <kay@grafana.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2023-04-11 10:51:54 +01:00
..
actions TopNav: Plugin page layouts / information architecture (#53174) 2022-09-05 14:56:08 +02:00
components Page: Remove bottom page margin (#65082) 2023-04-04 16:00:41 +02:00
context TopNav: KioskMode rewrite move to AppChrome responsibility and make it a global feature (#55149) 2022-09-15 14:04:58 +02:00
copy Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
history Chore: Improve some types (#64675) 2023-03-14 09:51:44 +00:00
hooks Navigation: Fix broken layout at 544px (#63793) 2023-03-01 15:31:32 +00:00
internationalization Navigation: Ensure command palette is correctly translated (#61103) 2023-02-08 13:15:37 +00:00
navigation Angular: Prevent angular from loading when disabled (#65755) 2023-04-03 10:45:22 +02:00
reducers Nav: Handle app plugin installation/uninstallation (#63706) 2023-03-02 09:50:01 +01:00
selectors PluginPage: Fix finding root section for standalone pages (#56554) 2022-10-07 16:33:36 +02:00
services Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
specs Show traceids for failing and successful requests (#64903) 2023-04-05 09:13:24 +02:00
utils Chore: Improve some types (#64675) 2023-03-14 09:51:44 +00:00
app_events.ts EventBus: Introduces new event bus with emitter backward compatible interface (#27564) 2020-11-03 13:08:54 +01:00
config.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
constants.ts PanelEditor: Present actionable suggestions when panel cannot visualize current data (#42083) 2021-11-25 09:41:03 +01:00
core.ts TopNav: KioskMode rewrite move to AppChrome responsibility and make it a global feature (#55149) 2022-09-15 14:04:58 +02:00
lodash_extended.ts Performance: Standardize lodash imports to use destructured members (#33040) 2021-04-21 09:38:00 +02:00
logsModel.test.ts Explore: Align multiple log volumes (#64356) 2023-04-11 10:05:04 +02:00
logsModel.ts Templating: Introduce macros to simplify and optimize some scopedVars (#65317) 2023-03-28 19:22:34 +02:00
profiler.ts Chore: Improve some types (#64675) 2023-03-14 09:51:44 +00:00
store.ts any/type assertion fixes (#57009) 2022-10-17 10:10:10 +01:00
TableModel.ts Chore: more any/type assertion improvements (#57450) 2022-10-25 11:04:35 +02:00
time_series2.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00