Use distinct icons for issue/patch states

This commit is contained in:
Rūdolfs Ošiņš
2025-01-17 16:02:54 -06:00
parent 296c046ef7
commit 4571d466db
11 changed files with 114 additions and 34 deletions
+5 -2
View File
@@ -128,7 +128,10 @@
{:else if op.type === "lifecycle"}
<div class="timeline-item">
<div class="icon" style:color={patchStatusColor[op.state.status]}>
<Icon name="patch" />
<Icon
name={op.state.status === "open"
? "patch"
: `patch-${op.state.status}`} />
</div>
<div class="wrapper">
<NodeId {...authorForNodeId(op.author)} />
@@ -213,7 +216,7 @@
{:else if op.type === "merge"}
<div class="timeline-item">
<div class="icon" style:color="var(--color-fill-primary)">
<Icon name="patch" />
<Icon name="patch-merged" />
</div>
<div class="wrapper">
<NodeId {...authorForNodeId(op.author)} />