blueshiftone / streamdeck-toggl

⏱️ Make time tracking a 🍰 piece of cake, with Toggl Track and Elgato Stream Deck (Toggl Track integration for Stream Deck)
MIT License
10 stars 2 forks source link

Dialog to add project / task #1

Open savikko opened 4 months ago

savikko commented 4 months ago

First of all, thanks for taking care of this plug-in.

And secondly, thanks for enabling the issues on github repo :)

But, my feature request: I am working for multiple clients, but project/task changes from time to time.

What I would like to accomplish here is that I would have buttons for every customer on my Streamdeck. But, the project/task name would not be pre-defined.

When I press button for Customer A, it would open up me little dialog, where would be projects to selectable (filtered by that client) and then it would ask (autocomplete from previous entries) for task name.

Then, after filling out those details and pressing Enter, it would start the timer.

brentonrace commented 4 months ago

Interesting idea thanks @savikko , that could be useful for our team too. It doesn't look like the Streamdeck SDK has native support for that sort of dialog but I will look into options when I get some time.

artem-alek commented 2 months ago

Any updates on this? It would be a perfect use case for me too!

brentonrace commented 2 months ago

No sorry, I did have a look and couldn't see any easy solutions, so it may not be practical.

brentonrace commented 2 weeks ago

@savikko @artem-alek I've found there is a way to do something like this but usability is not amazing. It is possible to trigger a javascript prompt from a button press, which will open a popup like the one below, and give it focus so you can type into it: image

It only allows a single textbox though, no dropdown. It would be possible to chain a set of prompts though, e.g. enter project then hit okay and it opens another prompt to enter the description.

Do you think there is a way to work with that to achieve something close to what you want?