project_list

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

struct ProjectEntry

source

pub struct ProjectEntry

A single project entry for the list view.

Field Type Description
archived bool Whether the project is archived, which dims its row and appends a badge.
id String Short ID string displayed as the leading column.
prefix_len usize Number of highlighted prefix characters for this entry’s ID.
root String Absolute root path of the project.

struct Component

source

pub struct Component

Full project list view using Grid for column alignment.

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

Implements Display.

Component::new

source

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

Create a list view from the entries, each with its own prefix length.

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