Skip to content

Conversation

@david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Apr 18, 2024

Just a fun idea to close #2118.

  • Better mock data
  • Basic concept
  • Turn port into a type-value cell with the word PORT (this was driving me crazy)
  • Also use for targets
  • If there are exactly two targets or filters, show both without list-plus thing. If there are more than two, show one in cell and the rest in the thing
image

@vercel
Copy link

vercel bot commented Apr 18, 2024

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

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Apr 24, 2024 10:08pm

@david-crespo david-crespo changed the base branch from main to tighter-table April 18, 2024 17:01
Base automatically changed from tighter-table to main April 18, 2024 19:09
@david-crespo david-crespo force-pushed the firewall-rule-list-plus branch from f9495c3 to dcf0546 Compare April 24, 2024 21:18
@david-crespo david-crespo marked this pull request as ready for review April 24, 2024 21:30
@david-crespo
Copy link
Collaborator Author

david-crespo commented Apr 24, 2024

This looks good and I think it works pretty well, almost certainly better than overflowing. The only problem I have with it is that it makes the table pretty wide when there are two things in the cell.

image

One way around that is to only show at most one inline, though that's kind of crappy, especially if there are exactly two.

image

I think my ideal setup would be to leave the table as a tall table and encourage these two wrap so we could fit at least 2 or 3 in there before having to overflowing into the popup.

@david-crespo
Copy link
Collaborator Author

As discussed in chat, in a followup I will experiment with putting the whole list in the popover, not just the "rest".

@david-crespo david-crespo merged commit 3b574e5 into main Apr 26, 2024
@david-crespo david-crespo deleted the firewall-rule-list-plus branch April 26, 2024 15:56
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.

Firewall rules table: use + popup for overflow when there are too many targets/filters

2 participants