Add alias to Patch

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex
2023-05-29 12:14:17 +00:00
parent 46494461f2
commit 39874d8d51
4 changed files with 56 additions and 19 deletions
+6 -3
View File
@@ -153,10 +153,10 @@
revisionOid: rev.oid,
},
[
...rev.reviews.map<TimelineReview>(([author, review]) => ({
...rev.reviews.map<TimelineReview>(review => ({
timestamp: review.timestamp,
type: "review",
inner: [rev.id, author, review],
inner: [rev.id, review.author.id, review],
})),
...rev.merges.map<TimelineMerge>(inner => ({
timestamp: inner.timestamp,
@@ -279,7 +279,9 @@
{/if}
</svelte:fragment>
<div class="author" slot="author">
opened by <Authorship authorId={patch.author.id} />
opened by <Authorship
authorId={patch.author.id}
authorAlias={patch.author.alias} />
{utils.formatTimestamp(patch.revisions[0].timestamp)}
</div>
</CobHeader>
@@ -379,6 +381,7 @@
on:reply={createReply}
patchId={patch.id}
authorId={patch.author.id}
authorAlias={patch.author.alias}
expanded={index === patch.revisions.length - 1}
previousRevId={previousRevision?.id}
previousRevOid={previousRevision?.oid} />