Skip to content

feat(plugin): add responsive Tiny Actor Grid layout engine (#1268)#1291

Merged
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775269110/pane-2
Apr 4, 2026
Merged

feat(plugin): add responsive Tiny Actor Grid layout engine (#1268)#1291
JeremyDev87 merged 1 commit into
masterfrom
taskmaestro/1775269110/pane-2

Conversation

@JeremyDev87

Copy link
Copy Markdown
Owner

Summary

  • Add layout_grid() function in hooks/lib/tiny_actor_grid.py that arranges pre-rendered Tiny Actor cards into a responsive grid
  • Calculates optimal column count from available_width, card_width, and gap parameters
  • Falls back to fewer columns when terminal width is narrow (minimum 1 column)
  • Pads rows for consistent display width and handles cards with different line counts

Test plan

  • 3 cards at 80 cols fits in 1 row
  • 6 cards at 80 cols wraps to 2 rows
  • 1 card at 40 cols single column
  • Narrow width forces column reduction
  • All output lines have consistent display width
  • Empty input returns empty list
  • Cards with different line counts are padded
  • Full test suite passes (618 Python tests, 5887 TS tests)

Closes #1268

Implement layout_grid() that arranges pre-rendered actor cards into a
responsive grid with automatic column fallback based on available
terminal width. Includes 7 unit tests covering column calculation,
output consistency, empty input, and uneven card heights.
@JeremyDev87 JeremyDev87 added feat plugin packages/claude-code-plugin wow-experience Plugin Wow Experience Design 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 2:27am

@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 pending — will confirm after full pass)

CI Status: 22/30 pass, 8 pending

Code Quality

  • layout_grid() pure function: cards in → lines out
  • Responsive column calculation: max(1, (width + gap) // (card_width + gap))
  • Height normalization via padding for uneven cards
  • zip_longest for safe line merging
  • Row-width padding when fewer cards than max_columns

Tests (109 lines, 3 classes)

  • Column calculation: 3@80, 6@80 (wrap), 1@40, narrow fallback
  • Output consistency: uniform width assertion
  • Edge cases: empty input, different line counts

No Issues Found

Recommendation: APPROVE (pending CI full pass)

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

Labels

feat plugin packages/claude-code-plugin wow-experience Plugin Wow Experience Design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(plugin): add a responsive Tiny Actor Grid layout engine with column fallback

1 participant