-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement multi-file code editor - WF-100 #724
base: dev
Are you sure you want to change the base?
Conversation
e615feb
to
628a16e
Compare
I would advocate having a context menu to delete an item. With the current pattern, I can't remove a folder when I inadvertently create one : https://developer.mozilla.org/en-US/docs/Web/API/Element/contextmenu_event |
I would advocate to bind CTRL+S when the user is inside the editor. It currently open the browser windows : https://codepen.io/ThatSoftwareDude/pen/poVQowE |
implemented in b30a952 |
Implement the feature to allow the user to create, update and delete any source file of the application.
The logic flow is:
sourceFiles
in the Init request. It's an object representing the tree structure likesourceFilesDraft
createSourceFile
,deleteSourceFile
orrenameSourceFile
The main challenge was the synchronization between
sourceFiles
andsourceFilesDraft
. This main logic stands in the composableuseSourceFilesDraft
.Quick demo
Screen.Recording.2025-01-14.at.15.30.27.mov