task_list

Full task list view with Grid-aligned columns and count summary.

struct TaskEntry

source

pub struct TaskEntry

A single task entry for the list view.

Field Type Description
blocked_by Option<String> Short ID of the task blocking this one, if any; swaps the row icon to blocked.
blocked_by_prefix_len Option<usize> Per-ID prefix length for the blocked-by ID, if any.
blocking bool Whether this task blocks others, which renders a blocking indicator.
id String Short ID string displayed as the leading column.
prefix_len usize Per-ID prefix length for this entry’s ID.
priority Option<u8> Optional priority level rendered as a [P<n>] badge.
status String Task status string driving icon, title styling, and status badge.
tags Vec<String> Tag labels rendered as #tag chips at the end of the row.
title String Task title rendered in the title column.

struct Component

source

pub struct Component

Full task list view using Grid for column alignment.

Field Type Description
entries Vec<TaskEntry> Tasks in display order; an empty list renders the empty-list message.

Implements Display.

Component::new

source

pub fn new(entries: Vec<TaskEntry>) -> Self

Create a list view from the entries, using per-entry prefix_len highlighted chars in each ID.

Parameter Type Description
entries Vec<TaskEntry> the tasks to list, in display order
returns Self The list view.