Skip to content

Add IP pool sidebar#3158

Merged
david-crespo merged 15 commits into
mainfrom
ip_pool_sidebar
Jun 3, 2026
Merged

Add IP pool sidebar#3158
david-crespo merged 15 commits into
mainfrom
ip_pool_sidebar

Conversation

@charliepark
Copy link
Copy Markdown
Contributor

@charliepark charliepark commented Mar 28, 2026

This adds a button to IP Pool Cells that opens up a sidebar with more info on the IP Pool.
Screenshot 2026-03-27 at 4 57 19 PM
Screenshot 2026-03-27 at 4 52 54 PM

I think it's a little strange that we have two different actions that both have the same UI — in one, we take the user to a new page, in the other, we open up this sidebar with more info. But if that's an issue, it's larger than this, as we already do both things in various points in the UI. I think it's just more noticeable here because the two kinds of cells are right next to each other in the Floating IP table.

We had also discussed the possibility of stacking sidebars, where we would make this IP pool cell in the properties table into a link that would then open another sidebar on top of it. We decided that this would be too confusing, though, so did not implement this.

Screenshot 2026-03-27 at 4 36 06 PM

Closes #3143

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Jun 3, 2026 9:10pm

Request Review

@charliepark
Copy link
Copy Markdown
Contributor Author

(We talked through this, and are not going to stack sidebars)

const { queryKey } = q(api.ipPoolView, {
path: { pool: pool.id },
})
queryClient.setQueryData(queryKey, pool)
Copy link
Copy Markdown
Collaborator

@david-crespo david-crespo Jun 3, 2026

Choose a reason for hiding this comment

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

The robot noticed this pre-existing bug: the point of this is to pre-cache the data for the IP pool cells, but it doesn't work because the IP pool cells use the errors-allowed query, which has a different query key. I confirmed that fixing this eliminates the loading state from the cells.

@david-crespo david-crespo merged commit 2731481 into main Jun 3, 2026
7 checks passed
@david-crespo david-crespo deleted the ip_pool_sidebar branch June 3, 2026 21:21
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.

Could use an IP pool detail side modal

2 participants