-
Notifications
You must be signed in to change notification settings - Fork 177
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
fix: remove compass-preferences from connection-form completely COMPASS-8098 #6294
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! One suggestion on some old code we can remove, not a blocker, feel free to merge as is
connectionColorToHex: isMultiConnectionEnabled | ||
? newColorCodeToHex | ||
: colorCodeToHex, | ||
connectionColorToHex: newColorCodeToHex, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] Does it make sense to drop the new
now?
return; | ||
} | ||
|
||
const migratedColor = legacyColorsToColorCode(colorCode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only have one other use of legacyColorsToColorCode
, and it's in the color picker. Maybe we can remove legacyColorsToColorCode
and LEGACY_COLORS_TO_COLOR_CODE_MAP
now? Someone would be using a color from ~3 years ago, and we'd only slightly be helping them select a color inside of the color picker UI.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that must be part of the legacy bits. I'll try to remove it + the parts that use it, hopefully it's not too deep of a rabbit hole 🤞
49399e2
to
237ac91
Compare
237ac91
to
435fdb0
Compare
Description
Removing last reference to compass-preferences from connection-form, because it's causing some issues in the VSCode integration.
Checklist
Motivation and Context
Open Questions
Dependents
Types of changes