Commit Graph

943 Commits

Author SHA1 Message Date
Christopher C. Wells bfcb33b471 Add CHANGELOG.md file 2021-07-07 20:43:55 -07:00
Christopher C. Wells 67e78fec8c Bump version to v1.7.0 2021-07-07 20:14:17 -07:00
Ohad Lutzky 73a04af9b2
Timeline: Add edit links (#246)
* Timeline: Show diaper change details

* Timeline: Add edit links

Suggested in #229

Co-authored-by: Christopher Charbonneau Wells <10456740+cdubz@users.noreply.github.com>
2021-07-07 20:09:22 -07:00
Ohad Lutzky 8861933738 Timeline: Show diaper change details 2021-07-07 19:54:43 -07:00
Christopher Charbonneau Wells e2e73d236d Remove unsupported AWS EB deployment documentation 2021-07-06 21:20:34 -07:00
Christopher Charbonneau Wells 9fdf2c2f2d Update Docker deployment documentation 2021-07-06 21:20:34 -07:00
Ohad Lutzky 2a7402283c Clarify "no events" on timeline
Suggested in #229
2021-07-06 20:38:31 -07:00
Christopher Charbonneau Wells 8e814f1674
Fix backticks usage in README 2021-07-06 20:32:40 -07:00
Ohad Lutzky c31b2b5519 Add `libpq-dev` to instructions
Fixes #238
2021-07-06 13:42:42 -07:00
Nicholas Trecina c1769c3923 Reverted tempus dominus to the previous version to fix an issue with marking fields as read only 2021-07-05 21:08:05 -07:00
Ohad Lutzky e3b6f79c09 Show feeding amount on timeline 2021-07-05 12:51:05 -07:00
Ohad Lutzky ed1d6b779e Show absolute last times in dashboard 2021-07-05 12:44:21 -07:00
Ohad Lutzky 1e36cb2211 Make docker-compose examples unicorn-appropriate
See https://pythonspeed.com/articles/gunicorn-in-docker/

Fixes https://github.com/babybuddy/babybuddy/issues/227
2021-06-25 12:18:15 -07:00
Christopher C. Wells 1689bc8e20 Refactor API key reset as part of settings form
This adds core CSRF protection to the reset functionality.
2021-06-21 21:27:45 -07:00
Christopher C. Wells cca1e409e3 Use test settings in coverage task 2021-06-21 20:52:47 -07:00
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