Bug/remove unneeded migration - #1111
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThe application undergoes a substantial build tooling and frontend architecture migration: Webpacker is replaced with a manual webpack configuration paired with jsbundling-rails and cssbundling-rails; Turbolinks navigation is replaced with Turbo; Font Awesome Rails helpers transition to inline HTML elements; asset inclusion patterns shift from pack tags to explicit script tags; and Babel configuration moves from babel.config.js to .babelrc. Changes
Sequence DiagramsequenceDiagram
autonumber
participant Browser
participant Rails
participant OldWebpacker as Old: Webpacker<br/>(Turbolinks)
participant NewBuild as New: Webpack +<br/>jsbundling-rails<br/>(Turbo)
rect rgb(200, 220, 255)
Note over Browser,OldWebpacker: Old Flow (Turbolinks + Webpacker)
Browser->>Rails: GET /page
Rails->>OldWebpacker: Load pack_tag(:application)
OldWebpacker->>Browser: JS bundles + Turbolinks
Browser->>Browser: Turbolinks intercepts link clicks
Browser->>Rails: fetch + Turbolinks.visit()
Rails->>OldWebpacker: Send new HTML
OldWebpacker->>Browser: Re-render DOM (Turbolinks cache)
end
rect rgb(220, 255, 220)
Note over Browser,NewBuild: New Flow (Turbo + Webpack)
Browser->>Rails: GET /page
Rails->>NewBuild: Load application.js (defer)
NewBuild->>Browser: Turbo + individual modules
Browser->>Browser: Turbo intercepts link clicks
Browser->>Rails: fetch + Turbo.visit()
Rails->>NewBuild: Send new HTML
NewBuild->>Browser: Re-render + fire turbo:load
Browser->>Browser: Module listeners (turbo:load)
Browser->>Browser: Vue instances initialize
end
rect rgb(255, 240, 200)
Note over Browser,NewBuild: Pre-Cache Cleanup
Browser->>Browser: turbo:before-cache fires
Browser->>Browser: Destroy Vue instances
Browser->>Browser: Clear event listeners
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~55 minutes Areas requiring extra attention:
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (61)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## staging #1111 +/- ##
===========================================
+ Coverage 74.10% 75.27% +1.17%
===========================================
Files 51 50 -1
Lines 1093 1076 -17
===========================================
Hits 810 810
+ Misses 283 266 -17 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Remove a migration that broke things
Summary by CodeRabbit
Style
Chores