auto: chat bubble layout — directional message alignment#14
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…-113311 # Conflicts: # .github/_auto_pr_body.md # .github/_auto_scoreboard.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
auto: chat bubble layout — directional message alignment
Why
The existing chat UI uses
ml-8/mr-8indented blocks for messages — both user and assistant messages are visually identical blocks that differ only by their tiny "You"/"Chef" label. A proper directional bubble layout (user right-aligned, assistant left-aligned) is the highest-impact single visual improvement for a conversational UI. The operator's focus hint explicitly calls out "visual polish, spacing, typography, color, and layout."What
web/components/chat.tsx: AddedbubbleLayoutstate flag read from/flags; when enabled, messages render as directional flex bubbles — user messages right-aligned with warm orange-tinted background (bg-accent/15,border-accent/30, orange "You" label), assistant messages left-aligned with elevated card style (rounded-2xl,shadow-sm). Old layout preserved as fallback when flag is off.api/main.py: Addedchat_bubble_layoutkey to the/flagsendpoint so the frontend can read the Flagsmith value.Flag
auto_chat_bubble_layout— default off. Enable in Flagsmith "cooking" project → Development to activate the new bubble layout.Eval delta
No scenarios were modified. Change is purely frontend CSS/layout.
How to test
Rollback
Flip
auto_chat_bubble_layoutoff in Flagsmith. No code revert needed.