Skip to content

refactor: extract chart-layout arguments of visualize_json_tree into a struct#429

Merged
KSXGitHub merged 2 commits into
masterfrom
claude/happy-gauss-zyBTI
May 28, 2026
Merged

refactor: extract chart-layout arguments of visualize_json_tree into a struct#429
KSXGitHub merged 2 commits into
masterfrom
claude/happy-gauss-zyBTI

Conversation

@KSXGitHub
Copy link
Copy Markdown
Owner

@KSXGitHub KSXGitHub commented May 28, 2026

Resolves #427.

Group the chart-layout arguments of visualize_json_tree into a new ChartLayout struct, mirroring the existing JsonInputShaping pattern.

The struct holds the three values that stay constant across the method's branches:

  • column_width_distribution
  • direction
  • bar_alignment

bytes_format is intentionally left out, since it is a generic associated type that differs per branch and concerns number formatting rather than chart geometry.

This is a pure refactoring of a private method with no behavioral or CLI changes.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 28, 2026

Performance Regression Reports

commit: e46ade4

There are no regressions.

@KSXGitHub KSXGitHub marked this pull request as ready for review May 28, 2026 16:25
@KSXGitHub KSXGitHub merged commit c3b5261 into master May 28, 2026
15 checks passed
@KSXGitHub KSXGitHub deleted the claude/happy-gauss-zyBTI branch May 28, 2026 16:25
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.

Group the chart-layout arguments of visualize_json_tree into a struct

2 participants