Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR modernizes the codebase by migrating from a content-editable-based textarea to a native HTML textarea for prompt input, updating dependencies including React to v19 and Clover-IIIF to v3.
- Replaces the
Textareacomponent (usingreact-basic-contenteditable) with a newPromptInputcomponent using native<textarea> - Updates React peer and dev dependencies to support v18.2+ or v19+
- Updates Clover-IIIF from v2.19.2 to v3.0.0
Reviewed Changes
Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| stories/components/TextArea.stories.ts | Removes old Textarea component stories |
| stories/components/PromptInput.stories.ts | Adds new PromptInput component stories |
| src/plugin/Panel/index.test.tsx | Updates test mock to use PromptInput instead of Textarea |
| src/plugin/Panel/ChatInput/index.tsx | Replaces Textarea with PromptInput and updates event handling |
| src/components/index.ts | Exports PromptInput instead of Textarea |
| src/components/TextArea/style.module.css | Removes old Textarea styles |
| src/components/TextArea/index.tsx | Removes old Textarea component |
| src/components/PromptInput/style.module.css | Adds PromptInput styles using native textarea |
| src/components/PromptInput/index.tsx | Implements new PromptInput component |
| src/components/Input/style.module.css | Standardizes border width and adds aria-invalid support |
| src/components/Figure/style.module.css | Adds min-content width for images |
| package.json | Updates React, React DOM, and Clover-IIIF versions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #44