Skip to content

Fix latest-tag-button on branch ahead by more than 20 commits - #5505

Merged
cheap-glitch merged 3 commits into
mainfrom
fix-latest-tag-again
Mar 15, 2022
Merged

cheap-glitch merged 3 commits into
mainfrom
fix-latest-tag-again

Conversation

@cheap-glitch

@cheap-glitch cheap-glitch commented Mar 15, 2022 •

Copy link
Copy Markdown
Contributor

Comment thread source/features/latest-tag-button.tsx Resolved
Comment thread source/features/latest-tag-button.tsx Outdated
'aria-label',
isAhead
? `${defaultBranch} is ${pluralize(aheadBy, '1 commit', '$$ commits')} ahead of the latest version`
? `${defaultBranch} is ${aheadBy === undefined ? 'more than 20 commits' : pluralize(aheadBy, '1 commit', '$$ commits')} ahead of the latest version`

@cheap-glitch cheap-glitch Mar 15, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also adapt what's displayed in that case after the + in the tag button? Currently there's no number at all, which might be confusing (cf. screenshot).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about an asterisk? Or +? or +🤷‍♂️

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with the asterisk. We could also use ++ instead if it's not visible enough.

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎂

@cheap-glitch cheap-glitch changed the title Fix latest-tag-button when branch is ahead by more than 20 commits Fix latest-tag-button on branch ahead by more than 20 commits Mar 15, 2022
@cheap-glitch
cheap-glitch merged commit c0b6bfc into main Mar 15, 2022
@cheap-glitch
cheap-glitch deleted the fix-latest-tag-again branch March 15, 2022 08:01
@kidonng kidonng mentioned this pull request Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

latest-tag-button always shows "you're on the latest version"

2 participants