feat: Enhance query input functionality #279
Open
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.
Update Dependencies and Refactor QueryInput Component
Overview
This pull request primarily focuses on updating dependencies, enhancing the
QueryInput
component, and improving TypeScript type references. The changes aim to improve functionality, maintainability, and overall code quality.Changes
drizzle-orm
andmarked
dependencies topackage.json
files for enhanced ORM capabilities and markdown parsing.extension-env.d.ts
to reflect the new naming convention for the extension.contentEditable
div in theQueryInput
component, allowing for more flexible user input handling.handleInput
function to update the query state based on the content of the editable div.textarea
element in favor of adiv
withcontentEditable
, streamlining the input handling process.onKeyDown
event handler by separating input handling logic, improving readability and maintainability.Additional Notes
- Consider adding error handling for user input in the `handleInput` function to ensure robustness. - It may be beneficial to document the rationale behind switching from `textarea` to `contentEditable` for future reference. - Ensure that the new dependencies do not introduce any breaking changes or compatibility issues with existing code.Original Description