Christopher C. Wells
e5a5e330b9
Obscure timer-child relations for one child use case
2020-01-31 09:09:01 -08:00
Christopher C. Wells
fd6bcfe9a5
Maintain a cached count of Child instances
2020-01-31 09:09:01 -08:00
Christopher C. Wells
c80ec252bc
Add optional Child to Timer model
2020-01-31 09:09:01 -08:00
Christopher C. Wells
475b7abf78
Apply custom style to `.datetimepicker-input`
2020-01-31 08:47:03 -08:00
Christopher C. Wells
b8e2416cd1
Set all datetime fields to `readonly`
2020-01-31 08:47:03 -08:00
Christopher C. Wells
387bc36956
Fix incorrect element ID for timer start field
2020-01-27 15:09:16 -08:00
Christopher C. Wells
26b54b114e
Add wrapper for datetime picker widget
2020-01-27 14:56:37 -08:00
Christopher C. Wells
a8abfb725f
Add generic "Amount" field to Diaper Change model ( #77 )
2020-01-26 13:22:20 -08:00
Christopher C. Wells
69798ff490
Add YYYY-MM-DD support to frontend library
2020-01-23 20:33:36 -08:00
Christopher C. Wells
746526d4ed
Add "trimmed" key to `blocktrans` tags and update formatting
2020-01-23 20:00:32 -08:00
Christopher C. Wells
b3fd5378d6
Fix missing user name in Timer info string
2020-01-23 19:20:55 -08:00
Christopher C. Wells
d9280d4887
Use `LOCALE` in Timer form
2020-01-20 15:50:35 -08:00
Christopher C. Wells
a93070c5ba
Add locale support for datetime picker
2020-01-20 15:50:35 -08:00
Christopher C. Wells
1a31a27974
Remove hardcoded time formats in list views ( #93 )
2020-01-19 13:29:49 -08:00
Christopher C. Wells
eceece0db2
Update tests for Diaper Change attribute verbose names
2019-11-09 16:42:51 -08:00
Christopher C. Wells
d5509bdb52
Fix linting issues
2019-11-09 16:42:51 -08:00
Christopher C. Wells
b6733650dc
Use get_FOO_display for choices fields in templates
2019-11-09 16:42:51 -08:00
Christopher C. Wells
cce4855b52
Add translation support to CoreDeleteView
2019-11-09 16:42:51 -08:00
Christopher C. Wells
4f84482803
Add translation support to `duration_string` utility
2019-11-09 16:42:51 -08:00
Christopher C. Wells
74f089fcec
Refactor usee of removd Visibility API library.
2019-08-22 20:35:52 -07:00
Christopher C. Wells
f270af8cd4
Add "Fortified brest milk" feeding type option ( #71 ).
2019-06-07 07:24:03 -07:00
Christopher C. Wells
4397d4a406
Add temperature tracking.
2019-05-16 21:33:26 -07:00
Christopher C. Wells
0261f39864
Add "both breasts" option for Feeding method ( #52 ).
2019-05-02 10:19:56 -07:00
Christopher C. Wells
185f52b01f
Fix linting issues.
2019-04-18 19:55:55 -07:00
Christopher C. Wells
383fa0b74f
Add no-op migrations related to translation changes.
2019-04-16 21:42:31 -07:00
Christopher C. Wells
485b8fb2ae
Add translation support to Child timeline elements.
2019-04-16 20:33:49 -07:00
Christopher C. Wells
1c3dacf96c
Fix missed translation strings for template headers.
2019-04-16 20:03:34 -07:00
Christopher C. Wells
b4c417ac3d
Add translatable verbose names to all Model fields.
2019-04-14 18:59:16 -07:00
Christopher C. Wells
ee82286da5
Add translatable strings support to formatted strings (WIP).
2019-04-14 14:42:58 -07:00
Christopher C. Wells
bd4705b77f
Add translateable strings support in core app.
2019-04-13 22:51:44 -07:00
Christopher C. Wells
efc613c637
Fix minor linting issues.
2019-02-02 19:17:25 -08:00
Christopher Charbonneau Wells
4b7bb69218
Add support for Django 2.1 and Django Filters 2.0.0.
2018-08-04 13:00:51 -07:00
Christopher Charbonneau Wells
08488af718
Raise permission denied instead of redirecting to login ( #49 ).
2018-05-20 14:40:09 -07:00
Christopher Charbonneau Wells
7c980150a4
Make sure there is at least one Feeding object before attempting to preset the type for a new entry.
2018-04-07 06:35:35 -07:00
Christopher Charbonneau Wells
cdaef446a0
Automatically fill in the type field for a new Feeding entry with the value used for the latest entry.
2018-03-13 19:49:21 -07:00
Christopher Charbonneau Wells
b10944b030
Fix datetime picker class name for time form fields.
2018-03-13 19:17:30 -07:00
Christopher Charbonneau Wells
911cde4f95
Remove ounces references for feeding amounts.
2018-03-13 19:10:21 -07:00
Christopher Charbonneau Wells
5dc372281b
Remove all unicode_literals imports.
2018-02-17 17:09:40 -05:00
Christopher Charbonneau Wells
b972482cb1
Don't require color for solid diaper change entries.
2018-02-16 09:33:30 -05:00
Christopher Charbonneau Wells
5ad656060f
Fix bug keeping datetime input open after losing focus.
2018-01-14 09:39:06 -05:00
Christopher Charbonneau Wells
2b279fd175
Remove timer start messages.
...
These are not needed as the Timer model, unlink other models, redirects to the newly added instance (instead of the instances list).
2017-12-25 11:55:12 -05:00
Christopher Charbonneau Wells
f2a8cdec2d
Update URL definitions to Django 2.0 style.
2017-12-13 18:12:32 -05:00
Christopher Charbonneau Wells
ca2a5c6ee8
Use reverse/reverse_lazy instead of strings for core views URLs.
2017-12-06 17:16:47 -05:00
Christopher Charbonneau Wells
b6516c6b48
Add status messages for core app views.
2017-12-06 16:58:19 -05:00
Christopher Charbonneau Wells
d86c91aeab
Update HTML id targets for namespace views.
2017-12-03 17:11:13 -05:00
Christopher Charbonneau Wells
e92d3f361e
Misc. Django 2.0 update changes.
2017-12-03 16:52:27 -05:00
Isaac Bythewood
969958df09
Move ALLOW_UPLOADS to BABY_BUDDY dict
2017-12-03 04:39:43 -05:00
Christopher Charbonneau Wells
c0f17dd273
Reformat user menu and add external links to source and chat.
2017-11-30 11:34:07 -05:00
Christopher Charbonneau Wells
58c1cc4cbc
Merge pull request #20 from overshard/master
...
Make ALLOW_UPLOADS a setting dependent on user preference and platform
2017-11-19 08:40:27 -05:00
Isaac Bythewood
f8d028563a
Fix linting issue in admin with no space after comma.
2017-11-18 21:06:37 -05:00
Isaac Bythewood
a503d346ae
Make ALLOW_UPLOADS a setting dependent on user preference and platform
2017-11-18 20:59:51 -05:00
Christopher Charbonneau Wells
b5d2a0b7f4
SASS linting fix.
2017-11-18 07:34:57 -05:00
Christopher Charbonneau Wells
eff1320a5e
Tweak Child list table styles.
2017-11-18 06:48:59 -05:00
Isaac Bythewood
7479cc932f
Placeholder child list picture
2017-11-18 04:32:24 -05:00
Isaac Bythewood
bf62a4e252
Add ability to upload picture of child with thumbnailing capabilities.
2017-11-18 04:22:12 -05:00
Christopher Charbonneau Wells
067be4bf07
Add weight tracking.
2017-11-09 21:15:09 -05:00
Christopher Charbonneau Wells
f947d37285
Add default Child to Note add form.
2017-11-09 19:50:54 -05:00
Christopher Charbonneau Wells
162f117cef
Move timeline code to core and integrate with Child detail view.
2017-11-07 13:15:48 -05:00
Christopher Charbonneau Wells
1c5278cebf
Verify necessary fields before running model validation tests.
2017-11-07 07:07:51 -05:00
Christopher Charbonneau Wells
e2733e6b1e
Improve Dashboard view.
...
This commit adds a placeholder image for Child objects (in the future, hopefully, photo uploads will be added) and reworks the Dashboard view to look better when more than one child is in the database. There are also some minor tweaks to the Child detail view and one new Gulp requirement to improve the flow of copying static image assets from apps.
2017-11-06 16:24:21 -05:00
Christopher Charbonneau Wells
7955cd04a7
Fix linting error.
2017-11-05 15:02:22 -05:00
Christopher Charbonneau Wells
e6acfe4e75
Add date intersection validation for models with start and end dates.
2017-11-05 14:18:30 -05:00
Christopher Charbonneau Wells
4037f97e72
Add a NapManager to Sleep model and use it on the naps card.
2017-11-04 13:09:27 -04:00
Christopher Charbonneau Wells
f6dd38a891
Make "nap" bounds configurable with a 6AM - 6PM default.
2017-11-04 09:42:18 -04:00
Christopher Charbonneau Wells
df5c3e98b9
Add core templatetags tests and update some docstrings.
2017-11-03 23:55:42 -04:00
Christopher Charbonneau Wells
fe3e753d65
Update tests for new validators.
2017-11-03 23:29:55 -04:00
Christopher Charbonneau Wells
5343db5bbb
Validate model time fields as being in the past.
2017-11-03 21:30:40 -04:00
Christopher Charbonneau Wells
2da699c042
Add filtering to existing list pages.
2017-11-03 07:02:35 -04:00
Christopher Charbonneau Wells
7b6c9fb3f3
Change generic ListViews to django-filter FilterViews.
...
This enables URL parameter-based filters, though there is no UI for filtering yet.
2017-11-02 06:39:32 -04:00
Christopher Charbonneau Wells
237796a644
Move form clean methods to models.
2017-11-01 16:14:42 -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
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
8c274ce765
Add a type-to-confirm field for deleting a child.
2017-10-30 22:04:00 -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
e90e31cfd3
Add "Averages" dashboard card.
2017-10-30 14:26:49 -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
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
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
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
f23ea78cef
Linting fixes.
2017-10-22 15:05:58 -04:00
Christopher Charbonneau Wells
e45101b75c
Rename project Baby Buddy.
2017-10-22 14:00:42 -04:00
Christopher Charbonneau Wells
2ca120b83f
Add core forms tests.
2017-10-21 23:00:28 -04:00
Christopher Charbonneau Wells
646ffbf093
Add tests utilities and core views tests.
2017-10-21 22:14:44 -04:00
Christopher Charbonneau Wells
5f3cadd38b
Implement breadcrumbs.
2017-10-20 16:07:53 -04:00
Christopher Charbonneau Wells
201283221c
Add a Child detail view.
2017-10-20 15:23:26 -04:00
Christopher Charbonneau Wells
0038a34843
Prep for adding breadcrumbs (WIP).
2017-10-20 10:32:27 -04:00
Christopher Charbonneau Wells
117ee939cf
Adjust timer font size for smallest target display (iPhone SE).
2017-10-11 13:59:32 -04:00
Christopher Charbonneau Wells
43edfddd82
Move "short" duration string function to graphs and exclude seconds.
2017-09-25 11:40:15 -04:00
Christopher Charbonneau Wells
98963572ba
Use form classes to set appropriate field attributes in date/time fields.
...
Using a custom input element in the template caused issues with default values (e.g. when set by a timer).
2017-09-17 15:48:23 -04:00
Christopher Charbonneau Wells
dad1ff73ca
Add custom form field settings for datetime/date fields.
2017-09-17 14:54:50 -04:00