Skip to content

fix(logs): simplify CellAction rendering to only be used if needed#109946

Merged
JoshuaKGoldberg merged 2 commits intomasterfrom
logs-table-streamlined-cell-actions
Mar 6, 2026
Merged

fix(logs): simplify CellAction rendering to only be used if needed#109946
JoshuaKGoldberg merged 2 commits intomasterfrom
logs-table-streamlined-cell-actions

Conversation

@JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg commented Mar 5, 2026

This applies two streamlinings:

  1. Removes the canDeferRenderElements prop, so deferred rendering again always becomes available...
  2. ...but skips using CellActions when there won't be any actions anyway, such as in (static?) embedded tables

Part of LOGS-589.

@linear-code
Copy link

linear-code bot commented Mar 5, 2026

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review March 5, 2026 22:13
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner March 5, 2026 22:13
@JoshuaKGoldberg JoshuaKGoldberg force-pushed the logs-table-streamlined-cell-actions branch from 8f72979 to a5a137c Compare March 6, 2026 12:40
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 6, 2026
// Expand the row to show the attributes
const logTableRow = await screen.findByTestId('log-table-row');
expect(logTableRow).toBeInTheDocument();
await userEvent.hover(logTableRow);
Copy link
Member Author

Choose a reason for hiding this comment

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

Now that deferred rendering is always enabled, the row needs to be hovered to enable shouldRenderActions.

@JoshuaKGoldberg JoshuaKGoldberg merged commit b9b2082 into master Mar 6, 2026
61 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the logs-table-streamlined-cell-actions branch March 6, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants