-
Notifications
You must be signed in to change notification settings - Fork 28
Add setup warning about latest tested version #3895
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
Conversation
| version: '1.0.0' | ||
| }, | ||
| hasData: false, | ||
| isAboveLatestTestedVersion: false, |
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.
As mentioned by Stephanie a couple prs ago, we need to stop our tests from writing SetupData from scratch for every test. In #3434 and will work on this in our next sprint!
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.
I have also run into this. My changes will conflict. I can do this today.
| shareLiveToStudio: false | ||
| }) | ||
|
|
||
| const iconWrapper = screen.getAllByTestId('info-tooltip-toggle')[0] |
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.
Noticed array selection was being used in info icon tests which is bad practice since the setup order will eventually change.
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.
Yep, I have run into this as well
webview/src/setup/components/App.tsx
Outdated
| title="DVC" | ||
| isSetup={isDvcSetup} | ||
| icon={getDvcStatusIcon(isDvcSetup, !!isAboveLatestTestedVersion)} | ||
| secondaryTooltipText={ |
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.
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 could easily remove "Warning" from the text as the icon already states that there is a warning present. Also, there should be a comma before "which".
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.
Done!
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.
Message is pretty lengthy. Maybe we could simplify it or remove the summary text about the DVC section
Yes and yes. However, I think we need to update a bit. The desired behaviour is if the user is getting unexpected behaviour then they should first try to upgrade the extension and if that is not possible downgrade the CLI. Here is a rough attempt at improving the message.
The located version has not been tested against the extension.
If you are experiencing unexpected behaviour first try to update the extension.
If there are no updates available then please downgrade DVC to the same minor version as displayed.
That can be polished but it is a start. Make sense?
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.
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.
👍🏻
webview/src/setup/components/App.tsx
Outdated
| title="DVC" | ||
| isSetup={isDvcSetup} | ||
| icon={getDvcStatusIcon(isDvcSetup, !!isAboveLatestTestedVersion)} | ||
| secondaryTooltipText={ |
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 could easily remove "Warning" from the text as the icon already states that there is a warning present. Also, there should be a comma before "which".
| icon?: TooltipIconType | ||
| }> | ||
| > = ({ icon = TooltipIconType.INFO, sectionKey, children }) => { | ||
| const infoIcon = ( |
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.
[N] I think leaving this named infoIcon is misleading because it is no longer always the information icon. Maybe indicatorIcon would be a better name.
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.
Good idea! We actually use the term info in multiple places regarding the component. Data id, component name, class, etc. I'll rename the different places in a followup :)
webview/src/setup/components/App.tsx
Outdated
| title="DVC" | ||
| isSetup={isDvcSetup} | ||
| icon={getDvcStatusIcon(isDvcSetup, !!isAboveLatestTestedVersion)} | ||
| secondaryTooltipText={ |
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.
Message is pretty lengthy. Maybe we could simplify it or remove the summary text about the DVC section
Yes and yes. However, I think we need to update a bit. The desired behaviour is if the user is getting unexpected behaviour then they should first try to upgrade the extension and if that is not possible downgrade the CLI. Here is a rough attempt at improving the message.
The located version has not been tested against the extension.
If you are experiencing unexpected behaviour first try to update the extension.
If there are no updates available then please downgrade DVC to the same minor version as displayed.
That can be polished but it is a start. Make sense?
| shareLiveToStudio: false | ||
| }) | ||
|
|
||
| const iconWrapper = screen.getAllByTestId('info-tooltip-toggle')[0] |
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.
Yep, I have run into this as well
| version: '1.0.0' | ||
| }, | ||
| hasData: false, | ||
| isAboveLatestTestedVersion: false, |
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.
I have also run into this. My changes will conflict. I can do this today.
|
Code Climate has analyzed commit b9368ed and detected 3 issues on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 100.0% (85% is the threshold). This pull request will bring the total coverage in the repository to 95.0% (0.0% change). View more on Code Climate. |


Demo
Screen.Recording.2023-05-17.at.3.57.26.PM.mov
Part of #3434