Skip to content

fix(plugin): make Tiny Actor Grid layout display-width-safe for CJK/ANSI (#1304)#1306

Merged
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775293281/pane-3
Apr 4, 2026
Merged

fix(plugin): make Tiny Actor Grid layout display-width-safe for CJK/ANSI (#1304)#1306
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775293281/pane-3

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Replace str.ljust() with pad_to_display_width() in layout_grid() so multi-column Tiny Actor rows stay visually aligned with CJK, emoji, and ANSI-colored content
  • Import display_width and pad_to_display_width from buddy_renderer in the grid module
  • Add 3 new tests: CJK labels, ANSI-colored text, mixed CJK/ANSI/ASCII grid

Test plan

  • All 10 tests pass (python3 -m pytest tests/test_tiny_actor_grid.py -v)
  • TypeScript type-check passes (tsc --noEmit)
  • Vitest passes (5887 passed)

Closes #1304

…NSI (#1304)

Replace ljust() with pad_to_display_width() in layout_grid() so
multi-column rows stay visually aligned with CJK labels, emoji,
and ANSI-colored content.
@JeremyDev87 JeremyDev87 added fix plugin packages/claude-code-plugin labels Apr 4, 2026
@vercel

vercel Bot commented Apr 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codingbuddy-landing Ready Ready Preview, Comment Apr 4, 2026 9:13am

@JeremyDev87 JeremyDev87 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Review: ✅ APPROVE

CI Status: ALL PASS

Code Quality:

  • tiny_actor_grid.py: Replaced ljust(card_width) with pad_to_display_width(part, card_width) — surgical 1-line fix
  • test_tiny_actor_grid.py: 3 new tests — CJK labels, ANSI colored text, mixed CJK/ANSI/ASCII grids
  • All tests verify uniform display_width() across output lines
  • Korean text (한국어, 보안전문가) and ANSI escape codes tested explicitly

✅ Grid layout now truly display-width-safe for CJK and ANSI text.

@JeremyDev87 JeremyDev87 self-assigned this Apr 4, 2026
@JeremyDev87 JeremyDev87 merged commit c9b5bea into master Apr 4, 2026
29 checks passed
@JeremyDev87 JeremyDev87 deleted the taskmaestro/1775293281/pane-3 branch April 4, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix plugin packages/claude-code-plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(plugin): make Tiny Actor Grid layout truly display-width-safe for CJK and ANSI text

1 participant