Skip to content

Cleanup: Remove unused DataPill.styled.tsx and its test mock#26297

Merged
karanh37 merged 3 commits intomainfrom
copilot/cleanup-unused-styled-file
Mar 6, 2026
Merged

Cleanup: Remove unused DataPill.styled.tsx and its test mock#26297
karanh37 merged 3 commits intomainfrom
copilot/cleanup-unused-styled-file

Conversation

Copy link
Contributor

Copilot AI commented Mar 6, 2026

DataPill.styled.tsx was created but never imported anywhere in the codebase. The corresponding jest.mock in SingleColumnProfile.test.tsx was added purely to satisfy the dead export.

Changes

  • Deleted src/components/common/DataPill/DataPill.styled.tsx — unused styled MUI Box component with no consumers
  • Removed jest.mock('../../../common/DataPill/DataPill.styled', ...) from SingleColumnProfile.test.tsx — mock existed only because the file existed, not because SingleColumnProfile ever used it

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…eColumnProfile.test

Co-authored-by: karanh37 <33024356+karanh37@users.noreply.github.com>
Copilot AI changed the title [WIP] Cleanup unused DataPill.styled.tsx and remove mock Cleanup: Remove unused DataPill.styled.tsx and its test mock Mar 6, 2026
@karanh37 karanh37 marked this pull request as ready for review March 6, 2026 12:58
@karanh37 karanh37 requested a review from a team as a code owner March 6, 2026 12:58
@karanh37 karanh37 added the safe to test Add this label to run secure Github workflows on PRs label Mar 6, 2026
@gitar-bot
Copy link

gitar-bot bot commented Mar 6, 2026

Code Review ✅ Approved

Removes unused DataPill.styled.tsx file and its corresponding test mock, cleaning up obsolete code. No issues found.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 65%
66.01% (57270/86756) 45.64% (30194/66153) 48.42% (9068/18726)

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

@karanh37 karanh37 merged commit e0ed744 into main Mar 6, 2026
23 checks passed
@karanh37 karanh37 deleted the copilot/cleanup-unused-styled-file branch March 6, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants