Skip to content

Fix click target metadata not propagating through intermediate wrapper table rows#3967

Merged
Keavon merged 1 commit intomasterfrom
recursive-click-targets
Mar 28, 2026
Merged

Fix click target metadata not propagating through intermediate wrapper table rows#3967
Keavon merged 1 commit intomasterfrom
recursive-click-targets

Conversation

@Keavon
Copy link
Copy Markdown
Member

@Keavon Keavon commented Mar 28, 2026

This fixes the Blend Shapes not being unable to select click targets for its group layer's children:

capture_13_.mp4

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the collect_metadata implementation for Table<Graphic> and Table<Vector> to ensure metadata is correctly collected through anonymous wrapper rows and to fix a bug where the footprint transform was incorrectly mutated during iteration. The reviewer suggested simplifying the recursion logic in Table<Graphic> by passing the source_node_id option directly to the recursive call instead of using an if-else block.

Comment on lines +736 to 741
if let Some(element_id) = row.source_node_id {
row.element.collect_metadata(metadata, footprint, Some(*element_id));
} else {
// Recurse through anonymous wrapper rows to reach nested content with source_node_ids
row.element.collect_metadata(metadata, footprint, None);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

This if-else block can be simplified by directly passing the dereferenced source_node_id. This is equivalent to the current logic and more concise.

			// Recurse through anonymous wrapper rows to reach nested content with source_node_ids
			row.element.collect_metadata(metadata, footprint, *row.source_node_id);

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@github-actions github-actions bot temporarily deployed to graphite-dev (Preview) March 28, 2026 22:04 Inactive
@Keavon Keavon merged commit e529f74 into master Mar 28, 2026
11 checks passed
@Keavon Keavon deleted the recursive-click-targets branch March 28, 2026 22:39
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.

1 participant