Skip to content
Snippets Groups Projects
Commit df732e5a authored by emelko's avatar emelko
Browse files

Adds text for end of 2nd phase before infertility

parent 19942d3a
No related branches found
No related tags found
No related merge requests found
......@@ -96,10 +96,17 @@ export const fertilityStatus = {
unknown: 'We cannot show any cycle information because no period data has been added.',
preOvuText: "With NFP rules, you may assume 5 days of infertility at the beginning of your cycle, provided you don't observe any fertile cervical mucus or cervix values.",
periOvuText: "We have not been able to detect both a temperature shift and cervical mucus or cervix shift. Please find more information on NFP rules here: https://gitlab.com/bloodyhealth/drip/wikis/home",
periOvuUntilEveningText: tempRule => {
return (
'We detected a temperature shift (' + ['regular', '1st exception', '2nd exception'][tempRule] +
' temperature rule), as well as a cervical mucus/cervix shift according to NFP rules. In the evening today you may assume infertility, but ' +
'always remember to double-check for yourself. Make sure the data makes sense to you.'
)
},
postOvuText: tempRule => {
return (
'We have detected a temperature shift (' + ['regular', '1st exception', '2nd exception'][tempRule] +
' temperature rule), as well as a cervical mucus shift according to NFP rules. You may assume infertility, but always remember to ' +
'We detected a temperature shift (' + ['regular', '1st exception', '2nd exception'][tempRule] +
' temperature rule), as well as a cervical mucus/cervix shift according to NFP rules. You may assume infertility, but always remember to ' +
'double-check for yourself. Make sure the data makes sense to you.'
)
}
......
......@@ -75,16 +75,19 @@ function formatStatus(phaseNameForDay, dateString, status) {
//there might not actually be any data for the phase
const peri = status.phases.periOvulatory
const phaseEnd = peri && peri.end
let s
let periStatus
let periStatusText
if (phaseEnd && phaseEnd.date === dateString) {
s = labels.fertileUntilEvening
periStatus = labels.fertileUntilEvening
periStatusText = labels.periOvuUntilEveningText(status.temperatureShift.rule)
} else {
s = labels.fertile
periStatus = labels.fertile
periStatusText = labels.periOvuText
}
return {
status: s,
status: periStatus,
phase: 2,
statusText: labels.periOvuText
statusText: periStatusText
}
},
postOvulatory: (dateString, status) => {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment