Commit Graph

84 Commits

Author SHA1 Message Date
Christopher C. Wells ff45ab46a3 Set base design for error response templates 2022-02-25 20:28:12 -08:00
Christopher C. Wells 94d1f99344 Create base error template 2022-02-25 20:28:12 -08:00
Christopher C. Wells b1ee9fe043 Add template for 403 CSRF Bad Origin failure 2022-02-25 20:28:12 -08:00
Christopher C. Wells 226f67f02c Update Django to 4.x 2022-01-16 15:49:09 -08:00
Yulian Kuncheff 9b604627a1 Add Height, Head Circumference, and BMI, corresponding reports, and move to separate menu with Weight and Temperature. 2021-12-31 09:19:53 -05:00
Christopher Charbonneau Wells 8f6d0295f3
Improve PWA experience (#359) 2021-12-25 14:31:58 -05:00
Christopher C. Wells c69fc603af Add logo to login page 2021-12-24 14:54:03 -05:00
Christopher C. Wells e62f4a6426 Use `sticky-top` instead of `fixed-top` for navbar 2021-12-24 14:48:14 -05:00
Christopher C. Wells 49919c2cbb Decrease size of login page logo 2021-12-24 14:42:58 -05:00
MagiX13 17e35e6469 Adjust paths to / to be dynamic
This is useful if you want to run babybuddy in a subdirectory
2021-12-21 15:51:20 -05:00
Christopher C. Wells 97fa8d7000 Support POST only for logout 2021-12-18 17:42:53 -05:00
Christopher C. Wells 32bfede6e2 Re-add non-svg favicon metadata files
Fixes #357
2021-12-18 17:11:55 -05:00
Christopher C. Wells 05c5b68d28 Remove link blank targets (let user decide) 2021-09-25 14:19:53 -07:00
Christopher Charbonneau Wells 4cf523dff0
Improve logo/favicon styling (#312)
* Update brand logo color (WIP)

Need more SVG hackery for proper transparency...

* Add SVG favicon (WIP)

👻

* Create transparent logo variant; use for brand icon

* Update primary color for all logo assets

* Add small white stroke to favicon

* Switch to SVG favicon
2021-09-25 14:16:48 -07:00
Christopher C. Wells 4b95ad48dc Adjust style of datetime picker trigger 2021-09-03 20:42:37 -07:00
Christopher C. Wells 690a270185 Replace datetime picker icons
Fixes #302
2021-09-03 20:17:38 -07:00
Christopher C. Wells bafa1dec6e Separate "information" and "action" icons for small screens 2021-08-31 08:08:13 -07:00
Christopher C. Wells e1f20db2cb Update back/forward arrow icon classes 2021-08-31 08:08:13 -07:00
Christopher C. Wells 2c029d3579 Prevent top menus from line breaking on small screens 2021-08-31 08:08:13 -07:00
Christopher C. Wells c850998b64 Remove deprecated `icon` base class usage 2021-08-31 08:08:13 -07:00
Christopher C. Wells 0990678325 Add basic timeline view (WIP) 2021-08-31 08:08:13 -07:00
Ohad Lutzky 5e4e3753e7 Nav items linking to timeline from dashboard
Fixes #271
2021-08-31 08:08:13 -07:00
Christopher C. Wells c1dab44596 Use POST for timer quick add functionality 2021-07-31 13:56:48 -07:00
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
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
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
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
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 d0b33c2b1b Use user first and last name, when available, in UI 2020-02-18 14:41:33 -08:00
Christopher C. Wells 192d8d9b09 Change Django backend name to "Database Admin"
This is primarily done to make the documentation for import/export a little easier to understand.
2020-02-18 14:41:33 -08:00
Christopher C. Wells 8735655f23 Add user timezone setting support to datetime form fields 2020-02-14 12:07:43 -08:00
Christopher C. Wells 1514e77f8c Add user configurable timezone setting 2020-02-14 10:56:13 -08:00
Christopher C. Wells 86f0c2f04b Update references to old repo address 2020-02-06 22:16:57 -08:00
Christopher C. Wells 682ebb34ca Implement pull-to-refresh (#107) 2020-02-04 10:58:26 -08:00
Christopher C. Wells e168babd86 Style datetime picker inputs 2020-01-31 08:47:03 -08:00
Christopher C. Wells e587ddeccd Use large inputs for datetime picker 2020-01-31 08:47:03 -08:00
Christopher C. Wells 475b7abf78 Apply custom style to `.datetimepicker-input` 2020-01-31 08:47:03 -08:00
Christopher C. Wells 26b54b114e Add wrapper for datetime picker widget 2020-01-27 14:56:37 -08:00
Christopher C. Wells 4194d833d2 Remove `vendor.css` reference (see 7030258) 2020-01-26 13:31:29 -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 a93070c5ba Add locale support for datetime picker 2020-01-20 15:50:35 -08:00
Christopher C. Wells d68410cdae Use cookie for language setting
Django 4.0 will deprecate the use of session for language setting.
2020-01-04 08:09:28 -08:00
Christopher C. Wells 4397d4a406 Add temperature tracking. 2019-05-16 21:33:26 -07:00
Christopher C. Wells 83b4edf95d Store and retrieve language in user Setting. 2019-04-16 21:41:55 -07:00
Christopher C. Wells c36451fc8e Add translateable strings support in babybuddy app. 2019-04-13 21:55:16 -07:00
Christopher C. Wells 0e4d80dab0 Add cookie-based language selection to user settings.
This will likely be refactored to use a database column instead of dropping a cookie.
2019-04-13 20:07:46 -07:00
Xitij Ritesh Patel 131bec7698
Modify app manifest to fix iOS link issue. Fixes #57. 2018-09-05 19:27:05 -04:00
Christopher Charbonneau Wells 2bc9d4703d Use logo in app. 2018-05-20 15:59:45 -07:00
Christopher Charbonneau Wells f59bbc03df Use logo for favicon. 2018-05-20 15:44:23 -07:00