feat(UI): adding MVP playground UI (#2828)

# What does this PR do?
I've been tinkering a little with a simple chat playground in the UI, so
I'm opening the PR with what's kind of a WIP.

If you look at the first commit, that includes the big part of the
changes. The rest of the files changed come from adding installing the
`shadcn` components.

Note this is missing a lot; e.g.,
- sessions
- document upload
- audio (the shadcn components install these by default from
https://shadcn-chatbot-kit.vercel.app/docs/components/chat)

I still need to wire up a lot more to make it actually fully functional
but it does basic chat using the LS Typescript Client.

Basic demo: 

<img width="1329" height="1430" alt="Image"
src="https://github.com/user-attachments/assets/917a2096-36d4-4925-b83b-f1f2cda98698"
/>

<img width="1319" height="1424" alt="Image"
src="https://github.com/user-attachments/assets/fab1583b-1c72-4bf3-baf2-405aee13c6bb"
/>


<!-- If resolving an issue, uncomment and update the line below -->
<!-- Closes #[issue-number] -->

## Test Plan
<!-- Describe the tests you ran to verify your changes with result
summaries. *Provide clear instructions so the plan can be easily
re-executed.* -->

---------

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Arceo 2025-07-30 22:44:16 -04:00 committed by GitHub
parent d6ae2b0f47
commit f3d5459647
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 4876 additions and 31 deletions

View file

@ -1,7 +1,7 @@
import {
MessageBlock,
ToolCallBlock,
} from "@/components/ui/message-components";
} from "@/components/chat-playground/message-components";
import { FunctionCallItem } from "../utils/item-types";
interface FunctionCallItemProps {

View file

@ -1,7 +1,7 @@
import {
MessageBlock,
ToolCallBlock,
} from "@/components/ui/message-components";
} from "@/components/chat-playground/message-components";
import { BaseItem } from "../utils/item-types";
interface GenericItemProps {

View file

@ -1,7 +1,7 @@
import {
MessageBlock,
ToolCallBlock,
} from "@/components/ui/message-components";
} from "@/components/chat-playground/message-components";
import { FunctionCallItem, FunctionCallOutputItem } from "../utils/item-types";
interface GroupedFunctionCallItemProps {

View file

@ -1,4 +1,4 @@
import { MessageBlock } from "@/components/ui/message-components";
import { MessageBlock } from "@/components/chat-playground/message-components";
import { MessageItem } from "../utils/item-types";
interface MessageItemProps {

View file

@ -1,7 +1,7 @@
import {
MessageBlock,
ToolCallBlock,
} from "@/components/ui/message-components";
} from "@/components/chat-playground/message-components";
import { WebSearchCallItem } from "../utils/item-types";
interface WebSearchItemProps {