#1036 Conversation Input Document Selector With Hot Key #1037
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature Request Feature Request 🚀 Feature: Attachment source doc #1036
Why was this change needed? (You can also link to an open issue here)
The hot key doc selection mechanism may enhance the query writing workflow for some users as it allows user focus to remain closer to the input text box without needing to shift focus to the source docs dropdown on the left side of the page.
Highlighting the document that is being used for the current query closer to the input text box may reduce confusion for some users as to which document is selected for use with their current query.
This new selection mechanism could be used in the future to scale the number of document included in a search when/if the project moves to allow more than one document to be used in a single query.
Other information:
Components Added
PopupSelector - A popup which takes in a list of items and displays them in a select-like format. The popup has a reletive position to its parent component and can be positioned on top of the screen as set by the popup's input parameters.
ConversationSourceList - A pill list which renders a list of documents which have been selected by the user at the time of writing a query. Currently, only one document is able to be selected at one time, however, this component is capable of handling more than one component if there is a need in the future.
ConversationInputList - The input text box from the Conversation component refactored into its own component to handle all user input when writing a new query.