snipsco / snips-issues

Feel free to share your bugs with us.
14 stars 5 forks source link

Feature request: console - only show apps without actions #179

Closed flatsiedatsie closed 5 years ago

flatsiedatsie commented 5 years ago

Is your feature request related to a problem? Please describe. User store: As a user I would like to find intents that other people have created so that my code can respond to these intents.

Currently, there is a filter in the console that allows me to search for apps that also have actions.

However, I am looking for the opposite. I would like to find and use apps that have no actions, so that my code can create the actions instead. I'd like my code to be able to hook into intents that other people have created.

What are the use cases of this feature I think this would streamline development and limit the amount of duplicated functionality in the app store. Currently, a lot of people are teaching Snips to make timers (perhaps that's the ulterior motive?), and I've done the same.

Describe the solution you'd like As a developer, I'd like to have a way to use other people's intents in my own code without having to also use their actions. As a developer, I'd like to have a way to find other people's action-less intents (or import their intents but stripping out the action part).

Describe alternatives you've considered

Additional context I hope I understand how Snips works in this matter. I haven't actually made my code respond to the apps of other creators yet, so I might be misunderstanding how this actually works.

pocketjoso commented 5 years ago

These things are possible to do today in the console, perhaps we need to make it more evident how.

As a developer, I'd like to have a way to use other people's intents in my own code without having to also use their actions.

After adding a someone else's public app to your assistant, when you click to Edit it it offers to fork the app, creating your own copy:

(I suspect you already did this, just repeating to be sure we're on the same page) Capture d’écran 2019-08-05 à 10 39 58 Capture d’écran 2019-08-05 à 10 40 01

Afterwards, you can modify the action part of the app as you wish.

pocketjoso commented 5 years ago

As a developer, I'd like to have a way to find other people's action-less intents (or import their intents but stripping out the action part).

What I described in my previous comments allows you to re-use other peoples apps without their action part. For importing individual intents from public apps into your own apps, however, you have to go through a specific workflow:

After you fork a public app, the new forked app is yours. That's why you can edit the action type, add new intents etc. However the intents inside are still the ones created and maintained by the (original) app developer. It works this way to ensure you get continue to get updates when you are using someone else's intents. If you however want to be able to make modifications, and be able to import these intent to different apps that you have, you have to make them yours. Just like with the app, you do this by clicking Edit on the intent, and then accepting to fork it:

Capture d’écran 2019-08-05 à 10 51 13 first click edit on the intent you want to be able to edit and re-use

Capture d’écran 2019-08-05 à 10 51 16

Now you will have your own copy of this intent on your account, that you can edit and import to any of your apps.

flatsiedatsie commented 5 years ago

After adding a someone else's public app to your assistant, when you click to Edit it it offers to fork the app, creating your own copy

Ah, so that's it! I was wondering where that was! Thank you. I agree it's a little bit hidden.

Perhaps my user story is:

"I'd like to go shopping for intents from other apps that I may fork without having to install apps first."

This issue may be closed.

If you want I could create a new feature request for that user story.

pocketjoso commented 5 years ago

Glad to help, and thanks for the feedback about this being a bit hidden.

If you want I could create a new feature request for that user story.

Please do, it helps us prioritize our work. 👍