Skip to content

Conversation

@john-b-rush
Copy link
Contributor

No description provided.

@john-b-rush john-b-rush requested a review from Copilot June 7, 2025 05:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates table display functionality to right align numeric columns in various UI components.

  • Added column alignment parameters in the TUI and command output modules.
  • Updated table formatter functions to accept and apply custom column alignments for numeric columns.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
chuck_data/ui/tui.py Introduces column_alignments for numeric columns in the table display.
chuck_data/ui/table_formatter.py Adds support for the column_alignments parameter and integrates alignment handling in header addition.
chuck_data/command_output.py Implements column_alignments for displaying numeric columns in command outputs.
Comments suppressed due to low confidence (1)

chuck_data/ui/table_formatter.py:105

  • The block of code handling header alignment is duplicated (once around lines 70-80 and again around lines 105-113). Consider refactoring this logic into a helper function to improve maintainability.
table.add_column(header, style=header_style, justify=cast(Any, alignment)

@john-b-rush john-b-rush merged commit 6f4cafd into main Jun 7, 2025
2 checks passed
@john-b-rush john-b-rush deleted the right-align-numeric branch June 7, 2025 05:13
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.

2 participants