mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Add alias to Issue/IssueTeaser
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ const issueStateSchema = union([
|
||||
|
||||
export interface Issue {
|
||||
id: string;
|
||||
author: { id: string };
|
||||
author: { id: string; alias?: string };
|
||||
title: string;
|
||||
state: IssueState;
|
||||
discussion: Comment[];
|
||||
@@ -28,7 +28,7 @@ export interface Issue {
|
||||
|
||||
export const issueSchema = strictObject({
|
||||
id: string(),
|
||||
author: strictObject({ id: string() }),
|
||||
author: strictObject({ id: string(), alias: string().optional() }),
|
||||
title: string(),
|
||||
state: issueStateSchema,
|
||||
discussion: array(commentSchema),
|
||||
|
||||
@@ -238,7 +238,9 @@
|
||||
rawPath={utils.getRawBasePath(projectId, baseUrl, projectHead)} />
|
||||
</div>
|
||||
<div class="author" slot="author">
|
||||
opened by <Authorship authorId={issue.author.id} />
|
||||
opened by <Authorship
|
||||
authorId={issue.author.id}
|
||||
authorAlias={issue.author.alias} />
|
||||
{utils.formatTimestamp(issue.discussion[0].timestamp)}
|
||||
</div>
|
||||
</CobHeader>
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
{formatObjectId(issue.id)} opened {formatTimestamp(
|
||||
issue.discussion[0].timestamp,
|
||||
)} by
|
||||
<Authorship authorId={issue.author.id} />
|
||||
<Authorship authorId={issue.author.id} authorAlias={issue.author.alias} />
|
||||
</div>
|
||||
</div>
|
||||
{#if commentCount > 0}
|
||||
|
||||
Reference in New Issue
Block a user