Commit Graph

110 Commits

Author SHA1 Message Date
Jean-Louis Jouannic 0cd989ff96 🚸 adds a child quick switch in breadcrumb
This quick switch is available in dashboard, timeline and reports breadcrumbs
and allows to quickly switch to the "same" page but for another child
2022-08-03 10:45:22 -07:00
Alpha Chen c98f6cd433
Fix 500 in sleep pattern (#487) 2022-06-17 06:40:28 -07:00
appletalk b2c228fac9
Use local timezone for pumping graph data (#478) 2022-06-10 22:00:40 -07:00
Christopher C. Wells 838020ceff Update Faker API usage 2022-05-28 07:02:13 -07:00
Christopher C. Wells 348e622321 Refactor naming pattern of simple "change" graphs 2022-05-28 07:02:13 -07:00
Marco H 1d5780154e Fix KeyError at /children/x/reports/sleep/pattern/ 2022-05-22 12:49:59 -07:00
bugbountyguy 0d89574a65 Fix lint issues 2022-04-04 20:39:39 -07:00
bugbountyguy de186a7c56 Remove print statement 2022-04-04 20:39:39 -07:00
bugbountyguy 11bb6163b7 Fix bug when date is updated to earlier date 2022-04-04 20:39:39 -07:00
bugbountyguy 900f838d63 Fix graphs for pumping amounts 2022-04-04 20:39:39 -07:00
bugbountyguy 2e8aa9f8d8 Move pumping to alphabetize report list 2022-04-04 20:39:39 -07:00
bugbountyguy 9b4bbef5bf Change reading to entry and other PR feedback 2022-04-04 20:39:39 -07:00
bugbountyguy 4ceb6095d3 Rename breastpump to pumping 2022-04-04 20:39:39 -07:00
bugbountyguy 5c45b037f0 Finish up adding the brestpump measurement 2022-04-04 20:39:39 -07:00
bugbountyguy 44648ce33b add tests 2022-04-04 20:39:39 -07:00
Christopher C. Wells 20d9cab158 Change reports list to a page
Fixes #379
2022-02-26 13:23:43 -08:00
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08:00
ubu 843160276f Address comments on PR babybuddy/babybuddy#384 2022-02-05 17:02:32 -08:00
alzyee 264bfb970b Don't display total in legend
total is always 0 in the graph
2022-02-05 17:02:32 -08:00
alzyee 37b3205cf8 fix lint 2022-02-05 17:02:32 -08:00
alzyee 8c34075696 breakout feeding types 2022-02-05 17:02:32 -08:00
Louis 5f9fe99e7b
fix(sleep-reports): #286 Init all days in the period to remove gaps (#341)
* fix(sleep-reports): #286 Init all days in the period to remove gaps

* Only account for dates (not times) in sleep graph dates init

Co-authored-by: Christopher C. Wells <git@chris-wells.net>
2021-12-31 10:17:21 -05:00
Yulian Kuncheff 0af4521005 Linting and faker changes 2021-12-31 09:19:53 -05:00
Yulian Kuncheff 9b604627a1 Add Height, Head Circumference, and BMI, corresponding reports, and move to separate menu with Weight and Temperature. 2021-12-31 09:19:53 -05:00
Christopher C. Wells 81aa3b25b0 Correct object member access syntax 2021-11-03 20:10:37 -07:00
codisart bb8466b51b refacto(sleep-reports): #283 Replace times and labels lists by a single days list. 2021-11-03 20:10:37 -07:00
codisart c76f7d7d2d refacto(sleep-reports): #283 Rename some variables and add constants for magic strings 2021-10-30 07:23:15 -07:00
Ohad Lutzky a5ec2d85c8
Add tummy time duration report (#316) 2021-10-04 12:37:11 -07:00
Christopher C. Wells 0e6a5cb08a Prevent caching of pages requiring authentication 2021-09-16 19:34:33 -07:00
Christopher C. Wells c850998b64 Remove deprecated `icon` base class usage 2021-08-31 08:08:13 -07:00
fodi666 de1a8f230a Update sleep_pattern.py
i removed the 'autorange' attribute and reversed the axis manually
2021-08-29 04:48:25 -07:00
fodi666 0e07fce976 reversing y-axis of sleep plot (top to down) 2021-08-29 04:48:25 -07:00
Christopher C. Wells e137676bcd Use `TIME_FORMAT` in sleep pattern graph
Fixes #287
2021-08-28 13:57:31 -07:00
Christopher C. Wells fb16cdb676 Don't show hover text on sleep pattern bars 2021-08-28 13:30:36 -07:00
Christopher C. Wells 1802733fd7 Do not show time on sleep graph x-axis; center bars
Closes #288
2021-08-27 20:47:52 -07:00
Christopher C. Wells ce805f501b Ensure lists are initialized for sleep pattern graph days
Fixed #293
2021-08-27 20:06:18 -07:00
Beni Cherniavsky-Paskin 29ef9f4f75 child slugs: allow unicode
This results in %-encoded URLs, but modern browsers display the unicode
chars (e.g. https://babybuddy.../children/мааян-паскин-чернявский).
2021-04-30 14:47:08 -07:00
Christopher C. Wells e6838a0c0f Correct sleep graph handling for entries that cross DST 2021-04-11 13:56:40 -07:00
Christopher Charbonneau Wells 3f1a7d9a9d
Refactor to remove pandas dependency (#177)
* Use regular dicts for sleep pattern (WIP)

* Remove dataframes code from sleep pattern graph

* Reimplement UTC offset change handling

* Move label formatting in to a function

* Remove pandas!

* Fix linting issue

* Add dev requirements to generated requirements.txt

* Stop committing Pipfile.lock

Pipenv is designed to pin to a specific version of Python. Including the lock
file can lead to failed builds or broken package configurations on different
system architectures and/or Python versions.
2020-12-02 20:15:22 -08:00
Christopher C. Wells 4d74df27d9 Remove padding and borders from Sleep Pattern graph 2020-03-17 05:42:24 -07:00
Christopher C. Wells f0d763d374 Remove exception handling for Plotly output (#69)
At some point in Plotly 3.x, the offline graph output was changed to produce
two script tags instead of the initial one. With Plotly 4.x, that change was
reverted and the output now always has only a single script tag again.
2020-02-14 11:29:33 -08:00
Christopher C. Wells 3a7c8c92fd Add a Diaper Change amounts report 2020-01-26 14:12:27 -08:00
Christopher C. Wells a93070c5ba Add locale support for datetime picker 2020-01-20 15:50:35 -08:00
Christopher C. Wells 5fb2627c19 Move Plotly locales in to `graph.js` 2020-01-20 15:50:35 -08:00
Christopher C. Wells 2627b1cbfd Add Turkish translations 2020-01-16 19:42:49 -08:00
Christopher C. Wells f6b5126dfd Add Spanish translations 2020-01-16 19:33:03 -08:00
Ben Nelson 1cbd78193c Spelling corrections for 'not enough information to generate this report' message 2019-12-14 13:10:16 -08:00
Christopher C. Wells 9da0f2a1d5 Add locale support to Plotly graphs 2019-11-09 16:42:51 -08:00
Christopher C. Wells 3ae4010bb2 Replace use of deprecated Pandas method. 2019-08-22 20:12:35 -07:00
Christopher C. Wells c45e8ef53b Sum amounts and account for timezone in "Feeding Amounts" report. (#68) 2019-05-29 14:38:30 -07:00