Skip to content

[WIP] Check for any unused functions in packages/react/ and delete #6102

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

Closed
wants to merge 2 commits into from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented May 21, 2025

  • Identify files with unused functions in packages/react/src/utils/
    • Found duplicate story helper files (form-story-helpers.tsx and story-helpers.tsx)
    • StressTest.tsx is only used for development and testing
    • useDialog is only used by the deprecated DialogV1 component
  • Check for unused dependencies in package.json
    • Verified afterframe is already in devDependencies - correctly placed
  • Prepare code cleanup plan
    • Consolidate duplicate story helper files
    • Properly categorize development-only dependencies
  • Execute removal of unused/duplicated code
    • Created new storybook-helpers.tsx file combining functionality from both duplicate files
    • Updated all imports across the codebase to use the new file
    • Removed the duplicate form-story-helpers.tsx and story-helpers.tsx files
  • Run tests to ensure our changes don't break any functionality
    • Verified tests pass for components using these utilities

Fixes #6101.


💡 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.

Copy link

changeset-bot bot commented May 21, 2025

⚠️ No Changeset found

Latest commit: 82730fc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@jonrohan jonrohan closed this May 21, 2025
Copilot finished work on behalf of jonrohan May 21, 2025 17:41
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.

Check for any unused functions in packages/react/ and delete
2 participants