-
Notifications
You must be signed in to change notification settings - Fork 24
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
billed time in project progress view #4236
Conversation
@MichaelBuessemeyer The backend now reports |
@fm3 the backend should be ready to review 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backend LGTM
…bleminds/webknossos into billed-hours-project-progress-view
@daniel-wer Could you please review the frontend part? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, LGTM, apart from a small change 👍
title="Time [h]" | ||
dataIndex="billedMilliseconds" | ||
sorter={Utils.compareBy(typeHint, project => project.billedMilliseconds)} | ||
render={number => Utils.millisecondsToHours(number).toLocaleString()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toLocaleString
seems to show up to three decimal places by default. Although the original request was to floor this number, I see a benefit in seeing a decimal place. Three may be a bit too much, but you can supply some options to toLocaleString
, I'd go with 1 or 2: .toLocaleString(undefined, { maximumFractionDigits: 1})
:)
URL of deployed dev instance (used for testing):
Steps to test:
Issues:
[ ] Updated migration guide if applicable[ ] Updated documentation if applicable[ ] Adapted wk-connect if datastore API changes[ ] Needs datastore update after deployment