Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 19, 2025

The insight components should NOT be part of the atomic-react search and commerce builds.

Copilot AI changed the title [WIP] Remove insight component support from atomic-react fix(atomic-react): exclude insight components from search and commerce builds Dec 19, 2025
Copilot AI requested a review from alexprudhomme December 19, 2025 20:07
@alexprudhomme alexprudhomme marked this pull request as ready for review December 29, 2025 15:27
@alexprudhomme alexprudhomme requested a review from a team as a code owner December 29, 2025 15:27
Copy link
Contributor

Copilot AI left a 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 AtomicInsightGenerateAnswerButton and AtomicInsightInterface from 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.

Copy link
Collaborator

@louis-bompart louis-bompart left a 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

@louis-bompart louis-bompart requested a review from a team January 5, 2026 15:18
@alexprudhomme alexprudhomme added cross-team This PR is a collaboration between multiple teams low-confidence The author of the PR author has low confidence that it is correct and would like more eyes on it. labels Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cross-team This PR is a collaboration between multiple teams low-confidence The author of the PR author has low confidence that it is correct and would like more eyes on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants