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

Add ID row to Internet Gateway side modal #2658

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Add ID row to Internet Gateway side modal #2658

merged 1 commit into from
Jan 27, 2025

Conversation

charliepark
Copy link
Contributor

This PR adds an ID field to the Internet Gateway details view.

Screenshot 2025-01-21 at 5 51 45 PM

Closes #2656

Copy link

vercel bot commented Jan 22, 2025

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

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Jan 22, 2025 1:52am

@david-crespo
Copy link
Collaborator

david-crespo commented Jan 22, 2025

Should it go first for consistency?

image

I see we are not super consistent to begin with. Some of these are different, too, because they're full pages rather than side modals. You could imagine following a different pattern in each. Also not sure ID should go first — it's probably less useful than name?

$ rg '<PropertiesTable[^\.]' -A 2
app/forms/image-edit.tsx
95:      <PropertiesTable>
96-        <PropertiesTable.Row label="Shared with">{type}</PropertiesTable.Row>
97-        <PropertiesTable.IdRow id={image.id} />

app/pages/system/silos/SiloPage.tsx
68:        <PropertiesTable>
69-          <PropertiesTable.IdRow id={silo.id} />
70-          <PropertiesTable.DescriptionRow description={silo.description} />
--
72:        <PropertiesTable>
73-          <PropertiesTable.DateRow date={silo.timeCreated} label="Created" />
74-          <PropertiesTable.DateRow date={silo.timeModified} label="Last Modified" />

app/pages/system/inventory/sled/SledPage.tsx
42:        <PropertiesTable>
43-          <PropertiesTable.Row label="sled id">
44-            <span className="text-default">{sled.id}</span>
--
56:        <PropertiesTable>
57-          <PropertiesTable.Row label="rack id">
58-            <span className="text-default">{sled.rackId}</span>

app/forms/ssh-key-edit.tsx
56:      <PropertiesTable>
57-        <PropertiesTable.IdRow id={data.id} />
58-        <PropertiesTable.DateRow date={data.timeCreated} label="Created" />

app/forms/image-from-snapshot.tsx
86:      <PropertiesTable>
87-        <PropertiesTable.Row label="Snapshot">{data.name}</PropertiesTable.Row>
88-        <PropertiesTable.Row label="Project">{project}</PropertiesTable.Row>

app/forms/floating-ip-edit.tsx
85:      <PropertiesTable>
86-        <PropertiesTable.IdRow id={floatingIp.id} />
87-        <PropertiesTable.DateRow label="Created" date={floatingIp.timeCreated} />

app/forms/idp/edit.tsx
61:      <PropertiesTable>
62-        <PropertiesTable.IdRow id={idp.id} />
63-        <PropertiesTable.DateRow date={idp.timeCreated} label="Created" />

app/pages/settings/ProfilePage.tsx
44:      <PropertiesTable className="-mt-8 mb-16">
45-        <PropertiesTable.Row label="Display name">{me.displayName}</PropertiesTable.Row>
46-        <PropertiesTable.Row label="User ID">

app/pages/project/instances/instance/InstancePage.tsx
196:        <PropertiesTable>
197-          <PropertiesTable.Row label="cpu">
198-            <span className="text-default">{instance.ncpus}</span>
--
230:        <PropertiesTable>
231-          <PropertiesTable.DescriptionRow description={instance.description} />
232-          <PropertiesTable.DateRow date={instance.timeCreated} label="Created" />

app/pages/project/vpcs/VpcPage/VpcPage.tsx
79:        <PropertiesTable>
80-          <PropertiesTable.DescriptionRow description={vpc.description} />
81-          <PropertiesTable.Row label="DNS Name">{vpc.dnsName}</PropertiesTable.Row>
--
83:        <PropertiesTable>
84-          <PropertiesTable.DateRow date={vpc.timeCreated} label="Created" />
85-          <PropertiesTable.DateRow date={vpc.timeModified} label="Last Modified" />

