-
Notifications
You must be signed in to change notification settings - Fork 5
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
Display Time Accounting by Science Band #4556
Conversation
toddburnside
commented
Feb 13, 2025
BundleMonFiles updated (1)
Unchanged files (7)
Total files change -338B -0.01% Final result: ✅ View report in BundleMon website ➡️ |
8431cb8
to
e40c9e7
Compare
private type DataMap = Map[Option[ScienceBand], Either[TimeSpan, BigDecimal]] | ||
|
||
extension (e: Either[TimeSpan, BigDecimal]) | ||
def toCell: VdomNode = e match |
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.
Nice.
Maybe we want private def toCell
?
case Right(bd) => f"${bd * 100}%.1f%%" | ||
|
||
extension (l: List[BandedProgramTime]) | ||
def toTimeSpanMap: TimeSpanMap = |
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.
Same here, private.
val completion: Row = completionRow(plannedMap, usedMap) | ||
List(planned, used, completion) | ||
|
||
// A Row is also used for the table metadata for creating the footer |
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.
🤯
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.
LGTM, with very minor comments.