Skip to content

Commit

Permalink
refactor: light mode for playgrounds page (#1258)
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Martin <[email protected]>
  • Loading branch information
feloy authored Jun 21, 2024
1 parent 7c7e686 commit c666ae7
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import { catalog } from '/@/stores/catalog';
$: name = $catalog.models.find(r => r.id === object.modelId)?.name;
</script>

<div class="text-sm text-gray-300 overflow-hidden text-ellipsis">
<div class="text-sm text-[var(--pd-table-body-text)] overflow-hidden text-ellipsis">
{name}
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function openDetails() {
</script>

<button on:click="{() => openDetails()}">
<div class="text-sm text-gray-300 overflow-hidden text-ellipsis">
<div class="text-sm text-[var(--pd-table-body-text-highlight)] overflow-hidden text-ellipsis">
{object.name}
</div>
</button>
44 changes: 23 additions & 21 deletions packages/frontend/src/pages/Playgrounds.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,30 @@ const openServicesPage = () => {
{#if $conversations.length > 0}
<Table kind="playground" data="{$conversations}" columns="{columns}" row="{row}"></Table>
{:else}
<div role="status">
There is no playground environment. You can <a
href="{'javascript:void(0);'}"
class="underline"
role="button"
title="Create a new Playground environment"
on:click="{createNewPlayground}">create one now</a
>.
<div class="text-[var(--pd-details-body-text)]">
<div role="status">
There is no playground environment. You can <a
href="{'javascript:void(0);'}"
class="underline"
role="button"
title="Create a new Playground environment"
on:click="{createNewPlayground}">create one now</a
>.
</div>
<p>
Playground environments allow for experimenting with available models in a local environment. An
intuitive user prompt helps in exploring the capabilities and accuracy of various models and aids in
finding the best model for the use case at hand.
</p>
<p>
Once started, each playground ships with a generic chat client to interact with the model service. The <button
class="underline"
title="Open the Services page"
on:click="{openServicesPage}">Services</button>
page allows for accessing running model services and provides further details and code snippets to interact
with them.
</p>
</div>
<p>
Playground environments allow for experimenting with available models in a local environment. An intuitive
user prompt helps in exploring the capabilities and accuracy of various models and aids in finding the
best model for the use case at hand.
</p>
<p>
Once started, each playground ships with a generic chat client to interact with the model service. The <button
class="underline"
title="Open the Services page"
on:click="{openServicesPage}">Services</button>
page allows for accessing running model services and provides further details and code snippets to interact
with them.
</p>
{/if}
</div>
</div>
Expand Down

0 comments on commit c666ae7

Please sign in to comment.