Replies: 9 comments 32 replies
-
Hi @amkisko. First and foremost, thank you for creating a discussion. This may be doable from some past experimenting so I will share my thoughts on how I think it could work but it's not something that the library will support. I know some others are interested in this as well. You would have to use and customize From there, you'll have to copy the Resources: |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to get some kind of example app or at least more detailed solution? I'm trying to setup exactly this, but still struggling and can't quite make it work. What should we put in this config file, is there a need for another tailwind css file besides generated one and where from to call require |
Beta Was this translation helpful? Give feedback.
-
@amkisko @djolereject @javierjulio This is what I did as part of my upgrade from ActiveAdmin 3.x to the latest 4.0 (beta.4). I took inspiration in the I think this also could be a good default for ActiveAdmin, since I think many are wanting to not have node installed when developing with Rails ( How to do it
|
Beta Was this translation helpful? Give feedback.
-
Thank for the detailed explanation! |
Beta Was this translation helpful? Give feedback.
-
What is the suggestion on extending header and layout of ActiveAdmin v4? That's what I been up to before: module AdminPageLayoutOverride
def build_page(*args)
within super do
render "active_admin/layout_additions"
end
end
def build_active_admin_head
within super do
render "active_admin/header"
end
end
end
ActiveAdmin::Views::Pages::Base.prepend AdminPageLayoutOverride |
Beta Was this translation helpful? Give feedback.
-
This thread might become a more general "migration to v4" topic. I've got another one, that can't figure out how to fix, getting this for all resources except custom pages:
|
Beta Was this translation helpful? Give feedback.
-
Also it was not really clear how
|
Beta Was this translation helpful? Give feedback.
-
It would be much easier if you just shipped bundled versions of Here's an example of how Avo solves it: But it can be even simpler. Just a pre-commit hook that will run tailwind building and save the output into |
Beta Was this translation helpful? Give feedback.
-
@javierjulio what is the current support level for Turbo in ActiveAdmin? At least I have not seen any traces of usage here. One thing that does not properly work is form errors, there is a reply from server but HTML code from response is not applied to the current page, I've been experiencing such starting from v3. Have you seen such behaviour? |
Beta Was this translation helpful? Give feedback.
-
importmap-rails and propshaft do not require node and yarn to be installed, although cssbundling-rails requires.
Are there any options to patch ActiveAdmin to have no dependence on node/yarn?
References:
Beta Was this translation helpful? Give feedback.
All reactions