marcusschiesser / unc

Enterprise-ready, privacy-first ChatGPT platform
https://unc.de
GNU Affero General Public License v3.0
7 stars 1 forks source link

[Refactor] Extract components to own file #12

Closed marcusschiesser closed 10 months ago

marcusschiesser commented 11 months ago

Instead of using just one file (e.g. chat.tsx) that contains multiple components, place each component (e.g. ChatAction) in a dedicated file and place that file in a suitable folder (e.g. chat/chat-action.tsx). Advantage: PRs are easier to read as changes are only on the changed components.

marcusschiesser commented 11 months ago

@thucpn while doing so, please make a list of other refactor improvements that we can do