grafana/.github
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
..
ISSUE_TEMPLATE chore: minor update to feature request description (#65112) 2023-03-21 14:46:59 +00:00
workflows CI: Allow X.Y.Z-pre in bump-version workflow (#65924) 2023-04-04 16:29:42 +03:00
bot.md Chore: Move from master to main branch (#33693) 2021-05-06 16:29:29 +02:00
CODEOWNERS TrendPanel: Add new trend panel (Alpha) (#65740) 2023-04-04 20:52:20 -07:00
commands.json chore: automatically add relevant items to dataviz / bi projects (#65882) 2023-04-04 08:54:09 -07:00
dependabot.yml Configure Renovate (#40336) 2021-10-13 12:25:12 +01:00
issue-opened.json GHActions: move new 'opened' action to separate workflow (#63228) 2023-02-10 07:27:28 -10:00
metrics-collector.json GHActions: add issue type to each query (#63972) 2023-03-02 09:00:30 -10:00
pr-checks.json Chore: Add PR Check action enforcing changelog decision (#48728) 2022-05-05 11:38:46 +02:00
pr-commands.json Add to Docs squad project when PRs are labelled with type/docs (#64285) 2023-03-07 10:53:03 +00:00
PULL_REQUEST_TEMPLATE.md Remove two PR reviewer checklist items (#65290) 2023-04-03 09:13:56 -06:00
renovate.json5 Chore: Upgrade to react 18 (#64428) 2023-04-11 10:51:54 +01:00
teams.yml Add GH action to automatically add issue labeled to GH board (#54151) 2022-08-24 16:20:10 +02:00