mobtime icon indicating copy to clipboard operation
mobtime copied to clipboard

Allow users to nest goals

Open FRFlor opened this issue 5 years ago • 2 comments

This morning on the nomorobo team, we wanted to split a larger goal into small goals. It would be neat if mobtime could support goals with child goals.

FRFlor avatar Jun 02 '20 14:06 FRFlor

This should be fine, I'm just going to need to think through if there is infinite nesting, and what that means for the summary.

Another thing to consider: if you have a large series of sub goals, that the over-all goal is a full day, and maybe you don't need the parent+children.

That said, I still want to implement child goals (especially for multi-day continuous mobs).

mrozbarry avatar Jun 02 '20 14:06 mrozbarry

Something important is this needs to be a smooth transition, we cannot change the pre-existing data structures. I'm guessing we can just add a parent_id which would get gracefully handled as undefined/falsy, and that's probably good enough.

I think for the initial version, this doesn't need to be fancy. For instance, checking the parent doesn't need to force all the children to be checked.

mrozbarry avatar Oct 17 '20 01:10 mrozbarry