diff --git a/src/components/RevisionSelector.svelte b/src/components/RevisionSelector.svelte index 387f8c0..4345451 100644 --- a/src/components/RevisionSelector.svelte +++ b/src/components/RevisionSelector.svelte @@ -49,6 +49,9 @@ .dropdown-group:not(:last-of-type) { margin-bottom: 1rem; } + .icon { + min-width: 16px; + } @@ -82,6 +85,29 @@ selectRevision(revision); }}>
+
+ {#if patch.state.status === "merged" && patch.state.revision === revision.id} +
+ +
+ {:else if revision.reviews && revision.reviews.length > 0 && revision.reviews.every( r => { + return r.verdict === "accept"; + }, )} +
+ +
+ {:else if revision.reviews && revision.reviews.length > 0 && revision.reviews.every( r => { + return r.verdict === "reject"; + }, )} +
+ +
+ {:else if revision.reviews && revision.reviews.length} +
+ +
+ {/if} +
{formatOid(revision.id)}