Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
evilham opened this issue Feb 25, 2018 · 1 comment
Open

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

evilham opened this issue Feb 25, 2018 · 1 comment

Comments

@evilham
Copy link
Collaborator

evilham commented Feb 25, 2018

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:

  • Month date: for anything under 1 year
  • "Next year" for anything between 1-2 years
  • "In X years" for X years, with X between 2-10 years
  • "Someday" for anything over 10 years

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

@AnotherKamila
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants