artifact_list

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

struct ArtifactEntry

source

pub struct ArtifactEntry

A single artifact entry for the list view.

Field Type Description
archived bool Whether the artifact 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.
tags Vec<String> Tag labels rendered as #tag chips after the title.
title String Artifact title rendered in the title column.

struct Component

source

pub struct Component

Full artifact list view using Grid for column alignment.

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

Implements Display.

Component::new

source

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

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

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