Commit Graph

409 Commits

Author SHA1 Message Date
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