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(data-plane-inbounds): show port name #3483

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

schogges
Copy link
Contributor

@schogges schogges commented Jan 28, 2025

This adds the optionally existing name of the inbound port. Currently there is a conflict with an already existing name property on the inbounds, therefore I went for portName. But I've also added it to the summary including the ability to copy.


For now I left out the ability to copy the name because there is an issue with the tooltip popover. It's based on floating-ui and the position is not properly calculated when the trigger is nested in an element with container-type: inline-size.

Screenshot 2025-01-28 at 15 06 58

image

Closes #3451

@schogges schogges requested a review from a team as a code owner January 28, 2025 14:08
@schogges schogges requested review from johncowen and removed request for a team January 28, 2025 14:08
Copy link

netlify bot commented Jan 28, 2025

Deploy Preview for kuma-gui ready!

Name Link
🔨 Latest commit c8d1d5a
🔍 Latest deploy log https://app.netlify.com/sites/kuma-gui/deploys/679ba75787a6980008525ceb
😎 Deploy Preview https://deploy-preview-3483--kuma-gui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@johncowen
Copy link
Contributor

Just a thought after breifly seeing the screengrabs and looking at the PR preview:

We already have KumaPort which should a combined port/targetPort (name)

Screenshot 2025-01-28 at 15 14 31

I'm not sure if it will map exactly in both places we've added this, but maybe?

Do you think it worth thinking about we could use the same looking widget for everything here? Maybe we tweak the initial implementation also to make it less similar to tags (maybe just a color change).

Lmk!

@schogges
Copy link
Contributor Author

schogges commented Jan 28, 2025

Just a thought after breifly seeing the screengrabs and looking at the PR preview:

We already have KumaPort which should a combined port/targetPort (name)

Screenshot 2025-01-28 at 15 14 31

I'm not sure if it will map exactly in both places we've added this, but maybe?

Do you think it worth thinking about we could use the same looking widget for everything here? Maybe we tweak the initial implementation also to make it less similar to tags (maybe just a color change).

Lmk!

I like that 👍 but this will also affect other places like outbounds, zone-ingresses and -egresses because I'd have to adjust the ConnectionCard accordingly 🤔

@johncowen
Copy link
Contributor

I like that 👍 but this will also affect other places like outbounds, zone-ingresses and -egresses because I'd have to adjust the ConnectionCard accordingly 🤔

From what I remember this isn't need in Zone'gresses, so won't affect any of that I don't think.

We could also merge this as is and maybe do something with KumaPort as a followup, maybe check in with Erick?

Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

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

Not sure whether you wanted to get this in and circle back (potentially or not), but the code looks good so its a 👍 from me!

@schogges
Copy link
Contributor Author

I like that 👍 but this will also affect other places like outbounds, zone-ingresses and -egresses because I'd have to adjust the ConnectionCard accordingly 🤔

From what I remember this isn't need in Zone'gresses, so won't affect any of that I don't think.

We could also merge this as is and maybe do something with KumaPort as a followup, maybe check in with Erick?

Hmmm, I see that ConnectionCard is being used in Zone'gresses 🤔 will check again what is needed and come back here 🙂

@schogges
Copy link
Contributor Author

schogges commented Jan 29, 2025

@johncowen I've used KumaPort for inbounds and XBadge for outbounds now in DataplaneDetailView. Wdyt?

image

@johncowen
Copy link
Contributor

🤔 hmm, umm IMO this kinda 'hides' the portNumber a bit too much I think? If it was me I'd revert to the previous and lets merge this and we can wait and speak to Erick

@schogges schogges force-pushed the feat/dp/inbounds/show_port-name branch from 9407694 to c8d1d5a Compare January 30, 2025 16:22
@schogges
Copy link
Contributor Author

@johncowen dropped the two previous commits and it's back to how it was before 🙂

Copy link
Contributor

@johncowen johncowen left a comment

Choose a reason for hiding this comment

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

Cool, lets get this one in then and maybe point Erick to this next time we catch up 👍

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 name of inbound to inbound cards in dataplane traffic view
2 participants