srcbookdev / srcbook

TypeScript-centric app development platform
https://srcbook.com
Apache License 2.0
2.79k stars 139 forks source link

Improve chat component polish. Add diff algorithm. Add DiffType #363

Closed nichochar closed 1 month ago

nichochar commented 1 month ago

See video for experience:

https://github.com/user-attachments/assets/9e0bb879-f93d-49ec-81c2-7afd69112b08

I'm starting to realize that we want at least some text from the AI before applying the changes. So I will work on adding that in by changing the prompts and the parser.

I also currently really don't like that the history disappears when we leave the app / reload the page. We clearly need to persist the data structures somewhere. Then we can leverage the little history icon to see past "Diffs".

Types still don't feel perfect @benjreinhart so still iterating. Open to suggestions to improve them.