Commit Graph
100 Commits
Author SHA1 Message Date
Julia Friesel b455a030cc Label last day of post-ovu phase differently 2018-07-16 18:39:40 +02:00
Julia Friesel 79f17644d7 ComputedNfp => value 2018-07-16 18:21:58 +02:00
Julia Friesel c96d3d4550 Merge branch 'master' into 73-implement-nfp-logic-for-mucus-mode 2018-07-16 13:55:07 +02:00
Julia Friesel 7dee497431 Merge branch 'refactor' into 'master'
Refactor markup

See merge request bloodyhealth/drip!25
2018-07-16 09:26:38 +00:00
Julia Friesel 8639208018 Style radio button row 2018-07-15 23:01:10 +02:00
Julia Friesel eba5837350 Simplify markup and move symptom screens to symptom dir 2018-07-15 22:38:41 +02:00
Julia Friesel 9eb1ad6af1 Simplify home screen markup 2018-07-15 22:35:33 +02:00
Julia Friesel 0c92c85baf Simplify overview page markup 2018-07-15 22:32:47 +02:00
Julia Friesel cdbc42ea3a Move format and labels to cycleday component dir 2018-07-15 22:31:44 +02:00
Julia Friesel ec18bd7862 Introduce generic saveSymptom 2018-07-15 22:30:04 +02:00
Julia Friesel 18d6a8c05a Cleanup 2018-07-13 12:14:08 +02:00
Julia Friesel 85e2703b2f Get previous cycles before detecting fertility status 2018-07-13 11:30:54 +02:00
Julia Friesel 8a8b131064 Use new smpto module in day view 2018-07-13 09:10:00 +02:00
Julia Friesel de2233f998 Fix assert for bleeding value === null 2018-07-13 09:09:45 +02:00
Julia Friesel 125fd84d59 Add another test 2018-07-13 09:09:12 +02:00
Julia Friesel f4aca1f412 Use RN-compatible assert 2018-07-13 09:07:38 +02:00
Julia Friesel b3467005e1 Fix line length linter warnings 2018-07-13 07:20:52 +02:00
Julia Friesel 7382bff0dd Implement minus 8 day rule 2018-07-13 07:14:36 +02:00
Julia Friesel d5aa903da4 Check for fhm according to nfp, not just temp shift 2018-07-13 06:44:23 +02:00
Julia Friesel 93ff7a0f8f Set up failing test for minus 8 rule 2018-07-12 11:55:42 +02:00
Julia Friesel 19e880183e Accept previousCycles as array 2018-07-11 14:14:42 +02:00
Julia Friesel 9e645ddd8e Add more tests for combinations of fhm and mucus peak 2018-07-11 13:00:16 +02:00
Julia Friesel a1306cd7c5 Use assert for args check 2018-07-10 17:18:50 +02:00
Julia Friesel 60c6189466 Shorten pre-ovu phase when early mucus 2018-07-10 17:04:54 +02:00
Julia Friesel d027c6e9c4 Throw if args are wrong 2018-07-10 16:37:38 +02:00
Julia Friesel 81b7b46b23 Use explicit dates with gaps and fix bugs that this uncovers 2018-07-10 14:22:40 +02:00
Julia Friesel 0de009335f Handle pre-ovulatory = current 2018-07-10 13:22:34 +02:00
Julia Friesel 51bd75fb0f Extract fixtures 2018-07-10 13:10:53 +02:00
Julia Friesel 672235a475 Detect all 3 phases 2018-07-10 13:03:19 +02:00
Julia Friesel f7e1152fdc Implement 5-day-rule 2018-07-10 12:35:40 +02:00
Julia Friesel 0179c4588e Detect pre- and postovulatory phase with no previous higher measurement 2018-07-10 10:56:33 +02:00
Julia Friesel 77ad491d30 Return evaluation completed day from mucus eval 2018-07-10 10:55:33 +02:00
Julia Friesel 9102bce7ce Return cycle phase starts 2018-07-05 14:28:21 +02:00
Julia Friesel 836bea778c Combine temp and mucus evaluation 2018-07-05 13:53:06 +02:00
Julia Friesel f1f9c7773a Expect cycle days, not numbers, in getTemperatureStatus 2018-07-05 12:10:18 +02:00
Julia Friesel 537b8c7647 For 3 following values, look at mucus days, not cycle days 2018-07-05 09:51:54 +02:00
Julia Friesel 2f8054c1fa Add mucus shift detection 2018-07-05 09:39:08 +02:00
Julia Friesel e4bae38d13 Introduce facade for sympto 2018-07-05 09:39:08 +02:00
Julia Friesel fb990b5a4b Fix tests to fit new sympto api 2018-07-05 09:39:08 +02:00
Julia Friesel 9c1876e876 Change sympto module structure 2018-07-05 09:39:08 +02:00
Julia Friesel 1c791df5ad Hook up fertility temp status to app 2018-07-05 09:39:08 +02:00
Julia Friesel 03a0f1fb75 Implement second exception rule 2018-07-05 09:39:08 +02:00
Julia Friesel 8db92e96f3 Add tests for invalid shifts 2018-07-05 09:39:08 +02:00
Julia Friesel 1eb3f4a14a Change API so it doesn't return unnecessary info 2018-07-05 09:39:08 +02:00
Julia Friesel a90d393545 Return potential high temps as well 2018-07-05 09:39:08 +02:00
Julia Friesel 5e0601320b Add test for less than 6 low temps 2018-07-05 09:39:08 +02:00
Julia Friesel d1f2922357 Change function signature and remove fixtures 2018-07-05 09:39:08 +02:00
Julia Friesel e1f473de3b Detect missing shifts 2018-07-05 09:39:08 +02:00
Julia Friesel 9e92f072de Add 1st exception rule 2018-07-05 09:39:08 +02:00
Julia Friesel 3a090c5d8a For temperature, add 2 passing test for simple happy path 2018-07-05 09:39:08 +02:00
Julia Friesel 28b880a40c Gather general cycle-related functions in cycle module 2018-07-05 09:39:08 +02:00
Julia Friesel 97b8452b45 Add first failing test 2018-07-05 09:39:08 +02:00
Julia Friesel 33393f498a Extract getLastMensesStart 2018-07-05 09:39:08 +02:00
Julia Friesel ecbd00a3f9 Merge branch 'add-test-watch-mode' into 'master'
Add test watch npm script

