Commit Graph

464 Commits

Author SHA1 Message Date
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
Christopher C. Wells 10a58e61b5 Refactor read only group creation as post migrate operation 2023-02-11 10:31:14 -08:00
Christopher Charbonneau Wells 996d81966c
Indicate user locked state and allow unlocking from users admin (#600)
* Use custom template for account lock

* Rename Baby Buddy base template tags

* Add user unlock view

* Add user unlock test
2023-02-11 09:02:23 -08: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
Brian O'Connor d9201d2c7e Change PumpingFilter to be TagFilter 2023-01-29 14:09:35 -08:00
Brian O'Connor 6c14590579 Add tags to the list view and the Api serializer 2023-01-29 14:09:35 -08:00
Brian O'Connor 945e30adb9 Add tags to Pumping model 2023-01-29 14:09:35 -08:00
jcgoette 94f81e3754 test: Remove out of date comment 2022-11-12 04:59:23 -08:00
Christopher C. Wells 1a107fc31b Update dependencies and migrations 2022-10-11 19:22:09 -07:00
jmunoz94 5b171ff66f Add a test for deltasince 2022-10-11 19:13:22 -07:00
jmunoz94 fff19339f4 Add deltasince function as an alternative to timesince (to get a timedelta instead of a str) 2022-10-11 19:13:22 -07:00
earthcomfy 62bde09b3d fix: Hide recently used tags when tag list is empty 2022-10-04 17:03:44 -07:00
earthcomfy 364676aeac fix: Hide delete inactive timers button if there are no entries 2022-10-04 16:47:17 -07:00
Jean-Louis Jouannic 4455e74262 💄 improves dropdown toggle look and feel 2022-08-03 10:45:22 -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
Jean-Louis Jouannic a606f86033 🚸 improves quick timer user experience 2022-07-24 12:32:07 -07:00
Jean-Louis Jouannic a453d869a3 🎨 fixes template formatting 2022-07-07 14:28:40 -07:00
Jean-Louis Jouannic 94c557d3b8 🚨 fixes wrong code styling 2022-07-07 14:28:40 -07:00
Jean-Louis Jouannic ac664cb511 applies new child selection widget to all forms
filters out blank option for timer form as it does not really
make sense to allow user to select no child
2022-07-07 14:28:40 -07:00
Jean-Louis Jouannic e86d7cc6f6 💄 renders inputs as Bootstrap radio buttons 2022-07-07 14:28:40 -07:00
Jean-Louis Jouannic 956125afcc ♻️ puts child thumbnail in a dedicated template 2022-07-07 14:28:40 -07:00
Jean-Louis Jouannic 424f9947af ⚗️ changes the way to select child in feeding (for now)
- uses input radio instead of select,
- displays child thumbnail.
2022-07-07 14:28:40 -07:00
Daniel Beard 7d7982b077
Fix dayssince sometimes being off by 1 day depending on timezone (#484) 2022-06-15 06:53:32 -07:00
Christopher C. Wells f47fbce0cb Use consistent naming for forms test case classes 2022-06-14 14:05:03 -07:00
Christopher Charbonneau Wells f5ae1a55a7
Fix list view classes and colspans and re-sort menu items (#481)
* Standardize list class and fix colspans

Fixes #469

* Alpha organize new recent menu item additions
2022-06-12 19:24:00 -07:00
Marcelino Alberdi Pereira 9d3c32fec1
Fix filtering not working for capitalized tags (#480)
Closes #467.
2022-06-12 19:07:19 -07:00
Xuesong c1ee2a940b
Add i18n to `dayssince` filter (#477) 2022-06-10 21:39:24 -07:00
Xuesong 5ab2fce0d0
Handle plurals with `count` tag (#473) 2022-06-05 06:34:52 -07:00
Daniel Beard 21b8a737c0
Add carousel of last 7 days of feedings to the todays feeding card (#450)
Add list of last 7 days of feedings to the todays feeding card

Co-authored-by: Daniel Beard <daniel@medcrypt.co>
2022-05-30 19:43:42 -07:00
Christopher C. Wells 362f42d266 Add tagged test to Import/Export tests 2022-05-28 07:02:13 -07:00
Christopher C. Wells fa746c68ca Add views tests for recently added models 2022-05-28 07:02:13 -07:00
Christopher C. Wells db5615fcb9 Add missing forms tests; separate notes and tags tests 2022-05-28 07:02:13 -07:00
Christopher C. Wells 838020ceff Update Faker API usage 2022-05-28 07:02:13 -07:00
Christopher C. Wells f4f60363eb Add import/export tests for recent model additions 2022-05-28 07:02:13 -07:00
Christopher C. Wells 3af2aee093 Reorder alpha core tests 2022-05-28 07:02:13 -07:00
Christopher C. Wells 4445faeeac Add basic model tagging tests 2022-05-28 07:02:13 -07:00
Christopher C. Wells 55a355f8af Refactor `random_colors` as a utility 2022-05-28 07:02:13 -07:00
Christopher C. Wells 00d04f1464 Add test for child without last name 2022-05-28 07:02:13 -07:00
Christopher C. Wells c91b556739 Add basic test cases for recent core model additions 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
Christopher C. Wells 09e0853067 Add single tag filter support to core views 2022-04-16 13:42:29 -07:00
Christopher C. Wells 50339e1c71 Put core models views in alpha order 2022-04-16 13:29:40 -07:00
Marco H 123a0192ce Fix test 2022-04-15 20:56:34 -07:00
Marco H 3eba917b08 Allow diaper change without any contents (fixes #426) 2022-04-15 20:56:34 -07:00
jcgoette 5ba95b8cae migrate 2022-04-15 20:17:26 -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 0d89574a65 Fix lint issues 2022-04-04 20:39:39 -07:00
bugbountyguy b21c193488 Add pumping migration 2022-04-04 20:39:39 -07:00
bugbountyguy 254e796020 Add migration 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 8b5c3eb5b9 Make gulp lint happy 2022-04-04 20:39:39 -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
bugbountyguy 44648ce33b add tests 2022-04-04 20:39:39 -07:00
Christopher C. Wells 97b1b8d9ce Add tag filtering to supported models in admin 2022-04-04 20:08:13 -07:00
Christopher C. Wells 4255dd61ef Add missing admin classes 2022-04-04 20:08:13 -07:00
Christopher C. Wells bdc28991cb Add basic import/export support for tags 2022-04-04 20:08:13 -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 4919222d41 Rendering tag lists with templates 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 5f23eecb84 Black 2022-03-06 18:31:29 +01:00
Paul Konstantin Gerke d0469caed5 Add missing notes-test (includes tests for tags-feature) 2022-03-06 18:30:58 +01:00
Paul Konstantin Gerke 7af66176aa Black 2022-03-05 13:09:08 +01:00
Paul Konstantin Gerke b27cf6c4b8 Black 2022-03-05 13:01:59 +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 2c408ea479 Add docstrings 2022-03-05 12:47:16 +01:00
Paul Konstantin Gerke e5279f2d7a Fix tests 2022-03-02 23:31:11 +01:00
Paul Konstantin Gerke 8a37b44839 Black 2022-03-02 22:38:25 +01:00
Paul Konstantin Gerke db140cff98 Black 2022-03-02 22:31:35 +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 c665ebb181 Applied black 2022-02-27 20:36:31 +01:00
Paul Konstantin Gerke 3ac21ed67b Linting 2022-02-27 20:00:12 +01:00
Paul Konstantin Gerke cfdb9e1ade Made widget translateable, added German translation 2022-02-27 19:41:27 +01:00
Paul Konstantin Gerke a7f461551c Remove default help_text from tag editor 2022-02-27 17:42:01 +01:00
Paul Konstantin Gerke f1aa7c151c Replaced alert with bootstrap-modal 2022-02-27 02:19:19 +01:00
Paul Konstantin Gerke 332a5999bc Adding/removing tags works again 2022-02-26 15:50:38 +01:00
Paul Konstantin Gerke 747b398bd5 Create new javascript file for tags editor 2022-02-22 19:40:27 +01:00
Paul Konstantin Gerke f47d3c6b76 Implement last_used 2022-02-20 12:40:06 +01:00
Paul Konstantin Gerke 4fd55124f4 Basically everything works :) 2022-02-20 12:15:04 +01:00
Paul Konstantin Gerke c397836e68 Add dynamic tag creation 2022-02-18 00:22:01 +01:00