Skip to content

Commit

Permalink
Refactor: Update default project lead name from 'key' to 'displayName…
Browse files Browse the repository at this point in the history
…' for clarity and consistency (AxisCommunications#101)

This commit enhances readability by replacing default the ambiguous 'key' with the descriptive 'displayName' for the project lead name.

Signed-off-by: Rigin Oommen <[email protected]>
  • Loading branch information
riginoommen authored Mar 21, 2024
1 parent 7cc7d12 commit c108b55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-geese-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@axis-backstage/plugin-jira-dashboard': patch
---

Refactor: Update default project lead name from 'key' to 'displayName' for clarity and consistency.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ export const JiraProjectCard = ({ project }: JiraProjectCardProps) => {
{project.description && (
<ProjectInfoLabel label="Description" value={project.description} />
)}
{project.lead?.key && (
<ProjectInfoLabel label="Project lead" value={project.lead.key} />
)}
{project.lead?.key ||
(project?.lead?.displayName && (
<ProjectInfoLabel
label="Project lead"
value={project?.lead?.displayName || project?.lead?.key}
/>
))}
</Stack>
<LinkButton
color="primary"
Expand Down

0 comments on commit c108b55

Please sign in to comment.