-
Notifications
You must be signed in to change notification settings - Fork 33
File Explorer drag and drop to move files #109
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
File Explorer drag and drop to move files #109
Conversation
Add drag and drop styling Some clean up before review
- Fix Shift-Click selection. It wasn't updating the selection properly, this has been broken since powell --> A couple of functions like handleItemBlur and handleItemFocus were unnecessary, just removed them. - Update selection after dropping - Emit signal for all renamed files
…emList - Got it mostly done... except a lot of the styling... - Don't want to translate items when dragging, which is what react-beautiful-dnd does out of the box
- Fixed up stealing focus when opening preview notebook - Mostly functioning but the render function isn't getting the dropTargetItem... I think there's too much rendering going on as well, probably not memoizing something properly
- Needed to reset the mouse state when a drag starts - Still need to fix up the styling
Wasn't checking if the dataTransfer items list had no items.
- Drag past the last element to drop at the root
Adding @dsmmcken to review styling |
Co-authored-by: vbabich <[email protected]>
Co-authored-by: vbabich <[email protected]>
No need for updateDimensions to be called, since the AutoSizer already properly handles resizing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 1. Dragging folder into self deletes folder 😨
- 2, Styling of selection should match command history exactly see commandhistoryitem.scss, maybe even re-use? note the use of focus, active, hover, focus-within active styling and borders.
- 3. Selecting multiple items, then initiating a drag shows the drag item that initiated as de-selected, rather than remaining selected
- 4. ctrl/shift selection clicks shouldn't trigger opening of that notebook.
|
@dsmmcken Should I be building the border/transitions directly into ItemList? Not sure if there was a reason that styling was only added to command history or not. In any case I've pushed a change with the styling applied to FileList |
Some default styling was being applied when dragging items
Could re-use between filelist and command history list, but this list is also used a bunch in the table sidebar menu, where it has different styling |
I've fixed all his changes and he verbally approved
keyboardIndex
tofocusIndex
inItemList
, and fire anonFocusChange
event to allow handling.Fixes Notebook UI: Drag and Drop to move #86