Skip to content

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented Jul 26, 2025

Related Issue

Issue: #XXXX

Description

  • Fix styled-components shouldForwardProp warnings by filtering non-DOM props
  • Clean up unused imports in ChatTextArea and other components
  • Updated tailwind config file to use mjs style

Test Procedure

No feature changes - everything should still work the same but you should find less errors complaining about invalid use of DOM element values:

image

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Additional Notes


Important

Fix styled-components prop warnings and update Tailwind config to .mjs format.

  • Behavior:
    • Fix styled-components shouldForwardProp warnings by filtering non-DOM props in ChatTextArea.tsx, AutoApproveMenuItem.tsx, and ChatLayout.tsx.
    • Update tailwind.config.js to tailwind.config.mjs and adjust import in index.css.
  • Misc:
    • Remove unused imports in ChatTextArea.tsx and useButtonState.ts.
    • Minor import reordering in McpConfigurationView.tsx.

This description was created by Ellipsis for b296492. You can customize this summary. It will automatically update as commits are pushed.

abeatrix added 3 commits July 26, 2025 02:03
- Fix styled-components shouldForwardProp warnings by filtering non-DOM props
- Clean up unused imports in ChatTextArea and other components
@Copilot Copilot AI review requested due to automatic review settings July 26, 2025 09:54
Copy link

changeset-bot bot commented Jul 26, 2025

⚠️ No Changeset found

Latest commit: b296492

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

Copy link
Contributor

@Copilot 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 styled-components prop warnings by implementing proper prop filtering to prevent non-DOM props from being forwarded to DOM elements. It also includes code cleanup and updates the Tailwind configuration to use ES module syntax.

  • Implements shouldForwardProp filtering for styled-components to prevent prop warnings
  • Cleans up unused imports in various components
  • Updates Tailwind configuration from CommonJS to ES module format

Reviewed Changes

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

Show a summary per file
File Description
webview-ui/tailwind.config.mjs Converts Tailwind config from CommonJS to ES module syntax
webview-ui/src/index.css Updates CSS import to reference new .mjs config file
webview-ui/src/components/mcp/configuration/McpConfigurationView.tsx Adds shouldForwardProp filtering and removes unused import
webview-ui/src/components/chat/chat-view/hooks/useButtonState.ts Reorders imports for consistency
webview-ui/src/components/chat/chat-view/components/layout/ChatLayout.tsx Adds shouldForwardProp filtering for isHidden prop
webview-ui/src/components/chat/auto-approve-menu/AutoApproveMenuItem.tsx Adds shouldForwardProp filtering for isFavorited prop
webview-ui/src/components/chat/ChatTextArea.tsx Adds shouldForwardProp filtering and removes unused imports
Comments suppressed due to low confidence (1)

webview-ui/src/components/chat/ChatTextArea.tsx:112

  • The SwitchContainer styled component accepts a 'disabled' prop but doesn't filter it with shouldForwardProp. This will cause the same prop warning that this PR is trying to fix for other components.
const SwitchContainer = styled.div<{ disabled: boolean }>`

Copy link
Contributor

@saoudrizwan saoudrizwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the attention to DX! Appreciate your efforts Bee 🙏

Copy link
Contributor

Coverage Report

Extension Coverage

Base branch: 46%

PR branch: 47%

✅ Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

⚠️ Warning: Coverage decreased by 0.01%

Consider adding tests to cover your changes.

Overall Assessment

⚠️ Test coverage has decreased in this PR

Please consider adding tests to maintain or improve coverage.

Last updated: 2025-07-28T18:14:20.267309

@arafatkatze
Copy link
Contributor

Rubber Stamped

@abeatrix abeatrix merged commit a28b995 into main Jul 28, 2025
13 checks passed
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.

3 participants