Skip to content

Centralize attribute strings in consts and rename "editor:layer" to "editor:layer_path"#4076

Merged
Keavon merged 5 commits intomasterfrom
centralized-attribute-strings
Apr 29, 2026
Merged

Centralize attribute strings in consts and rename "editor:layer" to "editor:layer_path"#4076
Keavon merged 5 commits intomasterfrom
centralized-attribute-strings

Conversation

@Keavon
Copy link
Copy Markdown
Member

@Keavon Keavon commented Apr 29, 2026

Partly closes #3779.

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 25 files

Confidence score: 5/5

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

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 refactors the codebase to use centralized constants for attribute keys (e.g., ATTR_TRANSFORM, ATTR_EDITOR_LAYER_PATH, ATTR_ALPHA_BLENDING) instead of hardcoded string literals throughout the node graph and rendering logic. This improves maintainability and reduces the risk of typos when accessing these attributes. I have no further feedback to provide.

@Keavon Keavon merged commit 6f3529b into master Apr 29, 2026
10 of 11 checks passed
@Keavon Keavon deleted the centralized-attribute-strings branch April 29, 2026 04:53
Keavon added a commit that referenced this pull request Apr 29, 2026
…editor:layer_path" (#4076)

* Rename "editor:layer" to "editor:layer_path" and centralize it in a const

* Centralize "editor:merged_layers" in a const

* Centralize all other attributes in consts

* Rename consts with ATTR_ prefix

* Format
oluseyi pushed a commit to oluseyi/Graphite that referenced this pull request Apr 29, 2026
…editor:layer_path" (GraphiteEditor#4076)

* Rename "editor:layer" to "editor:layer_path" and centralize it in a const

* Centralize "editor:merged_layers" in a const

* Centralize all other attributes in consts

* Rename consts with ATTR_ prefix

* Format
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.

Data trees

1 participant