feat: Display Linear project on notification item

This commit is contained in:
2024-02-05 13:58:53 +01:00
parent a17b259e50
commit 84f4d0bd53
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
### Added
- Display Linear notification reason
- Display Linear project on notification item
## [0.1.2] - 2024-02-01

View File

@@ -19,7 +19,10 @@ export function LinearIssueNotificationListItem({
linearIssueNotification,
mutate,
}: LinearIssueNotificationListItemProps) {
const subtitle = `${linearIssueNotification.issue.team.name} #${linearIssueNotification.issue.identifier}`;
const projectSubtitle = linearIssueNotification.issue.project
? `/ ${linearIssueNotification.issue.project.name} `
: "";
const subtitle = `${linearIssueNotification.issue.team.name} ${projectSubtitle}#${linearIssueNotification.issue.identifier}`;
const state = getLinearIssueStateAccessory(linearIssueNotification.issue.state);
const assignee = getLinearUserAccessory(linearIssueNotification.issue.assignee);