Skip to content
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

Remove sprockets support #451

Merged
merged 7 commits into from
Mar 17, 2023
Merged

Remove sprockets support #451

merged 7 commits into from
Mar 17, 2023

Conversation

gmq
Copy link
Member

@gmq gmq commented Mar 14, 2023

Over the years, Rails has been transitioning away from sprockets for frontend purposes. Maintaining support for both methods of installation has added complexity to every update we make.

This PR removes sprockets support, leaving only support for the Webpacker installation of ActiveAdmin. Although Webpacker is deprecated, it's easy to move files to make Addons work with other frontend bundlers.

It also removes some custom fixes for the Active Material theme.

Copy link
Member

@ldlsegovia ldlsegovia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏻

Rakefile Outdated Show resolved Hide resolved
@@ -33,7 +33,6 @@
list_row :skills, list_type: :ol
list_row :contact, localize: true
list_row :details, localize: true
attachment_row("My doc", :attachment, label: 'Download file', truncate: false, &:attachment)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

spec/dummy/config/initializers/active_admin.rb Outdated Show resolved Hide resolved
spec/support/active_admin_helpers.rb Outdated Show resolved Hide resolved
#### Material Theme
##### Not compatible when Active Admin has been installed in webpack mode

Show material design theme using [active_material](https://github.com/vigetlabs/active_material). If you want to use it, you should run the generator using the flag `theme` as follow:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also remove active_material from gemspec and engine.rb

@@ -33,17 +33,6 @@ And in another tab:
bin/webpack-dev-server
```

**With Sprockets:**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a little further down, we should also remove the bundle exec rake sprockets_tests and those commands that no longer exist

@gmq gmq force-pushed the remove-sprockets-support branch from 54e9b97 to b7db600 Compare March 17, 2023 18:59
Base automatically changed from remove-select2 to master March 17, 2023 18:59
Copy link
Contributor

@difernandez difernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect 💯

@gmq gmq merged commit 4cf499c into master Mar 17, 2023
@gmq gmq deleted the remove-sprockets-support branch March 17, 2023 20:29
bessey pushed a commit to bessey/activeadmin_addons that referenced this pull request Jun 19, 2023
difernandez added a commit that referenced this pull request Jun 19, 2023
Fix link to PR #451 in CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants