farmOS / field-kit

A modular, offline-first companion app to farmOS.
https://farmOS.org
GNU General Public License v3.0
59 stars 38 forks source link

Require type when creating tasks #464

Open jgaehring opened 2 years ago

jgaehring commented 2 years ago

I've already essentially disabled the ability to change the log type in TasksEdit, since it was always conditional on there being no id field on the log, and now since logs always have a client-generated id, it will always be fixed. Therefore, pressing the + FAB (floating action button) will always create an activity, the default type. The most obvious alternative is probably to emit related actions, as described in the Material docs:

https://material.io/components/buttons-floating-action-button#types-of-transitions