Skip to content

Conversation

@VikaCep
Copy link
Contributor

@VikaCep VikaCep commented Jan 22, 2026

Upgrade to Scenes v6

Problem

We were on @grafana/scenes and @grafana/scenes-react v5.42.0, while v6 has been available for some time with new features and improvements including internationalization support.

Solution

This PR upgrades both packages to v6.52.10, bringing:

  • Enhanced internationalization support via i18next
  • 10+ minor versions of accumulated features and bug fixes
  • Improved APIs and components from the Scenes team

Changes

  • Upgraded @grafana/scenes from 5.42.0 to 6.52.10
  • Upgraded @grafana/scenes-react from 5.42.0 to 6.52.10
  • Updated yarn.lock with new dependencies

Bundle Size Impact

⚠️ This PR increases the bundle size by ~461 KB (~18%)

The bundle size increase comes entirely from the Scenes v6 packages themselves. Analysis using webpack-bundle-analyzer shows:

  • Main branch baseline: 2,575 KB
  • This PR: 3,037 KB
  • Net increase: +461 KB

Dependencies

@VikaCep VikaCep self-assigned this Jan 22, 2026
@github-actions github-actions bot added the feature A feature added to the application. label Jan 22, 2026
@github-actions
Copy link

github-actions bot commented Jan 22, 2026

Fails
🚫

Scripts has exceeded the Critical threshold of a 10% size increase in this PR.

Script size changes

Name +/- Main This PR Outcome
[411.js] New file - 2,181.96 kB
[251.js] New file - 798.59 kB
[datasource/module.js] +0.08% 24.52 kB 24.54 kB
[692.js] +0.15% 19.82 kB 19.85 kB
[663.js] +0.17% 5.84 kB 5.85 kB
[module.js] -7.19% 4.86 kB 4.51 kB
[156.js] New file - 1.90 kB
[263.js] Deleted file 1,716.20 kB -
[234.js] Deleted file 804.37 kB -

Totals

Name +/- Main This PR Outcome
[Scripts] +17.92% 2,575.61 kB 3,037.19 kB 🚨
[Non-script Assets] = 2,671.65 kB 2,671.65 kB
[All] +8.80% 5,247.26 kB 5,708.84 kB ⚠️

Generated by 🚫 dangerJS against 65771fa

@VikaCep VikaCep requested a review from ckbedwell January 23, 2026 20:42
@VikaCep VikaCep marked this pull request as ready for review January 23, 2026 20:42
@VikaCep VikaCep requested review from a team as code owners January 23, 2026 20:42
@VikaCep
Copy link
Contributor Author

VikaCep commented Jan 23, 2026

@ckbedwell The ~461 KB bundle size increase (~18%) seems to come entirely from upgrading @grafana/scenes and @grafana/scenes-react from v5.42.0 to v6.52.10 by looking at the webpack-bundle-analyzer, it seems to be due to the addition of i18next internationalization support and 10+ minor versions worth of accumulated features and enhancements 😕

@VikaCep VikaCep marked this pull request as draft January 23, 2026 23:25
@VikaCep VikaCep changed the title feat: migrate home dashboard to react scenes chore: upgrade scenes to v6 Jan 24, 2026
@VikaCep VikaCep force-pushed the chore/upgrade-scenes-v6 branch from e6d9b78 to eb8d735 Compare January 24, 2026 00:17
@github-actions github-actions bot added the chore A miscellaneous change added to the application. label Jan 24, 2026
@VikaCep VikaCep changed the base branch from main to feat/migrate-home-dashboard-to-react-scenes January 24, 2026 00:17
@VikaCep VikaCep force-pushed the chore/upgrade-scenes-v6 branch from eb8d735 to 65771fa Compare January 24, 2026 00:18
@VikaCep VikaCep marked this pull request as ready for review January 24, 2026 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore A miscellaneous change added to the application. feature A feature added to the application.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant