chore: saving off some progress for the renaming, need a new systemiomachine actor

This commit is contained in:
Kevin
2025-06-17 11:06:32 -05:00
parent 12a4b444c1
commit 6ac164d15c
3 changed files with 14 additions and 4 deletions

View File

@ -272,16 +272,16 @@ export const FileExplorerRowElement = ({
<RenameForm
row={row}
onSubmit={(event) => {
console.log(event.target.value)
row.rowRenameEnd(event)
}}
></RenameForm>
></RenameForm>
)}
<div className="ml-auto">{row.status}</div>
<div style={{ width: '0.25rem' }}></div>
<FileExplorerRowContextMenu
itemRef={rowElementRef}
onRename={() => {
row.rowRename()
row.rowRenameStart()
}}
onDelete={() => {}}
onClone={() => {}}

View File

@ -159,9 +159,17 @@ export const ProjectExplorer = ({
},
isFake: false,
activeIndex: activeIndex,
rowRename: () => {
rowRenameStart: () => {
setIsRenaming(true)
},
rowRenameEnd: (event) => {
setIsRenaming(false)
const requestedRename = String(event.target.value)
const name = row.name
// if (requestedProjectName !== projectName) {
// }
}
}
return row

View File

@ -24,6 +24,8 @@ export async function resetCameraPosition() {
// We need a padding of 0.1 for zoom_to_fit for all E2E tests since they were originally
// written with zoom_to_fit with padding 0.1
const padding = 0.1
await engineStreamZoomToFit({ engineCommandManager, padding })
return
if (isPlaywright()) {
await engineStreamZoomToFit({ engineCommandManager, padding })
} else {