Commit Graph

133 Commits

Author SHA1 Message Date
Sebastien Stettler f30479db42
ci: add djlint to ci (#763)
* ci: add djlint to ci

* lint: all django templates
2024-02-06 05:35:36 -08:00
Christopher C. Wells c1e4876c20 Set explicit bounds on some graphs
Fixes #706
2024-01-27 19:42:12 -08:00
Christopher Charbonneau Wells 49d8f2b340
Update to Django 5.x (#746) 2024-01-13 20:22:08 -08:00
Xavier Mehrenberger bdeb14968a Fix link target for height percentile reports 2023-12-25 06:48:33 -08:00
Xavier Mehrenberger e519634748 Fix variable names in height_change.py
As requested by @cdubz in https://github.com/babybuddy/babybuddy/pull/741
2023-12-25 06:48:33 -08:00
Xavier Mehrenberger 6c4f5b23f0 feat: Height percentiles report (#719) 2023-12-25 06:48:33 -08:00
Nicholas Trecina 1063d39af0 Fixed report breadcrumbs being duplicated. Fixed DiaperChangeTypesChildReport pointing to the wrong report view. Fixed child sw
itcher for WHO weight percentiles boy/girl reports.
2023-12-17 04:57:07 -08:00
Michael Salaverry 1ebe5a5ce0 fix: graph start from left axis
https://github.com/babybuddy/babybuddy/pull/444#issuecomment-1281767322
2023-09-30 06:34:26 -07:00
Marco H 26e8a1f689 New statistic graph: Diaper change intervals
Fix formatting

Fix comment

Remove debug

Remove debug

Change naming of variable

Add new statistics graph: Feeding intervals

Fix naming

Add simple HTTP status code tests for new graphs

Remove number of feedings from graph

Remove obsolete yaxis2

Fix calculation of intervals and change scale to hours instead of minutes
2023-09-30 06:34:26 -07:00
Michael Salaverry 8d8006ab71
feat: Weight percentiles report #512 (#708)
* feat: weight percentiles report
https://github.com/babybuddy/babybuddy/issues/512

* fix: formatting on weight percentile graph to extend out only 1 day more than the last weigh in date
https://github.com/babybuddy/babybuddy/pull/708#discussion_r1332335789

* feat: pre-commit lint with black hook
tested and stops the python commit if formatting is bad. then it runs black and fixes the formatting, resulting in a new git change to add/commit again

---------

Co-authored-by: Christopher Charbonneau Wells <10456740+cdubz@users.noreply.github.com>
2023-09-27 06:24:53 -07:00
Christopher C. Wells ad5f81d84a Adopt new Bootstrap 5 dark mode support 2023-07-09 09:26:13 -07:00
John Merlie 0697565ea1 modified pumping amount graph 2023-07-09 08:48:54 -07:00
Christopher C. Wells 34fe811a54 Upgrade to Bootstrap 5 (#479)
* Update Tempus Dominus to v6 (WIP)

* Re-add calendar input prepend container

* Normalize setting of default date values

* Migrate to Bootstrap 5 (WIP)

* Remove deprecated card columns implementation from dashboard

* Update BS5 data props

* Use Masonry layout for dashboard cards (for now)

This doesn't seem particularly ideal so may need a more involved refactor

* Update styles for Bootstrap 5 deprecations

* Remove resolutions crap

* Refactor deprecated BS4 classes

* Update list table styles

* Refactor deprecated jumbotron class usages

* Update close button structure

* Add `v2` branch to standard CI workflows
2023-03-25 12:57:12 -07:00
Christopher C. Wells 90e16431b8 Format code 2023-02-10 06:14:37 -08:00
Christopher C. Wells cd44a473cf Replace references to Django core `User` model with `get_user_model` 2023-02-10 06:14:37 -08:00
Christopher C. Wells 1f5ec91d54 Implement formatting updates 2023-02-07 13:16:44 -08:00
Pavol Gazda 1784696715 Remove fill for temperature graph 2023-01-05 13:10:05 -08:00
Pavol Gazda a81d68ffdb Linting 2023-01-05 13:10:05 -08:00
Pavol Gazda 2725a864ef Add test for temperature report. 2023-01-05 13:10:05 -08:00
Pavol Gazda 2519dad74c Add reports for temperature readings 2023-01-05 13:10:05 -08:00
Anørak 9e1c21e7bd Add condition on tummytime-duration.py in order to display hours when necessary 2022-10-31 06:55:00 -07:00
Gary Glatfelter 6816349103 Corrections to last_end_time made to correctly calculate and display graphs on days where the sleep from the previous day did not cross over midnight. resolves babybuddy/babybuddy#554 2022-10-30 17:15:08 -07:00
Gary Glatfelter 46b4454f8b resolves #523 2022-10-17 19:40:53 -07:00
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