Skip to content

Update cloudamqp instance list to handle long names - #12

Merged
dentarg merged 1 commit into
mainfrom
instance-list-alignment
Nov 25, 2025
Merged

dentarg merged 1 commit into
mainfrom
instance-list-alignment

Conversation

@dentarg

@dentarg dentarg commented Nov 25, 2025

Copy link
Copy Markdown
Member

This should be fine, names are not allowed to exceed 100 characters.

From Claude:

  1. Added dynamic column width calculation: The code now scans through all instances first to determine the maximum width needed for each column (ID, NAME, PLAN, REGION).
  2. Added padding: Each column gets an extra 2 spaces of padding for better readability.
  3. Dynamic format strings: Instead of using fixed-width format specifiers (like %-20s), the code now generates format strings based on the actual data, ensuring perfect alignment regardless of content length.

Close #10

This should be fine, names are not allowed to exceed 100 characters.

From Claude:

1. Added dynamic column width calculation: The code now scans through
   all instances first to determine the maximum width needed for each
   column (ID, NAME, PLAN, REGION).
2. Added padding: Each column gets an extra 2 spaces of padding for
   better readability.
3. Dynamic format strings: Instead of using fixed-width format
   specifiers (like %-20s), the code now generates format strings based
   on the actual data, ensuring perfect alignment regardless of content
   length.

Co-authored-by: Claude <noreply@anthropic.com>
@dentarg
dentarg force-pushed the instance-list-alignment branch from 71aa184 to 7d5dfbb Compare November 25, 2025 11:16
@jage

jage commented Nov 25, 2025

Copy link
Copy Markdown
Member

Should we look at all lists? VPC should have the same issue?

@dentarg

dentarg commented Nov 25, 2025

Copy link
Copy Markdown
Member Author

Yes we should :)

@dentarg
dentarg merged commit 312994e into main Nov 25, 2025
3 checks passed
@dentarg
dentarg deleted the instance-list-alignment branch November 25, 2025 13:16
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.

cloudamqp instance list table columns not aligned

2 participants