Closed sweep-nightly[bot] closed 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 |
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:
FloatingPrompts
component that renders the three floating text boxes with potential prompts.FloatingPrompts
component into the mainApp
component, displaying it only when the user has just logged in.handlePromptClick
function to update the input field when a prompt is clicked and set theisNewLogin
state tofalse
.App
component to conditionally render theFloatingPrompts
component based on theisNewLogin
state.Summary
FloatingPrompts
component insweep_chat/components/App.tsx
FloatingPrompts
component into theApp
componenthandlePromptClick
function to update the input field when a prompt is clickedApp
component to conditionally render theFloatingPrompts
componentSuggested changes from Sweep Chat by @sweep-support. Continue chatting at http://localhost:3000/c/76048e84-ea98-42c0-b2eb-fa7d9032c409.