Skip to content

Add chat interface BEN-1073 #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025
Merged

Add chat interface BEN-1073 #23

merged 1 commit into from
Jun 13, 2025

Conversation

juancastano
Copy link
Contributor

@juancastano juancastano commented Jun 13, 2025

TL;DR

Added a dedicated builder page with a chat interface for iterative UI component development.

What changed?

  • Created a new /builder page that displays the generated UI component alongside a chat interface
  • Implemented a ChatInterface component that allows users to refine their UI through conversation
  • Modified the home page to redirect to the builder page after initial component generation
  • Updated the PreviewCard component to better fit the new layout with full-height display
  • Added session storage to persist generated components between pages
  • Implemented a "Start Over" button to reset the process

How to test?

  1. Navigate to the home page and enter a component description
  2. After generation, you should be redirected to the new builder page
  3. Verify the chat interface appears on the left with your initial prompt
  4. Test the preview/code tabs on the right side
  5. Try entering a new message in the chat interface
  6. Test the "Start Over" button to ensure it clears the session and returns to home

Why make this change?

This change improves the user experience by separating the initial generation from the refinement process. Users can now iteratively improve their UI components through a chat-based interface while maintaining context of their original request. The split layout provides more screen space for both the preview and the conversation, creating a more intuitive workflow for building and refining UI components.

Copy link
Contributor Author

juancastano commented Jun 13, 2025

Merge activity

  • Jun 13, 10:36 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 13, 10:37 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 13, 10:38 PM UTC: @juancastano merged this pull request with Graphite.

@juancastano juancastano changed the base branch from 06-13-add_support_for_adding_new_npm_packages to graphite-base/23 June 13, 2025 22:36
@juancastano juancastano changed the base branch from graphite-base/23 to main June 13, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant