Skip to content

Commit c1f50df

Browse files
committed
made changes for labs
1 parent f3ec03e commit c1f50df

File tree

2 files changed

+12
-25
lines changed

2 files changed

+12
-25
lines changed

frontend/src/components/SidePanel.astro

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,16 @@ const caddyUrl = (() => {
4949
</ul>
5050
</>
5151
}
52-
<h2 class="sidepanel__hide-on-collapse float-left font-bold mt-1 pl-[3px] text-md md:pl-2">Tools</h2>
52+
<h2 class="sidepanel__hide-on-collapse float-left font-bold mt-1 pl-[3px] text-md md:pl-2">Chat History</h2>
5353
<ul class="mt-7">
54-
{ mcpServers.filter((mcpServer) => !mcpServer.isCaddy).map((mcpServer) =>
55-
<SidePanelServer mcpServer={ mcpServer } selectedServer={ selectedServer } hasLogo="true" />
56-
)}
54+
<li class="px-[2px] pb-2">
55+
<a class="flex gap-3 group items-start no-underline! rounded-sm" href="/chat-history">
56+
<span class="rounded-full">
57+
<img class="h-4 md:h-5" src="/icons/history.svg" alt="Chat history" />
58+
</span>
59+
<span class="sidepanel__hide-on-collapse underline underline-offset-6 hover:decoration-3" aria-hidden="true">View all chats</span>
60+
</a>
61+
</li>
5762
</ul>
5863
<div class="px-[2px] pb-5 pt-2">
5964
<a class="flex gap-3 group items-start no-underline! rounded-sm" href="/mixed-sources" aria-current={ selectedServer ? undefined : 'page' }>
@@ -65,12 +70,6 @@ const caddyUrl = (() => {
6570
</div>
6671
</div>
6772
<div>
68-
<a class="flex gap-3 items-start my-2 no-underline! px-[3px] rounded-sm md:px-2" href="/chat-history">
69-
<span class="rounded-full">
70-
<img class="h-4 md:h-5" src="/icons/history.svg" alt="Chat history" />
71-
</span>
72-
<span class="sidepanel__hide-on-collapse underline underline-offset-6 hover:decoration-3" aria-hidden="true">Chat history</span>
73-
</a>
7473
{ caddyServers.length > 0 &&
7574
<a class="flex gap-3 items-start mb-2 mt-4 no-underline! px-[3px] rounded-sm md:px-2" href={ caddyUrl } target="_blank" rel="noreferrer noopener">
7675
<span class="rounded-full">

frontend/src/layouts/Chat.astro

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
import Layout from '../layouts/Layout.astro';
3-
import ToolsAllServers from '../components/ToolsAllServers.astro';
4-
import ToolsSingleServer from '../components/ToolsSingleServer.astro';
53
import LitWrapper from '../components/lit-wrapper.astro';
64
import LogoAnimation from '../components/LogoAnimation.astro';
75
import type { Message } from '../logic/ai3.ts';
@@ -44,8 +42,8 @@ const singleServer = mcpServers.find((server) => server.name.toLowerCase() === s
4442
<LogoAnimation></LogoAnimation>
4543
}
4644
</span>
47-
<h1 class="font-bold mx-auto pt-2 text-5xl">Welcome to <span class="text-pink">{ singleServer ? singleServer.name : 'Caddy' }</span></h1>
48-
<p class="govuk-body mb-7! mt-3!" set:html={ singleServer? singleServer.description : 'A dedicated assistant for securely connecting to plugins' }></p>
45+
<h1 class="font-bold mx-auto pt-2 text-5xl">Welcome to <span class="text-pink">{ singleServer ? singleServer.name : 'The Lab' }</span></h1>
46+
<p class="govuk-body mb-7! mt-3!" set:html={ singleServer? singleServer.description : 'Test, compare and explore AI models in one place' }></p>
4947
</div>
5048

5149
<h2 class="govuk-visually-hidden">Messages</h2>
@@ -79,17 +77,7 @@ const singleServer = mcpServers.find((server) => server.name.toLowerCase() === s
7977

8078
<div class="prompt-box__buttons">
8179
<div class="relative">
82-
{ singleServer ?
83-
<ToolsSingleServer server={ singleServer } />
84-
:
85-
<tool-selector class="tool-selector">
86-
<details class="mb-2 md:mb-0">
87-
<summary class="border-1 border-pink border-solid cursor-pointer outline-pink px-2 py-1 rounded-sm text-[16px] text-pink w-[92px] focus-visible:outline-2 plausible-event-name=Expand+Plugins">Plugins</summary>
88-
<ToolsAllServers servers={ mcpServers } />
89-
</details>
90-
</tool-selector>
91-
}
92-
<model-selector class="[tool-selector+&]:left-21 top-0 md:mt-0 md:absolute">
80+
<model-selector class="top-0 md:mt-0 md:absolute">
9381
<label class="sr-only" for="model-selector">Mode</label>
9482
<select class="border-pink border-solid border-1 cursor-pointer inline-block min-h-[36px] mr-5 outline-pink px-2 py-[5px] rounded-sm text-pink w-40 focus-visible:outline-2" id="model-selector" name="model">
9583
<option value="locailabs/locai-l1-large-2011" class="p-[4px]">

0 commit comments

Comments
 (0)