Commit Graph

458 Commits

Author SHA1 Message Date
billybonks f28df6ecf3 lint: lint all js and sjon files with prettier 2024-02-07 19:46:51 -08:00
billybonks 5ccca11b42 bugfix: dashboard shows ago when less then 1minute 2024-02-07 04:58:49 -08:00
Sebastien Stettler 682090f594
feat: add links for bottle feeding (#764)
Co-authored-by: Christopher C. Wells <git-2022@chris-wells.net>
2024-02-06 20:17:54 -08:00
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
billybonksl 3c54636790 feat: create a trimmed form just for bottle feeding.
While Feeding for is great, i think there is room to create optimised
forms for breast feeding and bottle feeding.

This is the first one a trimmed down form for bottle feeding
specifically
2024-01-28 06:03:41 -08:00
Christopher C. Wells c1e4876c20 Set explicit bounds on some graphs
Fixes #706
2024-01-27 19:42:12 -08:00
Christopher C. Wells e65b1749e0 Catch invalid object ID in form initial setup
Fixes #735
2024-01-27 09:32:51 -08:00
Christopher C. Wells 413338c236 Correct error string 2024-01-20 06:13:53 -08:00
Christopher Charbonneau Wells 49d8f2b340
Update to Django 5.x (#746) 2024-01-13 20:22:08 -08:00
Xavier Mehrenberger 6c4f5b23f0 feat: Height percentiles report (#719) 2023-12-25 06:48:33 -08:00
Christopher C. Wells 0f7c49b4f1 Add test for `Child.birth_datetime()` 2023-10-21 14:02:07 -07:00
Christopher C. Wells 43ab2694b4 Correct exception catch for `timesince` 2023-10-21 14:02:07 -07:00
Christopher C. Wells 39c1e98d8c Add birth time support to Child model 2023-10-21 14:02:07 -07:00
Christopher C. Wells 31f8f951ad Don't include duration on timeline entries with no duration 2023-10-20 19:56:48 -07:00
Christopher C. Wells b54499d6f2 Add image field to note 2023-10-20 17:06:59 -07:00
Christopher C. Wells 03f3197884 Reformat "days ago" string for easier translation 2023-10-14 06:53:56 -07:00
Christopher C. Wells 0d08d6174b Updtate french translation, correction, modification duration.py line 110 & 118 to ease the translation 2023-10-14 06:53:56 -07:00
Christopher C. Wells e4832ccff8 Use lazy translation in form definition
Fixes #715
2023-10-09 06:40:51 -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 b0de44b5d5 Correct missed BS5 class name updates
Fixes #677
2023-07-13 10:27:32 -07:00
Christopher C. Wells ad5f81d84a Adopt new Bootstrap 5 dark mode support 2023-07-09 09:26:13 -07:00
John Merlie d227a88403 fix for /pull/665#discussion_r1250140997 2023-07-09 08:48:54 -07:00
John Merlie b5ee54872a fix for /pull/665#discussion_r1250131684 2023-07-09 08:48:54 -07:00
John Merlie 3826772b1c updated pumping form for start/end/duration 2023-07-09 08:48:54 -07:00
John Merlie 77622c4924 updated core pump test case for start/end/duration 2023-07-09 08:48:54 -07:00
John Merlie e56ff48128 added migration for converting pumping schema 2023-07-09 08:48:54 -07:00
John Merlie dbbb0d325c add pumping to quick timer disposition 2023-07-09 08:48:54 -07:00
John Merlie 54c305fc46 update field references in pumping_list 2023-07-09 08:48:54 -07:00
John Merlie b25d27c40e modify pumping admin to reflect start/end/duration 2023-07-09 08:48:54 -07:00
John Merlie 1391819548 modify pumping form to add start/end/duration 2023-07-09 08:48:54 -07:00
John Merlie 3430f2b34f update pumping fields based on feeding 2023-07-09 08:48:54 -07:00
abdessamad-el 347ef41a0e Include temperature measurements in timeline 2023-06-15 19:08:29 -07:00
Christopher C. Wells 8abb6d749e Enforce min and max nap start parameters
Fixes #644
2023-06-04 17:39:08 -07:00
abdessamad-el 38143f4065 display 0 minutes ago on dashboard when event is less than 1 minute old 2023-05-30 07:50:21 -07:00
Paul Konstantin Gerke c593fa94c1 Fix dependency for hand-written migration 0028 2023-05-11 16:04:32 -07:00
Christopher Charbonneau Wells 31a0aa4741
513: Make nap user toggleable (#641)
* Add `nap` field, remove `napping` field.

* Default `nap` property to NULL

* Update existing tests

* Format the code!!

* Allow `Sleep.nap` to be blank

* Migrate settings from `NAP_START_MIN` AND `NAP_START_MAX`

* Remove `active` class from boolean fields

* Correct test method name and user config

* Add forms test

* Use settings for Sleep nap model tests
2023-05-07 15:10:50 -07:00
Christopher C. Wells 472dba13f8 Update missed BS4 classes for BS5 2023-04-15 14:03:18 -07:00
Christopher C. Wells 694bb3f811 Use django-dbsettings package for site settings 2023-04-15 13:59:44 -07:00
Christopher C. Wells 2007f998cf Default datetime input to seconds granularity 2023-04-15 12:58:41 -07:00
Christopher C. Wells 5875ef9658 Remove support for 24H time format override 2023-03-25 14:29:35 -07:00
Christopher C. Wells 716d121575 Remove outdated tests 2023-03-25 13:57:01 -07:00
Christopher C. Wells 4d1d915478 Adjust for changes from main rebase 2023-03-25 13:54:25 -07:00
Christopher C. Wells 613f53a4da Add mechanism for site wide settings
The two settings properties introduced here are not yet used.
2023-03-25 13:24:56 -07:00
Christopher C. Wells 7b7f17fde6 Remove "inactive" timer concept -- delete on complete
Closes #109
2023-03-25 13:23:05 -07:00
Christopher C. Wells a2e203a3f8 Use date only input for dates without time 2023-03-25 13:16:56 -07:00
Christopher C. Wells c1e9f28215 Update tests for new datetime handling 2023-03-25 13:16:54 -07:00
Christopher C. Wells 353533a6ef Remove custom frontend datetime handlers 2023-03-25 13:15:20 -07:00
Christopher C. Wells 4e98d18448 Update child radio for BS5 2023-03-25 13:12:15 -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 a5504520d1 Explicitly reset format caches during testing
This seems to be necessary primarily for consistency when running tests in
parallel.

Fixes #483
2023-02-11 20:21:09 -08:00