-
-
Notifications
You must be signed in to change notification settings - Fork 934
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
Use importmap for avo stimulus component #4469
Conversation
ec4a166
to
75c5733
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4469 +/- ##
=======================================
Coverage 97.15% 97.15%
=======================================
Files 391 391
Lines 8259 8259
=======================================
Hits 8024 8024
Misses 235 235 ☔ View full report in Codecov by Sentry. |
This seems to just not work. Avo is not doing great with CSP in general. The console is a mess. |
Fixed. Seems to work. Thanks @segiddins. |
ca54943
to
f0c95f7
Compare
const application = window.Stimulus.Application.start(); | ||
application.register("nested-form", window.StimulusRailsNestedForm); | ||
<% end %> | ||
<%= javascript_importmap_tags "avo.custom" %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<%= javascript_importmap_tags "avo.custom" %> | |
<%= javascript_importmap_tags "avo.custom" %> | |
Run bin/rails generate avo:js:install then update.
f0c95f7
to
14575c7
Compare
These imports were missed in the original conversion to importmaps. Removes the blocker for #4464.
I can't figure out exactly where this component is used in avo to verify that it continues to work. @segiddins?