sweepai / sweep

Sweep: open-source AI-powered Software Developer for small features and bug fixes.
https://sweep.dev
Other
7.46k stars 430 forks source link

Add floating prompts to the Sweep frontend #4093

Closed sweep-nightly[bot] closed 4 months ago

sweep-nightly[bot] commented 4 months ago

Purpose

This pull request adds a new feature to the Sweep frontend that displays three floating text boxes with potential prompts when the user first logs in. When a prompt is clicked, it populates the input field at the bottom of the page.

Description

The changes made in this pull request include:

  1. Created a new FloatingPrompts component that renders the three floating text boxes with potential prompts.
  2. Integrated the FloatingPrompts component into the main App component, displaying it only when the user has just logged in.
  3. Added a handlePromptClick function to update the input field when a prompt is clicked and set the isNewLogin state to false.
  4. Updated the render method of the App component to conditionally render the FloatingPrompts component based on the isNewLogin state.

Summary

Suggested changes from Sweep Chat by @sweep-support. Continue chatting at http://localhost:3000/c/76048e84-ea98-42c0-b2eb-fa7d9032c409.

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git โ†—๏ธŽ

Name Status Preview Comments Updated (UTC)
sweep-chat ๐Ÿ”„ Building (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Jun 21, 2024 10:32pm
sweep-chat-demo โŒ Failed (Inspect) ๐Ÿ’ฌ Add feedback Jun 21, 2024 10:32pm
sweep-docs โœ… Ready (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Jun 21, 2024 10:32pm
sweep-pulley ๐Ÿ”„ Building (Inspect) Visit Preview ๐Ÿ’ฌ Add feedback Jun 21, 2024 10:32pm