-
Notifications
You must be signed in to change notification settings - Fork 139
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
chore: add deprecation notice to userprofileimage #6223
base: main
Are you sure you want to change the base?
chore: add deprecation notice to userprofileimage #6223
Conversation
✅ Deploy Preview for ibm-products-web-components ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for carbon-for-ibm-products ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@davidmenendez Do we want to close this for now or make it a draft? We shouldn’t be deprecating |
@elycheea yes that's a great point. i'll move this to draft for now 👍 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6223 +/- ##
=======================================
Coverage ? 80.76%
=======================================
Files ? 395
Lines ? 12885
Branches ? 4266
=======================================
Hits ? 10407
Misses ? 2478
Partials ? 0
|
Keeping the blocked label here until we actually release user avatar (See #6469) |
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.
@anamikaanu96 thoughts on adding some docs on the codemod here? :)
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.
yea we already have an issue for that, we can do codemod doc along this with PR,
"This component is deprecated and will be removed in the next major version. You can migrate this component to 'User avatar' using the below command"
npx @carbon/upgrade migrate ibm-products-update-userprofileimage --write
<div> | ||
This component is deprecated and will be removed in the next major | ||
version. Please migrate to{' '} | ||
<a href="/?path=/docs/experimental-components-user-avatar-useravatar--docs"> |
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.
<a href="/?path=/docs/experimental-components-user-avatar-useravatar--docs"> | |
<a href="/?path=/docs/ibm-products-components-user-avatar-useravatar--docs"> |
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.
thanks for catching. fixt
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.
Caught a few cspell improvements.
@anamikaanu96 If we have an issue to track that, it should be sufficient! No need to roll it into this PR yet — unless you and @davidmenendez would prefer to collab to add it here. Might be better for our definition of done, but can wait if we want to discuss the structure some more.
cspell.json
Outdated
@@ -201,6 +199,7 @@ | |||
"typeahead", | |||
"typeof", | |||
"unauthorizedemptystate", | |||
"useravatar", |
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.
"useravatar", |
Let’s keep the cspell disables for useravatar
inline since I think it only applies when we’re putting it in the URL. (I do realize a lot of our other components probably made it into cspell for the same reason, but it does make us a bit more prone to spelling/stylistic errors.)
@@ -11,6 +12,7 @@ import * as stories from './UserProfileImage.stories'; | |||
|
|||
const DocsPage = () => ( | |||
<StoryDocsPage | |||
deprecationNotice="This component is deprecated and will be removed in the next major version. Please migrate to [UserAvatar](?path=/docs/ibm-products-components-user-avatar-useravatar--docs#migration-from-userprofileimage)." |
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.
deprecationNotice="This component is deprecated and will be removed in the next major version. Please migrate to [UserAvatar](?path=/docs/ibm-products-components-user-avatar-useravatar--docs#migration-from-userprofileimage)." | |
// cspell:disable-next-line | |
deprecationNotice="This component is deprecated and will be removed in the next major version. Please migrate to [UserAvatar](?path=/docs/ibm-products-components-user-avatar-useravatar--docs#migration-from-userprofileimage)." |
@@ -1,3 +1,4 @@ | |||
/* cSpell:disable */ |
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.
/* cSpell:disable */ |
I would just disable the next line in this case too, but you could alternatively do ...
/* cspell:words useravatar */
<div> | ||
This component is deprecated and will be removed in the next major | ||
version. Please migrate to{' '} | ||
<a href="/?path=/docs/ibm-products-components-user-avatar-useravatar--docs"> |
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.
<a href="/?path=/docs/ibm-products-components-user-avatar-useravatar--docs"> | |
{/* cspell:disable-next-line */} | |
<a href="/?path=/docs/ibm-products-components-user-avatar-useravatar--docs"> |
@elycheea cspell suggestions have been added. thanks! |
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.
Since this is a stable component — and high usage at that, the deprecation should probably be more like the Datagrid where it remains in v2, v3 but is removed in v4.
Closes #4140 and #4074
adds
.deprecated
toUserProfileImage