Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): Add copy link + copy markdown dropdown to short ID #53825

Conversation

evanpurkhiser
Copy link
Member

@evanpurkhiser evanpurkhiser commented Jul 29, 2023

Looks like This

image

When not hovered there's nothing

clipboard.png

@evanpurkhiser evanpurkhiser requested a review from a team as a code owner July 29, 2023 00:56
@evanpurkhiser evanpurkhiser requested review from a team and removed request for a team July 29, 2023 00:56
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 29, 2023
>
<StyledShortId shortId={group.shortId} />
</Tooltip>
<DropdownMenu
Copy link
Member Author

Choose a reason for hiding this comment

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

This menu is causing some sizing problems that I need to look into before merging this.

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-ui-add-copy-link-copy-markdown-dropdown-to-short-id branch from 2fb206e to 0492ca0 Compare July 29, 2023 00:59
@cleptric
Copy link
Member

How would someone discover this feature if the chevron is hidden by default?

Looks like This

![clipboard.png](https://i.imgur.com/CwCbHjT.png)

When not hovered there's nothing

![clipboard.png](https://i.imgur.com/8nzVGD4.png)
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/feat-ui-add-copy-link-copy-markdown-dropdown-to-short-id branch from 0492ca0 to 601cf95 Compare July 31, 2023 21:12
@evanpurkhiser
Copy link
Member Author

How would someone discover this feature if the chevron is hidden by default?

I would consider this a bit of a power user feature. We don't need to go out of our way to make every available action in your face, in this case, we actually already had an affordance on the short ID that when you click it it would auto-select to make it easier to copy.

Now when you hover and notice the small chevron, the user will get a little sense of delight of "nice this is exactly what I wanted"

@evanpurkhiser evanpurkhiser merged commit 4ebc61d into master Jul 31, 2023
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/feat-ui-add-copy-link-copy-markdown-dropdown-to-short-id branch July 31, 2023 22:29
@github-actions github-actions bot locked and limited conversation to collaborators Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants