AnotherKamila / tasksched

An opinionated Taskwarrior web UI. Great for scheduling when to do your tasks.
MIT License
37 stars 3 forks source link

Better handling of anything between "next year" to "someday #24

Open evilham opened 6 years ago

evilham commented 6 years ago

Follow up for #22 (thank you @robertbasden !).

Tasksched shows only "Month date", and "someday" for anything over 10 years; which can be confusing if something is scheduled on say, March 20th 2019 (today being February 2018).

Maybe we want to have 4 tiers of date formatting:

@AnotherKamila mentioned that these conditionals should go out of TaskView.elm as a date formatting function, she'll probably add details on that :).

AnotherKamila commented 6 years ago

Indeed, a refactoring would be good: instead of having ifs in the HTML, the TaskView.elm functions should use functions from Date/Human.elm (which already accept a now parameter). The stuff in Date/Human.elm should be expanded to handle this use.