justicenation / slashclock

/clock concept as a new Slack app
GNU General Public License v3.0
0 stars 0 forks source link

Round numbers in report #29

Closed martyychang closed 6 years ago

martyychang commented 6 years ago

Right now, the numbers that show up in a report are as detailed as possible where open time entries are involved.

Below are your stats for the week. Mon 5.1859077777777777777777777777777774445h Tue 0h Wed 0h Thu 0h Fri 0h Sat 0h Sun 0h

This looks really terrible and would likely be a turnoff for most users. It would be better for numbers to be rounded to just one or two digits after the decimal point.

martyychang commented 6 years ago

This almost requires a user preference setting... which seems overly complicated compared to simply rounding the numbers. However, the question is: To what decimal should the number be rounded? Personally right now I want numbers rounded to every quarter-integer increment—0.0, 0.25, 0.5, 0.75—but in past lives and in other people's lives I know there's a desire to round to every tenth, or perhaps even to every twentieth.

martyychang commented 6 years ago

So... perhaps then to "simplify" matters, when a report reflects an open time entry, the open time entry should be presented as if it was closed and rounded at the time the report was generated

martyychang commented 6 years ago

To avoid scope creep in this particular issue, and to hopefully simply implementation, I'm going to peg the Ux for this issue as follows