Skip to content

Commit

Permalink
Add upgrader note about resource table update
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed Sep 4, 2024
1 parent 261c4dc commit 1f2ceaa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions lib/alchemy/upgrader/seven_point_three.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ def generate_custom_css_entrypoint
end
end

def show_resource_table_notice
custom_modules = Alchemy::Modules.alchemy_modules.reject { _1["engine_name"] == "alchemy" }
return if custom_modules.none?

todo(<<~TODO, "Resource templates have been updated.")
We updated the resource templates to use the newly introduced
`Alchemy::Admin::Resource::Table` view component.
Please update your resource templates accordingly.
TODO
end

private

def task
Expand Down
4 changes: 3 additions & 1 deletion lib/tasks/alchemy/upgrade.rake
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ namespace :alchemy do
task "run" => [
"alchemy:upgrade:7.3:remove_admin_stylesheets",
"alchemy:upgrade:7.3:generate_custom_css_entrypoint"
]
] do
Alchemy::Upgrader::SevenPointThree.show_resource_table_notice
end

desc "Remove alchemy admin stylesheets"
task remove_admin_stylesheets: [:environment] do
Expand Down

0 comments on commit 1f2ceaa

Please sign in to comment.