Module planner

Source
Expand description

Planner pane: tabs “Plan” and “Notes”. Plan = a nested to-do tree (Project.plan): each row = checkbox (done), editable title, colour label dot (click → LABEL_COLORS menu), a collapse triangle, “+” add sub-task, delete, reorder among siblings, indent/outdent; a selected item shows its notes (multiline) and its moodboard: the asset ids in assets as rows (name, kind tag, thumbnail via ThumbCache if available, per-asset note in asset_notes, “Add to timeline”, delete); assets are added by dropping library items (DragPayload::Asset) onto the item or onto the moodboard area. Progress bar “done/total” at the top; “Add task” at the top level; “Clear completed”. Notes tab = Project.notes as a large multiline TextEdit (“describe your process, ideas, style while you edit — the style summary / AI tools read this”). Undo once per gesture. Returns what changed.

Structs§

PlannerResponse
PlannerState
TreeUi 🔒

Enums§

Op 🔒

Functions§

color_menu 🔒
Colour-dot button opening a LABEL_COLORS menu; returns the picked value.
count_items 🔒
(done, total) across the whole tree.
details 🔒
Notes + moodboard of the selected item (edits the plan clone). Returns (gesture start, changed).
find_mut 🔒
indent_item 🔒
Make the item a child of its previous sibling.
move_item 🔒
Swap the item with its previous/next sibling. Returns true when the id was found (even at an edge).
outdent_item 🔒
Move the item next to its parent (top-level items stay).
retain_incomplete 🔒
Remove done items (their children go with them).
show
tree_rows 🔒