See merge request bloodyhealth/drip!21
2018-07-04 15:37:31 +00:00
Julia Friesel a90f2961bc Add test watch npm script 2018-06-30 16:14:53 +02:00
Julia Friesel 77f8f0fddd Merge branch '84-clean-up-folder-structure' into 'master'
Resolve "clean up folder structure"

Closes #48

See merge request bloodyhealth/drip!19
2018-06-28 09:50:23 +00:00
Julia Friesel b5af3f7c13 Make directories for styles and labels 2018-06-28 11:34:55 +02:00
Julia Friesel 46040f1a77 Create components and lib folder 2018-06-28 10:58:56 +02:00
Julia Friesel 35f39291b8 Merge branch 'diy-svg' into 'master'
Temperature chart

See merge request bloodyhealth/drip!18
2018-06-27 11:05:10 +00:00
Julia Friesel ae39faaa72 Improve var names 2018-06-27 13:03:11 +02:00
Julia Friesel 4a151ba0d1 Hide scroll bar 2018-06-27 11:54:51 +02:00
Julia Friesel 3f621c3c44 Purple -> green 2018-06-26 21:56:12 +02:00
Julia Friesel c51ff57c33 Remove first and last tick on y axis so it looks nicer 2018-06-26 21:46:16 +02:00
Julia Friesel e973c8a3e4 Add horizontal grid 2018-06-26 21:41:04 +02:00
Julia Friesel 23bcc71943 Produce yAxis only once, return y axis tick positions 2018-06-26 21:06:43 +02:00
Julia Friesel d1759b0cff Add first version of y axis 2018-06-26 01:37:00 +02:00
Julia Friesel c01760aa3e Grey out excluded temperatures 2018-06-25 17:20:13 +02:00
Julia Friesel a205f432ed Style x axis labels a bit nicer 2018-06-25 16:36:37 +02:00
Julia Friesel d31783d293 Blood drop! 2018-06-25 16:31:02 +02:00
Julia Friesel 7f88262435 Extract styles and config 2018-06-25 14:06:31 +02:00
Julia Friesel 9938cc48c8 Display cycle day number along with date 2018-06-25 11:04:51 +02:00
Julia Friesel f87f676a99 Draw curve as FlatList instead of monolithic SVG 2018-06-24 22:31:35 +02:00
Julia Friesel fd672ad053 Handle clicks on day column through trasnparent rectangle 2018-06-24 14:57:31 +02:00
Julia Friesel c122344b0f Re-render when bleeding value changes 2018-06-22 15:53:03 +02:00
Julia Friesel c20cadf041 Re-render chart on temp change 2018-06-22 15:43:32 +02:00
Julia Friesel dc8306ff7b Display dot for each temp value 2018-06-22 12:09:58 +02:00
Julia Friesel 3420ac3f87 Move chart t to new component folder 2018-06-20 17:26:04 +02:00
Julia Friesel e39a731ddc Produce multiple curves for discrete cchunks of temps 2018-06-20 17:12:26 +02:00
Julia Friesel 26d6e7f4a1 Exclude data for future dates 2018-06-20 16:02:08 +02:00
Julia Friesel e85e1c0de9 Clean up 2018-06-19 16:17:36 +02:00
Julia Friesel cb21496e2f Make chart scrollable 2018-06-19 15:45:45 +02:00
Julia Friesel 7a9b3558cf Simple way to place bleeding symbol 2018-06-19 12:03:09 +02:00
Julia Friesel c09d681a9d Add key to column 2018-06-19 11:40:52 +02:00
Julia Friesel 84d693a261 Make things slightly prettier 2018-06-19 11:39:31 +02:00
Julia Friesel 7366f65c48 Make day columns clickable and render temp points in middle of column 2018-06-19 11:26:54 +02:00
Julia Friesel 7c6ceb06f5 WIP: Draw curve on current grid 2018-06-19 11:01:38 +02:00
Julia Friesel ea6341af79 Merge branch '77-bug-stale-cycle-day-number' into 'master'
Resolve "bug: stale cycle day number"

