coral-web: enabled data sources and tools in composer #208
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.
Description:
Part 1 of moving composer usability changes to toolkit. This PR includes:
IconButton
UI updates like adding a tooltipNote: there are some drawer selection inconsistencies (e.g. I added the logic to deselect all files if you remove it from the composer) that will be addressed when I port over the drawer changes in the next PR.
Screen.Recording.2024-06-13.at.2.59.50.PM.mov
AI Description
This PR makes changes to the UI components of the Coral web interface, specifically related to file uploading, configuration, and conversation.
Files
handleToggle
function to enable/disable the default file loader tool and update the list of file IDs.Files
component to include aCheckbox
for each file, allowing users to select/deselect files.UploadedFile
component to include a checkbox and handle file selection.ComposerError
component to display file upload errors.ComposerFiles
component to use theMessageFile
component for displaying files.DragDropFileUploadOverlay
component to handle drag and drop file uploads.ComposerToolbar
component to manage file uploads and data sources.EnabledDataSources
component to render enabled data sources in the composer toolbar.Conversation
component to include theComposerToolbar
andComposerError
components.isDragDropInputActive
state and related drag and drop event handlers from theConversation
component.Conversation
component to use thechatWindowRef
for dynamic textarea height adjustment.Configuration
ConfigurationDrawer
component to include a tooltip label for the close drawer icon button.Conversation
Composer
component to include theComposerError
andComposerToolbar
components.ComposerMenu
component and replaces it with theComposerToolbar
component.DragDropFileUploadOverlay
component to handle drag and drop file uploads.handleKeyDown
function to prevent sending messages when composing is in progress.handleCompositionStart
andhandleCompositionEnd
functions to manage composition events and update the textarea value.ComposerFiles
component to filter out files with errors and display them separately.useFileActions
hook and related file actions.Conversation
component to use thechatWindowRef
for dynamic height adjustment.Other Changes
IconButton
component to include a tooltip label prop and render the tooltip using theTooltip
component.MessageContent
component to use theMessageFile
component for displaying files.tooltip
class to the tailwind configuration.