asuwebdesign / patternfly-ext-chatbot

PatternFly Extension for creating enterprise-ready chatbot user experiences
https://patternfly-chatbot.vercel.app
MIT License
1 stars 0 forks source link

Message Bar - Text Input #7

Open asuwebdesign opened 5 months ago

asuwebdesign commented 5 months ago

Design Specs:

Message bar is the primary way users send prompts through the chatbot. Message bar can be configured to support additional features. When users type their message, the contents will stack once it runs out of room horizontally. Send action does not appear until a valid input has been given. A maximum of 8 lines are displayed. Prompts that exceed this limit will enable the message bar to be scrollable.

Supports:

asuwebdesign commented 4 months ago

TextArea component from PatternFly does not support auto-resizing width, which is required for the desired flexbox layout to shift properly as users type long values. Rather than attempting to use the contentEditable approach using non-native elements, I've imported an external NPM package to provide a resizable textarea element.

Will attempt to reconfigure styling to match design specs and properly test.

asuwebdesign commented 4 months ago

Added logic to submit user messages to the Messages component. Additional logic added to adjust the scroll position of the conversation so that new messages will always appear above the message bar.