Hi, we are trying to setup our forest admin environment to manage the backoffice of an existing application.
So far, we deployed a prod version that is able to retrieve data from our DB, and we are trying to setup some smart actions. We followed the guidelines and added an empty action in one of our collections in the /forest folder
According to the documentation, the smart action should be visible in the UI under the collection settings tab
Actual behavior
No smart action is displayed whatsoever.
Context
After changing the /forest we successfully re-built our container, but still no change in the UI.
We are new to Forest Admin, and we may have some deployment issues as far as I know (for instance, I read in similar posts to check for the forestadmin-schema.json file, but I can’t manage to find it in our solution)
I think you forgot to make your action visible , did you follow this documentation. You will see there is a step explaining how to make the action visible just after creating your action .
Another reason could be that smart action by default are of type bulk if you read the documentation of smart actions it’s written in the parameters section. So if you do not select any record the action will not be available, so if you want another type of action make sure to update the type of your action.
Hi Vince, thanks for the reply!
I might have not been clear enough, actually I don’t even see the action in the settings pannel (where, from what I understand, I would have been able to make it visible)
Here is a screenshot, maybe I don’t have the proper vocabulary to explain the situation clearly :
So this certainly means that your schema is not up to date.
Did you restart your server after adding the action ?
You should see the new action in your .forestadmin-schema.json
Yes I did restart the server.
As I tried to explain, and I realise that might be the issue, I don’t see any .forestadmin-schema.json file. Is it something I should generate manually?
No you should not. This file is automatically generated on development environment.
Forest is expecting the first environment created to be a development environment, not a production or staging.
Did you set NODE_ENV property somewhere ? If yes what is the value ?