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

make all external IPs in header copyable #2170

Merged
merged 4 commits into from
Apr 22, 2024
Merged

Conversation

charliepark
Copy link
Contributor

@charliepark charliepark commented Apr 19, 2024

Fixes #2171

We currently only allow for a "copy to clipboard" function when there's a single external IP in the list in the header. This PR makes it so that any IP in the list is copyable.
Screenshot 2024-04-19 at 12 07 26 PM

We should add a dropdown, a la ListPlusCell, for when there are more than … 3(? 2?) IPs, but that can be a subsequent PR.

Copy link

vercel bot commented Apr 19, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Apr 22, 2024 9:41pm

@david-crespo
Copy link
Collaborator

I think we could stand to keep the IP as a link. It doesn't really cost us anything if the copy button is also there.

@charliepark
Copy link
Contributor Author

re-linked: Screenshot 2024-04-19 at 12 37 59 PM

>
{eip.ip}
</a>
<CopyToClipboard text={eip.ip} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this needs an ml-1 to do what the gap-1 was doing when this was at top level. I was afraid it would then look too close to the slash on the right, but it seems fine to me.

before

image

after

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep +1

Copy link
Collaborator

@david-crespo david-crespo left a comment

Choose a reason for hiding this comment

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

looks good to me pending an ml-1

@charliepark charliepark merged commit e649e7b into main Apr 22, 2024
8 checks passed
@charliepark charliepark deleted the make-all-ips-copyable branch April 22, 2024 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add copy button to each external IP
3 participants