-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Admin] Use Rails.application.mounted_helpers in base component #6039
Conversation
I don't understand if failures are strictly related but it seems like it's the case. |
Absolutely related. Will look into it tomorrow. |
3c61e1a
to
d72496f
Compare
The failures were related, and fixed by the second commit in this PR. |
d72496f
to
2013817
Compare
Rather than implementing routing proxies ourselves, we can use what Rails offers. Fixes solidusio#6038
Rails' `mounted_helpers` do not work when a component is initialized. They need to be called when the component is rendered. This change moves the rendering of tabs from initialization time to render time.
2013817
to
c73de73
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6039 +/- ##
==========================================
- Coverage 89.59% 89.59% -0.01%
==========================================
Files 791 791
Lines 18269 18266 -3
==========================================
- Hits 16368 16365 -3
Misses 1901 1901 ☔ View full report in Codecov by Sentry. |
Rather than implementing routing proxies ourselves, we can use what Rails offers.
Fixes #6038