chore(admin): Upgrade view_component to v4.x - #6540
Open
sascha-karnatz wants to merge 6 commits into
Open
Conversation
sascha-karnatz
force-pushed
the
upgrade-view-component-in-admin
branch
from
August 18, 2026 21:04
95b32eb to
dda1d34
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6540 +/- ##
==========================================
- Coverage 92.16% 91.31% -0.86%
==========================================
Files 1037 772 -265
Lines 21195 16332 -4863
==========================================
- Hits 19534 14913 -4621
+ Misses 1661 1419 -242 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Upgrade view component to the latest version and update the engine.rb to prevent exception during the boot. Both configurations are simple replacements. Ref: https://viewcomponent.org/CHANGELOG.html#400
The patch is not necessary anymore with ViewComponent v4.x in place.
The `config.view_component.test_controller` option was removed in favor of `vc_test_controller_class`. Ref: https://viewcomponent.org/CHANGELOG.html#breaking-changes-devtest
Prevent undefined method `logger' for class SolidusAdmin::BaseComponent after rendering a component. Switch to the default Rails logger.
Since the upgrade to ViewComponent 4.x the missing translation fallback did not work anymore, because the internal translation handling was changed in view_component. Add two more tests to test the fallback behavior as well.
The SolidusAdmin::BaseComponent does not have an initializer and it is going to propagate the super call into the base view component that changed the signature in version 4.
sascha-karnatz
force-pushed
the
upgrade-view-component-in-admin
branch
from
August 19, 2026 07:58
dbaf4e7 to
4ee5df0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Use the latest version of view_component. It was necessary to adjust a few configurations and fix smaller glitches (missing
loggermethods and changedtranslatebehavior).This change is breaking, because the gem is only compatible with view_component >= 4.0.
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: