mybuddy/dashboard
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
..
migrations Refactor dashboard as a separate app. 2017-08-18 09:02:31 -04:00
static_src Offset horizontal padding in cards with a carousel 2020-02-16 13:38:20 -08:00
templates Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
templatetags Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
tests Add option for hiding empty dashboard cards (#213) 2021-05-13 20:28:39 -07:00
__init__.py Refactor dashboard as a separate app. 2017-08-18 09:02:31 -04:00
urls.py child slugs: allow unicode 2021-04-30 14:47:08 -07:00
views.py Add dashboard sort clauses: first name and id 2019-07-08 16:06:46 -04:00