-
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
Move Connect to Studio into Setup webview #3452
Changes from all commits
ac3fa82
9bd3aa8
7037796
593d968
a8f98f4
375cdfe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ import { Progress, commands } from 'vscode' | |
import { AvailableCommands, InternalCommands } from '../../commands/internal' | ||
import { Toast } from '../../vscode/toast' | ||
import { WorkspaceExperiments } from '../workspace' | ||
import { Connect } from '../../connect' | ||
import { Setup } from '../../setup' | ||
import { RegisteredCommands } from '../../commands/external' | ||
|
||
export const getBranchExperimentCommand = | ||
|
@@ -108,11 +108,11 @@ export const getShareExperimentAsCommitCommand = | |
} | ||
|
||
export const getShareExperimentToStudioCommand = | ||
(internalCommands: InternalCommands, connect: Connect) => | ||
(internalCommands: InternalCommands, setup: Setup) => | ||
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. [F] All of the externals of |
||
({ dvcRoot, id }: { dvcRoot: string; id: string }) => { | ||
const studioAccessToken = connect.getStudioAccessToken() | ||
const studioAccessToken = setup.getStudioAccessToken() | ||
if (!studioAccessToken) { | ||
return commands.executeCommand(RegisteredCommands.CONNECT_SHOW) | ||
return commands.executeCommand(RegisteredCommands.SETUP_SHOW) | ||
} | ||
|
||
return internalCommands.executeCommand( | ||
|
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.
[F] I'll replace these in a follow-up.
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 current behaviour is back UX but I will fix it in the next PR.
Screen.Recording.2023-03-14.at.12.29.42.pm.mov
The best idea at the moment seems to be to collapse all of the non-relevant sections.