Skip to content

fix: Fix modifier types - #3896

Open
alanbsmith wants to merge 1 commit into
Workday:supportfrom
alanbsmith:ISSUE-3895
Open

fix: Fix modifier types#3896
alanbsmith wants to merge 1 commit into
Workday:supportfrom
alanbsmith:ISSUE-3895

Conversation

@alanbsmith

@alanbsmith alanbsmith commented Apr 22, 2026

Copy link
Copy Markdown
Member

Summary

Fixes: #3895
Update type of createStencil to allow modifier merging when extending stencils.

Release Category

Components


Checklist

For the Reviewer

  • PR title is short and descriptive
  • PR summary describes the change (Fixes/Resolves linked correctly)
  • PR Release Notes describes additional information useful to call out in a release message or removed if not applicable
  • Breaking Changes provides useful information to upgrade to this code or removed if not applicable

Where Should the Reviewer Start?

Areas for Feedback? (optional)

  • Code
  • Documentation
  • Testing
  • Codemods

Testing Manually

Screenshots or GIFs (if applicable)

Thank You Gif (optional)

@alanbsmith alanbsmith added 14.x ai author This pull request is primarily or entirely written by an agent, not a human. Review carefully. labels Apr 22, 2026
@cypress

cypress Bot commented Apr 22, 2026

Copy link
Copy Markdown

Workday/canvas-kit    Run #11544

Run Properties:  status check passed Passed #11544  •  git commit b3987ebc5e ℹ️: Merge 35462e4c9f0cfaac4a1d1c95d2550ad6bfe1b5c4 into 1beac223ba75b47655ae919851bd...
Project Workday/canvas-kit
Branch Review ISSUE-3895
Run status status check passed Passed #11544
Run duration 02m 36s
Commit git commit b3987ebc5e ℹ️: Merge 35462e4c9f0cfaac4a1d1c95d2550ad6bfe1b5c4 into 1beac223ba75b47655ae919851bd...
Committer Alan B Smith
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 17
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 824
View all changes introduced in this branch ↗︎
UI Coverage  19.41%
  Untested elements 1563  
  Tested elements 374  
Accessibility  99.44%
  Failed rules  5 critical   5 serious   0 moderate   2 minor
  Failed elements 68  

Copilot AI left a comment

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.

Pull request overview

This PR updates the TypeScript typing for createStencil so modifier types merge correctly when a stencil extends another stencil, addressing the modifier inference issue reported in #3895.

Changes:

  • Introduce RemoveIndexSignature/MergeModifiers to prevent index-signature-driven inference issues when combining modifier configs.
  • Apply MergeModifiers in the relevant Stencil* conditional types so extended + local modifiers compose cleanly.
  • Update unit tests to no longer require modifiers: {} on a base stencil for boolean modifier scenarios.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
modules/styling/lib/cs.ts Fixes extended-stencil modifier type composition by merging modifier types while stripping index signatures that break inference.
modules/styling/spec/cs.spec.tsx Removes now-unnecessary modifiers: {} setup in tests, validating improved type inference/usage ergonomics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mannycarrera4
mannycarrera4 changed the base branch from master to support August 25, 2026 20:54
@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 24 minutes.

View limit details

Limit details: You’ve used all 2 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 98105f80-a4b7-4295-957c-97c152909748

📥 Commits

Reviewing files that changed from the base of the PR and between 1beac22 and 35462e4.

📒 Files selected for processing (2)
  • modules/styling/lib/cs.ts
  • modules/styling/spec/cs.spec.tsx

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.

@mannycarrera4
mannycarrera4 marked this pull request as ready for review August 25, 2026 20:59
@mannycarrera4
mannycarrera4 requested a review from a team as a code owner August 25, 2026 20:59
@RayRedGoose
RayRedGoose requested a balanced review from Copilot August 25, 2026 21:04

Copilot AI left a comment

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

14.x ai author This pull request is primarily or entirely written by an agent, not a human. Review carefully.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Modifier type issue

2 participants