Commit Graph

1152 Commits

Author SHA1 Message Date
Christopher C. Wells 605660ff94 Only use full width submit on smaller screens 2021-07-19 20:55:30 -07:00
Christopher C. Wells f4134cd226 Make form submit full width fixed 2021-07-19 20:55:30 -07:00
Ohad Lutzky 798d7663fd Dashboard: Auto-refresh even if focus is supported
* No change if unsupported
* If supported, still auto-refresh at the selected frequency (if any),
  but only if not hidden.

This is useful for always-on displays (e.g. a "baby clock"). Fixes #253
2021-07-19 19:52:19 -07:00
Ohad Lutzky 411641903f
Move Time column to be first in list view (#250)
Fixes #232
2021-07-09 19:32:53 -07:00
Ohad Lutzky beaf366079
Show duration in timeline (#247) 2021-07-09 13:45:07 -07:00
Ohad Lutzky dd3aa3bdb8
Dashboard: Move all "last" cards to top (#248)
Fixes #230
2021-07-09 07:50:02 -07:00
Ohad Lutzky e2e2c8c43a
Brighten blue and cyan colors (#251)
For slightly easier viewing on mobile phones in daylight
2021-07-09 07:36:38 -07:00
Christopher C. Wells db109fcd0a Update Heroku Python runtime 2021-07-07 20:53:52 -07:00
Christopher C. Wells 450eb3137e Remove Docker deployment support files 2021-07-07 20:48:28 -07:00
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