Commit Graph

133 Commits

Author SHA1 Message Date
Ohad Lutzky a5ec2d85c8
Add tummy time duration report (#316) 2021-10-04 12:37:11 -07:00
Christopher C. Wells 0e6a5cb08a Prevent caching of pages requiring authentication 2021-09-16 19:34:33 -07:00
Christopher C. Wells c850998b64 Remove deprecated `icon` base class usage 2021-08-31 08:08:13 -07:00
fodi666 de1a8f230a Update sleep_pattern.py
i removed the 'autorange' attribute and reversed the axis manually
2021-08-29 04:48:25 -07:00
fodi666 0e07fce976 reversing y-axis of sleep plot (top to down) 2021-08-29 04:48:25 -07:00
Christopher C. Wells e137676bcd Use `TIME_FORMAT` in sleep pattern graph
Fixes #287
2021-08-28 13:57:31 -07:00
Christopher C. Wells fb16cdb676 Don't show hover text on sleep pattern bars 2021-08-28 13:30:36 -07:00
Christopher C. Wells 1802733fd7 Do not show time on sleep graph x-axis; center bars
Closes #288
2021-08-27 20:47:52 -07:00
Christopher C. Wells ce805f501b Ensure lists are initialized for sleep pattern graph days
Fixed #293
2021-08-27 20:06:18 -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
Christopher C. Wells e6838a0c0f Correct sleep graph handling for entries that cross DST 2021-04-11 13:56:40 -07: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
Christopher C. Wells 4d74df27d9 Remove padding and borders from Sleep Pattern graph 2020-03-17 05:42:24 -07:00
Christopher C. Wells f0d763d374 Remove exception handling for Plotly output (#69)
At some point in Plotly 3.x, the offline graph output was changed to produce
two script tags instead of the initial one. With Plotly 4.x, that change was
reverted and the output now always has only a single script tag again.
2020-02-14 11:29:33 -08:00
Christopher C. Wells 3a7c8c92fd Add a Diaper Change amounts report 2020-01-26 14:12:27 -08:00
Christopher C. Wells a93070c5ba Add locale support for datetime picker 2020-01-20 15:50:35 -08:00
Christopher C. Wells 5fb2627c19 Move Plotly locales in to `graph.js` 2020-01-20 15:50:35 -08:00
Christopher C. Wells 2627b1cbfd Add Turkish translations 2020-01-16 19:42:49 -08:00
Christopher C. Wells f6b5126dfd Add Spanish translations 2020-01-16 19:33:03 -08:00
Ben Nelson 1cbd78193c Spelling corrections for 'not enough information to generate this report' message 2019-12-14 13:10:16 -08:00
Christopher C. Wells 9da0f2a1d5 Add locale support to Plotly graphs 2019-11-09 16:42:51 -08:00
Christopher C. Wells 3ae4010bb2 Replace use of deprecated Pandas method. 2019-08-22 20:12:35 -07:00
Christopher C. Wells c45e8ef53b Sum amounts and account for timezone in "Feeding Amounts" report. (#68) 2019-05-29 14:38:30 -07:00
Christopher C. Wells 2f8bc831d7 Fix <script> tags string concat for Plotly output. 2019-05-29 10:18:06 -07:00
Christopher C. Wells 3ba58c9352 Add "Feeding Amounts" report. (#68) 2019-05-29 10:06:50 -07:00
Christopher C. Wells bff17dd2a0 Support two output formats from plotly.plot. 2019-05-29 09:47:21 -07:00
Christopher C. Wells 8ed0e9117a Add translatable strings support to reports app. 2019-04-14 13:32:46 -07:00
Christopher C. Wells a47767355d Update report graph output processing for new Plot.ly data output. 2019-02-02 19:11:20 -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 c2724cd918 Correct mistyped view name. 2018-05-20 14:42:14 -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 49742e6ced Linting fixes. 2018-02-18 05:01:55 -05:00
Christopher Charbonneau Wells 5dc372281b Remove all unicode_literals imports. 2018-02-17 17:09:40 -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 e92d3f361e Misc. Django 2.0 update changes. 2017-12-03 16:52:27 -05:00
Christopher Charbonneau Wells 0646640ba3 Change feeding durations to a scatter/line plot with number of feedings included. 2017-11-30 11:16:50 -05:00
Christopher Charbonneau Wells 4272c9b075 Add a basic bar chart showing average feeding durations over time. 2017-11-29 21:28:54 -05:00
Christopher Charbonneau Wells 9311fe2cee Replace deprecating pandas methods. 2017-11-18 07:42:48 -05:00
Christopher Charbonneau Wells 5d4db5de6b Add simple weight report. 2017-11-10 07:20:34 -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 490e07c381 Handle utc offset changes (daylight savings) in the Sleep Patterns graph.
This change simply adjusts the size of the bar in the graph if an offset change happened between a sleep entry's start and end date.
2017-11-07 06:23:19 -05:00
Christopher Charbonneau Wells c5612b102d Refactor reports graphs in to separate files. 2017-11-03 23:03:24 -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 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 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 e09580e978 Fix graph JS link for new whitenoise setup. 2017-10-24 12:18:08 -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 5f3cadd38b Implement breadcrumbs. 2017-10-20 16:07:53 -04:00
Christopher Charbonneau Wells 90a74c94be Use theme colors for timeline. 2017-10-20 16:06:31 -04:00
Christopher Charbonneau Wells 701a18199f Change reports URLs to extend from /children/<slug>. 2017-10-20 10:21:50 -04:00
Christopher Charbonneau Wells a38c77a7c1 Update graph colors to match site theme colors. 2017-10-19 14:22:03 -04:00
Christopher Charbonneau Wells 48d5f17646 Add range selectors to some graphs. 2017-10-19 13:19:52 -04:00
Christopher Charbonneau Wells 4bb96b19be Account for full date when replacing time values.
This prevents issues when the dates in question cross months or years as well as days.
2017-10-01 10:00:42 -04:00
Christopher Charbonneau Wells b4ac40d2d4 Add a diaper lifetimes box plot graph. 2017-09-25 13:14:14 -04:00
Christopher Charbonneau Wells 5a2983d30e Remove redundant "changes" from Diaper Change types graph key. 2017-09-25 12:18:02 -04:00
Christopher Charbonneau Wells 4be3d66a85 Add time since to Timeline entries. 2017-09-25 11:42:41 -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 6562fa2390 Finalize child timeline graph/view. 2017-09-20 11:52:30 -04:00
Christopher Charbonneau Wells ab1b9ee7a8 Add actual events to timeline (WIP). 2017-09-16 17:17:09 -04:00
Christopher Charbonneau Wells 3d88235eb9 Implement generic, app-specific "icon" style names over FA. 2017-09-15 12:29:56 -04:00
Christopher Charbonneau Wells 1f1d96093b Add example timeline view (WIP). 2017-09-15 08:11:41 -04:00
Christopher Charbonneau Wells 6ec4307173 Increase default top margin to account for two line graph titles. 2017-09-13 14:52:18 -04:00
Christopher Charbonneau Wells e73cb380ef Add duration figures to graph view for sleep totals. 2017-09-13 14:10:11 -04:00
Christopher Charbonneau Wells 83aaab5bde Add a sleep totals graph. 2017-09-13 11:53:32 -04:00
Christopher Charbonneau Wells e77c2a5639 Refactor naming of current reports. 2017-09-13 11:25:12 -04:00
Christopher Charbonneau Wells 6cfbba5f81 Further standardize report templates. 2017-09-13 11:20:28 -04:00
Christopher Charbonneau Wells 944d33390d Begin Sleep Amount graph (WIP). 2017-09-10 17:26:18 -04:00
Christopher Charbonneau Wells fe1b54842d Correct sleep graph duration displays for entries crossing midnight. 2017-09-09 11:20:37 -04:00
Christopher Charbonneau Wells 2320d31d48 Add graph handling for sleep entry start and end dates that cross midnight. 2017-08-25 17:32:46 -04:00
Christopher Charbonneau Wells 1dbdc582dd Add TODO reminder... 2017-08-25 14:19:08 -04:00
Christopher Charbonneau Wells 81af1dacf5 Format sleep vs. wake time graph. 2017-08-25 14:17:15 -04:00
Christopher Charbonneau Wells 9a2facfa72 Create a sleep times graph (WIP).
Adding a Pandas requirement for dealing with the data and separating graph processing in to a separate file.
2017-08-25 12:19:06 -04:00
Christopher Charbonneau Wells ae71c5933e Prepare for a sleep reports page. 2017-08-25 08:08:02 -04:00
Christopher Charbonneau Wells d11733442d Add a diaper change types over time report. 2017-08-24 14:54:01 -04:00
Christopher Charbonneau Wells e4a92e0614 Use local graph assets instead of Plotly CDN. 2017-08-24 09:53:23 -04:00
Christopher Charbonneau Wells ed96814b10 Revert custom graph works and add Plotly-based example. 2017-08-23 09:04:53 -04:00
Christopher Charbonneau Wells 7ba85f29d4 Continue initial attempt at sleep graph (WIP). 2017-08-22 21:37:10 -04:00
Christopher Charbonneau Wells 23acc006d4 Linting fixes. 2017-08-22 13:36:49 -04:00
Christopher Charbonneau Wells 10e87c27b5 Prevent date intersections in the "fake" management command. 2017-08-22 09:35:01 -04:00
Christopher Charbonneau Wells 4e7f80cd2e Create a mockup of a couple of days of sleep data using progress bars. 2017-08-21 20:10:00 -04:00
Christopher Charbonneau Wells 8ae33b0f48 Create skeleton of reports app. 2017-08-21 19:22:03 -04:00