mybuddy/babybuddy
Benjamin Häublein 1dca1cc050
Add option for hiding empty dashboard cards (#213)
* add option for hiding empty dashboard cards

* rework add option for hiding empty dashboard cards

missed statistics.html

* don't exit early in cards

* add forms test for dashboard_hide_empty

* add tests for cards

* fix early exit in card_diaperchange_latest

* change dependency of migration

* rename migration

* introduce hiding of cards in templates

* linting

* add context to test_card_diaperchange_last

* setup MockUserRequest

* add context to all cards test cases

* add test for settings_dashboard_hide_empty_on

* change dashboard_hide_test, but it doesn't work

* add test for _user_wants_hide

* fix test_user_wants_hide user object, simpliy check for data['empty']

* add test for user_wants_hide to every card

* linting

* fix trailing whitespace

* rename user_wants_hide to hide_empty

* fix hidden statistics

* add user.refresh_from_db to test case, add test case for dashboard_refresh_rate

* Follow redirect and correct assertion

Co-authored-by: jcgoette <jcgoette@gmail.com>
Co-authored-by: Benjamin Häublein <benjaminh@debian.vm.hp>
Co-authored-by: Christopher C. Wells <git@chris-wells.net>
2021-05-13 20:28:39 -07:00
..
fixtures add tests 2021-02-09 18:10:36 -08:00
formats Concatenate (not append) DATETIME_INPUT_FORMATS (#148) 2020-07-22 21:13:56 -07:00
management Disable system checks for `gulp reset` command 2020-08-12 19:58:53 -07:00
migrations Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
settings Set default timezone as UTC 2021-05-05 05:58:32 -07:00
static_src Boolean field labels are no longer clickable so they can't be accidentally toggle the field value 2021-01-19 08:37:07 -08:00
templates Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
templatetags Add user timezone setting support to datetime form fields 2020-02-14 12:07:43 -08:00
tests Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
__init__.py Bump version to 1.5.1 2021-02-25 06:01:28 -08:00
admin.py Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
apps.py Remove all unicode_literals imports. 2018-02-17 17:09:40 -05:00
forms.py Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
middleware.py The rest of the middleware commit 2020-05-17 20:11:08 +10:00
mixins.py Raise permission denied instead of redirecting to login (#49). 2018-05-20 14:40:09 -07:00
models.py Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
urls.py Add cookie-based language selection to user settings. 2019-04-13 20:07:46 -07:00
views.py Persist user timezone setting with middleware 2020-02-14 12:45:24 -08:00
wsgi.py Check for and load environment variables from a `.env` file. 2017-11-30 22:54:50 -05:00