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

chore: add deprecation notice to userprofileimage #6223

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

davidmenendez
Copy link
Contributor

@davidmenendez davidmenendez commented Oct 15, 2024

Closes #4140 and #4074

adds .deprecated to UserProfileImage

@davidmenendez davidmenendez requested a review from a team as a code owner October 15, 2024 18:19
@davidmenendez davidmenendez requested review from elycheea and sangeethababu9223 and removed request for a team October 15, 2024 18:19
Copy link

netlify bot commented Oct 15, 2024

Deploy Preview for ibm-products-web-components ready!

Name Link
🔨 Latest commit f9ad957
🔍 Latest deploy log https://app.netlify.com/sites/ibm-products-web-components/deploys/6761bfb264b0210008c4a0f9
😎 Deploy Preview https://deploy-preview-6223--ibm-products-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Oct 15, 2024

Deploy Preview for carbon-for-ibm-products ready!

Name Link
🔨 Latest commit f9ad957
🔍 Latest deploy log https://app.netlify.com/sites/carbon-for-ibm-products/deploys/6761bfb248f92f000842ea3c
😎 Deploy Preview https://deploy-preview-6223--carbon-for-ibm-products.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@elycheea
Copy link
Contributor

@davidmenendez Do we want to close this for now or make it a draft? We shouldn’t be deprecating UserProfileImage until we’ve released the UserAvatar as stable.

@davidmenendez
Copy link
Contributor Author

@elycheea yes that's a great point. i'll move this to draft for now 👍

@davidmenendez davidmenendez marked this pull request as draft October 15, 2024 19:13
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@9595f65). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6223   +/-   ##
=======================================
  Coverage        ?   80.76%           
=======================================
  Files           ?      395           
  Lines           ?    12885           
  Branches        ?     4266           
=======================================
  Hits            ?    10407           
  Misses          ?     2478           
  Partials        ?        0           
Components Coverage Δ
ibm-products ∅ <ø> (?)
ibm-products-web-components ∅ <ø> (?)

@elycheea
Copy link
Contributor

Keeping the blocked label here until we actually release user avatar (See #6469)

Copy link
Contributor

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? :)

Copy link
Contributor

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">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<a href="/?path=/docs/experimental-components-user-avatar-useravatar--docs">
<a href="/?path=/docs/ibm-products-components-user-avatar-useravatar--docs">

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for catching. fixt

Copy link
Contributor

@elycheea elycheea left a 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",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"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)."
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
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 */
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/* 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">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<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">

@davidmenendez
Copy link
Contributor Author

@elycheea cspell suggestions have been added. thanks!

Copy link
Contributor

@elycheea elycheea left a 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.

FYI @matthewgallo @RichKummer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a deprecation notice on UserProfileImage
4 participants