ash-project / ash_admin

A super-admin UI dashboard for Ash Framework applications, built with Phoenix LiveView.
https://hexdocs.pm/ash_admin
MIT License
106 stars 48 forks source link

Hide resources on demand. #90

Closed jechol closed 6 months ago

jechol commented 9 months ago

Is your feature request related to a problem? Please describe. I'm using ash_paper_trail for my resources, and since all resources in the API are included, Version resources make the list too messy.

Describe the solution you'd like In the resource, I can set it to be hidden.

Express the feature either with a change to resource syntax, or with a change to the resource interface

use Ash.Resource, extensions: [AshAdmin.Resource]

admin do
  show? false
end
zachdaniel commented 9 months ago

You can do this with the mixin: https://hexdocs.pm/ash_paper_trail/0.1.0/get-started-with-paper-trail.html#enriching-the-versions-resource

jechol commented 9 months ago

@zachdaniel

I don't understand, could you provide more information?

As far as I know, there's no show? option in admin section of AshAdmin.Resource.

zachdaniel commented 9 months ago

Oh, wow. I didn't realize we only had it for apis :(