Skip to content

Comments

chore: upgrade scenes to v6#1552

Merged
VikaCep merged 3 commits intomainfrom
chore/upgrade-scenes-v6
Feb 3, 2026
Merged

chore: upgrade scenes to v6#1552
VikaCep merged 3 commits intomainfrom
chore/upgrade-scenes-v6

Conversation

@VikaCep
Copy link
Contributor

@VikaCep VikaCep commented Jan 22, 2026

Upgrade to Scenes v6

Closes #1561

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.31 kB
[251.js] New file - 799.76 kB
[datasource/module.js] +0.08% 25.00 kB 25.02 kB
[692.js] +0.15% 20.56 kB 20.59 kB
[663.js] +0.17% 5.82 kB 5.83 kB
[module.js] -7.10% 4.90 kB 4.55 kB
[156.js] New file - 1.90 kB
[263.js] Deleted file 1,715.58 kB -
[234.js] Deleted file 805.52 kB -

Totals

Name +/- Main This PR Outcome
[Scripts] +17.91% 2,577.39 kB 3,038.97 kB 🚨
[Non-script Assets] = 2,675.38 kB 2,675.38 kB
[All] +8.79% 5,252.76 kB 5,714.35 kB ⚠️

Generated by 🚫 dangerJS against 434a6ce

@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
@VikaCep VikaCep force-pushed the feat/migrate-home-dashboard-to-react-scenes branch from 7c486ae to 1adf9b7 Compare February 3, 2026 14:51
@VikaCep VikaCep force-pushed the chore/upgrade-scenes-v6 branch from 65771fa to c258feb Compare February 3, 2026 15:29
Base automatically changed from feat/migrate-home-dashboard-to-react-scenes to main February 3, 2026 15:44
fix: layout for smaller screens

fix: small refactor

fix: recreate yarn.lock

fix: add resolution for strip-ansi dep v6
@VikaCep VikaCep force-pushed the chore/upgrade-scenes-v6 branch from c258feb to 434a6ce Compare February 3, 2026 15:46
Copy link
Contributor

@ckbedwell ckbedwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! ⭐

@VikaCep VikaCep merged commit 78622bb into main Feb 3, 2026
35 of 36 checks passed
@VikaCep VikaCep deleted the chore/upgrade-scenes-v6 branch February 3, 2026 17:56
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.

Upgrade @grafana/scenes and @grafana/scenes-react to v6

2 participants