Skip to content

Conversation

vdawger
Copy link
Contributor

@vdawger vdawger commented Jun 26, 2025

Why

SidebarChat.tsx is a lot more readable now.
It had a lot of unused imports, some unused functions, and some unused component parameters.

Before:

Screenshot 2025-06-25 at 9 02 45 PM

After (no unused imports and more readable):

Screenshot 2025-06-25 at 9 02 58 PM

Changes

  1. Used prettier to format file.
  2. Run organize imports to remove unused imports and alphabetize used ones.
  3. Removed icon property from ToolHeaderWrapper as it was unused.
  4. Removed icon field from all calls to ToolHeaderWrapper.
  5. Removed SimplifiedToolHeader component as it is not used anywhere.

Testing

It builds and runs.
No functional code was modified.



export const IconX = ({ size, className = '', ...props }: { size: number, className?: string } & React.SVGProps<SVGSVGElement>) => {
import React, {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Best to view this NOT in diff view as you'll see the improvement.

return (
<svg
xmlns='http://www.w3.org/2000/svg'
xmlns="http://www.w3.org/2000/svg"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Prettier is opinionated about ' vs ". This is less of a noticeable improvement than the other formatting.

@vdawger vdawger marked this pull request as ready for review June 26, 2025 04:05
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.

1 participant