Hey.
I have a simple resource with just the default actions :read, :create, :update
and added ash_admin
to the project. But i can’t get ash_admin to work to generate the default forms.
This is the resource:
defmodule Elephouse.TodoList.Todo do
use Ash.Resource,
domain: Elephouse.TodoList,
data_layer: AshPostgres.DataLayer
postgres do
table "todos"
repo Elephouse.Repo
end
actions do
defaults [:read, :create, :update]
end
attributes do
uuid_v7_primary_key :id
create_timestamp :created_at
update_timestamp :updated_at
attribute :title, :string do
allow_nil? false
end
attribute :due_at, :naive_datetime
attribute :completed, :boolean do
default :false
end
attribute :completed_at, :naive_datetime
attribute :hashes, :string
end
relationships do
belongs_to :owner, Elephouse.Accounts.User
end
end
My used deps:
defp deps do
[
{:phoenix, "~> 1.7.14"},
{:phoenix_ecto, "~> 4.5"},
{:ecto_sql, "~> 3.10"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 4.1"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
# TODO bump on release to {:phoenix_live_view, "~> 1.0.0"},
{:phoenix_live_view, "~> 1.0.0-rc.1", override: true},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_dashboard, "~> 0.8.3"},
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.2", runtime: Mix.env() == :dev},
{:heroicons,
github: "tailwindlabs/heroicons",
tag: "v2.1.1",
sparse: "optimized",
app: false,
compile: false,
depth: 1},
{:swoosh, "~> 1.5"},
{:finch, "~> 0.13"},
{:telemetry_metrics, "~> 1.0"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.20"},
{:jason, "~> 1.2"},
{:dns_cluster, "~> 0.1.1"},
{:bandit, "~> 1.5"},
{:ash, "~> 3.0"},
{:ash_authentication, "~> 4.0"},
{:ash_authentication_phoenix, "~> 2.0"},
{:ash_postgres, "~> 2.0"},
{:ash_phoenix, "~> 2.0"},
{:picosat_elixir, "~> 0.2.3"},
{:ecto_psql_extras, "~> 0.8"},
{:ash_admin, "~> 0.11.3"}
]
end
Anyone a suggestion? Every help would be nice. Thanks.