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:
IconButtonUI 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
handleTogglefunction to enable/disable the default file loader tool and update the list of file IDs.Filescomponent to include aCheckboxfor each file, allowing users to select/deselect files.UploadedFilecomponent to include a checkbox and handle file selection.ComposerErrorcomponent to display file upload errors.ComposerFilescomponent to use theMessageFilecomponent for displaying files.DragDropFileUploadOverlaycomponent to handle drag and drop file uploads.ComposerToolbarcomponent to manage file uploads and data sources.EnabledDataSourcescomponent to render enabled data sources in the composer toolbar.Conversationcomponent to include theComposerToolbarandComposerErrorcomponents.isDragDropInputActivestate and related drag and drop event handlers from theConversationcomponent.Conversationcomponent to use thechatWindowReffor dynamic textarea height adjustment.Configuration
ConfigurationDrawercomponent to include a tooltip label for the close drawer icon button.Conversation
Composercomponent to include theComposerErrorandComposerToolbarcomponents.ComposerMenucomponent and replaces it with theComposerToolbarcomponent.DragDropFileUploadOverlaycomponent to handle drag and drop file uploads.handleKeyDownfunction to prevent sending messages when composing is in progress.handleCompositionStartandhandleCompositionEndfunctions to manage composition events and update the textarea value.ComposerFilescomponent to filter out files with errors and display them separately.useFileActionshook and related file actions.Conversationcomponent to use thechatWindowReffor dynamic height adjustment.Other Changes
IconButtoncomponent to include a tooltip label prop and render the tooltip using theTooltipcomponent.MessageContentcomponent to use theMessageFilecomponent for displaying files.tooltipclass to the tailwind configuration.