mint-o-badges / badgr-ui

GNU Affero General Public License v3.0
4 stars 2 forks source link

ui: display hours instead of minutes #770

Open zven opened 2 weeks ago

zven commented 2 weeks ago

At the moment, users can enter minutes when creating badges.

Up to a certain duration, we are showing minutes (120 min.), after that hours with 0.5 steps (always rounding up). We should do this in a consistent way and are currently discussing two options:

  1. We always show minutes and hours in combination e.g. 1 h 12 min, 13 h or 59 min. We would also provide separate hour and minute fields for the duration information of badges / competencies.

  2. As already implemented in the learning path feature we could also display the duration information in the format HH:MM Stunden or HH:MM h. The duration input fields for badges and competencies would need to be adjusted to only accept this format (and highlight that in a smart way).

Update time display / entry information in the following places:

zven commented 1 week ago

Update: currently waiting for decision.

zven commented 4 days ago

After talking to @Annicelia: We go with version 2. HH:MM h

umut0 commented 4 days ago

There is an hourPipe in the learningPath PR that converts times into this fomat.

umut0 commented 4 days ago

image We leave this field as it is? or also the h representation?

Annicelia commented 3 days ago

can you round up or down here so that there is always a full number of hours without minutes? then I would leave it like it is, "82 Stunden". and please make it "Lernzeit" instead of "Lernzeiten"

zven commented 1 day ago

Extra todo: Limit input form to max 999:59 h

umut0 commented 1 day ago

The pdf will be fixed in #716