1# UI Development Instructions
2
3## General guideline
4- Never use commands to send messages when you can directly mutate children or state
5- Keep things simple do not overcomplicated
6- Create files if needed to separate logic do not nest models
7
8## Big model
9Keep most of the logic and state in the main model `internal/ui/model/ui.go`.
10
11
12## When working on components
13Whenever you work on components make them dumb they should not handle bubble tea messages they should have methods.
14
15## When adding logic that has to do with the chat
16Most of the logic with the chat should be in the chat component `internal/ui/model/chat.go`, keep individual items dumb and handle logic in this component.
17