-
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
Consolidate Setup and "Get Started" walkthrough #3993
Merged
Merged
Changes from 5 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5672c13
Update walkthrough steps and setup steps
julieg18 eb3dace
Fix typo
julieg18 6498c90
Try to improve sentence flow in CliUnavailable
julieg18 23c36f9
Include dvc is initialized in get started criteria
julieg18 ef4f22e
Fix typo
julieg18 340ae26
Adjust unavailable sentence
julieg18 8ca7330
Clean up DVC is not initialized text
julieg18 1fb5a63
Add reference to pip
julieg18 27be3fd
Merge branch 'main' into update-get-started
julieg18 a863a41
Show setup on new install (#3994)
julieg18 9750ed1
Merge branch 'main' into update-get-started
julieg18 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-15.7 KB
extension/resources/walkthrough/images/install-dvc-status-bar-detected.png
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,11 +11,19 @@ export const CliUnavailable: React.FC<PropsWithChildren> = ({ children }) => { | |
(state: SetupState) => state.dvc.pythonBinPath | ||
) | ||
const canInstall = !!pythonBinPath | ||
const installationSentence = ( | ||
<> | ||
The extension supports all{' '} | ||
<a href="https://dvc.org/doc/install">installation types</a> and can | ||
auto-install recommended packages for you. | ||
</> | ||
) | ||
|
||
const contents = canInstall ? ( | ||
const conditionalContents = canInstall ? ( | ||
<> | ||
<p> | ||
DVC & DVCLive can be auto-installed as packages with {pythonBinPath} | ||
{installationSentence} DVC & DVCLive can be auto-installed with{' '} | ||
{pythonBinPath}. | ||
</p> | ||
<div className={styles.sideBySideButtons}> | ||
<Button onClick={installDvc} text="Install" /> | ||
|
@@ -24,7 +32,10 @@ export const CliUnavailable: React.FC<PropsWithChildren> = ({ children }) => { | |
</> | ||
) : ( | ||
<> | ||
<p>DVC & DVCLive cannot be auto-installed as Python was not located.</p> | ||
<p> | ||
{installationSentence} Unfortunately, DVC & DVCLive cannot be | ||
auto-installed as Python was not located. | ||
</p> | ||
<Button onClick={setupWorkspace} text="Configure" /> | ||
</> | ||
) | ||
|
@@ -33,7 +44,13 @@ export const CliUnavailable: React.FC<PropsWithChildren> = ({ children }) => { | |
<EmptyState isFullScreen={false}> | ||
<h1>DVC is currently unavailable</h1> | ||
{children} | ||
{contents} | ||
<p> | ||
New to DVC? Check out <a href="https://dvc.org/">dvc.org</a> to learn | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since these DVC steps will now be the first thing that users new to DVC will see, I added some extra sentences/links that were once in the walkthrough. |
||
more or our{' '} | ||
julieg18 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<a href="https://github.com/iterative/vscode-dvc-demo">demo</a> to | ||
quickly try the extension.{' '} | ||
</p> | ||
{conditionalContents} | ||
</EmptyState> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React, { PropsWithChildren } from 'react' | ||
import { FocusDvcSection } from './FocusDvcSection' | ||
import { EmptyState } from '../../../shared/components/emptyState/EmptyState' | ||
|
||
export const DvcNotSetup: React.FC<PropsWithChildren> = ({ children }) => ( | ||
julieg18 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<EmptyState isFullScreen={false}> | ||
<h1>DVC is not setup</h1> | ||
{children} | ||
<FocusDvcSection /> | ||
</EmptyState> | ||
) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Should this be above the title?
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 added it at the top to better show that this admonition is for the walkthrough as a whole vs just this step. But if it looks buggy to you, I'm happy to move it.
Comparison of the two:
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.
Looks and feels better after the title.