Skip to content

fix: port column alignment and enriched port details#91

Merged
larkly merged 1 commit intomainfrom
feat/network-detail-view
Mar 29, 2026
Merged

fix: port column alignment and enriched port details#91
larkly merged 1 commit intomainfrom
feat/network-detail-view

Conversation

@larkly
Copy link
Copy Markdown
Owner

@larkly larkly commented Mar 29, 2026

Summary

  • Fix column misalignment where IPs rendered in the MAC field and remaining columns shifted right
  • Fix lipgloss .Width() inside fmt.Sprintf producing ANSI codes that broke alignment
  • Add SecurityGroups and AdminStateUp to Port struct (extracted from API)
  • Selected port now shows inline detail: port ID, admin state, name, and resolved security group names

Test plan

  • Navigate to Networks tab, select a network with ports
  • Verify columns align: Status | IPs | Device | Owner | MAC
  • Select a port with arrow keys, verify detail rows appear (ID, admin state, SGs)
  • Verify ports with admin state down show red "down" indicator
  • Verify security group names resolve (not just IDs)

Fix header/data column mismatch where IPs appeared in the MAC field.
Reorder columns to Status|IPs|Device|Owner|MAC and fix lipgloss width
rendering that broke alignment via ANSI escape codes.

Add SecurityGroups and AdminStateUp to the Port struct. Selected ports
now show inline detail with port ID, admin state, name, and resolved
security group names.
@larkly larkly merged commit 4d69007 into main Mar 29, 2026
3 checks passed
@larkly larkly deleted the feat/network-detail-view branch March 29, 2026 17:12
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.

1 participant