Skip to content

Commit d427897

Browse files
vrothbergbenoitf
authored andcommitted
playground: add description when there's no playground
Based on user feedback, add the description from the dashboard to the playgrounds page when there is none running. This way, new users receive more information and guidance and have an easier time navigating AI Lab and its functionality. Also update the Dashboard with an additional paragraph. Signed-off-by: Valentin Rothberg <[email protected]>
1 parent 05c4a3b commit d427897

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

packages/frontend/src/pages/Dashboard.svelte

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const openPlaygroundsPage = () => {
1717
router.goto('/playgrounds');
1818
};
1919
20+
const openServicesPage = () => {
21+
router.goto('/services');
22+
};
23+
2024
const openGithub = () => {
2125
studioClient.openURL('https://github.com/containers/podman-desktop-extension-ai-lab');
2226
};
@@ -76,6 +80,14 @@ const openDiscussionsPage = () => {
7680
allow for experimenting with available models in a local environment. An intuitive user prompt helps in exploring
7781
the capabilities and accuracy of various models and aids in finding the best model for the use case at hand.
7882
</p>
83+
<p>
84+
Once started, each playground ships with a generic chat client to interact with the model service. The <button
85+
class="underline"
86+
title="Open the Services page"
87+
on:click="{openServicesPage}">Services</button>
88+
page allows for accessing running model services and provides further details and code snippets to interact with
89+
them.
90+
</p>
7991

8092
<h1 class="text-xl first-letter:uppercase underline">Feedback</h1>
8193
<p>

packages/frontend/src/pages/Playgrounds.svelte

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ const row = new Row<PlaygroundV2>({});
2020
function createNewPlayground() {
2121
router.goto('/playground/create');
2222
}
23+
24+
const openServicesPage = () => {
25+
router.goto('/services');
26+
};
2327
</script>
2428

2529
<NavPage title="Playground Environments" searchEnabled="{false}">
@@ -42,6 +46,19 @@ function createNewPlayground() {
4246
on:click="{createNewPlayground}">create one now</a
4347
>.
4448
</div>
49+
<p>
50+
Playground environments allow for experimenting with available models in a local environment. An intuitive
51+
user prompt helps in exploring the capabilities and accuracy of various models and aids in finding the
52+
best model for the use case at hand.
53+
</p>
54+
<p>
55+
Once started, each playground ships with a generic chat client to interact with the model service. The <button
56+
class="underline"
57+
title="Open the Services page"
58+
on:click="{openServicesPage}">Services</button>
59+
page allows for accessing running model services and provides further details and code snippets to interact
60+
with them.
61+
</p>
4562
{/if}
4663
</div>
4764
</div>

0 commit comments

Comments
 (0)