-
Notifications
You must be signed in to change notification settings - Fork 21
Networking tab enhancements #2130
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Detach and copy IP address sounds good to me for ephemeral IPs. |
|
@benjaminleonard @paryhin I think the table titles don't stand out enough as
|
|
@david-crespo This is what I have in design, I've been using sans-reg-lg: One issue is that we are using text-mono-sm everywhere else, so if we introduce a new table title style we'll need to do it in other places too. |
|
I don't mind changing them all! There aren't that many that have their own titles. |
|
I'm starting to think that |
|
The secondary text color has to differ from the primary, to play well together and have enough contrast between them. Table headlines that I currently see in the preview (sans-lg, secondary) look good to me. I would only tweak spacing to bring them closer to the tables, as currently they are slightly detached. |
|
I think it might be nice to say the word "floating" on floating IPs. I don't see why only Ephemeral deserves a badge. I see the pool column in the design — I wish we could do that, but the API doesn't tell us the pool right now. I'll have to look and see how hard that would be. |
…ecomputer/console into networking-tab-enhancements
|
@benjaminleonard and I decided to move kind into its own column and label both kinds.
|
|
@david-crespo Not sure why you would do that as only 1 IP can be ephemeral, and all others are floating IPs |
|
Also, only floating IPs can have names, it feels redundant to have a separate "kind" column in this case. |
|
I think we have to say the word "floating" somewhere. It doesn't have to be in a separate column. Since ephemeral IPs will never have a name or description, I almost want to move them into their own table. Then we could solve this in the table titles. |
oxidecomputer/console@7e34c11...2ba444c * [2ba444ca](oxidecomputer/console@2ba444ca) smarter warning suppression for unhandled routes in msw * [0de42104](oxidecomputer/console@0de42104) oxidecomputer/console#2146 * [5cae2111](oxidecomputer/console@5cae2111) turn off links test for now. it freaks me out * [37470900](oxidecomputer/console@37470900) bump most deps * [ff67b406](oxidecomputer/console@ff67b406) oxidecomputer/console#2145 * [f1e8f2ee](oxidecomputer/console@f1e8f2ee) oxidecomputer/console#2139 * [31508df8](oxidecomputer/console@31508df8) bring instance networking floating ip detach modal copy in line with floating IPs page * [a433d71a](oxidecomputer/console@a433d71a) oxidecomputer/console#2130 * [83ace42b](oxidecomputer/console@83ace42b) oxidecomputer/console#2141 * [9270a930](oxidecomputer/console@9270a930) oxidecomputer/console#2134 * [00a03637](oxidecomputer/console@00a03637) update api-diff for better way of calling oxide.ts
oxidecomputer/console@7e34c11...2ba444c * [2ba444ca](oxidecomputer/console@2ba444ca) smarter warning suppression for unhandled routes in msw * [0de42104](oxidecomputer/console@0de42104) oxidecomputer/console#2146 * [5cae2111](oxidecomputer/console@5cae2111) turn off links test for now. it freaks me out * [37470900](oxidecomputer/console@37470900) bump most deps * [ff67b406](oxidecomputer/console@ff67b406) oxidecomputer/console#2145 * [f1e8f2ee](oxidecomputer/console@f1e8f2ee) oxidecomputer/console#2139 * [31508df8](oxidecomputer/console@31508df8) bring instance networking floating ip detach modal copy in line with floating IPs page * [a433d71a](oxidecomputer/console@a433d71a) oxidecomputer/console#2130 * [83ace42b](oxidecomputer/console@83ace42b) oxidecomputer/console#2141 * [9270a930](oxidecomputer/console@9270a930) oxidecomputer/console#2134 * [00a03637](oxidecomputer/console@00a03637) update api-diff for better way of calling oxide.ts





Fixes #1965
This PR adds a table of External IPs to the instance's networking tab, and gives the user the option to attach (new) or detach (existing) external IPs.

I believe the PR is basically ready to go, with two caveats.
The smaller one is that while the e2e test works, part of it is a little awkward right now. I tried variations of
await dialog.getByRole('option', { name: 'rootbeer-float' }).click(), replacingoptionwithbutton, etc., but couldn't seem to get the locator to match correctly. I have a keyboard-based hack that's working, but I'd rather have the proper Playwright locator working.Another issue is that I'm not sure what we want the actions column for the Ephemeral IP rows to include. Detaching ephemeral IPs? Something else? I've included a placeholder "Copy IP address" for now so there's something in the dropdown, but I suspect we'll want to do something else.