diff --git a/apps/app/components/core/sidebar/links-list.tsx b/apps/app/components/core/sidebar/links-list.tsx index d55eee430..edbd11010 100644 --- a/apps/app/components/core/sidebar/links-list.tsx +++ b/apps/app/components/core/sidebar/links-list.tsx @@ -54,11 +54,14 @@ export const LinksList: React.FC = ({ links, handleDeleteLink, userAuth }
-
{link.title}
+
{link.title}

Added {timeAgo(link.created_at)}
- by {link.created_by_detail.email} + by{" "} + {link.created_by_detail.is_bot + ? link.created_by_detail.first_name + " Bot" + : link.created_by_detail.email}

diff --git a/apps/app/components/issues/activity.tsx b/apps/app/components/issues/activity.tsx index 37678b2a2..0f260b182 100644 --- a/apps/app/components/issues/activity.tsx +++ b/apps/app/components/issues/activity.tsx @@ -160,7 +160,7 @@ export const IssueActivitySection: React.FC = () => { {activity.actor_detail.avatar && activity.actor_detail.avatar !== "" ? ( {activity.actor_detail.name} = () => {

- {activity.actor_detail.first_name} {activity.actor_detail.last_name} + {activity.actor_detail.first_name} + {activity.actor_detail.is_bot + ? " Bot" + : " " + activity.actor_detail.last_name} {" "} diff --git a/apps/app/components/issues/comment/comment-card.tsx b/apps/app/components/issues/comment/comment-card.tsx index 79582df3f..936d2b6b6 100644 --- a/apps/app/components/issues/comment/comment-card.tsx +++ b/apps/app/components/issues/comment/comment-card.tsx @@ -55,7 +55,7 @@ export const CommentCard: React.FC = ({ comment, onSubmit, handleCommentD {comment.actor_detail.avatar && comment.actor_detail.avatar !== "" ? ( {comment.actor_detail.name} = ({ comment, onSubmit, handleCommentD

- {comment.actor_detail.first_name} {comment.actor_detail.last_name} + {comment.actor_detail.first_name} + {comment.actor_detail.is_bot ? "Bot" : " " + comment.actor_detail.last_name} {timeAgo(comment.created_at)}

diff --git a/apps/app/types/issues.d.ts b/apps/app/types/issues.d.ts index 91f56768e..ab2f65052 100644 --- a/apps/app/types/issues.d.ts +++ b/apps/app/types/issues.d.ts @@ -137,7 +137,7 @@ export interface BlockeIssueDetail { export interface IIssueComment { id: string; actor: string; - actor_detail: IUser; + actor_detail: IUserLite; created_at: Date; updated_at: Date; comment: string; @@ -187,7 +187,7 @@ export interface IIssueLabels { export interface IIssueActivity { id: string; - actor_detail: IUser; + actor_detail: IUserLite; created_at: Date; updated_at: Date; verb: string; diff --git a/apps/app/types/users.d.ts b/apps/app/types/users.d.ts index 19dac7ed6..4bf6f7f64 100644 --- a/apps/app/types/users.d.ts +++ b/apps/app/types/users.d.ts @@ -33,6 +33,7 @@ export interface IUserLite { email: string; avatar: string; created_at: Date; + is_bot: boolean; } export interface IUserActivity {