Commit Graph

1578 Commits

Author SHA1 Message Date
Christopher C. Wells 97b17447df Disable axes during tests 2021-06-21 20:47:57 -07:00
Christopher C. Wells 27ea845bbb Add basic log in brute force protection 2021-06-21 20:41:23 -07:00
Christopher C. Wells a2da7e32f9 Disable autocomplete on datetime form fields (#224)
The actual issue here is that the readonly property is no longer working. This
should be fixed in a separate commit.
2021-06-19 15:20:03 -07:00
Christopher C. Wells d8cb7bb5a2 Bump PostCSS dependency 2021-06-19 15:14:16 -07:00
jcgoette a33b0cadff default feeding start to now 2021-06-19 14:17:34 -07:00
jcgoette 0001281d66 default last feed method if not left/right breast 2021-06-19 14:17:34 -07:00
Benjamin Häublein e8696a8b00
Dashboard: Hide old data (#215)
* filter card data by age

* add setting for hide_age

* add option to settings form

* fix name to consistently use hide_age

* rename filter, use setting for filter

* add test for old hiding old data

* fix migration to contain correct imports, remove month from timedelta

* remove months from timedelta, allow blank

* fix with block

* add settings test

* add test for filter

* mock localtime

* fix timezone issues with tests

* linting

* linting

* Adjust migration

Co-authored-by: Benjamin Häublein <benjaminh@debian.vm.hp>
Co-authored-by: Christopher C. Wells <git@chris-wells.net>
2021-06-19 14:09:05 -07:00
Christopher C. Wells c3dc4520fc Point Pipenv install to tool documentation 2021-06-16 06:33:21 -07:00
Christopher C. Wells 5a7b5f5e5c Add latest timezone migrations 2021-06-16 06:31:21 -07:00
Christopher C. Wells 3684d49a4c Specifying Node version for development 2021-06-16 06:24:29 -07:00
Christopher C. Wells a21d1875f9 Update Heroku Python run time 2021-06-16 06:10:40 -07:00
Christopher C. Wells 36c80d45fc Update to Plotly 2.x. 2021-06-07 20:59:25 -07:00
Christopher C. Wells d5df1e7beb Update node dependencies 2021-06-07 20:50:52 -07:00
Christopher C. Wells a91211c19a Update Python dependencies 2021-06-07 20:35:12 -07:00
Christopher C. Wells a9a1f17204 Update settings migration 2021-06-07 20:26:27 -07:00
Christopher C. Wells 71da84a47b Add missed migration from #206 2021-06-07 20:26:15 -07:00
Christopher C. Wells 8883c87c43 Fix typo in CONTRIBUTING.md 2021-06-07 20:10:19 -07:00
Christopher C. Wells f42784904d Compile new Dutch translations 2021-06-07 20:10:19 -07:00
svenvdmeer 6f62040e74 Update django.po
Dutch translation is inconsistent especially with the translation of the word diaper. Sometimes the word 'pamper' is used which is a brand. I've change the translation of 'diaper change' to 'luierverschoning' because the word 'verschoning' in itself is clearer then the word 'vervanging' if 'aanpassing' which is now used in the menu and at first I didn't understand what that was.
2021-06-07 20:10:19 -07:00
jcgoette d9485f0208 update post: sections 2021-05-31 05:07:37 -07:00
jcgoette 14cad570ad change ADD to COPY 2021-05-31 05:06:31 -07:00
Christopher C. Wells d109d09efc Add new CI status badge! 2021-05-19 21:16:15 -07:00
Christopher Charbonneau Wells c8e1fee3e4
Replace Travis with GitHub Actions (#216)
* Replace Travis config with GitHub Actions config

* Use Coveralls GitHub Action

* Correct Coveralls flag name

* Try AndreMiras/coveralls-python-action@develop

* Prevent double-run on push to PRs

Closes #216.
2021-05-19 21:12:03 -07:00
Christopher C. Wells 25fb295d7b Bump version to v1.6.0 2021-05-13 20:37:31 -07:00
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
Benjamin Häublein fe568876c7
Fixes another issue with translation (de) (#212)
* fix translation (de) for "%(seconds)s second"

* fix another wrong translation and compile translations
2021-05-12 04:52:34 -07:00
Christopher C. Wells 250e07e739 Set default timezone as UTC
The previous setting of "Etc/UTC" appears to no longer be valid in certain
circumstances. This was causes tests to fail on user settings because the
provided default was invalid. "UTC" should be more uniformly recognized so
hopefully this does not have any downstream effects.

Closes #203
2021-05-05 05:58:32 -07:00
Christopher C. Wells 95670c7b31 Also handle exit codes on coverage run 2021-05-04 06:22:45 -07:00
Christopher C. Wells c0d20e3a94 Bubble up exit code when tests fail 2021-05-04 06:02:44 -07:00
Benjamin Häublein f5c1248fbd
Fix translation (DE) (#210)
* fix translation format strings

* Fix translation

* compilemessages

* fix format string

* run compilemessages
2021-05-03 08:27:33 -07:00
Beni Cherniavsky-Paskin 29ef9f4f75 child slugs: allow unicode
This results in %-encoded URLs, but modern browsers display the unicode
chars (e.g. https://babybuddy.../children/мааян-паскин-чернявский).
2021-04-30 14:47:08 -07:00
Beni Cherniavsky-Paskin f58571bf17 child slugs: require non-blank
Currently it is easy for a child with non-ascii name to get empty slug:
'Мааян' 'Паскин-Чернявский' => '-'
'Мааян' 'Паскин' => ''

Once any child has an empty slug, many pages break with NoReverseMatch
errors.  This commit at least prevents setting such names;
slug computation to be fixed later.
2021-04-30 14:47:08 -07:00
Benjamin Häublein 14b11db91b fix translation format strings 2021-04-30 14:22:08 -07:00
Christopher C. Wells dadb84ec6a Add migrations 2021-04-15 05:45:25 -07:00
0x4161726f6e f4b9053c00 Add solid food option to feeding types
I would find this helpful as I coordinate with day care
2021-04-15 05:45:25 -07:00
Christopher C. Wells e6838a0c0f Correct sleep graph handling for entries that cross DST 2021-04-11 13:56:40 -07:00
Christopher C. Wells e27f7b76a0 Use Django 3.2 timesince depth parameter for child age 2021-04-11 13:35:07 -07:00
Christopher C. Wells fe92d3ea17 Update Node dependencies and static files 2021-04-11 12:51:12 -07:00
Christopher C. Wells fe454013da Update Python dependencies and runtime 2021-04-11 12:49:15 -07:00
Christopher C. Wells 4df001ce8f Update Node dependencies 2021-03-18 19:38:03 -07:00
Christopher C. Wells cad470fde2 Update Python requirements 2021-03-18 19:35:29 -07:00
Christopher C. Wells 6fb958d6b3 Add Italian translations 2021-03-04 06:03:29 -08:00
Christopher C. Wells 17b244a645 Remove WIP do folder 2021-02-25 06:25:21 -08:00
Christopher C. Wells 5aae21cebe Bump version to 1.5.1 2021-02-25 06:01:28 -08:00
Christopher C. Wells 311c6d2e05 Add Dutch translations 2021-02-25 06:00:23 -08:00
Christopher C. Wells 78842b9ca5 Update node dependencies and static assets 2021-02-24 05:33:50 -08:00
Christopher C. Wells a64b601f33 Use actual user and group in manual install instructions
Closes #194.
2021-02-24 05:17:38 -08:00
Christopher C. Wells 705f9d1ce1 Add locale folder to Dockerfile (#197) 2021-02-20 07:48:54 -08:00
Justin Goette 2c7ef55760 Remove leading space in code blocks
For quicker/easier copy-paste
2021-02-13 05:01:14 -08:00
jcgoette 4739d909e5 add tests 2021-02-09 18:10:36 -08:00