Skip to content
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

refactor: upgrade styled-components-to-v6 #266

Draft
wants to merge 4 commits into
base: devel
Choose a base branch
from

Conversation

beawar
Copy link
Collaborator

@beawar beawar commented Nov 7, 2024

Add $prefix on custom props of styled components.
Remove or replace invalid styles.
Remove types.d.ts declaration file, which was messing types.
Update tsconfig to allow js.
Update types which were messed up by the declaration file, to reflect the real type.
Add prop types to js components to fix sonar warning. They should be helpful when migrating to typescript.
Add some FIXME comment where the types are too messed up, and additional knowledge/refactor is required to fix them.
Remove unused files.
Remove invalid, unused props.
Split StyledListItem to one simpler styled component and the EnhancedListItem, which takes care of setting the right color for the styled component. Replace its usages.

Refs: CO-1610


This comment has been minimized.

@beawar
Copy link
Collaborator Author

beawar commented Nov 7, 2024

There are still some props passed, I need to check them

@beawar beawar closed this Nov 7, 2024
@beawar beawar reopened this Nov 8, 2024

This comment has been minimized.

Copy link

Failed

  • 70.70% Coverage on New Code (is less than 80.00%)
  • 0.00% Security Hotspots Reviewed on New Code (is less than 100.00%)
  • 7 New Issues (is greater than 0)

Analysis Details

9 Issues

  • Bug 0 Bugs
  • Vulnerability 2 Vulnerabilities
  • Code Smell 7 Code Smells

Coverage and Duplications

  • Coverage 70.70% Coverage (69.40% Estimated after merge)
  • Duplications 0.00% Duplicated Code (1.30% Estimated after merge)

Project ID: carbonio-contacts-ui

View in SonarQube

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