Skip to content

Refactor demoRead to format CSV output as a table - #129

Merged
MichaelMcKibbin merged 3 commits into
mainfrom
demomain5
Dec 3, 2025
Merged

Refactor demoRead to format CSV output as a table#129
MichaelMcKibbin merged 3 commits into
mainfrom
demomain5

Conversation

@SunflowerRays

Copy link
Copy Markdown
Collaborator

Refactor demoRead method to use CsvTableFormatter for displaying data as a table and handle row truncation.

SunflowerRays and others added 3 commits December 3, 2025 21:27
Refactor demoRead method to use CsvTableFormatter for displaying data as a table and handle row truncation.
- CsvTableFormatter was deleted in this PR but Main.java depends on it
- Restored from main branch to fix compilation error
- All 452 tests now pass
- CsvTableFormatter was deleted in this PR but Main.java depends on it
- Restored from main branch to fix compilation error
- All 452 tests now pass
@edsonesf

edsonesf commented Dec 3, 2025

Copy link
Copy Markdown
Collaborator

The refactored demoRead() method in Main.java to use CsvTableFormatter for displaying CSV data as formatted tables with borders instead of plain row output.
The method now creates aligned, bordered tables that are more readable, handles row truncation with a message showing how many rows were displayed versus total rows, and properly limits output when a maximum row count is specified.
Fixed a compilation error by restoring the accidentally deleted CsvTableFormatter.java file that the refactored code depends on.

@SunflowerRays SunflowerRays left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for restoring this

@SunflowerRays SunflowerRays left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thank you for restoring this

@bogdansharp

Copy link
Copy Markdown
Collaborator

Excellent improvement — this greatly enhances the visual appearance of the demo.

@MichaelMcKibbin
MichaelMcKibbin merged commit 5b808fb into main Dec 3, 2025
5 checks passed
@MichaelMcKibbin
MichaelMcKibbin deleted the demomain5 branch December 3, 2025 23:42
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.

4 participants