vercel / ai-chatbot

A full-featured, hackable Next.js AI chatbot built by Vercel
https://chat.vercel.ai
Other
6.23k stars 1.96k forks source link

Update Prompt Form Component for Improved User Navigation #345

Closed FindMalek closed 3 months ago

FindMalek commented 4 months ago

This pull request addresses an enhancement in the user navigation experience by modifying the behavior of the 'IconPlus' component in the components/prompt-form.tsx file.

Previously, clicking the 'IconPlus' component would redirect the user to the /new route. However, upon careful consideration, it was determined that redirecting to the root / route would be more intuitive and beneficial for the overall user experience.

The following changes were made to achieve this:

// Before
onClick={() => {
  router.push('/new')
}}

// After
onClick={() => {
  router.push('/')
}}

This update ensures that users are directed to the most relevant and useful page, enhancing the overall usability and flow of the application.

I kindly request your review and feedback on these changes. Thank you for your time and consideration!

vercel[bot] commented 4 months ago

@FindMalek is attempting to deploy a commit to the Uncurated Tests Team on Vercel.

A member of the Team first needs to authorize it.

leerob commented 3 months ago

It looks like this is no longer needed. Thank you anyway!