-
Notifications
You must be signed in to change notification settings - Fork 39
fix(atomic-react): exclude insight components from search and commerce builds #6851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…e builds Co-authored-by: alexprudhomme <[email protected]>
There was a problem hiding this comment.
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 fixes a build configuration issue where Lit-migrated insight components were incorrectly being included in atomic-react's search and commerce exports. The fix ensures insight components remain exclusive to their own use case and are not exposed through atomic-react's search or commerce interfaces.
Key Changes
- Added insight component directory exclusions to both build systems (Stencil and Lit build scripts)
- Removed incorrectly generated React wrapper exports for
AtomicInsightGenerateAnswerButtonandAtomicInsightInterfacefrom search and commerce component files - Ensured consistent exclusion patterns across both legacy Stencil-based and new Lit-based build processes
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
packages/atomic/stencil.config.ts |
Added insight component filtering to excludeComponents for both search and commerce React output targets |
packages/atomic-react/scripts/build-lit.mjs |
Added src/components/insight to excludedComponentDirectories for both search and commerce build entries |
packages/atomic-react/src/components/search/components.ts |
Removed incorrectly generated React wrapper exports for insight components from search build |
packages/atomic-react/src/components/commerce/components.ts |
Removed incorrectly generated React wrapper exports for insight components from commerce build |
The changes are consistent, complete, and properly address the issue across both build systems. No issues were found with the implementation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
louis-bompart
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if there might be any usage of those in the wild.
@coveo/knowledge-ui-kit-reviewers
The insight components should NOT be part of the atomic-react search and commerce builds.