@aesmail
First of all, thank you for a spectacular tool!
I had recently one issue with Kaffy in the umbrella app. The Extension module was not loaded on the server start, so my css and js files were not added to the DOM. However, when server was already running, and I made any change in the Extension file, then the css and js were added to the DOM on website refresh.
After debugging the code, I found that function_exported?(ext, :stylesheets, 1) from lib/kaffy/utils.ex was giving false. Adding Code.ensure_loaded(ext) solved my issue.
I’ve created Pull Request and added more details there.
This could be a good addition to have in Kaffy.
Currently this is not possible (or at least not in a clean way).
I’ll try to see if it’s possible to be added in time for the next release.
Provide more flexibility for customizing the admin_logo and admin_logo_mini options.
Add the ability to “bulk delete” resources from the index page.
Hide save and delete buttons on the show page based on available actions.
Add Kaffy.Utils.auto_detect_resources/0 which returns the list of auto-detected resources (Kaffy’s attempt at discovering the list of schema/admin modules).
You can always do {:kaffy, "~> 0.10.0-rc.0"} to test it out.
I don’t think things will change as long as there are no serious issues.
The plan is to release 0.10.0-rc.1 a week from now with a few planned minor changes, and 0.10.0 a week after that.
in v0.10 rc2, i love that you fixed an issue with many_to_many causing kaffy to crash its not shown or is any value to kaffy, but i can use it in the rest of code
This is an important announcement for anyone using Kaffy v0.10
Please note that Kaffy v0.10.1 introduced a bug that ignored all admin modules.
v0.10.1 was released on Monday, October 9, 2023 at 11:57am GMT and v0.10.2 (which fixed the issue) was released at 12:49pm GMT (the time period between the two releases is about 52 minutes).
So if you deployed within this time period, please update Kaffy and deploy again.
Version v0.10.1 has been marked as retired and is no longer available on hex.
Apologies for any issues that this might have caused some of you.
I am curious to know how kaffy is validating forms with changeset and is it possible to customize the validation with different changesets in schema in admin modules
note: in my application context, admin module name is different from schema name
in WraftDocWeb.EnterprisePlanAdmin added
def create_changeset(schema, attrs) do
Plan.custom_plan_changeset(schema, attrs)
end
in plan admin with plan schema validations and everything works fine, in enterprise plan admin form validation not working, in case any changeset errors it raises error and not displaying the errors at form fields, if changeset is valid will create.