-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat: Deprecation warning #13381
feat: Deprecation warning #13381
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
5 similar comments
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
Unable to find test scripts. Please add necessary tests to the PR. |
@@ -0,0 +1,46 @@ | |||
import React from "react"; |
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.
@rahulramesha This seems like something which belongs in the design system. Could you check with the design team?
I am asking because, we need to avoid using ad-hoc components like these, which can effect UI consistency in the long run.
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.
Agreed, we will need a generic Banner component that takes in inputs for Icons, colors, text and sizes. Do I rewrite the Banner as a generic component here or take that up as a separate issue?
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.
Added a new Component with sufficient customisation.
/ok-to-test sha=8416300 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2339495187. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2339495187. Click to view performance test results
|
1 similar comment
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2339495187. Click to view performance test results
|
@@ -122,7 +131,23 @@ function PropertyPaneView( | |||
/> | |||
)} | |||
<PropertyPaneConnections widgetName={widgetProperties.widgetName} /> | |||
|
|||
{isWidgetDeprecated(widgetProperties.type) && ( | |||
<BannerMessage |
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.
This component is a little hard to read, can we create separate variables, which we can use for props? I am referring especially to createMessage.
/ok-to-test sha=c817207 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2372126426. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2372126426. Click to view performance test results
|
/ok-to-test sha=e3bbb66 |
Tests running at: https://github.com/appsmithorg/appsmith/actions/runs/2372856431. |
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2372856431. Click to view performance test results
|
1 similar comment
UI Performance test run logs and artifacts: https://github.com/appsmithorg/appsmith/actions/runs/2372856431. Click to view performance test results
|
Description
This PR, helps in Adding Deprecation message to all the Deprected widgets and also adds code to enable showing the message to the Deprecation messages in the future as well, just by adding
isDeprecated: true
to the widget configFixes #12291
Type of change
How Has This Been Tested?
Manual UI and Cypress Test
Checklist:
Test coverage results π§ͺ
π’ Total coverage has increased