add event signature setting (helps to track who did what in case multiple people help out)
do not show seconds in event details (=> less visual clutter, the date picker does not allow to select seconds anyway)
Code Quality:
add fallback for metric detection
use property syntax and add more const
add help text for no-breastfeeding setting
Features:
- add bath event
- add puke event
- add event signature setting (helps to track who did what in case multiple people help out)
- do not show seconds in event details (=> less visual clutter, the date picker does not allow to select seconds anyway)
Code Quality:
- add fallback for metric detection
- use property syntax and add more const
- add help text for no-breastfeeding setting
Hello Moritz! Thanks for all the good work, and sorry for the late review: busy period...
I'm not sure about showing the seconds to 0, it presents a value not matching the real one. It'd be better to not have the seconds at all instead of showing a wrong value.
It may be possible just passing a parameter to getDateTimeInstance (see i.e. https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html#SHORT ).
May I ask you to change it?
Feel free to decide to remove the seconds or revert the change, at your will.
I reviewed the rest of the PR and seems very nice and sound to me!
Thank you a lot!
Hello Moritz! Thanks for all the good work, and sorry for the late review: busy period...
I'm not sure about showing the seconds to 0, it presents a value not matching the real one. It'd be better to not have the seconds at all instead of showing a wrong value.
It may be possible just passing a parameter to `getDateTimeInstance` (see i.e. https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html#SHORT ).
May I ask you to change it?
Feel free to decide to remove the seconds or revert the change, at your will.
I reviewed the rest of the PR and seems very nice and sound to me!
Thank you a lot!
hi, thank you for the review.
I tried to remove the seconds, but that was not working. That is why I opted to make it zero. I can try to remove it again or will revert the change.
hi, thank you for the review.
I tried to remove the seconds, but that was not working. That is why I opted to make it zero. I can try to remove it again or will revert the change.
@penguin86 I have found a way to not show the seconds (for API >= 24). Also, I have added a quantity for the puke evetn (little, normal, plenty). Let me know what you think. Maybe there are more fitting words to describe a quantity here.
@penguin86 I have found a way to not show the seconds (for API >= 24). Also, I have added a quantity for the puke evetn (little, normal, plenty). Let me know what you think. Maybe there are more fitting words to describe a quantity here.
I noticed a small bug with the bug event. For the puke amount I have the values 0/1/2 as quantity. That means the NumericUtils.formatEventQuantity will disregard the 0 value. Either we let quantity be a nullable (cleaner design) or we use 1/2/3 as quantity (quick and less intrusive).
Let me create a fix..
I noticed a small bug with the bug event. For the puke amount I have the values 0/1/2 as quantity. That means the NumericUtils.formatEventQuantity will disregard the 0 value. Either we let quantity be a nullable (cleaner design) or we use 1/2/3 as quantity (quick and less intrusive).
Let me create a fix..
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Features:
Code Quality:
This code might need some polishing. Maybe there something better for measuring a puke event...
609a9cb534to57504573f457504573f4tob1e035d03eb1e035d03etofbb3ad1faafbb3ad1faato38906623059c8f4af176to6af9c09a89instead of low/medium/high, little/-/plenty seems to be more fitting.
EDIT: I removed the quantity for puke events. Too much hassle.
6af9c09a89to7ec5e48b12[WIP] Add puke eventto [WIP] Add puke and bath events, add signature setting7ec5e48b12tod204b877f5d204b877f5to66fbc9b55f66fbc9b55ftod6b9df757cd6b9df757ctoac8eb209ebac8eb209ebtob0629e383bb0629e383bto4a443e19d3ready for review
4a443e19d3to6b6e55804d6b6e55804dtoce349fe1cfce349fe1cftof3fb584ec2Hello Moritz! Thanks for all the good work, and sorry for the late review: busy period...
I'm not sure about showing the seconds to 0, it presents a value not matching the real one. It'd be better to not have the seconds at all instead of showing a wrong value.
It may be possible just passing a parameter to
getDateTimeInstance(see i.e. https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html#SHORT ).May I ask you to change it?
Feel free to decide to remove the seconds or revert the change, at your will.
I reviewed the rest of the PR and seems very nice and sound to me!
Thank you a lot!
hi, thank you for the review.
I tried to remove the seconds, but that was not working. That is why I opted to make it zero. I can try to remove it again or will revert the change.
f3fb584ec2to50baa76d3550baa76d35toa90f939428@penguin86 I have found a way to not show the seconds (for API >= 24). Also, I have added a quantity for the puke evetn (little, normal, plenty). Let me know what you think. Maybe there are more fitting words to describe a quantity here.
a90f939428to71cf754ac871cf754ac8to7f67c758c9Thank you for your contribution Moritz!
Thank you for the review. Until next time.
I noticed a small bug with the bug event. For the puke amount I have the values 0/1/2 as quantity. That means the NumericUtils.formatEventQuantity will disregard the 0 value. Either we let quantity be a nullable (cleaner design) or we use 1/2/3 as quantity (quick and less intrusive).
Let me create a fix..