eficode / pipeline-the-game

A digital version of: https://www.praqma.com/stories/pipeline-card-game/
GNU General Public License v3.0
24 stars 2 forks source link

Minutes is truncated #258

Open RandomSort opened 3 years ago

RandomSort commented 3 years ago

Nicolaj noticed that the place holder in the card truncates minutes in a not so pretty way. See screenshot.

Perhaps it would be better as 15m or 15 mins. image

sofusalbertsen commented 3 years ago

Yes, during development, when asked about what would be plausible to type there people wrote all kinds of things like "4 minutes more or less" Or "it depends", so we can't rely that people only type metrics that are computer parseable in. Do you have a suggestion for how to handle that?

rams23 commented 3 years ago

@sofusalbertsen in other projects we used a text parser from Microsoft (here) to get parsed time units from a text. Either you can enforce the input with a number and a time unit, or if you want to let it free, we can use a library like that one to parse a time interval into a standard representation.