Commit Graph

468 Commits

Author SHA1 Message Date
Chris Wells 041a03df0d Re-add diaper change amount and color fields 2024-04-15 06:38:22 -07:00
Christopher C. Wells 3fc798fa9c Disable flaky test 2024-03-13 20:39:33 -07:00
billybonks dd4e565008 feat: improve styling of pill groups
1. add default spacing
2. increase size to use all space on mobile
2024-02-27 20:11:41 -08:00
billybonks f2190ce387 feat: Apply advanced fields to all forms 2024-02-27 20:11:41 -08:00
billybonks 5ec806ef86 feat: use pill radio and include advanced fields on feeding form 2024-02-27 20:11:41 -08:00
billybonks 66ccc1c6c8 refactor: move javascript to babybuddy.js
having it directly in the page html is not ideal, now its properly
isolated.

Also use the new classname
2024-02-27 20:11:41 -08:00
billybonks b7743674d8 feat: Improve advanced fields styling
on mobile it text align center
Increased the font size so its easier to click
Added translations
2024-02-27 20:11:41 -08:00
billybonks 232cde19ee feat: use field set on some forms
Create choices template to have all multi choice experience be the same
as radio select choices.

Moved notes and tags into advanced template in order to reduce the
amount of fields in a form for users. Given that these two fields are
usually a catch all for anything that is not in the core data model. it
is not garunteed that users will use them.

If a user does decide to use the fields we will store that selection in
localstorage so that they dont have to open it every time.

I put the javascript into the page section, as i seem to have had issues
with javascript blocks overriding each other.
2024-02-27 20:11:41 -08:00
billybonks 60b113f197 feat: create fieldset implementation
In order to have more control and flexiability on how elements are
rendered create field set implementation.

every field set gets rendered in order, and uses the template specified.

This should probably be built into the metaclass of the form but i have
no idea how to do that.
2024-02-27 20:11:41 -08:00
billybonks 3edd645f53 feat: Add PillRadioSelect widget
In order to promote less clicks on the mobile experience, this wideget
will splat out the drop down options similar to child select
2024-02-27 20:11:41 -08:00
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