srcbookdev / srcbook

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

Update file tree entry types to include dirname and basename #379

Closed benjreinhart closed 1 month ago

benjreinhart commented 1 month ago

File tree types now include:

This is part of an effort to make file and file tree types A) very easy to use and B) as similar to one another as possible.

This PR also fixes a bug when inserting a node in the file tree introduced #373 where we removed the ability to insert a new node into the tree.

nichochar commented 1 month ago

I think this might have introduced a regression where whenever you apply an AI change (in other words, calling createFile triggers a re-render which switches the tab back to the code, instead of the preview.