app/pages/project/vpcs/internet-gateway-edit.tsx
137:      <PropertiesTable key={internetGateway.id}>
138-        <PropertiesTable.Row label="Name">{internetGateway.name}</PropertiesTable.Row>
139-        <PropertiesTable.DescriptionRow description={internetGateway.description} />
--
150:            <PropertiesTable key={gatewayIpAddress.id}>
151-              <PropertiesTable.Row label="Name">
152-                {gatewayIpAddress.name}
--
179:            <PropertiesTable key={gatewayIpPool.id}>
180-              <PropertiesTable.Row label="Name">{gatewayIpPool.name}</PropertiesTable.Row>
181-              <PropertiesTable.DescriptionRow description={gatewayIpPool.description} />

app/pages/project/vpcs/RouterPage.tsx
202:        <PropertiesTable>
203-          <PropertiesTable.DescriptionRow description={routerData.description} />
204-          <PropertiesTable.Row label="Kind">
--
208:        <PropertiesTable>
209-          <PropertiesTable.DateRow date={routerData.timeCreated} label="Created" />
210-          <PropertiesTable.DateRow date={routerData.timeModified} label="Last Modified" />

@charliepark
Copy link
Contributor Author

My gut would be name-before-ID. I pinged @augustuswm for input and he didn't have strong feelings on it, though agreed that we should be consistent.

@benjaminleonard
Copy link
Contributor

Latest internet gateways designs turns the internet gateways modal into it's own page a la instances. We should probably make property table order consistent anyway, but this PR is probably no longer necessary.

@charliepark
Copy link
Contributor Author

Despite its obsolescence, we probably won't get the larger internet gateways refresh in for Release 13, so we'll merge this to get the ID into console, and then roll out a larger change in a subsequent release.

@david-crespo david-crespo merged commit b4f2a96 into main Jan 27, 2025
7 checks passed
@david-crespo david-crespo deleted the ig-id branch January 27, 2025 22:30
charliepark added a commit to oxidecomputer/omicron that referenced this pull request Jan 28, 2025
oxidecomputer/console@d583ae7...288f1c1

* [288f1c1b](oxidecomputer/console@288f1c1b) oxidecomputer/console#2670
* [7771953d](oxidecomputer/console@7771953d) oxidecomputer/console#2666
* [28ea9518](oxidecomputer/console@28ea9518) oxidecomputer/console#2576
* [0878bcc3](oxidecomputer/console@0878bcc3) oxidecomputer/console#2668
* [dacb1028](oxidecomputer/console@dacb1028) oxidecomputer/console#2667
* [b4f2a966](oxidecomputer/console@b4f2a966) oxidecomputer/console#2658
* [13a8200d](oxidecomputer/console@13a8200d) chore: upgrade vite and vitest
* [7ec7d667](oxidecomputer/console@7ec7d667) oxidecomputer/console#2664
* [ba21b682](oxidecomputer/console@ba21b682) oxidecomputer/console#2655
* [a0bc4708](oxidecomputer/console@a0bc4708) oxidecomputer/console#2660
* [287a531d](oxidecomputer/console@287a531d) oxidecomputer/console#2659
* [b73255d4](oxidecomputer/console@b73255d4) chore: use design-system 2.1.0, 3.0 is no more
* [7a8615a0](oxidecomputer/console@7a8615a0) oxidecomputer/console#2638
* [0f704717](oxidecomputer/console@0f704717) oxidecomputer/console#2637
* [1e9d3f26](oxidecomputer/console@1e9d3f26) oxidecomputer/console#2650
* [6cd25c9f](oxidecomputer/console@6cd25c9f) oxidecomputer/console#2630
* [a629300f](oxidecomputer/console@a629300f) oxidecomputer/console#2648
* [b57531d9](oxidecomputer/console@b57531d9) oxidecomputer/console#2646
* [b55e1618](oxidecomputer/console@b55e1618) oxidecomputer/console#2642
* [a3e8216e](oxidecomputer/console@a3e8216e) tools: also lint for console.log in oxlint
* [a6f84049](oxidecomputer/console@a6f84049) oxidecomputer/console#2643
* [2fa9b424](oxidecomputer/console@2fa9b424) remove stray console.log in table header
* [c2ea0e3e](oxidecomputer/console@c2ea0e3e) oxidecomputer/console#2639
* [48e1b15a](oxidecomputer/console@48e1b15a) oxidecomputer/console#2598
* [d144e7dc](oxidecomputer/console@d144e7dc) oxidecomputer/console#2617
* [c147df00](oxidecomputer/console@c147df00) oxidecomputer/console#2628
* [63954c8a](oxidecomputer/console@63954c8a) oxidecomputer/console#2633
* [aa46e508](oxidecomputer/console@aa46e508) oxidecomputer/console#2631
* [892fc2e9](oxidecomputer/console@892fc2e9) oxidecomputer/console#2629
charliepark added a commit to oxidecomputer/omicron that referenced this pull request Jan 29, 2025
oxidecomputer/console@d583ae7...288f1c1

