From 3ce5ea9bb7320603abf7e142b9320f2ddcc20317 Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Fri, 12 Dec 2025 12:36:36 +1000 Subject: [PATCH] style(playground): polish UI design for better consistency and alignment - ChatInput: Redesign with rounded container, better button alignment, helper text - ChatHeader: Consistent bg-surface, refined typography and spacing - ChatMessages: Improved empty state with icon badge and suggestion box - MessageBubble: Cleaner message cards, collapsible tool input/output, status badges - ToolsSidebar: Header/content separation, keyboard accessibility, wider width - SettingsSidebar: Matching header style, dashed empty state, footer info section All components now use consistent theme tokens (bg-surface, bg-background, etc.) and follow the same visual patterns for headers, cards, and spacing. --- .../src/components/chat/ChatHeader.tsx | 14 +- .../src/components/chat/ChatInput.tsx | 39 +-- .../src/components/chat/ChatMessages.tsx | 19 +- .../src/components/chat/MessageBubble.tsx | 236 ++++++++++-------- .../components/sidebar/SettingsSidebar.tsx | 62 +++-- .../src/components/sidebar/ToolsSidebar.tsx | 124 +++++---- 6 files changed, 275 insertions(+), 219 deletions(-) diff --git a/apps/playground/src/components/chat/ChatHeader.tsx b/apps/playground/src/components/chat/ChatHeader.tsx index c5ee819..2f6a3bd 100644 --- a/apps/playground/src/components/chat/ChatHeader.tsx +++ b/apps/playground/src/components/chat/ChatHeader.tsx @@ -23,26 +23,26 @@ export function ChatHeader({ onClear }: ChatHeaderProps): React.ReactElement { }; return ( -
+
-
-

TPMJS Playground

+
+

TPMJS Playground

View Registry →
-
+
{mounted && ( - )} -
diff --git a/apps/playground/src/components/chat/ChatInput.tsx b/apps/playground/src/components/chat/ChatInput.tsx index 5f0e9bc..a9e38d5 100644 --- a/apps/playground/src/components/chat/ChatInput.tsx +++ b/apps/playground/src/components/chat/ChatInput.tsx @@ -32,20 +32,31 @@ export function ChatInput({ }; return ( -
-
-