mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Replace patch author with revision author in Revision component
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -22,8 +22,6 @@
|
||||
import ProjectLink from "@app/components/ProjectLink.svelte";
|
||||
import Thread from "@app/components/Thread.svelte";
|
||||
|
||||
export let authorId: string;
|
||||
export let authorAlias: string | undefined = undefined;
|
||||
export let baseUrl: BaseUrl;
|
||||
export let expanded: boolean = true;
|
||||
export let patchId: string;
|
||||
@@ -34,6 +32,7 @@
|
||||
export let revisionId: string;
|
||||
export let revisionOid: string;
|
||||
export let revisionTimestamp: number;
|
||||
export let revisionAuthor: { id: string; alias?: string | undefined };
|
||||
export let timelines: Timeline[];
|
||||
export let previousRevId: string | undefined = undefined;
|
||||
export let previousRevOid: string | undefined = undefined;
|
||||
@@ -287,7 +286,10 @@
|
||||
</div>
|
||||
{/if}
|
||||
<div class="action txt-tiny">
|
||||
<Authorship {authorId} {authorAlias} timestamp={element.timestamp}>
|
||||
<Authorship
|
||||
authorId={revisionAuthor.id}
|
||||
authorAlias={revisionAuthor.alias}
|
||||
timestamp={element.timestamp}>
|
||||
{caption}
|
||||
</Authorship>
|
||||
{#if response?.commits}
|
||||
@@ -299,7 +301,7 @@
|
||||
<span class="commit-separator">
|
||||
{i === 0 ? "╎" : "│"}
|
||||
</span>
|
||||
<Avatar inline nodeId={authorId} />
|
||||
<Avatar inline nodeId={revisionAuthor.id} />
|
||||
<ProjectLink
|
||||
projectParams={{
|
||||
view: { resource: "commits", commitId: commit.id },
|
||||
|
||||
@@ -164,6 +164,7 @@
|
||||
revisionTimestamp: number;
|
||||
revisionBase: string;
|
||||
revisionOid: string;
|
||||
revisionAuthor: { id: string; alias?: string | undefined };
|
||||
},
|
||||
Timeline[],
|
||||
]
|
||||
@@ -173,6 +174,7 @@
|
||||
revisionTimestamp: rev.timestamp,
|
||||
revisionBase: rev.base,
|
||||
revisionOid: rev.oid,
|
||||
revisionAuthor: rev.author,
|
||||
},
|
||||
[
|
||||
...rev.reviews.map<TimelineReview>(review => ({
|
||||
@@ -445,8 +447,6 @@
|
||||
first={index === 0}
|
||||
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} />
|
||||
|
||||
Reference in New Issue
Block a user