TandoorRecipes / recipes

Application for managing recipes, planning meals, building shopping lists and much much more!
https://docs.tandoor.dev
Other
5.6k stars 597 forks source link

Cook time to use float instead of int #2748

Open nyanSpruk opened 1 year ago

nyanSpruk commented 1 year ago

Is your feature request related to a problem? Please describe.

Currently if you use decimal places in time for cooking, it gives error for saving (not a specific error)

Describe the solution you'd like

I would like to give a better error and also other options mentioned below

Describe alternatives you've considered

Instead of integer, i would recommend float. since some recipes need 90 sec... but you cant do that currently.

Or an option to pick the unit (min, seconds...)

Additional context

No response

rmdluo commented 7 months ago

A few friends and I would like to work on this issue if that's alright? Our plan for completing it would be along the lines of change the recipe working_time and waiting_time fields to be TimeFields (or FloatFields), updating the recipe submission form to use hh:mm:ss format with 3 text boxes, and updating the recipe card/recipe component to show the time in terms of hh hours, mm minutes, ss seconds. Thanks!