PhoenixKitProjects. Web. Components. RunningCard
(PhoenixKitProjects v0.12.0)
Copy Markdown
View Source
One project in the dashboard's "Running" section, rendered as a hierarchical
summary (V127): a top line with the project name + tier + progress, a
one-line summary (N tasks · M sub-projects), a status breakdown
(X done · Y in progress · Z todo), and then each embedded sub-project nested
underneath as an indented sub-step with its own summary + breakdown — all the
way down.
Driven by the recursive node shape from Projects.project_tree_summary/1.
The top node also carries total / progress_pct / planned_end, so the
dashboard's tier + sort helpers read it like the old flat summary map.
Example
<.running_card node={tree} tier={running_tier(tree)} embed_mode={@embed_mode} lang={lang} />
Summary
Functions
One nested sub-project node — recurses for its own sub-projects.
Functions
Attributes
node(:map) (required)tier(:atom) (required) - Must be one of:late,:near_done,:on_track, or:empty.embed_mode(:atom) - Defaults to:navigate. Must be one of:navigate, or:emit.lang(:string) - Defaults tonil.
One nested sub-project node — recurses for its own sub-projects.
Attributes
node(:map) (required)lang(:string) - Defaults tonil.embed_mode(:atom) - Defaults to:navigate.