arc53 / DocsGPT

GPT-powered chat for documentation, chat with your documents
https://app.docsgpt.cloud/
MIT License
14.75k stars 1.52k forks source link

🚀 Feature: Create reusable input field component and cleanup code #1017

Closed siiddhantt closed 2 months ago

siiddhantt commented 3 months ago

🔖 Feature description

Create a reusable input field component to replace redundant Tailwind CSS classes, ensuring consistent styling and cleaner code.

🎤 Why is this feature needed ?

Reduce redundancy, ensure consistency, improve maintainability, enhance code quality, and clean up the codebase.

✌️ How do you aim to achieve this?

Identify common patterns, create a reusable component, replace existing fields and test thoroughly.

🔄️ Additional Information

No response

👀 Have you spent some time to check if this feature request has been raised before?

Are you willing to submit PR?

None

utin-francis-peter commented 3 months ago

Hi, @dartpain @siiddhantt

I've studied the repetitive usage of text input across multiple files - like APIKeyModal, PromptsModal, APIKeys, and Upload- and currently designing the component.

I also noted an editable div element is used for entering prompts which could also use the Input component in view.

Kindly assign me the issue.