Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 19, 2025

βœ… Checklist

  • πŸ§ͺ The component is unit tested
  • πŸ§ͺ The component includes E2E tests
  • πŸ—‘οΈ Old Cypress tests exclusive to the component are removed
  • πŸ“– The component is documented in storybook with an .mdx file
  • β™Ώ The component complies with the Web Content Accessibility Guidelines.
  • 🌐 All strings intended for humans or assistive technology must be localized with i18n.
  • πŸ“¦ The Lit component is exported in the appropriate index.ts and lazy-index.ts files.
  • 🎨 CSS parts are documented still accessible.
  • πŸ¦₯ Slotted Content, public methods and properties are documented
  • πŸ”„ The component outputs the same Angular output as before with Stencil
  • 🏷️ The component declares the component type in the HTMLElementTagNameMap

https://coveord.atlassian.net/browse/KIT-4875

Copilot AI changed the title [WIP] Migrate atomic-insight-history-toggle component to Lit feat(atomic): migrate atomic-insight-history-toggle to Lit Dec 19, 2025
Copilot AI requested a review from alexprudhomme December 19, 2025 16:32
@alexprudhomme alexprudhomme changed the title feat(atomic): migrate atomic-insight-history-toggle to Lit chore(atomic): migrate atomic-insight-history-toggle to Lit Dec 19, 2025
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 migrates the atomic-insight-history-toggle component from Stencil to Lit, replacing the legacy TSX implementation with a modern TypeScript-based Lit component. The component is a simple button toggle for displaying history panels within the Insight interface.

Key changes:

  • Converted component from Stencil (.tsx) to Lit (.ts) with proper decorators and patterns
  • Added comprehensive unit tests using Vitest browser mode (142 test cases)
  • Added E2E tests using Playwright with page object pattern
  • Created Storybook documentation with stories and MDX file

Reviewed changes

Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
atomic-insight-history-toggle.ts New Lit component implementation with @customElement, @property decorators, and withTailwindStyles
atomic-insight-history-toggle.tsx Removed legacy Stencil component implementation
atomic-insight-history-toggle.pcss Removed PostCSS stylesheet (no longer needed with Tailwind)
atomic-insight-history-toggle.spec.ts New comprehensive unit tests covering rendering, properties, callbacks, and accessibility
atomic-insight-history-toggle.new.stories.tsx Storybook stories with Default and WithTooltip variants
atomic-insight-history-toggle.mdx Component documentation with usage examples
e2e/atomic-insight-history-toggle.e2e.ts E2E tests for visibility and tooltip behavior
e2e/fixture.ts Playwright fixture setup for E2E tests
e2e/page-object.ts Page object pattern for E2E test interactions
index.ts Added export for the new Lit component
lazy-index.ts Added lazy loading configuration for the component
custom-element-tags.ts Registered the component tag for Lit
components.d.ts Removed Stencil auto-generated type definitions
atomic-react/.../components.ts Added React wrapper exports for both search and commerce packages

πŸ’‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@alexprudhomme alexprudhomme added cross-team This PR is a collaboration between multiple teams high-confidence The author of the PR author has high confidence that it is correct. It should be ready to merge. labels Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chromatic Opt-in w/ Chromatic cross-team This PR is a collaboration between multiple teams high-confidence The author of the PR author has high confidence that it is correct. It should be ready to merge. new-lit-component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants