Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Adding high level links #136

Open
pshoukry opened this issue May 1, 2024 · 5 comments
Open

Allow Adding high level links #136

pshoukry opened this issue May 1, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@pshoukry
Copy link

pshoukry commented May 1, 2024

Is your feature request related to a problem? Please describe.
It is currently not possible to add a link in the app for example to logout the admin user.

Describe the solution you'd like
Add a configuration that would allow dynamically adding links top most level again example ( sign out, settings, etc)

Describe alternatives you've considered
A way to override the default template ?

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

For example

  admin do
    links do
       link :settings, "/settings"
    end
  end
@pshoukry pshoukry added the enhancement New feature or request label May 1, 2024
@pshoukry
Copy link
Author

pshoukry commented May 2, 2024

On Second thoughts, I think there should be a specifc AshAdmin module with those configurations.

@zachdaniel
Copy link
Contributor

Yeah, so in the long run we need to create something like this:

defmodule MyApp.AdminUI do
  use AshAdmin.UI

  ...
end

Which we could put custom links in at that point. We would also use that to then explicitly configure the domains and resources. You could then have multiple admin UIs w/ different configurations.

@pshoukry
Copy link
Author

pshoukry commented May 2, 2024

@zachdaniel I am learning a bit of spark and will try to tackle this one along with file uploads in ash admin ;) .. hopefully will have a couple of PRs soon

@zachdaniel
Copy link
Contributor

That sounds great! I put it on the roadmap for "someday", but would be very happy to see it done much earlier <3

@pshoukry
Copy link
Author

pshoukry commented May 2, 2024

one of my clients need it ... can't think of a better reason to make it happen now .. will give it a shot .. if it wasn't for that it would have been at the top of my someday too as it looks like a good first ticket for me to try .. will check spark .. make an attempt and see your feedback .. I am sure I will learn something getting it working if i can ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Someday
Development

No branches or pull requests

2 participants