iteration_detail
Single-iteration detail view composing title, phase count, and task status breakdown.
const LABEL_PAD
const LABEL_PAD: usize = 8;Fixed padding width for field labels.
struct Component
pub struct ComponentRenders the full detail view for a single iteration, including title, phase count, and task breakdown.
| Field | Type | Description |
|---|---|---|
counts |
TaskCounts | Task totals shown in the tasks row. |
id |
String | Full iteration ID; the header shows its first 8 characters. |
phase_count |
usize | Number of phases, shown in the phases row. |
prefix_len |
usize | Number of highlighted characters in the ID header; 2 by default. |
title |
String | Iteration title for the title row. |
Implements Display.
Component::new
pub fn new(
id: impl Into<String>,
title: impl Into<String>,
phase_count: usize,
counts: TaskCounts,
) -> SelfCreate a detail view for the iteration with its title, phase count, and task status totals.
| Parameter | Type | Description |
|---|---|---|
id |
impl Into<String> | the full iteration ID |
title |
impl Into<String> | the iteration title |
phase_count |
usize | the number of phases |
counts |
TaskCounts | the task totals by status |
| returns | Self | The view, with a 2-character ID prefix. |
Component::prefix_len
pub fn prefix_len(self, len: usize) -> SelfSets the highlighted prefix length passed to the rendered ID.
| Parameter | Type | Description |
|---|---|---|
len |
usize | the prefix length |
| returns | Self | The view with the new prefix length. |
Component::task_counts_line
fn task_counts_line(&self) -> StringBuild the tasks row value: the total, then the done, in-progress, open and blocked counts.
| Parameter | Type | Description |
|---|---|---|
| returns | String | The counts joined by muted · separators, each painted in its status style. |
struct TaskCounts
pub struct TaskCountsAggregated task status counts for an iteration summary.
| Field | Type | Description |
|---|---|---|
blocked |
usize | Number of tasks currently blocked by another task. |
done |
usize | Number of tasks marked as done. |
in_progress |
usize | Number of tasks currently in progress. |
open |
usize | Number of tasks still open and not yet started. |
total |
usize | Total number of tasks across all statuses. |