You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix add file button, drag and rename in fiddle frontend (#1656)
Fixes#1392 and some other bugs
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Fixes add file button, drag-and-drop, and renaming in
`FileViewer.tsx`, ensuring correct state updates for files and
directories.
>
> - **Behavior**:
> - Fixes add file button and drag-and-drop functionality in
`FileViewer.tsx`.
> - Corrects renaming logic for files and directories, ensuring state
updates with `setFiles` and `setEmptydirs`.
> - Handles empty directories during move and rename operations.
> - **Functions**:
> - Updates `onMove` to handle file and directory renames, using
`fileRenames` and `emptyDirRenames`.
> - Implements `onCreate` to add new files and directories, updating
state accordingly.
> - Refines `onRename` to adjust paths for files and directories,
ensuring correct state management.
> - **Misc**:
> - Removes unused imports and variables.
> - Fixes variable naming for clarity (e.g., `data2` to `data`).
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for 9218c18. It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
0 commit comments