grafana/public/app/plugins/panel
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
..
alertGroups Chore: Adjust unit tests so they work with react 18 (#64698) 2023-03-14 17:24:04 +00:00
alertlist Alerting: Add label filters to the logic of showing hidden instances (#65674) 2023-04-03 15:39:06 +02:00
annolist Chore: fix type errors in tests (#63270) 2023-02-14 16:46:42 +01:00
barchart Chore: Avoid explicit React.FunctionComponent<Props> when possible (round 3) (#64839) 2023-03-16 16:56:26 +02:00
bargauge Table Panel: Add ability to use text color for value or hide value in gauge cell (#61477) 2023-03-10 14:41:46 +01:00
candlestick Chore: Avoid explicit React.FC<Props> when possible (round 2) (#64749) 2023-03-15 16:56:09 +02:00
canvas Canvas: Remove deleted connections from source (#65321) 2023-03-27 19:51:56 +03:00
dashlist Previews: remove dashboard previews UI (#66146) 2023-04-07 19:15:46 +04:00
debug Chore: more type fixes (#62952) 2023-02-09 09:03:13 +00:00
flamegraph Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
gauge Chore: more type fixes (#62952) 2023-02-09 09:03:13 +00:00
geomap Panels: GeomapPanel edit mode fix (#66222) 2023-04-10 17:02:20 -07:00
gettingstarted Chore: more type fixes (#62952) 2023-02-09 09:03:13 +00:00
graph Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
heatmap HeatMap: Sort y buckets when all bucket names are numeric (#65322) 2023-03-28 17:16:24 -05:00
histogram panels: Remove redundant import package from cue defs (#61949) 2023-01-23 14:28:44 -05:00
icon Canvas: Add tooltip for data links (#61648) 2023-01-20 16:26:51 +00:00
live Chore: Migrate usage of v1 themes to v2 (#57617) 2022-10-26 13:28:12 +01:00
logs Chore: Avoid explicit React.FunctionComponent<Props> when possible (round 3) (#64839) 2023-03-16 16:56:26 +02:00
news Core: Update components to have standard radii (#65065) 2023-03-21 12:24:50 +01:00
nodeGraph Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
piechart PieChart: Show long labels properly (#65699) 2023-04-05 11:28:03 +03:00
stat Stat Panel: Add an option for a non-gradient/solid background (#65052) 2023-03-20 11:13:27 -06:00
state-timeline Chore: Avoid explicit React.FC<Props> when possible (round 2) (#64749) 2023-03-15 16:56:09 +02:00
status-history Chore: Avoid explicit React.FC<Props> when possible (round 2) (#64749) 2023-03-15 16:56:09 +02:00
table Table: Fix migrations from old angular table for cell color modes (#65760) 2023-04-06 09:19:26 +02:00
table-old Templating: Introduce macros to simplify and optimize some scopedVars (#65317) 2023-03-28 19:22:34 +02:00
text Chore: more ts test fixes (#63438) 2023-02-23 10:07:44 +00:00
timeseries TrendPanel: Add new trend panel (Alpha) (#65740) 2023-04-04 20:52:20 -07:00
traces TraceView: Don't require preferredVisualisationType to render (#64920) 2023-03-23 10:27:34 +01:00
trend TrendPanel: use isLikelyAscendingVector rather than brute force (#65977) 2023-04-05 09:09:52 -07:00
welcome Chore: Avoid explicit React.FC<Props> when possible (#64722) 2023-03-14 16:38:21 +02:00
xychart XYChart: Add all dataset columns in tooltip (#65027) 2023-04-05 23:07:27 +03:00