Skip to content

feat(table): expand row actions into icon buttons by default#2188

Merged
jsers merged 1 commit into
prefrom
feat-table-actions-expand-0716
Jul 16, 2026
Merged

feat(table): expand row actions into icon buttons by default#2188
jsers merged 1 commit into
prefrom
feat-table-actions-expand-0716

Conversation

@Fiona2016

Copy link
Copy Markdown
Collaborator

What

  • EnhancedTable rows whose action count fits within actionMaxIcons (default 4) now surface kebab-menu items as icon buttons (with tooltips, danger items last) instead of collapsing them into the more-actions dropdown; rows exceeding the limit keep the current kebab layout.
  • New RowAction.collapsed flag pins an item inside the kebab regardless of the limit; node items always stay in the kebab.
  • The generated action column auto-widens to the widest icon row of the current page, so legacy kebab-era widths never clip.

Verification

  • Unit tests 35/35 (5 new cases covering the split logic in splitRowActions).
  • tsc net-new 0 vs baseline (4 = 4, all pre-existing and unrelated); prettier clean.
  • Full-repo scan: 55 rowActions tables across fe + plus, none exceeds 4 actions — all expand automatically, no per-table changes needed. (srm-fe counterpart: flashcatcloud/srm-fe#1059.)

🤖 Generated with Claude Code

Rows whose actions fit within actionMaxIcons (default 4) now surface kebab
menu items as icon buttons (danger last) instead of collapsing them into
the more-actions dropdown. node / collapsed:true items always stay in the
kebab, and the action column auto-widens to fit the widest icon row so
legacy kebab-era widths never clip.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 235d77b2-574c-4b14-af75-d8a6f82c0d3f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat-table-actions-expand-0716

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@jsers
jsers merged commit 8d38ef1 into pre Jul 16, 2026
1 check passed
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