henrycunh / golem

✨ A beautiful UI for ChatGPT and other conversational models
https://golem.chat
MIT License
238 stars 63 forks source link

feat: prevent more than one message at once #15

Closed henrycunh closed 1 year ago

henrycunh commented 1 year ago

Summary of Pull Request

Changes to app-prompt-input.vue

Changes to app-sidebar.vue

How

The changes made to app-prompt-input.vue involved adding a new import statement and a new variable called isTyping. The onSend function was also modified to check if isTyping is false before sending the message. Finally, the send button was modified to show a loading icon when isTyping is true.

In app-sidebar.vue, a div element was modified to include a pb-2 class and the text-gray-4 class was changed to text-color-lighter.

Why

The changes made to app-prompt-input.vue were made to improve the user experience by showing a loading icon when the user is typing a message. This helps to prevent the user from sending multiple messages at once.

The changes made to app-sidebar.vue were made to improve the appearance of the sidebar in the application.

henrycunh commented 1 year ago

Closes #9

gorila-mecanico[bot] commented 1 year ago

This pull request has been deployed to Vercel.

Latest commit: 9194675
✅ Preview: https://geppeto-15.vercel.app
🔍 Inspect: https://vercel.com/henrycunh-cc/gepeto/7yWrxXTCXAofNQq2zMBCXFUPAawB

View Workflow Logs