Skip to content

feat(extensions): honor normalized fill pattern background colors - #11167

Merged
ibgreen merged 3 commits into
masterfrom
codex/normalized-fill-style
Nov 18, 2026
Merged

ibgreen merged 3 commits into
masterfrom
codex/normalized-fill-style

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

For #11146. Apply the Deck plain-array color convention to FillStyleExtension backgrounds on primitive layers and when forwarded through a composite. Preserve the transparent default and byte attribute storage.

Validation

  • yarn lint
  • FillStyleExtension headless tests
  • Commit hook Node suite passed on the implementation commit. A repeat failed in the unrelated SQL-filtered grid test, which passed in isolation.

Note

Low Risk
Low risk; scoped to FillStyleExtension background color handling and preserves legacy behavior when normalizedColors is not enabled.

Overview
Adds support for Deck's normalizedColors mode to FillStyleExtension's getFillPatternBackgroundColor accessor.

The extension now marks fillPatternBackgroundColors with semanticType: 'color' for primitive layers and implements getSubLayerProps to convert normalized [0, 1] color values into byte arrays for sublayers while maintaining update trigger tracking. Default fully transparent backgrounds and byte typed arrays continue to be handled without conversion.

Reviewed by Cursor Bugbot for commit 9744c45. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T23:15:54.367264Z 29d15e9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@ibgreen ibgreen mentioned this pull request Nov 17, 2026
22 of 52 tasks

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 29d15e97a1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@greptile-apps

greptile-apps Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds support for normalized fill-pattern background colors while keeping byte storage and the transparent default.

  • Fill pattern backgrounds use normalized colors in primitive and composite layers.

Reviews (2) · Last reviewed commit: "fix(extensions): preserve color trigger ..." · Reviewed by Greptile

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 29d15e9. Configure here.

@coveralls

coveralls commented Nov 17, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 82.73% (-1.0%) from 83.708% — codex/normalized-fill-style into master

@ibgreen
ibgreen merged commit b000907 into master Nov 18, 2026
9 checks passed
@ibgreen
ibgreen deleted the codex/normalized-fill-style branch November 18, 2026 00:04

@chrisgervang chrisgervang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 9744c45 after merge; follow-ups below. No P1s. The background is converted once: top-level primitives pack it through semanticType: 'color', composites convert it in getSubLayerProps, and children skip it.

Labels: P1 settle before this is merged, P2 can follow, Non-blocking optional.


Generated by Claude Code

Comment on lines +282 to +284
behind the pattern unfilled. With Deck’s [`normalizedColors`](../core/deck.md#normalizedcolors)
option, plain arrays use 0–1 channels. Omitted alpha is opaque. Use 0–255 channels in
legacy mode or with byte typed arrays.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Non-blocking: These sentences restate the rule from the Normalized colors guide. Could one sentence link there?

Suggested change
behind the pattern unfilled. With Deck’s [`normalizedColors`](../core/deck.md#normalizedcolors)
option, plain arrays use 0–1 channels. Omitted alpha is opaque. Use 0–255 channels in
legacy mode or with byte typed arrays.
behind the pattern unfilled. Channels are 0–255, or 0–1 with Deck's
[`normalizedColors`](../../developer-guide/using-layers.md#normalized-colors).

Generated by Claude Code

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.

3 participants