Open jotwewe opened 9 years ago
Needs a setting but no reason not to implement.
I think we should do this for the due date picker but leave the intermediary step for the threshold date. For the threshold date, I think we should change from a dialogue to either a menu or a bottom sheet.
I am considering adding a onThreshold callback which will return a list of options and dates as preselection. If it returns nil, the intermediate step will be skipped.
Another option is to create a custom date picker.
Not as intimidating as it sounds: the custom picker is just a standard picker but with some quick options along the bottom or side. That way you get both the quick options and the picker with the same number of taps.
I also like the callback idea, though it should be something like onPickThreshold
since onThreshold
sounds like it is triggered on that date.
If you end up going that route, we should have a corresponding onPickDue
callback, too.
I very much like the idea of a custom date picker. Skipping the intermediate list would also work fine for me in the meantime.
I often pick two following thresholds: next weekday and next weekend. As a matter of fact I very often end up opening the calendar.
Custom date picker sounds good. It does have the drawback that it will be hard to fit it all in on dialog.
Other idea. Have a calendar picker and a dropdown with custom picks which can be configured using the recurrence syntax and is prefilled with the current options.
I think we'll be fine fitting it on a dialog. Or a bottom sheet. Or tab.
We have options :wink:
Configurable custom picks sounds good long run but let's take things one at a time. I'd rather get the UI into something closer to its "final" (as if anything is final) form before doing polish like that.
enhancement: when the calendar dialog is used to pick a date I'd prefer to leave out the intermediate list (today, tomorrow, next week, ...) and directly show the calendar dialog.