Template Builder
The Template Builder is a visual editor for Chronos templates. It lets you browse your library, load an existing template (routine/subroutine/microroutine/day/week), reorder with drag-and-drop, refine properties, and save back to YAML.
Overview
- Library (left): browse items and templates; filter by type and subtype; quick search.
- Template (center): load a template and edit its tree via drag-and-drop.
- Inspector (right): edit type, name, duration (minutes or
parallel), ideal start/end time, and depends_on.
Supported Types
- Templates:
routine,subroutine,microroutine,day,week - Items (library aggregate): task, note, goal, habit, appointment, commitment, dream_diary_entry, idea, inventory_item, journal_entry, list, milestone, person, place, plan, project, review, reward, ritual, tool, alarm, reminder
Editing
- Load: choose type + name then click Load to bring the template tree into view.
- Reorder: drag items before/after to change order; drop into to make a child; drop near the left edge (outdent hint) to move up a level.
- Duration: enter minutes (sequential Σ) or
parallel(∥) to group child durations in parallel. - Inspector: set
ideal_start_time,ideal_end_time, anddepends_on(choose from nodes in the tree).
Nesting Rules
- Hierarchy:
week > day > routine > subroutine > microroutine > item. - Do not nest a larger template under a smaller one (e.g., routine into subroutine).
- No same-kind self-nesting (e.g., routine inside routine).
Save & Load
- List names:
GET /api/template/list?type=TYPE - Load tree:
GET /api/template?type=TYPE&name=NAME→{ children } - Save tree:
POST /api/templatewith YAML:{ type, name, children }
Tips
- Use fx toggle to expand variables (e.g.,
@nickname) in labels while editing. - Drag from the Library to add nodes; drag within the template to reorder or change depth.
- Use Apply in the inspector to commit edits to the selected node.
