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

[Feature request] ForestAdmin UI collection URL helper method #677

Open
lostie opened this issue May 22, 2024 · 1 comment
Open

[Feature request] ForestAdmin UI collection URL helper method #677

lostie opened this issue May 22, 2024 · 1 comment

Comments

@lostie
Copy link
Contributor

lostie commented May 22, 2024

Expected behaviour

In some of our collection views or smart actions we would like to present a URL link to a specific ForestAdmin page, that might not necessarily be an association of the current collection the user is viewing.

I've had a look at similar questions posted in the community website (just an example) but all seem to suggest to try and form the URL ourselves manually. I've found several issues with that:

  • We couldn't find all the components required to form the URL (just as an example, the MyEnvironment component)
  • It seems that the structure of the URL has evolved through time and therefore anything that we design right now is suitable to break in the future

It would be very helpful instead if the gem provided some interface that given an instance of a model, it returns the URL for the collection details page taking into account all the variables the URL requires (project, environment, team, etc...):

manufacturer = Manufacturer.last
forest_collection_url(model)

And since the gem should have all this information, it would always generate an up to date URL.

Context

  • Package Version: 9.3.5
  • Rails Version: 7.1.3.3
  • Database Dialect: Postgresql
  • Database Version: 16.2
@Scra3
Copy link
Member

Scra3 commented May 23, 2024

Hello @lostie,
Thank you for your feedback 🙏
I have forwarded this message to our product board.
I'll get back to you as soon as it's been processed.

Have a good time with forestadmin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants