Context
While cleaning the shower, I noticed there are several indications of it's state of cleanliness.
- Are the glass windows clean?
- Is there grime on the walls?
- Is there soap scum in the shelves?
- Is the floor clean?
Cleaning the shower is a subtask of cleaning the bathroom.
A scoring of the shower's state could be derived from these sub parts.
Questions
How can I create a checklist interface with subtasks?
Could use reference widget and customize items available. But I want it on the front end.
Ideas
May need to build an HTMX component.
Done
Added as a bulleted list for now: https://inventory.mantra.network/chores/clean-shower
I used the Entity Reference Hierarchy module, adding a Parent chore reference field on the Chore storage type.
Then created an entity reference view display, using the "chore" url query parameter as the contextual filter for parent chore. That query parameter was added to the Views Add Button for Entity Prepopopulate to fill in the Chore reference field.
Here's the end result:
Great! The two chores with Vacuum floor set as the parent appear here.
Display of chore w/ sub chores:


