alexanderwe / Zeit

Zeit is a native companion app for the Timing Mac App
3 stars 0 forks source link

Search bar for searching single tasks #4

Open alexanderwe opened 4 years ago

alexanderwe commented 4 years ago

As a user it would be good to have search bar where single tasks can be searched.

MrMage commented 4 years ago

Luckily, the Timing API allows passing a search query: https://web.timingapp.com/docs/#return-a-list-of-tasks

In case you want to implement find-as-you-type, I would suggest throttling requests a bit (i.e. not send a request after each key press), to avoid overloading the API.

alexanderwe commented 4 years ago

Throttling requests should be easy with Combine. I plan to use .debounce(for: .milliseconds(500), scheduler: SomeScheduler) in the publisher chain for searching tasks