From 84f4d0bd5323f0822d2724599353bd36c3d0a1d8 Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Mon, 5 Feb 2024 13:58:53 +0100 Subject: [PATCH] feat: Display Linear project on notification item --- CHANGELOG.md | 1 + .../linear/listitem/LinearIssueNotificationListItem.tsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46a91e1..60e952f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Added - Display Linear notification reason +- Display Linear project on notification item ## [0.1.2] - 2024-02-01 diff --git a/src/integrations/linear/listitem/LinearIssueNotificationListItem.tsx b/src/integrations/linear/listitem/LinearIssueNotificationListItem.tsx index ffa4661..cc1cc42 100644 --- a/src/integrations/linear/listitem/LinearIssueNotificationListItem.tsx +++ b/src/integrations/linear/listitem/LinearIssueNotificationListItem.tsx @@ -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);