task_list
Full task list view with Grid-aligned columns and count summary.
struct TaskEntry
pub struct TaskEntryA 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
pub struct ComponentFull 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
pub fn new(entries: Vec<TaskEntry>) -> SelfCreate 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. |