Closes #77

See merge request bloodyhealth/drip!16
2018-06-15 15:31:03 +00:00
Julia Friesel a46eb4421b Only remove component's listener, not all 2018-06-15 16:04:05 +02:00
Julia Friesel 1660db41e0 Merge branch '57-refactor-day-view-to-share-state-with-children' into 'master'
Resolve "refactor day view to share state with children"

Closes #57

See merge request bloodyhealth/drip!15
2018-06-15 11:00:24 +00:00
Julia Friesel c72e8d45a9 Rename screen in navigtor 2018-06-14 14:59:43 +02:00
Julia Friesel be0b9ba09e Rename showView callback 2018-06-14 14:49:57 +02:00
Julia Friesel 5041a45576 Rename cycle day container and overview component 2018-06-14 14:48:09 +02:00
Julia Friesel 547d3f7a12 Also navigate to day container from 'edit today' button 2018-06-14 14:11:10 +02:00
Julia Friesel 7dc78ff32c Only show cycle day label when there is a cycle day number 2018-06-14 14:05:14 +02:00
Julia Friesel 166c69581b Disable prop-types rule 2018-06-14 14:02:07 +02:00
Julia Friesel dd8b527f96 Remove navigate from temperature component 2018-06-14 12:08:46 +02:00
Julia Friesel 38b8507091 Remove superfluous listener remove 2018-06-14 11:18:20 +02:00
Julia Friesel 2a1c7fce7c Make bleeding view into a child component 2018-06-14 11:11:23 +02:00
Julia Friesel 7e66b4897f Merge branch '11-make-getcycleday-module' into 'master'
Resolve "Make getCycleDay module"

Closes #11

See merge request bloodyhealth/drip!5
2018-06-13 12:08:45 +00:00
Julia Friesel 94f148ed15 Merge branch 'master' into 11-make-getcycleday-module 2018-06-13 13:44:06 +02:00