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

Minutes is truncated #258

Open
RandomSort opened this issue Mar 19, 2021 · 2 comments
Open

Minutes is truncated #258

RandomSort opened this issue Mar 19, 2021 · 2 comments

Comments

@RandomSort
Copy link

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
Copy link
Contributor

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
Copy link
Collaborator

rams23 commented Mar 25, 2021

@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.

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

No branches or pull requests

3 participants