Commit Graph

113 Commits

Author SHA1 Message Date
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 694bb3f811 Use django-dbsettings package for site settings 2023-04-15 13:59:44 -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 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
Brian O'Connor 945e30adb9 Add tags to Pumping model 2023-01-29 14:09:35 -08:00
Christopher C. Wells 55a355f8af Refactor `random_colors` as a utility 2022-05-28 07:02:13 -07:00
Christopher C. Wells 0875b6af05 Alpha order core models class declarations 2022-05-28 07:02:13 -07:00
Marco H 603a429c13 Allow end of feeding to be in the future 2022-05-08 16:37:42 -07:00
Christopher C. Wells 379f9b1e86 Move tag widget customizations to form classes
This allows the custom tag widget to function normally in Baby Buddy's
frontend without breaking behaviors in the Django admin forms. The previous
setup would prevent the standard tag editor behavior from working in the
Django admin and give incorrect help text.
2022-04-16 14:59:28 -07:00
Marco H 3eba917b08 Allow diaper change without any contents (fixes #426) 2022-04-15 20:56:34 -07:00
jcgoette 807ba37de8 default date and time to now 2022-04-15 20:17:26 -07:00
jcgoette 2e5014f2c3 isort 2022-04-15 20:17:26 -07:00
jcgoette b62cb47130 remove unused imports 2022-04-15 20:17:26 -07:00
bugbountyguy 4ceb6095d3 Rename breastpump to pumping 2022-04-04 20:39:39 -07:00
bugbountyguy b9e98b16a2 Fix lint errors 2022-04-04 20:39:39 -07:00
bugbountyguy 5c45b037f0 Finish up adding the brestpump measurement 2022-04-04 20:39:39 -07:00
Christopher C. Wells 1398239ecf Fix verbose name of Tags model 2022-04-03 16:42:23 -07:00
Paul Konstantin Gerke 5446c5a02c Add tags to timeline and all list views 2022-03-08 19:16:18 -08:00
Paul Konstantin Gerke 3fa652cc25 Simple rendering of tags in lists 2022-03-08 19:16:18 -08:00
Paul Konstantin Gerke ce21f39ec7 Add tags to most things except: Timers and Children 2022-03-08 08:35:27 -08:00
Paul Konstantin Gerke b431c27835 Add color widget to the admin-UI 2022-03-08 12:55:50 +01:00
Paul Konstantin Gerke 98b0072634 Black 2022-03-08 12:01:51 +01:00
Paul Konstantin Gerke b8e7d31ded Add help text with short explanation how to use the tag editor 2022-03-08 12:01:12 +01:00
Paul Konstantin Gerke 7d8ead594c Add api tests 2022-03-06 19:47:47 +01:00
Paul Konstantin Gerke 7bbaee1f80 Fix verbose_name for fields, update migrations 2022-03-05 13:01:28 +01:00
Paul Konstantin Gerke f31dbaf15c Add verbose_name for a bunch all new model-fields 2022-03-05 12:57:50 +01:00
Paul Konstantin Gerke e5279f2d7a Fix tests 2022-03-02 23:31:11 +01:00
Paul Konstantin Gerke 4f325ba07b Remove BabyBuddy prefix from Tags-model 2022-03-02 21:53:51 +01:00
Paul Konstantin Gerke a35df92fe2 Code review comments 2022-02-27 21:12:01 +01:00
Paul Konstantin Gerke 3ac21ed67b Linting 2022-02-27 20:00:12 +01:00
Paul Konstantin Gerke a7f461551c Remove default help_text from tag editor 2022-02-27 17:42:01 +01:00
Paul Konstantin Gerke f47d3c6b76 Implement last_used 2022-02-20 12:40:06 +01:00
Paul Konstantin Gerke 5046b754e5 Add api-serializer 2022-02-15 22:24:13 +01:00
Paul Konstantin Gerke 56ebbd3181 Fix storing of tags 2022-02-15 15:46:07 +01:00
Paul Konstantin Gerke bf49cc92ad Initial (bugged) work on tag editor 2022-02-15 10:13:35 +01:00
Christopher C. Wells cd946280cb Format code with black 2022-02-09 16:00:30 -08: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
Marcelino Alberdi Pereira 89ed408acc
Make last name optional (#361) 2021-12-29 16:41:39 -05:00
codisart c33ace2bf9 feat(sleep): #323 Add napping field to the sleep model 2021-10-30 07:16:37 -07:00
Christopher C. Wells fad8f1500e Make entry intersection check exclusive
Closes #263
2021-08-17 05:59:08 -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
Beni Cherniavsky-Paskin f58571bf17 child slugs: require non-blank
Currently it is easy for a child with non-ascii name to get empty slug:
'Мааян' 'Паскин-Чернявский' => '-'
'Мааян' 'Паскин' => ''

Once any child has an empty slug, many pages break with NoReverseMatch
errors.  This commit at least prevents setting such names;
slug computation to be fixed later.
2021-04-30 14:47:08 -07:00
0x4161726f6e f4b9053c00 Add solid food option to feeding types
I would find this helpful as I coordinate with day care
2021-04-15 05:45:25 -07:00
Christopher C. Wells 3f0694dc9d Make datetime editable for Note model
Closes #151
2020-08-12 19:47:58 -07:00
Christopher C. Wells d0b33c2b1b Use user first and last name, when available, in UI 2020-02-18 14:41:33 -08:00
Christopher C. Wells 2346995cb3 Remove bottle-formula validation test
This is not really necessary and only serves as validation that will need to updated if model choices ever change.
2020-02-18 14:41:33 -08:00
Christopher C. Wells 48a0093700 Add general notes to most models 2020-02-16 15:09:57 -08:00
Christopher C. Wells 703782b21c Use provided `end` in Timer.stop() (#111) 2020-02-06 19:56:26 -08:00
Christopher C. Wells e5a5e330b9 Obscure timer-child relations for one child use case 2020-01-31 09:09:01 -08:00