Skip to content

Redesign Chat tab UI and message interactions#2650

Draft
shaunandrews wants to merge 10 commits intotrunkfrom
try/chat-tab
Draft

Redesign Chat tab UI and message interactions#2650
shaunandrews wants to merge 10 commits intotrunkfrom
try/chat-tab

Conversation

@shaunandrews
Copy link

@shaunandrews shaunandrews commented Feb 24, 2026

Summary

  • Rename "Assistant" tab to "Chat" and move it to the first tab position
  • Remove the animated Rive sparkle icon from the chat input
  • Simplify message styling: remove borders/backgrounds from AI messages, add subtle gray background with rounded corners to user messages
  • Redesign feedback ratings as toggle buttons with filled icons on all AI messages (not just the last one)
  • Add copy-to-clipboard button on all messages, visible on hover
  • Unify message actions (copy + ratings) into a single hover-revealed action bar
  • Replace "Powered by experimental AI" with concise disclaimer
image image image

Test plan

  • Open any site and verify "Chat" is the first tab (no icon, inline with others)
  • Verify chat input has no animated star icon, proper left padding
  • Send messages and confirm: AI messages have no border/background, user messages have gray background with rounded corners
  • Hover over any message to see action bar (copy for user, copy + ratings for AI)
  • Click thumbs up/down — selected icon fills and the other animates away; click again to undo
  • Verify copy button works on both user and AI messages
  • Verify disclaimer reads "AI can make mistakes. Double-check responses." centered below input

shaunandrews and others added 10 commits February 23, 2026 16:48
Remove the sparkle icon CSS and ml-auto positioning that pushed the tab
to the far right. Place it at order 0 so it appears as the first tab,
inline with the rest.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Strip the useAiIcon hook, its typing/keyUp state machinery, and the
Rive component from the input. Bump horizontal padding from px-1 to
px-4 to fill the space left by the removed icon.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Strip the rounded border, bg-white, and bg-white/45 from normal
messages for a cleaner look. Padding stays the same. Failed message
styling (red border/background) is preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Match the simplified styling from chat messages. Loading skeleton keeps
its bg-gray-100 and rounded for the pulse placeholder effect.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove border and background from welcome messages to match chat
- Add subtle background (a8c-gray-100) and rounded-xl to user messages
- Override API welcome messages with Kit introduction copy

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Default color matches surrounding text (a8c-gray-70), colored on hover
- Remove 'Was this helpful?' label, use tooltips instead
- Rename Yes/No to Helpful/Unhelpful
- Left-align buttons with message text, tighten spacing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Copy button on all messages, visible on hover
- Copy button on last assistant message (via LastMessage)
- Replace 'Powered by experimental AI' with concise disclaimer
- Center and shrink disclaimer text

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Create MessageActions bar (copy + ratings) shown on hover for all msgs
- ChatRating is now a toggle: click selects, click again deselects
- All assistant messages show ratings, not just the last one
- Remove FeedbackThanks replacement text
- Pass onRate callback from ContentTabAssistant through AuthenticatedView

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Restructure ChatMessage to wrap bubble + actions in inline-flex column
  so actions align to bubble width on both user and AI messages
- Actions always left-aligned with pl-3 matching message padding
- Remove bottom padding on AI messages (actions provide spacing)
- Animated rating toggle with max-width transitions and filled icons
- Fix rating button height alignment (flex wrapper vs block div)
- Replace CopyTextButton with inline CopyButton for consistent sizing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@wpmobilebot
Copy link
Collaborator

📊 Performance Test Results

Comparing 9aa3875 vs trunk

site-editor

Metric trunk 9aa3875 Diff Change
load 1467.00 ms 1444.00 ms -23.00 ms ⚪ 0.0%

site-startup

Metric trunk 9aa3875 Diff Change
siteCreation 7088.00 ms 7112.00 ms +24.00 ms ⚪ 0.0%
siteStartup 3946.00 ms 4947.00 ms +1001.00 ms 🔴 25.4%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

@wojtekn wojtekn marked this pull request as draft February 24, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants