Skip to content

Commit b566e4d

Browse files
author
Forge
committed
feat(ui): show GPG signed badge on signed commits in graph view
Signed commits now display a '✓ Signed' badge in the commit graph next to the message. The badge uses the Success color (green) for visibility. Commit signing status is already tracked in CommitInfo (is_signed) but was not previously rendered in the graph UI.
1 parent d780482 commit b566e4d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

crates/rgitui_graph/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1687,6 +1687,15 @@ impl Render for GraphView {
16871687
}
16881688
}
16891689

1690+
// GPG signed commit badge
1691+
if commit.is_signed {
1692+
message_col = message_col.child(
1693+
div()
1694+
.flex_shrink_0()
1695+
.child(Badge::new("✓ Signed").color(Color::Success).bold()),
1696+
);
1697+
}
1698+
16901699
let summary_label = if is_head_row {
16911700
Label::new(summary)
16921701
.size(LabelSize::Small)

0 commit comments

Comments
 (0)