Commit Graph

396 Commits

Author SHA1 Message Date
Christopher Charbonneau Wells d3333d68b4 Replace custom API filters implementation with django-filter. 2017-11-02 06:05:12 -04:00
Christopher Charbonneau Wells 237796a644 Move form clean methods to models. 2017-11-01 16:14:42 -04:00
Christopher Charbonneau Wells 7d7148e869 Fix linting warning. 2017-11-01 16:13:58 -04:00
Christopher Charbonneau Wells d6c6c8a271
Merge pull request #10 from youngbob/duration-sanity-check
Add validation for model durations
2017-11-01 13:08:47 -04:00
Bob Thomas 1eeba2398d Add validation for model durations
It was previously possible to accidentally enter obviously wrong values
for start/end dates. Add some basic validation to catch input errors
when creating or editing various models (when not using a timer).
2017-11-01 12:44:07 -04:00
Bob Thomas 862066003e Fix style for datetime picker
Workaround for tempusdominus/bootstrap-4#18
Resolves #6
2017-11-01 12:42:41 -04:00
Christopher Charbonneau Wells 40f8a511ba Adjust existing tests for form validation updates. 2017-10-31 21:01:21 -04:00
Christopher Charbonneau Wells 492bcddeb4 Add confirmation form for Child delete. 2017-10-31 20:49:10 -04:00
Christopher Charbonneau Wells c565bfc59a Add some model form validation for Diaper Change and Feeding. 2017-10-31 15:26:37 -04:00
Christopher Charbonneau Wells 9c0989d22b Adjust form layout for better BS4 integration. 2017-10-31 15:15:02 -04:00
Christopher Charbonneau Wells 8c274ce765 Add a type-to-confirm field for deleting a child. 2017-10-30 22:04:00 -04:00
Christopher Charbonneau Wells b0d2fdd521 Use localdate() instead of now() for default Timeline view date. 2017-10-30 20:58:12 -04:00
Christopher Charbonneau Wells 0d7382407c Refactor some utils functions sligthly and add tests. 2017-10-30 20:45:46 -04:00
Christopher Charbonneau Wells 003e112d27 Clean up general card styles. 2017-10-30 19:35:51 -04:00
Christopher Charbonneau Wells e90e31cfd3 Add "Averages" dashboard card. 2017-10-30 14:26:49 -04:00
Christopher Charbonneau Wells 22664ecc0f Reload the dashboard page every 60 seconds and on visibility state change. 2017-10-29 16:01:13 -04:00
Christopher Charbonneau Wells 8168c74034 Check and update timer active state on update. 2017-10-29 15:47:26 -04:00
Christopher Charbonneau Wells 97dbf87e5b Refactor card templates and styling. 2017-10-28 23:01:39 -04:00
Christopher Charbonneau Wells 5afc55ca31 Make Timer instance.start field editable. 2017-10-28 13:27:33 -04:00
Christopher Charbonneau Wells 03dc139b0e Explicitly set Timer.duration to None on instance save when the instance is still running.
This has to be done because the Timer.from_db() method fills in duration against the current time when the instance is still active. This issue was introduced in fd960cd.
2017-10-28 12:43:43 -04:00
Christopher Charbonneau Wells f02f28b7f9 Update screenshot and add mobile screenshots. 2017-10-27 23:20:52 -04:00
Christopher Charbonneau Wells fd960cd974 Refresh from DB during timer duration test to satisfy new class method duration calculation. 2017-10-27 22:36:26 -04:00
Christopher Charbonneau Wells c339062fba Use visibilityjs and momentjs to update a running timer when it's detail page becomes visible.
This commit is intended to improve the mobile experience by updating the timer detail page with the correct, current duration when, for example, a phone is unlocked after having been locked for a while with the timer detail page open.
2017-10-27 22:28:38 -04:00
Christopher Charbonneau Wells 6e936df1bc Use a from_db class method instead of a separate method to always provider a timer's current duration. 2017-10-27 21:33:26 -04:00
Christopher Charbonneau Wells c305d8038b Display a message when there is not enough data to generate a report. 2017-10-27 20:46:48 -04:00
Christopher Charbonneau Wells 6ce6599b39 Clean up card content when no data is in the database. 2017-10-27 20:18:55 -04:00
Christopher Charbonneau Wells 28c2238423 Add migrate and fake commands to gulp. 2017-10-26 12:26:09 -04:00
Christopher Charbonneau Wells 1221367f2a Adjust duration test assertions to use exact timedeltas.
This prevents failures when timedeltas include microseconds.
2017-10-25 12:01:43 -04:00
Christopher Charbonneau Wells 905c7a8690 Add dashboard tests. 2017-10-25 11:05:45 -04:00
Christopher Charbonneau Wells 72a75feea9 Add reports tests. 2017-10-25 10:48:33 -04:00
Christopher Charbonneau Wells 789054cfb6 Remove unused "rangeslider" utility function. 2017-10-25 10:44:57 -04:00
Christopher Charbonneau Wells 3c2df12314 Add core model tests. 2017-10-25 10:20:13 -04:00
Christopher Charbonneau Wells 05e9927d74 Remove unnecessary "duration_td" Tummy Time method. 2017-10-25 09:45:53 -04:00
Christopher Charbonneau Wells e3b0fc2468 Remove unused "since" model methods.
This "to string" functionality is and should be handled in templates.
2017-10-25 09:19:14 -04:00
Christopher Charbonneau Wells b393de90dc Simplify model string names. 2017-10-25 08:58:15 -04:00
Christopher Charbonneau Wells e09580e978 Fix graph JS link for new whitenoise setup. 2017-10-24 12:18:08 -04:00
Christopher Charbonneau Wells 84e96c046f Add pluralize check to naps count card. 2017-10-24 10:08:49 -04:00
Christopher Charbonneau Wells d293fd7740 Update README. 2017-10-23 20:33:28 -04:00
Christopher Charbonneau Wells 8daf82ffa0 Shorten app.json description to meet below 140 characters requirement. 2017-10-23 20:24:53 -04:00
Christopher Charbonneau Wells 19ad5b98a3 Adjust card styles.
Removes footers with mostly useless information and uses muted text for all content.
2017-10-23 20:07:45 -04:00
Christopher Charbonneau Wells 66a91fe534 Add a "naps" card. 2017-10-23 19:52:20 -04:00
Christopher Charbonneau Wells 029f554dfc Add root files config and temporary favicon. 2017-10-23 15:13:11 -04:00
Christopher Charbonneau Wells 89b47b1f99 Refactor gulp commands and travis config for whitenoise integration. 2017-10-23 13:50:20 -04:00
Christopher Charbonneau Wells f0e0ec38e3 Add a screenshot and Heroku info to README. 2017-10-23 10:38:52 -04:00
Christopher Charbonneau Wells 93066e32a1 Moved ALLOWED_HOSTS setting to base. 2017-10-23 09:49:09 -04:00
Christopher Charbonneau Wells d12405096b Add psycopg2 requirement for Postgres functionality. 2017-10-23 09:06:17 -04:00
Christopher Charbonneau Wells 588fe99c45 Fix heroku settings file name. 2017-10-23 08:59:19 -04:00
Christopher Charbonneau Wells 04237e3bc6 Add a link to the Herko demo instance. 2017-10-23 05:25:56 -04:00
Christopher Charbonneau Wells b28bb0cd56 Use development settings for wsgi for now. 2017-10-23 05:19:32 -04:00
Christopher Charbonneau Wells 89ebf1845b Add Heroku post build step to create static files. 2017-10-23 05:13:26 -04:00