Skip to content

Commit

Permalink
feat(board): provide sane card link titles
Browse files Browse the repository at this point in the history
Update titles so that they clearly state the relationship between
issues, as it is too complex
to be represented by icons alone.
  • Loading branch information
nikku committed Oct 11, 2019
1 parent 00ffb01 commit 77cf5b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions packages/board/src/CardLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
$: cardUrl = `https://github.com/${ repositoryName }/issues/${ number }`;
$: linkTitle = ({
CHILD_OF: 'Part of',
DEPENDS_ON: 'Depends on',
PARENT_OF: 'Depends on',
CLOSED_BY: 'Closed by',
REQUIRED_BY: 'Required by',
CLOSES: 'Closes',
LINKED_TO: 'Related to',
LINKED_BY: 'Related to'
CHILD_OF: 'Parent of',
DEPENDS_ON: 'Required by',
PARENT_OF: 'Child of',
CLOSED_BY: 'Closes',
REQUIRED_BY: 'Depends on',
CLOSES: 'Closed by',
LINKED_TO: 'Linked to',
LINKED_BY: 'Linked to'
})[type] || type;
function handleSelection(qualifier, value) {
Expand Down Expand Up @@ -90,7 +90,7 @@
rel="noopener noreferrer"
class="issue-number"
on:click={ onSelect && handleSelection('ref', item.key) }
title="{ linkTitle } { repositoryName }#{ number }"
title="{ repositoryName }#{ number } · { linkTitle } this issue"
>
{#if pull_request}
<PullRequestIcon item={ item } />
Expand Down

0 comments on commit 77cf5b2

Please sign in to comment.