Skip to content

Add loading state BEN-1074 #24

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 loading state BEN-1074 #24

merged 1 commit into from
Jun 13, 2025

Conversation

juancastano
Copy link
Contributor

@juancastano juancastano commented Jun 13, 2025

3# Rename Builder to Chat Page with Improved Generation Flow

TL;DR

Renamed /builder to /chat page with a new step-by-step UI generation flow that provides visual feedback during component creation.

What changed?

  • Renamed /builder/page.tsx to /chat/page.tsx for better semantic clarity
  • Added a visual step-by-step generation process with progress indicators
  • Implemented automatic component generation on page load instead of pre-generating
  • Enhanced PreviewCard to display generation steps with visual indicators (analyzing, generating, building, deploying)
  • Updated PromptForm to immediately navigate to the chat page without waiting for generation to complete
  • Added proper loading and error states throughout the generation flow

How to test?

  1. Enter a component description on the home page and click "Build it"
  2. You should be immediately redirected to the /chat page
  3. Verify the step-by-step generation process appears with animated indicators
  4. Once generation completes, confirm the preview displays correctly
  5. Test the code editor tab to ensure it shows the generated files

Why make this change?

This change improves the user experience by providing immediate feedback during the component generation process. Instead of making users wait on the home page during generation, they're immediately taken to the chat interface where they can see the progress. The step-by-step indicators give users a better understanding of what's happening behind the scenes, reducing perceived wait time and increasing engagement.

@juancastano juancastano changed the title Add loading state Add loading state BEN-107 Jun 13, 2025
@juancastano juancastano changed the title Add loading state BEN-107 Add loading state BEN-1074 Jun 13, 2025
@juancastano juancastano marked this pull request as ready for review June 13, 2025 22:32
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:39 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 13, 10:40 PM UTC: @juancastano merged this pull request with Graphite.

@juancastano juancastano changed the base branch from 06-13-add_chat_interface to graphite-base/24 June 13, 2025 22:37
@juancastano juancastano changed the base branch from graphite-base/24 to main June 13, 2025 22:38
@juancastano juancastano force-pushed the 06-13-add_loading_state branch from f3012fe to 7d3cc50 Compare June 13, 2025 22:39
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