project_list
Full project list view with Grid-aligned columns and count summary.
struct ProjectEntry
pub struct ProjectEntryA 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
pub struct ComponentFull 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
pub fn new(entries: Vec<ProjectEntry>) -> SelfCreate 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. |