* [288f1c1b](oxidecomputer/console@288f1c1b)
oxidecomputer/console#2670
* [7771953d](oxidecomputer/console@7771953d)
oxidecomputer/console#2666
* [28ea9518](oxidecomputer/console@28ea9518)
oxidecomputer/console#2576
* [0878bcc3](oxidecomputer/console@0878bcc3)
oxidecomputer/console#2668
* [dacb1028](oxidecomputer/console@dacb1028)
oxidecomputer/console#2667
* [b4f2a966](oxidecomputer/console@b4f2a966)
oxidecomputer/console#2658
* [13a8200d](oxidecomputer/console@13a8200d)
chore: upgrade vite and vitest
* [7ec7d667](oxidecomputer/console@7ec7d667)
oxidecomputer/console#2664
* [ba21b682](oxidecomputer/console@ba21b682)
oxidecomputer/console#2655
* [a0bc4708](oxidecomputer/console@a0bc4708)
oxidecomputer/console#2660
* [287a531d](oxidecomputer/console@287a531d)
oxidecomputer/console#2659
* [b73255d4](oxidecomputer/console@b73255d4)
chore: use design-system 2.1.0, 3.0 is no more
* [7a8615a0](oxidecomputer/console@7a8615a0)
oxidecomputer/console#2638
* [0f704717](oxidecomputer/console@0f704717)
oxidecomputer/console#2637
* [1e9d3f26](oxidecomputer/console@1e9d3f26)
oxidecomputer/console#2650
* [6cd25c9f](oxidecomputer/console@6cd25c9f)
oxidecomputer/console#2630
* [a629300f](oxidecomputer/console@a629300f)
oxidecomputer/console#2648
* [b57531d9](oxidecomputer/console@b57531d9)
oxidecomputer/console#2646
* [b55e1618](oxidecomputer/console@b55e1618)
oxidecomputer/console#2642
* [a3e8216e](oxidecomputer/console@a3e8216e)
tools: also lint for console.log in oxlint
* [a6f84049](oxidecomputer/console@a6f84049)
oxidecomputer/console#2643
* [2fa9b424](oxidecomputer/console@2fa9b424)
remove stray console.log in table header
* [c2ea0e3e](oxidecomputer/console@c2ea0e3e)
oxidecomputer/console#2639
* [48e1b15a](oxidecomputer/console@48e1b15a)
oxidecomputer/console#2598
* [d144e7dc](oxidecomputer/console@d144e7dc)
oxidecomputer/console#2617
* [c147df00](oxidecomputer/console@c147df00)
oxidecomputer/console#2628
* [63954c8a](oxidecomputer/console@63954c8a)
oxidecomputer/console#2633
* [aa46e508](oxidecomputer/console@aa46e508)
oxidecomputer/console#2631
* [892fc2e9](oxidecomputer/console@892fc2e9)
oxidecomputer/console#2629
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 id field to internet gateway details
3 participants