Commit Graph

912 Commits

Author SHA1 Message Date
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
jcgoette 5f2c31c5e3 lint 2021-02-09 18:10:36 -08:00
jcgoette 172167e6a1 add notes to applicable APIs 2021-02-09 18:10:36 -08:00
Nicholas Trecina f5d523ba80 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
Christopher C. Wells 448234abc3 Bump version to 1.5.0 2021-01-05 21:08:49 -08:00
Sam 1b3f87ad8c
Update docker compose files for Portainer compatibility (#179)
* Update docker-compose.example.sqlite.yml

Add inline comments, tweak version to 2.4 for Portainer compatibility, add friendly container name.

* Update docker-compose.example.sqlite.yml

Add restart: unless-stopped

* Update docker-compose.example.yml

Update with more inline notes, friendly container names, and portainer deployment notes. Add "unless-stopped" restart parameter for auto restarting of containers.

* Update docker-compose.example.yml

Resolve pull comments

* Update docker-compose.example.sqlite.yml

Resolve pull comments

* Update docker-compose.example.yml

Adjust spacing of inline comments

* Update docker-compose.example.yml

Change back to DB_PASSWORD to conform to latest rebase of master

* Update docker-compose.example.sqlite.yml

* Update docker-compose.example.yml
2021-01-05 21:05:16 -08:00
Zutart 4733ec0b83
Improve database setting configuration options (#182)
* Updated docker.py to allow for custom PSQL env input

* Updated README.md with new PSQL env variables

* Updated with new variable names and adjusted inline logic

* Updated README.md to reflect new env variable names

* Updated database password fallback to prevent breaking existing deployments

* Updated with new env variables

* Further edits per PR discussion

* Removed unnecessary variables from example docker-compose file
2021-01-04 18:06:11 -08:00
Christopher C. Wells b009a0bebc Revert timesince chunks after monkey patch (fixes #181) 2021-01-03 19:08:11 -08:00
Christopher C. Wells b5086decd8 Update Heroku runtime Python version 2021-01-02 06:25:31 -08:00
Christopher C. Wells 344bb0f6d4 Lock requirements before deploy (AWS EB) 2020-12-02 20:44:42 -08:00
Christopher C. Wells 389211de22 Pin Docker build to Python 3.8 2020-12-02 20:42:06 -08:00
Christopher Charbonneau Wells 3f1a7d9a9d
Refactor to remove pandas dependency (#177)
* Use regular dicts for sleep pattern (WIP)

* Remove dataframes code from sleep pattern graph

* Reimplement UTC offset change handling

* Move label formatting in to a function

* Remove pandas!

* Fix linting issue

* Add dev requirements to generated requirements.txt

* Stop committing Pipfile.lock

Pipenv is designed to pin to a specific version of Python. Including the lock
file can lead to failed builds or broken package configurations on different
system architectures and/or Python versions.
2020-12-02 20:15:22 -08:00
Justin Goette 6d601abf30 Update README.md 2020-11-05 15:43:12 -08:00
Justin Goette b67ccb2fed Update README.md
Rearranged and added some detail to the Docker instructions to make them more beginner friendly.
2020-11-05 15:43:12 -08:00
= 187d2226e0 Fixed duplicate data/form-submit from double click 2020-10-28 14:35:22 -07:00
Christopher C. Wells 95a2cdf06d Use day precision for child age (#167) 2020-10-25 20:06:21 -07:00
Christopher C. Wells 19c91822e0 Update Piplock 2020-10-25 18:58:15 -07:00