diff --git a/webview/src/experiments/components/App.test.tsx b/webview/src/experiments/components/App.test.tsx index a6c92094d1..fc51d2d538 100644 --- a/webview/src/experiments/components/App.test.tsx +++ b/webview/src/experiments/components/App.test.tsx @@ -153,7 +153,7 @@ describe('App', () => { }) ) - const noColumnsState = screen.queryByText('No Columns Selected') + const noColumnsState = screen.queryByText('No Columns Selected.') expect(noColumnsState).toBeInTheDocument() }) @@ -169,7 +169,7 @@ describe('App', () => { }) ) - const noExperimentsState = screen.queryByText('No Experiments to Display') + const noExperimentsState = screen.queryByText('No Experiments to Display.') expect(noExperimentsState).toBeInTheDocument() }) @@ -190,10 +190,10 @@ describe('App', () => { const loadingState = screen.queryByText('Loading experiments...') expect(loadingState).not.toBeInTheDocument() - const noExperimentsState = screen.queryByText('No Experiments to Display') + const noExperimentsState = screen.queryByText('No Experiments to Display.') expect(noExperimentsState).not.toBeInTheDocument() - const noColumnsState = screen.queryByText('No Columns Selected') + const noColumnsState = screen.queryByText('No Columns Selected.') expect(noColumnsState).not.toBeInTheDocument() }) diff --git a/webview/src/experiments/components/Experiments.tsx b/webview/src/experiments/components/Experiments.tsx index 1c640a390b..0f7e692c59 100644 --- a/webview/src/experiments/components/Experiments.tsx +++ b/webview/src/experiments/components/Experiments.tsx @@ -199,12 +199,12 @@ export const ExperimentsTable: React.FC<{ const hasOnlyDefaultColumns = columns.length <= 2 if (hasOnlyDefaultColumns) { - return No Columns Selected + return No Columns Selected. } const hasOnlyWorkspace = data.length <= 1 if (hasOnlyWorkspace) { - return No Experiments to Display + return No Experiments to Display. } return diff --git a/webview/src/plots/components/App.test.tsx b/webview/src/plots/components/App.test.tsx index cb5061baa8..e385820837 100644 --- a/webview/src/plots/components/App.test.tsx +++ b/webview/src/plots/components/App.test.tsx @@ -127,7 +127,7 @@ describe('App', () => { checkpoint: null, sectionCollapsed: DEFAULT_SECTION_COLLAPSED }) - const emptyState = await screen.findByText('No Plots to Display') + const emptyState = await screen.findByText('No Plots to Display.') expect(emptyState).toBeInTheDocument() }) diff --git a/webview/src/plots/components/GetStarted.tsx b/webview/src/plots/components/GetStarted.tsx index b5a2ecbbae..0bbdab3f80 100644 --- a/webview/src/plots/components/GetStarted.tsx +++ b/webview/src/plots/components/GetStarted.tsx @@ -18,7 +18,7 @@ export const GetStarted = ({ return (
-

No Plots to Display

+

No Plots to Display.

{hasPlots && (
{!hasSelectedPlots && ( @@ -45,6 +45,24 @@ export const GetStarted = ({ )}
)} + {!hasPlots && ( +
+

+ {'Learn how to '} + + visualize experiments + + {' with DVC.'} +

+

+ {'Learn about the '} + + plots commands + + . +

+
+ )}
) diff --git a/webview/src/shared/components/emptyState/styles.module.scss b/webview/src/shared/components/emptyState/styles.module.scss index 2d819af1e4..4baab001cd 100644 --- a/webview/src/shared/components/emptyState/styles.module.scss +++ b/webview/src/shared/components/emptyState/styles.module.scss @@ -17,4 +17,5 @@ opacity: 0.8; letter-spacing: 0.04em; color: $watermark-color; + font-family: sans-serif; } diff --git a/webview/src/shared/style.scss b/webview/src/shared/style.scss index 368837971c..84eaf33f34 100644 --- a/webview/src/shared/style.scss +++ b/webview/src/shared/style.scss @@ -44,3 +44,15 @@ body { button { font-family: inherit; } + +a { + color: var(--vscode-textLink-foreground); + + &:hover { + color: var(--vscode-textLink-activeForeground); + } + + &:active { + color: var(--vscode-textLink-activeForeground); + } +}