diff --git a/apps/app/components/issues/activity.tsx b/apps/app/components/issues/activity.tsx index 1b5cd6e4c..83da7d521 100644 --- a/apps/app/components/issues/activity.tsx +++ b/apps/app/components/issues/activity.tsx @@ -134,7 +134,9 @@ export const IssueActivitySection: React.FC = ({ issueId, user }) => {
- {activityItem.actor_detail.display_name.charAt(0)} + {activityItem.actor_detail.is_bot + ? activityItem.actor_detail.first_name.charAt(0) + : activityItem.actor_detail.display_name.charAt(0)}
)} @@ -153,7 +155,9 @@ export const IssueActivitySection: React.FC = ({ issueId, user }) => { ) : ( - {activityItem.actor_detail.display_name} + {activityItem.actor_detail.is_bot + ? activityItem.actor_detail.first_name + : activityItem.actor_detail.display_name} )}{" "} diff --git a/apps/app/components/issues/comment/comment-card.tsx b/apps/app/components/issues/comment/comment-card.tsx index 02dbe9b0b..4e95e1334 100644 --- a/apps/app/components/issues/comment/comment-card.tsx +++ b/apps/app/components/issues/comment/comment-card.tsx @@ -65,7 +65,11 @@ export const CommentCard: React.FC = ({ comment, onSubmit, handleCommentD {comment.actor_detail.avatar && comment.actor_detail.avatar !== "" ? ( {comment.actor_detail.display_name} = ({ comment, onSubmit, handleCommentD
- {comment.actor_detail.display_name.charAt(0)} + {comment.actor_detail.is_bot + ? comment.actor_detail.first_name.charAt(0) + : comment.actor_detail.display_name.charAt(0)}
)} diff --git a/apps/app/components/notifications/notification-card.tsx b/apps/app/components/notifications/notification-card.tsx index 1987c7155..9bb0715a8 100644 --- a/apps/app/components/notifications/notification-card.tsx +++ b/apps/app/components/notifications/notification-card.tsx @@ -80,7 +80,9 @@ export const NotificationCard: React.FC = (props) => { ) : (
- {notification.triggered_by_details.display_name?.[0] ? ( + {notification.triggered_by_details.is_bot ? ( + notification.triggered_by_details.first_name?.[0]?.toUpperCase() + ) : notification.triggered_by_details.display_name?.[0] ? ( notification.triggered_by_details.display_name?.[0]?.toUpperCase() ) : ( @@ -91,7 +93,11 @@ export const NotificationCard: React.FC = (props) => {
- {notification.triggered_by_details.display_name} + + {notification.triggered_by_details.is_bot + ? notification.triggered_by_details.first_name + : notification.triggered_by_details.display_name}{" "} + {notification.data.issue_activity.field !== "comment" && notification.data.issue_activity.verb}{" "} {notification.data.issue_activity.field === "comment"