grafana/public/app/features/dashboard/components
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
..
AddLibraryPanelWidget Dashboard: Empty/No Panels dashboard with a new design (#65161) 2023-03-28 12:42:23 +03:00
AddPanelButton Dashboard: Enable feature toggle emptyDashboardPage by default (#65464) 2023-04-03 14:04:54 +03:00
AddPanelWidget Dashboard: Add new visualization/row/library panel/pasted panel is now a dropdown menu (#65361) 2023-03-30 13:50:35 +03:00
AnnotationSettings OptionsUI: Enabled settings on the color picker (#64483) 2023-03-09 04:53:18 -05:00
DashboardLoading Chore: Migrate more theme v1 usage to v2 (#58121) 2022-11-03 09:54:18 -04:00
DashboardPermissions TopNav: Dashboard settings (#52682) 2022-08-24 18:05:12 +02:00
DashboardPrompt Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
DashboardRow Accessibility: Make row actions keyboard accessible (#63367) 2023-02-23 15:20:59 +00:00
DashboardSettings Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
DashExportModal Dashboards: Unify angular auto-migration code (#63915) 2023-03-27 18:11:45 +03:00
DashNav Dashboard: Add new visualization/row/library panel/pasted panel is now a dropdown menu (#65361) 2023-03-30 13:50:35 +03:00
DeleteDashboard Chore: replace React.FC<Props> with simple function component (#54123) 2022-08-24 16:54:34 -04:00
HelpWizard SupportBundles: Add URL in troubleshoot panels to support bundles (#62477) 2023-01-31 16:12:20 +01:00
Inspector Chore: Remove panel inspect Actions hack (#64643) 2023-03-13 08:07:36 -07:00
LinksSettings Chore: Avoid explicit React.FC<Props> when possible (round 2) (#64749) 2023-03-15 16:56:09 +02:00
PanelEditor Chore: Some type fixes needed for react 18 (#65600) 2023-03-30 13:40:18 +01:00
PublicDashboardFooter PublicDashboards: Footer alignment fix for Firefox browser (#62108) 2023-01-25 11:30:42 -03:00
PublicDashboardNotAvailable PublicDashboards: Not available page wording modifications (#64413) 2023-03-08 14:52:51 -03:00
RepeatRowSelect Chore: Avoid explicit React.FC<Props> when possible (#64722) 2023-03-14 16:38:21 +02:00
RowOptions Chore: Avoid explicit React.FC<Props> when possible (#64722) 2023-03-14 16:38:21 +02:00
SaveDashboard Dashboard: rewrite useDashboardSave to not use useEffect (#65602) 2023-04-11 09:10:32 +01:00
ShareModal Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
SubMenu Chore: Avoid explicit React.FunctionComponent<Props> when possible (round 3) (#64839) 2023-03-16 16:56:26 +02:00
TransformationsEditor Dataplane: Support prometheus dataplane contract for transformations and name matchers (#65237) 2023-04-08 00:13:19 +03:00
VersionHistory Chore: Avoid explicit React.FC<Props> when possible (round 2) (#64749) 2023-03-15 16:56:09 +02:00