Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
backup
Drip
Commits
cffa42ed
Commit
cffa42ed
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Add explainers to mucus
parent
98fbacf9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/cycle-day/labels/labels.js
+12
-2
12 additions, 2 deletions
components/cycle-day/labels/labels.js
components/cycle-day/symptoms/mucus.js
+31
-25
31 additions, 25 deletions
components/cycle-day/symptoms/mucus.js
with
43 additions
and
27 deletions
components/cycle-day/labels/labels.js
+
12
−
2
View file @
cffa42ed
export
const
bleeding
=
[
'
spotting
'
,
'
light
'
,
'
medium
'
,
'
heavy
'
]
export
const
bleeding
=
[
'
spotting
'
,
'
light
'
,
'
medium
'
,
'
heavy
'
]
export
const
mucusFeeling
=
[
'
dry
'
,
'
nothing
'
,
'
wet
'
,
'
slippery
'
]
export
const
mucusTexture
=
[
'
nothing
'
,
'
creamy
'
,
'
egg white
'
]
export
const
mucusNFP
=
[
'
t
'
,
'
Ø
'
,
'
f
'
,
'
S
'
,
'
S+
'
]
export
const
mucusNFP
=
[
'
t
'
,
'
Ø
'
,
'
f
'
,
'
S
'
,
'
S+
'
]
export
const
intensity
=
[
'
low
'
,
'
medium
'
,
'
high
'
]
export
const
intensity
=
[
'
low
'
,
'
medium
'
,
'
high
'
]
...
@@ -19,6 +17,18 @@ export const cervix = {
...
@@ -19,6 +17,18 @@ export const cervix = {
}
}
}
}
export
const
mucus
=
{
feeling
:
{
categories
:
[
'
dry
'
,
'
nothing
'
,
'
wet
'
,
'
slippery
'
],
explainer
:
'
What does your vaginal entrance feel like?
'
},
texture
:
{
categories
:
[
'
nothing
'
,
'
creamy
'
,
'
egg white
'
],
explainer
:
"
Looking at and touching your cervical mucus, which describes it best?
"
},
excludeExplainer
:
"
You can exclude this value if you don't want to use it for fertility detection
"
}
export
const
desire
=
{
export
const
desire
=
{
header
:
'
Intensity
'
,
header
:
'
Intensity
'
,
explainer
:
'
How would you rate your sexual desire?
'
explainer
:
'
How would you rate your sexual desire?
'
...
...
This diff is collapsed.
Click to expand it.
components/cycle-day/symptoms/mucus.js
+
31
−
25
View file @
cffa42ed
...
@@ -6,14 +6,11 @@ import {
...
@@ -6,14 +6,11 @@ import {
}
from
'
react-native
'
}
from
'
react-native
'
import
styles
from
'
../../../styles
'
import
styles
from
'
../../../styles
'
import
{
saveSymptom
}
from
'
../../../db
'
import
{
saveSymptom
}
from
'
../../../db
'
import
{
import
{
mucus
as
labels
}
from
'
../labels/labels
'
mucusFeeling
as
feelingLabels
,
mucusTexture
as
textureLabels
}
from
'
../labels/labels
'
import
computeSensiplanValue
from
'
../../../lib/sensiplan-mucus
'
import
computeSensiplanValue
from
'
../../../lib/sensiplan-mucus
'
import
ActionButtonFooter
from
'
./action-button-footer
'
import
ActionButtonFooter
from
'
./action-button-footer
'
import
SelectTabGroup
from
'
../select-tab-group
'
import
SelectTabGroup
from
'
../select-tab-group
'
import
{
SymptomSection
Header
}
from
'
../../app-text
'
import
SymptomSection
from
'
./symptom-section
'
;
export
default
class
Mucus
extends
Component
{
export
default
class
Mucus
extends
Component
{
...
@@ -37,42 +34,51 @@ export default class Mucus extends Component {
...
@@ -37,42 +34,51 @@ export default class Mucus extends Component {
render
()
{
render
()
{
const
mucusFeeling
=
[
const
mucusFeeling
=
[
{
label
:
feelingLabel
s
[
0
],
stateKey
:
''
},
{
label
:
labels
.
feeling
.
categorie
s
[
0
],
stateKey
:
''
},
{
label
:
feelingLabel
s
[
1
],
value
:
1
},
{
label
:
labels
.
feeling
.
categorie
s
[
1
],
value
:
1
},
{
label
:
feelingLabel
s
[
2
],
value
:
2
},
{
label
:
labels
.
feeling
.
categorie
s
[
2
],
value
:
2
},
{
label
:
feelingLabel
s
[
3
],
value
:
3
}
{
label
:
labels
.
feeling
.
categorie
s
[
3
],
value
:
3
}
]
]
const
mucusTexture
=
[
const
mucusTexture
=
[
{
label
:
textureLabel
s
[
0
],
value
:
0
},
{
label
:
labels
.
texture
.
categorie
s
[
0
],
value
:
0
},
{
label
:
textureLabel
s
[
1
],
value
:
1
},
{
label
:
labels
.
texture
.
categorie
s
[
1
],
value
:
1
},
{
label
:
textureLabel
s
[
2
],
value
:
2
}
{
label
:
labels
.
texture
.
categorie
s
[
2
],
value
:
2
}
]
]
return
(
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
ScrollView
style
=
{
styles
.
page
}
>
<
ScrollView
style
=
{
styles
.
page
}
>
<
View
>
<
SymptomSection
<
SymptomSectionHeader
>
Feeling
<
/SymptomSectionHeader
>
header
=
'
Feeling
'
explainer
=
{
labels
.
feeling
.
explainer
}
>
<
SelectTabGroup
<
SelectTabGroup
buttons
=
{
mucusFeeling
}
buttons
=
{
mucusFeeling
}
onSelect
=
{
val
=>
this
.
setState
({
feeling
:
val
})}
onSelect
=
{
val
=>
this
.
setState
({
feeling
:
val
})}
active
=
{
this
.
state
.
feeling
}
active
=
{
this
.
state
.
feeling
}
/
>
/
>
<
SymptomSectionHeader
>
Texture
<
/SymptomSectionHeader
>
<
/SymptomSection
>
<
SymptomSection
header
=
'
Texture
'
explainer
=
{
labels
.
texture
.
explainer
}
>
<
SelectTabGroup
<
SelectTabGroup
buttons
=
{
mucusTexture
}
buttons
=
{
mucusTexture
}
onSelect
=
{
val
=>
this
.
setState
({
texture
:
val
})}
onSelect
=
{
val
=>
this
.
setState
({
texture
:
val
})}
active
=
{
this
.
state
.
texture
}
active
=
{
this
.
state
.
texture
}
/
>
/
>
<
View
style
=
{
styles
.
symptomViewRowInline
}
>
<
/SymptomSection
>
<
SymptomSectionHeader
>
Exclude
<
/SymptomSectionHeader
>
<
SymptomSection
<
Switch
header
=
"
Exclude
"
onValueChange
=
{(
val
)
=>
{
explainer
=
{
labels
.
excludeExplainer
}
this
.
setState
({
exclude
:
val
})
inlineExplainer
=
{
true
}
}}
>
value
=
{
this
.
state
.
exclude
}
<
Switch
/
>
onValueChange
=
{(
val
)
=>
{
<
/View
>
this
.
setState
({
exclude
:
val
})
<
/View
>
}}
value
=
{
this
.
state
.
exclude
}
/
>
<
/SymptomSection
>
<
/ScrollView
>
<
/ScrollView
>
<
ActionButtonFooter
<
ActionButtonFooter
symptom
=
'
mucus
'
symptom
=
'
mucus
'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment