Skip to content

feat: React 19 / Grafana 13 compatibility#124

Merged
odemkovych merged 12 commits into
hydrolix:developfrom
jackw:feat/react-19-migration
May 12, 2026
Merged

feat: React 19 / Grafana 13 compatibility#124
odemkovych merged 12 commits into
hydrolix:developfrom
jackw:feat/react-19-migration

Conversation

@jackw
Copy link
Copy Markdown
Contributor

@jackw jackw commented Apr 3, 2026

Closes #98

Summary

  • Bumped @grafana/plugin-ui to 0.13.1 and @testing-library/react to 15.0.2 — resolves the jsxRuntimeImport issue detected by react-detect (zero issues remaining)
  • Updated plugin scaffold to create-plugin@7.1.3 (migrations 004–007: ESLint flat config, React 18.3, webpack nested fix, testing-library types)
  • Added dev-preview-react19 Grafana image to the e2e CI matrix

Test Plan

  • npx @grafana/react-detect@latest reports no_action_required
  • npm run build passes
  • 113 unit tests pass
  • E2e tests pass against dev-preview-react19 in CI

🤖 Generated with Claude Code

jackw added 9 commits April 3, 2026 18:03
Migrate eslint config to flat config format and update devDependencies to latest versions.
Update React and ReactDOM 18.x versions to ^18.3.0 to surface React 19 compatibility issues.
Fix webpack variable replacement in nested plugins files.
Add setupTests.d.ts for @testing-library/jest-dom types and remove @types/testing-library__jest-dom npm package.
@jackw
Copy link
Copy Markdown
Contributor Author

jackw commented Apr 7, 2026

@vvkohut I would appreciate if you could take a look at this PR as I see now that you're assigned to the React 19 compatibility issue.

@vvkohut
Copy link
Copy Markdown
Contributor

vvkohut commented Apr 20, 2026

Hi @jackw, thank you for your contribution on this — the work here is much appreciated.

I've reviewed the PR, but given that the pipeline is currently failing and there are merge conflicts with the default branch, I'm not able to merge it as-is. To move this forward, I'll create a new PR based on your changes, fix the pipeline issues, and resolve the conflicts there.

Thanks again for tackling this!

@jackw
Copy link
Copy Markdown
Contributor Author

jackw commented Apr 23, 2026

@vvkohut no worries. If it's easier I can cherry pick these commits elsewhere. Let me know what works best for you. Happy to help where I can.

@odemkovych odemkovych self-requested a review May 12, 2026 13:46
@odemkovych
Copy link
Copy Markdown
Collaborator

I'll merge this PR. Also some additional changes related to Grafana 13 compatibility will be applied in #129

@odemkovych odemkovych merged commit 296022e into hydrolix:develop May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

React 19 Upgrade: Ensure your plugin is compatible with React 19

3 participants