botpress / studio

The studio is the main interface you'll use to build and edit your chatbot.
https://botpress.com/docs/quickstart#conversation-studio
38 stars 38 forks source link

fix(actions): removed tooltip with doc of deprecated api #326

Closed laurentlp closed 2 years ago

laurentlp commented 2 years ago

This PR removes the tooltip displayed when adding a new action that would recommend using an API that has been deprecated for a long time.

Before

Screenshot from 2022-03-29 16-36-15

After

Screenshot from 2022-03-29 16-35-17

linear[bot] commented 2 years ago
DEV-2083 [Bug] Newly added actions do not appear in the list

It can be a documentation problem or a code problem, not sure. However, a user already pointed to this problem in the following post [https://forum.botpress.com/t/new-actions-dont-appear/2512](https://forum.botpress.com/t/new-actions-dont-appear/2512) … and it was 2019…. ___________________________ Steps to reproduce 1- Create a new js script and add it to the ***/packages/bp/dist/data/bots//actions*** folder in my test I added the **CarlesBotAPI2.js** to the folder, and as expected it shows in the actions folder ![image.png](https://uploads.linear.app/86b5451b-0c34-4f42-8d54-be35c275a26b/8c251642-709c-4a78-9f62-82ab0b996f3c/c0fb0d4d-9fbe-4928-b46d-ec0c450ba49e) 2- Now try to add this new action to a node by selecting a node and adding a new action **Actual Results** The new action does not appear in the list ![image.png](https://uploads.linear.app/86b5451b-0c34-4f42-8d54-be35c275a26b/b309efac-8edb-4d83-9645-71ce39644b12/d7633723-9fe0-45f7-8602-3baf0ec5cf46) **Expected result** The new action is listed in the drop down. _________________________________________________________ As a user, the behaviour is not what I expect, however, there may be reasons behind that justify this behaviour. However, hovering the cursor I can read the following message ![image.png](https://uploads.linear.app/86b5451b-0c34-4f42-8d54-be35c275a26b/f948c06e-75d3-4c2c-a553-90eae7620944/3d2072df-09a5-4c44-b79d-2592b1a64e74) I have googled 'bp.registerActions()' and the first hit I find is the forum question that I wrote above, so the message is not really helpful and I would suggest to change it to a url or something that can really help the user.