Skip to content

Remove old, since replaced JS#8040

Merged
javierjulio merged 8 commits into
masterfrom
remove-old-js
Jul 31, 2023
Merged

Remove old, since replaced JS#8040
javierjulio merged 8 commits into
masterfrom
remove-old-js

Conversation

@javierjulio

Copy link
Copy Markdown
Member

We've already replaced this old JS with a vanilla JS version. This removes jQuery and jQuery UI fully. We bundle our JS like we did before. This works well with Sprockets and should continue to work with Propshaft. I believe this same bundle would work with jsbundling-rails too but we aren't requiring that.

This simplifies our JS setup quite a bit. The terser plugin had to be replaced since its now an official Rollup plugin. Several other NPM packages we no longer need either. No plans to transpile so Babel is also removed. Instead of an active_admin/base.js this now creates an active_admin.js file.
We had no test page using this in our sample app.
This wasn't being loaded while in transition. It has already been replaced with a plain vanilla JS setup using modern standards. We no longer use jQuery or jQuery UI either.
Also resolves Rubocop warning with layout argument alignment.
@javierjulio javierjulio self-assigned this Jul 31, 2023
@codecov

codecov Bot commented Jul 31, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage has no change and project coverage change: -0.01% ⚠️

Comparison is base (10c7a88) 99.04% compared to head (fa8b000) 99.04%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8040      +/-   ##
==========================================
- Coverage   99.04%   99.04%   -0.01%     
==========================================
  Files         185      185              
  Lines        4731     4730       -1     
==========================================
- Hits         4686     4685       -1     
  Misses         45       45              
Files Changed Coverage Δ
lib/active_admin.rb 100.00% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@javierjulio javierjulio changed the title Remove old and replaced JS and jQuery Remove old, since replaced JS Jul 31, 2023
@javierjulio javierjulio merged commit ca806e2 into master Jul 31, 2023
@javierjulio javierjulio deleted the remove-old-js branch July 31, 2023 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant