Commit Graph

425 Commits

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