-
Notifications
You must be signed in to change notification settings - Fork 29
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
Point users to Python extension in DVC Setup #4124
Conversation
@@ -187,6 +186,28 @@ describe('App', () => { | |||
}) | |||
}) | |||
|
|||
it('should show "Set Env" and "Install (pip)" button tooltips when dvc is unavailable and Python extension is not installed', () => { |
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.
My original plan was to add tests for checking if buttons and tooltips were disabled depending on circumstances but for some reason, tooltips and buttons weren't disabling in the tests. They are working in Storybook and in development but not in testing. Any ideas what's going on?
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.
the magic virtual dom probably doesn't set the properly correctly
}> = ({ dataTestId, disabled, children }) => ( | ||
<Tooltip | ||
content={ | ||
<span data-testid={dataTestId}> |
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.
Not sure if we need the extra tooltips since it does tell you to install the python extension in the text 🤔
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 don't think we need the tooltip either. It looks very strange with almost the same text popping up next to the original.
}> = ({ dataTestId, disabled, children }) => ( | ||
<Tooltip | ||
content={ | ||
<span data-testid={dataTestId}> |
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 don't think we need the tooltip either. It looks very strange with almost the same text popping up next to the original.
@@ -2,14 +2,13 @@ import React from 'react' | |||
import styles from './styles.module.scss' | |||
import { Icon } from '../../../shared/components/Icon' | |||
import { Extensions } from '../../../shared/components/icons' | |||
import { ExtensionLink } from '../shared/ExtensionLink' |
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.
[Q] Why not move the text out from the original paragraph, put it under the buttons and use this component?
I think that would
- draw attention to the text
- remove the need to show a tooltip.
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.
Code Climate has analyzed commit b92216c and detected 0 issues on this pull request. 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.2% (0.0% change). View more on Code Climate. |
Demo
https://github.com/iterative/vscode-dvc/assets/43496356/aec5ac6e-d39b-4799-aa52-3468a0fd8e03Screen.Recording.2023-06-19.at.11.01.20.AM.mov
Part of #3935