Commit Graph

1766 Commits

Author SHA1 Message Date
WeslleyNasRocha a68deabdf0 Add Brazilian Portuguese translations 2024-03-13 20:27:00 -07:00
abog854 ab5bb66c8f
Add feeding method history (#774)
* add feeding method history

* Make it a specialized breastfeeding card instead.

* Minor improvements:

 - don't print days for an empty card.
 - make the width of the bar for each day proportional to that day's total feeding time.

* Don't make bar width proportional to feeding time, actually, it's kinda ugly.

---------

Co-authored-by: ag <ag@ag.com>
Co-authored-by: Christopher C. Wells <git-2022@chris-wells.net>
2024-03-13 19:59:50 -07:00
billybonks 25d3c9f58c deploy: rebuild static files 2024-03-06 05:33:19 -08:00
Michael Salaverry f1ab5a0484 Add external developer documentation to BBoTW README.md 2024-02-28 05:26:29 -08:00
billybonks dd4e565008 feat: improve styling of pill groups
1. add default spacing
2. increase size to use all space on mobile
2024-02-27 20:11:41 -08:00
billybonks f2190ce387 feat: Apply advanced fields to all forms 2024-02-27 20:11:41 -08:00
billybonks 5ec806ef86 feat: use pill radio and include advanced fields on feeding form 2024-02-27 20:11:41 -08:00
billybonks 66ccc1c6c8 refactor: move javascript to babybuddy.js
having it directly in the page html is not ideal, now its properly
isolated.

Also use the new classname
2024-02-27 20:11:41 -08:00
billybonks b7743674d8 feat: Improve advanced fields styling
on mobile it text align center
Increased the font size so its easier to click
Added translations
2024-02-27 20:11:41 -08:00
billybonks 232cde19ee feat: use field set on some forms
Create choices template to have all multi choice experience be the same
as radio select choices.

Moved notes and tags into advanced template in order to reduce the
amount of fields in a form for users. Given that these two fields are
usually a catch all for anything that is not in the core data model. it
is not garunteed that users will use them.

If a user does decide to use the fields we will store that selection in
localstorage so that they dont have to open it every time.

I put the javascript into the page section, as i seem to have had issues
with javascript blocks overriding each other.
2024-02-27 20:11:41 -08:00
billybonks 60b113f197 feat: create fieldset implementation
In order to have more control and flexiability on how elements are
rendered create field set implementation.

every field set gets rendered in order, and uses the template specified.

This should probably be built into the metaclass of the form but i have
no idea how to do that.
2024-02-27 20:11:41 -08:00
billybonks 3edd645f53 feat: Add PillRadioSelect widget
In order to promote less clicks on the mobile experience, this wideget
will splat out the drop down options similar to child select
2024-02-27 20:11:41 -08:00
billybonks 2d1338a915 lint: add markdown and yaml to prettier 2024-02-07 19:46:51 -08:00
billybonks dda68e0fc3 feat: add prettier to format command 2024-02-07 19:46:51 -08:00
billybonks f28df6ecf3 lint: lint all js and sjon files with prettier 2024-02-07 19:46:51 -08:00
billybonks e141492db7 ci: add prettier to ci 2024-02-07 19:46:51 -08:00
billybonks 1694c6f670 lib: install prettier 2024-02-07 19:46:51 -08:00
billybonks 5ccca11b42 bugfix: dashboard shows ago when less then 1minute 2024-02-07 04:58:49 -08:00
Christopher C. Wells 59e9263a69 Add djlint to gulp format 2024-02-06 20:24:55 -08:00
Sebastien Stettler 682090f594
feat: add links for bottle feeding (#764)
Co-authored-by: Christopher C. Wells <git-2022@chris-wells.net>
2024-02-06 20:17:54 -08:00
Sebastien Stettler f30479db42
ci: add djlint to ci (#763)
* ci: add djlint to ci

* lint: all django templates
2024-02-06 05:35:36 -08:00
Christopher C. Wells ae76ef3606 Add LOGGING override option for production troubleshooting 2024-02-05 21:02:44 -08:00
billybonksl 3c54636790 feat: create a trimmed form just for bottle feeding.
While Feeding for is great, i think there is room to create optimised
forms for breast feeding and bottle feeding.

This is the first one a trimmed down form for bottle feeding
specifically
2024-01-28 06:03:41 -08:00
Christopher C. Wells 4ff6f7dd9b Update CI action versions 2024-01-27 19:51:07 -08:00
Christopher C. Wells 98f46fe468 Create v2.2.1 release 2024-01-27 19:43:07 -08:00
Christopher C. Wells c1e4876c20 Set explicit bounds on some graphs
Fixes #706
2024-01-27 19:42:12 -08:00
Christopher C. Wells 17635a71a1 Update node dependencies and static assets 2024-01-27 19:41:10 -08:00
Christopher C. Wells e65b1749e0 Catch invalid object ID in form initial setup
Fixes #735
2024-01-27 09:32:51 -08:00
Christopher C. Wells 267780d113 Update outdated Django docs references 2024-01-27 09:05:24 -08:00
Christopher C. Wells c3bdd329fe Compile locale messages 2024-01-27 08:58:18 -08:00
hejhj 420e9d6848
742 fix sleep zh trans (#752)
* Chinese translation - 喂食 -> 睡眠

* fix translations on the dashboard screen
2024-01-27 08:57:22 -08:00
Christopher C. Wells 27d4a9e98d Create v2.2.0 release 2024-01-20 06:35:12 -08:00
Christopher C. Wells 400084ba34 Make and compile latest translations 2024-01-20 06:32:45 -08:00
Christopher C. Wells 413338c236 Correct error string 2024-01-20 06:13:53 -08:00
Christopher C. Wells 921bc0ddd2 Compile latest ES translations 2024-01-13 21:11:44 -08:00
José Ignacio Amelivia Santiago 6918b079d9
Fix typo in Spanish translations (#747)
Co-authored-by: Christopher Charbonneau Wells <10456740+cdubz@users.noreply.github.com>
2024-01-13 21:08:16 -08:00
Christopher Charbonneau Wells 49d8f2b340
Update to Django 5.x (#746) 2024-01-13 20:22:08 -08:00
mmomjian 9b603a9e84
Add DB options support (#745)
* Update base.py

allow postgres SSL

* Update base.py

* Update database.md

documentation

* Update database.md

* Update database.md

* Update database.md

Docs specified that postgres was the default variable, but settings/base.py:100-115 uses SQLite as default.

* Adjust documentation language

---------

Co-authored-by: Christopher Charbonneau Wells <10456740+cdubz@users.noreply.github.com>
2024-01-06 03:39:18 -08:00
Xavier Mehrenberger bdeb14968a Fix link target for height percentile reports 2023-12-25 06:48:33 -08:00
Xavier Mehrenberger e519634748 Fix variable names in height_change.py
As requested by @cdubz in https://github.com/babybuddy/babybuddy/pull/741
2023-12-25 06:48:33 -08:00
Xavier Mehrenberger 519045d5e7 Improve fake data for height percentile reports
As requested by @cdubz on https://github.com/babybuddy/babybuddy/pull/741
2023-12-25 06:48:33 -08:00
Xavier Mehrenberger 6c4f5b23f0 feat: Height percentiles report (#719) 2023-12-25 06:48:33 -08:00
Edvin N d053050ed5
Add CGP Cloud Run deployment documentation
* Add docs for gcp cloud run

* terraform gcp cloud run

* Edit GCP Clound Run documentation for clarity

---------

Co-authored-by: Christopher Charbonneau Wells <10456740+cdubz@users.noreply.github.com>
2023-12-22 12:53:36 -05:00
Christopher Charbonneau Wells 9d3501d366 Compile ZH translations 2023-12-22 17:22:45 +00:00
hejhj 79d40674bc
Fix incorrect ZH translations
Fixes #742
2023-12-22 06:52:07 -08:00
Jose V. Herrera Gallegos 1ef0bb9287 update diaperchange card test 2023-12-17 05:04:14 -08:00
Jose V. Herrera Gallegos 3131aeb328 fix #699, add diaper change count to card stats 2023-12-17 05:04:14 -08:00
Nicholas Trecina 1063d39af0 Fixed report breadcrumbs being duplicated. Fixed DiaperChangeTypesChildReport pointing to the wrong report view. Fixed child sw
itcher for WHO weight percentiles boy/girl reports.
2023-12-17 04:57:07 -08:00
Christopher C. Wells 7747ae9023 Lock Django to 4.x for now 2023-12-08 04:55:51 -08:00
Christopher C. Wells ce4518014d Remove hardcorded `master` branch reference 2023-10-21 14:02:07 -07:00