Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 28, 2025

Description

The facet-placeholder functional component was migrated but due to miscommunication was integrated directly into the atomic-facet-placeholder custom element during the atomic-facet migration. The standalone functional component files are now dead code.

Changes:

  • Deleted packages/atomic/src/components/common/facets/facet-placeholder/facet-placeholder.ts
  • Deleted packages/atomic/src/components/common/facets/facet-placeholder/facet-placeholder.spec.ts

The stencil-facet-placeholder.tsx remains in place as it's still used by legacy Stencil components.

Fixes KIT-4943

Original prompt

This section details on the original issue you should resolve

<issue_title>[DXUI]:</issue_title>
<issue_description>### Task Description

The facet-placeholder functional component has been migrated, but due to miscommunication it was integrated in the atomic-facet-placeholder custom element during the atomic-facet migration.

We can get rid of facet-placeholder.ts and facet-placeholder.spec.ts; it’s dead code

Acceptance Criteria

  • facet-placeholder.ts has been deleted.
  • facet-placeholder.spec.ts has been deleted.
  • No other files have been touched.

Technical Notes

No response

Jira Ticket

KIT-4943</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 28, 2025
Delete facet-placeholder.ts and facet-placeholder.spec.ts as they
are dead code - the functionality was integrated into the
atomic-facet-placeholder custom element during migration.

Co-authored-by: fbeaudoincoveo <23503066+fbeaudoincoveo@users.noreply.github.com>
Copilot AI changed the title [WIP] Remove dead code for facet-placeholder component Remove dead facet-placeholder Lit functional component files Nov 28, 2025
Copilot AI requested a review from fbeaudoincoveo November 28, 2025 20:11
Copilot finished work on behalf of fbeaudoincoveo November 28, 2025 20:11
@fbeaudoincoveo fbeaudoincoveo marked this pull request as ready for review November 28, 2025 20:17
@fbeaudoincoveo fbeaudoincoveo requested a review from a team as a code owner November 28, 2025 20:17
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 removes dead code from the Atomic package by deleting a Lit functional component implementation of facet-placeholder that was superseded by the atomic-facet-placeholder custom element during the atomic-facet migration. The functionality now lives entirely within the custom element component.

Key changes:

  • Removed unused Lit functional component renderFacetPlaceholder and its test file
  • Preserved stencil-facet-placeholder.tsx which remains in use by legacy Stencil components

Reviewed changes

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

File Description
packages/atomic/src/components/common/facets/facet-placeholder/facet-placeholder.ts Deleted dead Lit functional component that was replaced by atomic-facet-placeholder custom element
packages/atomic/src/components/common/facets/facet-placeholder/facet-placeholder.spec.ts Deleted tests for the removed functional component

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

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

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.

[DXUI]:

3 participants